guillermooo / dart-sublime-bundle

Sublime Text 3 Dart Package
BSD 3-Clause "New" or "Revised" License
264 stars 42 forks source link

DAS won't suggest localName for dom.Element #563

Open guillermooo opened 9 years ago

guillermooo commented 9 years ago
// 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.

guillermooo commented 8 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
}