Chromium Code Reviews

Unified Diff: pkg/third_party/html5lib/lib/dom.dart

Issue 78663004: fix script tags -- remove special case handling for polymer-element (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « pkg/shadow_dom/pubspec.yaml ('k') | pkg/third_party/html5lib/pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/third_party/html5lib/lib/dom.dart
diff --git a/pkg/third_party/html5lib/lib/dom.dart b/pkg/third_party/html5lib/lib/dom.dart
index d73edaac35a3bafc374032754fcf67465809fc3f..1c0b6de94f425389507abd621afe3ad619b20cd6 100644
--- a/pkg/third_party/html5lib/lib/dom.dart
+++ b/pkg/third_party/html5lib/lib/dom.dart
@@ -181,6 +181,8 @@ abstract class Node {
nodes.addAll(parseFragment(value, container: tagName).nodes);
}
+ Node get firstChild => nodes.isNotEmpty ? nodes[0] : null;
+
void _addOuterHtml(StringBuffer str);
void _addInnerHtml(StringBuffer str) {
« no previous file with comments | « pkg/shadow_dom/pubspec.yaml ('k') | pkg/third_party/html5lib/pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine