mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
We now only preserve the whitespace inside a <t> element inside the parser. This removes the known n^2 from reattaching whitespace which should make parsing and appending nodes faster. I also removed the dead WhitespaceMode code from the parser, and made the dom-seralizer.sky auto indent the markup so the test output would be readable. R=abarth@chromium.org Review URL: https://codereview.chromium.org/867963006
The empty, cr, and utf16 tests don't import the test framework so they currently hang until timeout. Really they should just check that nothing crashes. For now they are disabled.
We should also test the following (each line is its own test):
<
<!
<!-
<!--
<!---
<!----
<!---->
<!----->
<a
<aa
<a
<a a
<a a=
<a a=&
<a a=&#
<a a=&#x
<a a=
<a a=
<a a=
<a a=
<a a=&a
<a a=&a;
<a a=&;
<a a='
<a a="
<a a=a
<a>
<a >
<a a>
<a a=>
<a a=&>
<a a=&#>
<a a=&#x>
<a a=>
<a a=>
<a a=>
<a a=>
<a a=&a>
<a a=&a;>
<a a=&;>
<a a=''>
<a a="">
<a a=a>
<a a >
<a a= >
<a a=& >
<a a=&# >
<a a=&#x >
<a a= >
<a a= >
<a a= >
<a a= >
<a a=&a >
<a a=&a; >
<a a=&; >
<a a='' >
<a a="" >
<a a=a >
</a
</aa
</a
</a a
</a a=
</a a=&
</a a=&#
</a a=&#x
</a a=
</a a=
</a a=
</a a=
</a a=&a
</a a=&a;
</a a=&;
</a a='
</a a="
</a a=a
</a>
</a >
</a a>
</a a=>
</a a=&>
</a a=&#>
</a a=&#x>
</a a=>
</a a=>
</a a=>
</a a=>
</a a=&a>
</a a=&a;>
</a a=&;>
</a a=''>
</a a="">
</a a=a>
</a a >
</a a= >
</a a=& >
</a a=&# >
</a a=&#x >
</a a= >
</a a= >
</a a= >
</a a= >
</a a=&a >
</a a=&a; >
</a a=&; >
</a a='' >
</a a="" >
</a a=a >
a
&
&#
&#x




&a
&a;
&;
We should also test:
- multiple elements per page
- signature stuff