Open guillermooo opened 9 years ago
It rather seems that localName
isn't returned for the top-level html
element.
// Copyright (c) 2015, <your name>. All rights reserved. Use of this source code
// is governed by a BSD-style license that can be found in the LICENSE file.
import "package:html/parser.dart";
main() {
var p1 = parse("<p>hello</p>");
var t1 = p1.nodes.first;
var t2 = p1.nodes.first.children.first;
print(t1.^); // no localName
print(t2.^); // localName ok
}
Caret at
^
;localName
won't show up among suggestions.