From d4398209223f3e35f523e4a10d12dbb7dfe82429 Mon Sep 17 00:00:00 2001 From: Elliott Sprehn Date: Fri, 23 Jan 2015 16:50:00 -0800 Subject: [PATCH] Add the element and ignore whitespace outside it. We now only preserve the whitespace inside a 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 --- examples/city-list/city-list.sky | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/city-list/city-list.sky b/examples/city-list/city-list.sky index e32112a31e..5d57d0b57a 100644 --- a/examples/city-list/city-list.sky +++ b/examples/city-list/city-list.sky @@ -89,10 +89,10 @@ module.exports.LetterHeaderElement = class extends SkyElement { #population { color: #AAA; } -
- {{ name }}, + {{ name }} + , population {{ population }}