dart-sublime-bundle
dart-sublime-bundle copied to clipboard
DAS won't suggest localName for dom.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;
print(t1.^);
}
Caret at ^; localName won't show up among suggestions.
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
}