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

WordPress Trac noreply at wordpress.org
Wed Jul 31 16:54:39 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:"58836" 58836]:
 {{{
 #!CommitTicketReference repository="" revision="58836"
 HTML API: Introduce full parsing mode in HTML Processor.

 The HTML Processor has only supported a specific kind of parsing mode
 called _the fragment parsing mode_, where it behaves in the same way
 that `node.innerHTML = html` does in the DOM. This mode assumes a
 context node and doesn't support parsing an entire document.

 As part of work to add more spec support to the HTML API, this patch
 introduces a full parsing mode, which can parse a full HTML document
 from start to end, including the doctype declaration and head tags.

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

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

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


More information about the wp-trac mailing list