dart:html: document.getElementById('dialog') returns UnknownElement instead of DialogElement #19638
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
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
The text was updated successfully, but these errors were encountered: