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

WordPress Trac noreply at wordpress.org
Thu Aug 8 17:03:03 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:"58871" 58871]:
 {{{
 #!CommitTicketReference repository="" revision="58871"
 HTML API: Test and fix SVG script handling.

 When support was added for foreign content, an ambiguity in the HTML
 specification led to code that followed the wrong path when encountering a
 self-closing SCRIPT element in the SVG namespace. Further, a fallthrough
 was discovered during manual testing.

 This patch adds a new test to assert the proper behaviors and fixes these
 issues. In the case of the SCRIPT element, the outcome was the same with
 the wrong code path, making the defect benign. In the case of the
 fallthrough, the wrong behavior would occur.

 The updates in this patch also resolves a todo relating to the spec
 ambiguity.

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

 Follow-up to [58868].

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

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


More information about the wp-trac mailing list