Make WordPress Core

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#59167 closed defect (bug) (fixed)

HTML API: Stop proceeding HTML when encountering unsupported markup.

Reported by: dmsnell Owned by: Bernhard Reiter
Priority: normal Milestone: 6.4
Component: HTML API Version: 6.4
Severity: normal Keywords: has-patch has-unit-tests commit
Cc: Focuses:

Description

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.

Change History (4)

This ticket was mentioned in PR #5048 on WordPress/wordpress-develop by @dmsnell.


3 years ago
#1

  • Keywords has-unit-tests added

Trac ticket: #59167-trac

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.

#2 @Bernhard Reiter
3 years ago

  • Keywords commit added
  • Milestone Awaiting Review6.4

#3 @Bernhard Reiter
3 years ago

  • Owner set to Bernhard Reiter
  • Resolutionfixed
  • Status newclosed

In 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.

Note: See TracTickets for help on using tickets.