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

WordPress Trac noreply at wordpress.org
Mon Jul 22 23:19:36 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:"58781" 58781]:
 {{{
 #!CommitTicketReference repository="" revision="58781"
 HTML API: Fix unsupported insertion mode messages.

 Insertion modes in an HTML parser may include instructions like "process
 the token in the IN HEAD insertion mode." The rules do not change the
 insertion mode of the parser, but the errors are triggered outside of the
 rules for the current insertion mode. These will be misleading when
 bailing on these instructions, because it will point someone to the wrong
 place in the code to find the source of the error.

 In this patch all of the bail-points due to lacking insertion mode support
 are hard-coded to better orient someone to the section of the code lacking
 support for handling the input HTML.

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

 Follow-up to [58679].

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

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


More information about the wp-trac mailing list