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

WordPress Trac noreply at wordpress.org
Tue Aug 22 17:18:39 UTC 2023


#59167: HTML API: Stop proceeding HTML when encountering unsupported markup.
--------------------------+-----------------------------
 Reporter:  dmsnell       |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  HTML API      |    Version:  trunk
 Severity:  normal        |   Keywords:  has-patch
  Focuses:                |
--------------------------+-----------------------------
 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.

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


More information about the wp-trac mailing list