[wp-trac] [WordPress Trac] #61576: HTML API: Improved spec support in 6.7

WordPress Trac noreply at wordpress.org
Fri Aug 23 14:54:16 UTC 2024


#61576: HTML API: Improved spec support in 6.7
--------------------------------------+---------------------
 Reporter:  dmsnell                   |       Owner:  (none)
     Type:  enhancement               |      Status:  new
 Priority:  normal                    |   Milestone:  6.7
Component:  HTML API                  |     Version:  6.6
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+---------------------

Comment (by dmsnell):

 In [changeset:"58925" 58925]:
 {{{
 #!CommitTicketReference repository="" revision="58925"
 HTML API: Parse DOCTYPE tokens and set HTML parser mode accordingly.

 This patch adds until-now missing code to parse the structure of HTML
 DOCTYPE declarations. The DOCTYPE is mostly unused but can dictate the
 document compatability mode, which governs whether CSS class names match
 in a ASCII-case-insensitive way or not, and whether TABLE elements close
 an open P element.

 The DOCTYPE information is made available through a new method on the Tag
 Processor, `get_doctype_info()`.

 Developed in https://github.com/wordpress/wordpress-develop/pull/7195
 Discussed in https://core.trac.wordpress.org/ticket/61576

 Props dmsnell, jonsurrell.
 See #61576.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/61576#comment:109>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list