WordPress/wp-includes/html-api
Bernhard Reiter c67fe4b6e5 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.
Built from https://develop.svn.wordpress.org/trunk@56493


git-svn-id: http://core.svn.wordpress.org/trunk@56005 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-08-30 15:39:16 +00:00
..
class-wp-html-active-formatting-elements.php HTML API: Adjust code styling to Gutenberg's linter's preferences. 2023-08-07 13:50:27 +00:00
class-wp-html-attribute-token.php Docs: Improve HTML API file and class headers per the documentation standards. 2023-05-09 11:19:21 +00:00
class-wp-html-open-elements.php HTML API: Add support for BUTTON element. 2023-08-10 08:37:20 +00:00
class-wp-html-processor-state.php HTML API: Add support for BUTTON element. 2023-08-10 08:37:20 +00:00
class-wp-html-processor.php HTML API: Stop processing HTML when encountering unsupported markup. 2023-08-30 15:39:16 +00:00
class-wp-html-span.php Docs: Improve HTML API file and class headers per the documentation standards. 2023-05-09 11:19:21 +00:00
class-wp-html-tag-processor.php Coding Standards: Always declare visibility for class methods. 2023-07-25 13:16:21 +00:00
class-wp-html-text-replacement.php Docs: Improve HTML API file and class headers per the documentation standards. 2023-05-09 11:19:21 +00:00
class-wp-html-token.php HTML API: Adjust code styling to Gutenberg's linter's preferences. 2023-08-07 13:50:27 +00:00
class-wp-html-unsupported-exception.php HTML-API: Introduce minimal HTML Processor. 2023-07-20 13:43:25 +00:00