[wp-trac] [WordPress Trac] #59167: HTML API: Stop proceeding HTML when encountering unsupported markup.

WordPress Trac noreply at wordpress.org
Wed Aug 30 15:37:48 UTC 2023


#59167: HTML API: Stop proceeding HTML when encountering unsupported markup.
---------------------------------------------+-----------------------------
 Reporter:  dmsnell                          |       Owner:  Bernhard
                                             |  Reiter
     Type:  defect (bug)                     |      Status:  closed
 Priority:  normal                           |   Milestone:  6.4
Component:  HTML API                         |     Version:  trunk
 Severity:  normal                           |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests commit  |     Focuses:
---------------------------------------------+-----------------------------
Changes (by Bernhard Reiter):

 * owner:  (none) => Bernhard Reiter
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"56493" 56493]:
 {{{
 #!CommitTicketReference repository="" revision="56493"
 HTML API: Stop processing HTML when encountering unsupported markup.

 It was a design goal of the HTML Processor to abort processing its input
 document when encountering unsupported markup. Unfortunately there was no
 test for this and so-far, the HTML Processor has paused, but continued
 processing in these situations.

 In this patch a new test ensures that the HTML Processor stops and refuses
 to move forward after encountering any unsupported markup. It also ensures
 that it doesn't report any current tag names since unsupported markup
 could imply that the read tag name is different than the parsed tag name.

 Props dmsnell.
 Fixes #59167.
 }}}

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


More information about the wp-trac mailing list