#59167 closed defect (bug) (fixed)
HTML API: Stop proceeding HTML when encountering unsupported markup.
Reported by: | dmsnell | Owned by: | Bernhard Reiter |
---|---|---|---|
Milestone: | 6.4 | Priority: | normal |
Severity: | normal | Version: | 6.4 |
Component: | HTML API | Keywords: | has-patch has-unit-tests commit |
Focuses: | Cc: |
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.
14 months ago
#1
- Keywords has-unit-tests added
#3
@
14 months ago
- Owner set to Bernhard Reiter
- Resolution set to fixed
- Status changed from new to closed
In 56493:
@Bernhard Reiter commented on PR #5048:
14 months ago
#4
Committed to Core in https://core.trac.wordpress.org/changeset/56493.
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.