Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
guillermooo opened this issue Aug 10, 2015 · 1 comment
Open

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

guillermooo opened this issue Aug 10, 2015 · 1 comment

Comments

@guillermooo
Copy link
Owner

// 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
Copy link
Owner Author

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
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant