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

dart:html: document.getElementById('dialog') returns UnknownElement instead of DialogElement #19638

Open
DartBot opened this issue Jun 24, 2014 · 2 comments
Labels
area-core-library SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries. area-web Use area-web for Dart web related issues, including the DDC and dart2js compilers and JS interop. library-html P2 A bug or feature request we're likely to work on type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) web-libraries Issues impacting dart:html, etc., libraries

Comments

@DartBot
Copy link

DartBot commented Jun 24, 2014

This issue was originally filed by alexe.kaigorodov@gmail.com


following code:

const String htmlEL = r'''
<dialog id="d1">
  <p>foobar</p>
  <button>OK</button>
</dialog>
''';

void main() {
  document.body.appendHtml(htmlEL);
  var d1 = document.getElementById('d1');
  print("d1 is ${d1.runtimeType}");
}

prints

d1 is UnknownElement

@sgjesse
Copy link
Contributor

sgjesse commented Jun 25, 2014

Added Library-Html, Triaged labels.

@alan-knight
Copy link
Contributor

In 1.8 it returns HtmlElement rather than UnknownElement but it still seems incorrect.


Removed Priority-Unassigned label.
Added Priority-Medium, Accepted labels.

@kevmoo kevmoo added the area-core-library SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries. label Jun 16, 2015
@kevmoo kevmoo added P2 A bug or feature request we're likely to work on type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) and removed accepted labels Feb 29, 2016
@vsmenon vsmenon added the area-web Use area-web for Dart web related issues, including the DDC and dart2js compilers and JS interop. label Jul 20, 2019
@sigmundch sigmundch added the web-libraries Issues impacting dart:html, etc., libraries label Oct 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-core-library SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries. area-web Use area-web for Dart web related issues, including the DDC and dart2js compilers and JS interop. library-html P2 A bug or feature request we're likely to work on type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) web-libraries Issues impacting dart:html, etc., libraries
Projects
None yet
Development

No branches or pull requests

6 participants