| 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:html/dom.dart'; | 5 import 'package:html/dom.dart'; |
| 6 import 'package:html/parser.dart' show getElementNameTuple; | 6 import 'package:html/parser.dart' show getElementNameTuple; |
| 7 import 'package:source_span/source_span.dart'; | 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'; |
| (...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 399 Document getDocument() => document; | 399 Document getDocument() => document; |
| 400 | 400 |
| 401 /// Return the final fragment. | 401 /// Return the final fragment. |
| 402 DocumentFragment getFragment() { | 402 DocumentFragment getFragment() { |
| 403 //XXX assert innerHTML | 403 //XXX assert innerHTML |
| 404 var fragment = new DocumentFragment(); | 404 var fragment = new DocumentFragment(); |
| 405 openElements[0].reparentChildren(fragment); | 405 openElements[0].reparentChildren(fragment); |
| 406 return fragment; | 406 return fragment; |
| 407 } | 407 } |
| 408 } | 408 } |
| OLD | NEW |