wordpress-develop/tests/phpunit/tests/html-api
Bernie Reiter 7dbf409caf HTML API: Skip over contents of RAWTEXT elements such as STYLE.
When encountering elements that imply switching into the RAWTEXT parsing state,
the Tag Processor should skip processing until exiting the RAWTEXT state.

In this patch the Tag Processor does just that, except for the case of the
deprecated XMP element which implies further and more complicated rules.

There's an implicit assumption that the SCRIPT ENABLED flag in HTML parsing
is enabled so that the contents of NOSCRIPT can be skipped. Otherwise, it would
be required to parse the contents of that tag.

Props dmsnell.
Fixes #59292.

git-svn-id: https://develop.svn.wordpress.org/trunk@56563 602fd350-edb4-49c9-b593-d223f7449a82
2023-09-13 12:47:25 +00:00
..
wpHtmlProcessor.php HTML API: Stop processing HTML when encountering unsupported markup. 2023-08-30 15:37:33 +00:00
wpHtmlProcessorBreadcrumbs.php HTML API: Add support for BUTTON element. 2023-08-10 08:35:55 +00:00
wpHtmlProcessorSemanticRules.php HTML API: Add support for BUTTON element. 2023-08-10 08:35:55 +00:00
wpHtmlSupportRequiredHtmlProcessor.php HTML API: Add support for SPAN element. 2023-08-01 07:54:54 +00:00
wpHtmlSupportRequiredOpenElements.php HTML API: Add support for BUTTON element. 2023-08-10 08:35:55 +00:00
wpHtmlTagProcessor-bookmark.php HTML API: Change wp infix in test classes to Wp. 2023-07-25 12:17:28 +00:00
wpHtmlTagProcessor.php HTML API: Skip over contents of RAWTEXT elements such as STYLE. 2023-09-13 12:47:25 +00:00