git: c01a34dcadb4 - main - devel/pear-HTML_Page2: fix HTML5 doctype and add lang attribute
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 25 Mar 2026 14:43:38 UTC
The branch main has been updated by tz:
URL: https://cgit.FreeBSD.org/ports/commit/?id=c01a34dcadb46be0fdfc7dabb560bba6070444b2
commit c01a34dcadb46be0fdfc7dabb560bba6070444b2
Author: Torsten Zuehlsdorff <tz@FreeBSD.org>
AuthorDate: 2026-03-24 16:52:54 +0000
Commit: Torsten Zuehlsdorff <tz@FreeBSD.org>
CommitDate: 2026-03-25 14:43:02 +0000
devel/pear-HTML_Page2: fix HTML5 doctype and add lang attribute
Use <!DOCTYPE html> for HTML 4.01 strict and add lang attribute to
the html tag for W3C validation compliance.
PR: 270453
Submitted by: dvl@FreeBSD.org
Approved by: dvl@FreeBSD.org (maintainer timeout)
---
devel/pear-HTML_Page2/Makefile | 1 +
devel/pear-HTML_Page2/files/patch-HTML_Page2.php | 10 ++++++++++
devel/pear-HTML_Page2/files/patch-HTML_Page2_Doctypes.php | 15 +++++++++++++++
3 files changed, 26 insertions(+)
diff --git a/devel/pear-HTML_Page2/Makefile b/devel/pear-HTML_Page2/Makefile
index 74cbc6633f55..c50f1135702a 100644
--- a/devel/pear-HTML_Page2/Makefile
+++ b/devel/pear-HTML_Page2/Makefile
@@ -1,5 +1,6 @@
PORTNAME= HTML_Page2
PORTVERSION= 0.6.5
+PORTREVISON= 1
CATEGORIES= devel www pear
MAINTAINER= sunpoet@FreeBSD.org
diff --git a/devel/pear-HTML_Page2/files/patch-HTML_Page2.php b/devel/pear-HTML_Page2/files/patch-HTML_Page2.php
new file mode 100644
index 000000000000..e6b1c814bcae
--- /dev/null
+++ b/devel/pear-HTML_Page2/files/patch-HTML_Page2.php
@@ -0,0 +1,10 @@
+--- HTML/Page2.php.orig 2023-03-25 19:41:07 UTC
++++ HTML/Page2.php
+@@ -1647,6 +1647,7 @@ class HTML_Page2 extends HTML_Common
+ $strHtml .= ' profile="'.$this->_profile.'"';
+ }
+
++ $strHtml .= ' lang="' . $this->_language . '"';
+ $strHtml .= '>' . $lnEnd;
+
+ }
diff --git a/devel/pear-HTML_Page2/files/patch-HTML_Page2_Doctypes.php b/devel/pear-HTML_Page2/files/patch-HTML_Page2_Doctypes.php
new file mode 100644
index 000000000000..938cbf2d120c
--- /dev/null
+++ b/devel/pear-HTML_Page2/files/patch-HTML_Page2_Doctypes.php
@@ -0,0 +1,15 @@
+--- HTML/Page2/Doctypes.php.orig 2023-03-25 19:40:27 UTC
++++ HTML/Page2/Doctypes.php
+@@ -92,9 +92,9 @@ $doctype['xhtml']['2.0'][] = ' "TBD">';
+
+ // HTML 4.01 Strict
+ $doctype['html']['4.01']['strict'][]
+- = '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"';
+-$doctype['html']['4.01']['strict'][]
+- = ' "http://www.w3.org/TR/html4/strict.dtd">';
++ = '<!DOCTYPE html>';
++#$doctype['html']['4.01']['strict'][]
++# = ' "http://www.w3.org/TR/html4/strict.dtd">';
+
+ // HTML 4.01 Transitional
+ $doctype['html']['4.01']['transitional'][]