diff --git a/.gitignore b/.gitignore index b41d514..dd90d07 100644 --- a/.gitignore +++ b/.gitignore @@ -1,8 +1,8 @@ # html5-parser specific manual node_modules -test*.html -test*.php +/test*.html +/test*.php /vendor/ /vendor-bin/*/vendor diff --git a/tests/cases/TestSerializer.php b/tests/cases/TestSerializer.php index 896c7fd..c974693 100644 --- a/tests/cases/TestSerializer.php +++ b/tests/cases/TestSerializer.php @@ -368,6 +368,50 @@ class TestSerializer extends \PHPUnit\Framework\TestCase { HTML ], + // Reformat whitespace, whitespace collapsing, custom indentions, tabs + [false, null, 1, false, false, true, false, false, + << + + + + + + + + + ook eek +
+                    This should be ignored
+
+                                also this
+                         
+
+

Ook + Eek!

+ + + HTML, + + << + + \t + + \took eek + \t\t
    This should be ignored
+
+                                also this
+                         
+ + \t\t
+ + \t\t

Ook Eek!

+ \t + + HTML + ], + // Fragment, html elements [true, 'div', 1, true, false, true, false, false, <<