| OLD | NEW |
| 1 /// Internals to the tree builders. | 1 /// Internals to the tree builders. |
| 2 library treebuilder; | 2 library treebuilder; |
| 3 | 3 |
| 4 import 'dart:collection'; | 4 import 'dart:collection'; |
| 5 import 'package:html5lib/dom.dart'; | 5 import 'package:html5lib/dom.dart'; |
| 6 import 'package:html5lib/parser.dart' show getElementNameTuple; | 6 import 'package:html5lib/parser.dart' show getElementNameTuple; |
| 7 import 'package:source_maps/span.dart' show FileSpan; | 7 import 'package:source_span/source_span.dart'; |
| 8 import 'constants.dart'; | 8 import 'constants.dart'; |
| 9 import 'list_proxy.dart'; | 9 import 'list_proxy.dart'; |
| 10 import 'token.dart'; | 10 import 'token.dart'; |
| 11 import 'utils.dart'; | 11 import 'utils.dart'; |
| 12 | 12 |
| 13 // The scope markers are inserted when entering object elements, | 13 // The scope markers are inserted when entering object elements, |
| 14 // marquees, table cells, and table captions, and are used to prevent formatting | 14 // marquees, table cells, and table captions, and are used to prevent formatting |
| 15 // from "leaking" into tables, object elements, and marquees. | 15 // from "leaking" into tables, object elements, and marquees. |
| 16 const Node Marker = null; | 16 const Node Marker = null; |
| 17 | 17 |
| (...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 385 Document getDocument() => document; | 385 Document getDocument() => document; |
| 386 | 386 |
| 387 /// Return the final fragment. | 387 /// Return the final fragment. |
| 388 DocumentFragment getFragment() { | 388 DocumentFragment getFragment() { |
| 389 //XXX assert innerHTML | 389 //XXX assert innerHTML |
| 390 var fragment = new DocumentFragment(); | 390 var fragment = new DocumentFragment(); |
| 391 openElements[0].reparentChildren(fragment); | 391 openElements[0].reparentChildren(fragment); |
| 392 return fragment; | 392 return fragment; |
| 393 } | 393 } |
| 394 } | 394 } |
| OLD | NEW |