PR #24: Resolve TODO: NULL byte handling in HTML/MathML integration points is correct
PR #24 addresses the TODO regarding NULL byte handling in HTML and MathML integration points within the get_modifiable_text() function. The implementation correctly strips NULL bytes according to HTML rules, as confirmed by the behavior of WP_HTML_Processor. The changes include updated documentation to clarify this behavior and added test coverage.
Modifications include two main updates: in class-wp-html-tag-processor.php, the TODO comment has been replaced with an explanatory comment detailing how the current namespace handling aligns with HTML specifications, along with references to relevant HTML specs and WP_HTML_Processor. Additionally, in wpHtmlProcessor-serialize.php, 11 new test cases have been introduced for MathML text integration points to validate NULL byte handling, enhancing integration reliability.