Skip to content

Commit

Permalink
Remove BASEFONT, BGSOUND, PARAM, and KEYGEN from tests
Browse files Browse the repository at this point in the history
  • Loading branch information
westonruter committed Apr 8, 2024
1 parent 34b6a27 commit d4611a6
Showing 1 changed file with 22 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,19 +124,25 @@ public function data_provider_sample_documents(): array {
<body>
<area>
<base>
<!-- TODO: Add these deprecated/non-standard tags to WP_HTML_Processor::is_void().
<basefont>
<bgsound>
-->
<br>
<col>
<embed>
<frame>
<hr>
<img src="">
<input>
<!-- TODO: See above.
<keygen>
-->
<link>
<meta>
<!-- TODO: See above.
<param name="foo" value="bar">
-->
<source>
<track src="https://example.com/track">
<wbr>
Expand All @@ -148,32 +154,28 @@ public function data_provider_sample_documents(): array {
</body>
</html>
',
'open_tags' => array( 'HTML', 'HEAD', 'BODY', 'AREA', 'BASE', 'BASEFONT', 'BGSOUND', 'BR', 'COL', 'EMBED', 'FRAME', 'HR', 'IMG', 'INPUT', 'KEYGEN', 'LINK', 'META', 'PARAM', 'SOURCE', 'TRACK', 'WBR', 'DIV', 'SPAN', 'EM' ),
'open_tags' => array( 'HTML', 'HEAD', 'BODY', 'AREA', 'BASE', 'BR', 'COL', 'EMBED', 'FRAME', 'HR', 'IMG', 'INPUT', 'LINK', 'META', 'SOURCE', 'TRACK', 'WBR', 'DIV', 'SPAN', 'EM' ),
'xpaths' => array(
'/*[0][self::HTML]',
'/*[0][self::HTML]/*[0][self::HEAD]',
'/*[0][self::HTML]/*[1][self::BODY]',
'/*[0][self::HTML]/*[1][self::BODY]/*[0][self::AREA]',
'/*[0][self::HTML]/*[1][self::BODY]/*[1][self::BASE]',
'/*[0][self::HTML]/*[1][self::BODY]/*[2][self::BASEFONT]',
'/*[0][self::HTML]/*[1][self::BODY]/*[3][self::BGSOUND]',
'/*[0][self::HTML]/*[1][self::BODY]/*[4][self::BR]',
'/*[0][self::HTML]/*[1][self::BODY]/*[5][self::COL]',
'/*[0][self::HTML]/*[1][self::BODY]/*[6][self::EMBED]',
'/*[0][self::HTML]/*[1][self::BODY]/*[7][self::FRAME]',
'/*[0][self::HTML]/*[1][self::BODY]/*[8][self::HR]',
'/*[0][self::HTML]/*[1][self::BODY]/*[9][self::IMG]',
'/*[0][self::HTML]/*[1][self::BODY]/*[10][self::INPUT]',
'/*[0][self::HTML]/*[1][self::BODY]/*[11][self::KEYGEN]',
'/*[0][self::HTML]/*[1][self::BODY]/*[12][self::LINK]',
'/*[0][self::HTML]/*[1][self::BODY]/*[13][self::META]',
'/*[0][self::HTML]/*[1][self::BODY]/*[14][self::PARAM]',
'/*[0][self::HTML]/*[1][self::BODY]/*[15][self::SOURCE]',
'/*[0][self::HTML]/*[1][self::BODY]/*[16][self::TRACK]',
'/*[0][self::HTML]/*[1][self::BODY]/*[17][self::WBR]',
'/*[0][self::HTML]/*[1][self::BODY]/*[18][self::DIV]',
'/*[0][self::HTML]/*[1][self::BODY]/*[18][self::DIV]/*[0][self::SPAN]',
'/*[0][self::HTML]/*[1][self::BODY]/*[18][self::DIV]/*[0][self::SPAN]/*[0][self::EM]',
'/*[0][self::HTML]/*[1][self::BODY]/*[2][self::BR]',
'/*[0][self::HTML]/*[1][self::BODY]/*[3][self::COL]',
'/*[0][self::HTML]/*[1][self::BODY]/*[4][self::EMBED]',
'/*[0][self::HTML]/*[1][self::BODY]/*[5][self::FRAME]',
'/*[0][self::HTML]/*[1][self::BODY]/*[6][self::HR]',
'/*[0][self::HTML]/*[1][self::BODY]/*[7][self::IMG]',
'/*[0][self::HTML]/*[1][self::BODY]/*[8][self::INPUT]',
'/*[0][self::HTML]/*[1][self::BODY]/*[9][self::LINK]',
'/*[0][self::HTML]/*[1][self::BODY]/*[10][self::META]',
'/*[0][self::HTML]/*[1][self::BODY]/*[11][self::SOURCE]',
'/*[0][self::HTML]/*[1][self::BODY]/*[12][self::TRACK]',
'/*[0][self::HTML]/*[1][self::BODY]/*[13][self::WBR]',
'/*[0][self::HTML]/*[1][self::BODY]/*[14][self::DIV]',
'/*[0][self::HTML]/*[1][self::BODY]/*[14][self::DIV]/*[0][self::SPAN]',
'/*[0][self::HTML]/*[1][self::BODY]/*[14][self::DIV]/*[0][self::SPAN]/*[0][self::EM]',
),
),
'optional-closing-p' => array(
Expand Down

0 comments on commit d4611a6

Please sign in to comment.