Hi Org-mode maintainers, As mentioned in https://list.orgmode.org/orgmode/87v85ad0fy.fsf@localhost/, exporting a document with org-html-doctype set to "html4-strict" fails W3C validation. Currently, org-html--build-meta-entry hardcodes " />\n", which forces XHTML syntax regardless of the user's chosen doctype.
To fix this, I change `org-html--build-meta-entry' to accept the info channel plist. Inside the function, we use the existing `org-html-xhtml-p' predicate to dynamically determine the closing suffix. It will now correctly output " />\n" for XHTML flavors, and ">\n" for HTML4 and HTML5 flavors. See the attached patch for more details. Regards.
0001-ox-html-Fix-W3C-validation-for-html4-strict-doctype.patch
Description: Binary data
