[wp-meta] [Making WordPress.org] #8159: Trac pages claim XHTML, render as HTML5
Making WordPress.org
noreply at wordpress.org
Mon Jan 26 20:52:38 UTC 2026
#8159: Trac pages claim XHTML, render as HTML5
-------------------------+-------------------------
Reporter: jonsurrell | Owner: (none)
Type: enhancement | Status: closed
Priority: normal | Milestone:
Component: General | Resolution: maybelater
Keywords: |
-------------------------+-------------------------
Comment (by jonsurrell):
Replying to [comment:2 Otto42]:
> We generally don't mess with the trac systems unless we need to fix
something specifically. Currently the render mode doesn't really matter.
The doctype header doesn't matter really at all. Changing around the trac
theme just in order to change this seems unlikely to happen anytime soon,
unless we need to fix something else in the theme anyway.
>
> So for now I'm going to close this as maybe later. But, we may revisit
it if we need to alter something important in trac.
Understood.
It's worth mentioning that this isn't just pedantic. I noticed it because
of a warning when I tried to parse the document with
[https://www.php.net/manual/en/class.dom-htmldocument.php PHP's
\Dom\HTMLDocument]:
{{{#!php
<?php
$ch = curl_init( 'https://core.trac.wordpress.org/changeset/61477' );
curl_setopt( $ch, CURLOPT_USERAGENT, 'test/0.1' );
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
curl_setopt( $ch, CURLOPT_FOLLOWLOCATION, true );
$html = curl_exec($ch);
$doc = \Dom\HTMLDocument::createFromString( $html );
}}}
{{{
Warning: Dom\HTMLDocument::createFromString(): tree error bad-doctype-
token-in-initial-mode in Entity, line: 1, column: 3-9 in …
}}}
--
Ticket URL: <https://meta.trac.wordpress.org/ticket/8159#comment:3>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org
More information about the wp-meta
mailing list