Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(384)

Unified Diff: sky/framework/dom-serializer.sky

Issue 831033002: Add a basic SkyBinder test. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | sky/tests/framework/binding.sky » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/framework/dom-serializer.sky
diff --git a/sky/framework/dom-serializer.sky b/sky/framework/dom-serializer.sky
index ac352fffde8717906586cc9ebcd1302bbed7d9f2..e32b88fedddd6fb8a8149a607bb49591104bb5cf 100644
--- a/sky/framework/dom-serializer.sky
+++ b/sky/framework/dom-serializer.sky
@@ -63,7 +63,7 @@ function serializeNode(node) {
return escapeText(node.data, kTextEscapePattern);
if (node instanceof Element)
return serializeElement(node);
- if (node instanceof Document)
+ if (node instanceof Document || node instanceof ShadowRoot)
return serializeChildren(node.firstChild);
throw new Error("Cannot serialize node");
}
« no previous file with comments | « no previous file | sky/tests/framework/binding.sky » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698