Node.root constructor
Implementation
factory Node.root(Object input, {String? rootTag, required bool removeLeadingWhitespaces }) {
if (rootTag == null || rootTag.isEmpty) {
rootTag = 'html';
}
final dom.Node root = input is dom.Node ? input : parse(input).getElementsByTagName(rootTag).first;
return Node(util.prepareRoot(root, removeLeadingWhitespaces));
}