parseFragment method
Parse an html5 document fragment into a tree.
Pass a container
to change the type of the containing element.
After parsing, errors will be populated with parse errors, if any.
Implementation
DocumentFragment parseFragment([String container = 'div']) {
ArgumentError.checkNotNull(container, 'container');
innerHTML = container.toLowerCase();
_parse();
return tree.getFragment();
}