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

WordPress Trac noreply at wordpress.org
Fri Jul 12 21:58:37 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:  trunk
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+---------------------

Comment (by dmsnell):

 In [changeset:"58712" 58712]:
 {{{
 #!CommitTicketReference repository="" revision="58712"
 HTML API: Join successive text nodes in html5lib test representation.

 Many tests from the html5lib test suite fail because of differences in
 text handling between a DOM API and the HTML API, even though the
 semantics of the parse are equivalent. For example, it's possible in
 the HTML API to read multiple successive text nodes when the tokens
 between them are ignored.

 The test suite didn't account for this and so was failing tests. This
 patch improves the construction of the representation to compare
 against the test suite so that those tests don't fail inaccurately.

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

 Props bernhard-reiter, dmsnell, jonsurrell.
 See #61576.
 }}}

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


More information about the wp-trac mailing list