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
21 lines
681 B
Plaintext
21 lines
681 B
Plaintext
<style>
|
|
.blue { border: 1px solid blue; }
|
|
.orange { border: 1px solid orange; }
|
|
.repeat { margin: 8px; }
|
|
</style>
|
|
<span style="color: red">10</span>
|
|
<template repeat="{{ list }}"></template>
|
|
<div class="blue repeat">first</div>
|
|
<div class="orange repeat">second</div>
|
|
<template if="{{ test }}"></template>
|
|
Hello World
|
|
<template if="{{ testFalse }}"></template>
|
|
<template repeat="{{ nullInstances }}"></template>
|
|
<div>10 test redblue test</div>
|
|
<a href="http://www.google.com/">http://www.google.com/</a>
|
|
<span on-test-event="handleTestEvent">
|
|
<span id="target">Test event handler: event dispatch success</span>
|
|
</span>
|
|
<div class="[[ className ]]">[[ url ]]</div>
|
|
|