diff --git a/tests/plugins/optimization-detective/class-od-html-tag-processor-tests.php b/tests/plugins/optimization-detective/class-od-html-tag-processor-tests.php index f974828ebf..73443ed0cf 100644 --- a/tests/plugins/optimization-detective/class-od-html-tag-processor-tests.php +++ b/tests/plugins/optimization-detective/class-od-html-tag-processor-tests.php @@ -124,8 +124,10 @@ public function data_provider_sample_documents(): array { +
@@ -133,10 +135,14 @@ public function data_provider_sample_documents(): array {
+ + @@ -148,32 +154,28 @@ public function data_provider_sample_documents(): array { ', - '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(