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

WordPress Trac noreply at wordpress.org
Thu Aug 8 16:13:42 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:"58870" 58870]:
 {{{
 #!CommitTicketReference repository="" revision="58870"
 HTML API: `expect_closer()` should report false for self-closing foreign
 elements.

 Previously, `WP_HTML_Processor::expects_closer()` would report `true` for
 self-closing foreign elements when called without supplying a node in
 question, but it should have been reporting `true` just as it does for
 HTML elements.

 This patch adds a test case demonstrating the issue and a bugfix.

 The `html5lib` test runner was relying on the incorrect behavior,
 accidentally working. This is also corrected and the `html5lib` test now
 relies on the correct behavior of `expects_closer()`.

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

 Follow-up to [58868].

 Props: dmsnell.
 See #61576.
 }}}

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


More information about the wp-trac mailing list