HTML API: Support INPUT tags.

Adds support for the following HTML elements to the HTML Processor:

 - INPUT

Previously this element was not supported and the HTML Processor would bail when encountering one. Now, with this patch applied, it will proceed to parse the HTML document.

Developed in https://github.com/WordPress/wordpress-develop/pull/5907
Discussed in https://core.trac.wordpress.org/ticket/60283

Props jonsurrell
See #60283



git-svn-id: https://develop.svn.wordpress.org/trunk@57343 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Dennis Snell
2024-01-24 03:28:27 +00:00
parent 86d4ac2815
commit 78ef4f749e
3 changed files with 22 additions and 8 deletions

View File

@@ -253,7 +253,6 @@ class Tests_HtmlApi_WpHtmlProcessor extends WP_UnitTestCase {
'HEAD' => array( 'HEAD' ),
'HTML' => array( 'HTML' ),
'IFRAME' => array( 'IFRAME' ),
'INPUT' => array( 'INPUT' ),
'LINK' => array( 'LINK' ),
'MARQUEE' => array( 'MARQUEE' ),
'MATH' => array( 'MATH' ),

View File

@@ -180,7 +180,6 @@ class Tests_HtmlApi_WpHtmlProcessorBreadcrumbs extends WP_UnitTestCase {
'HEAD',
'HTML',
'IFRAME',
'INPUT',
'LINK',
'MARQUEE', // Deprecated.
'MATH',