I'm getting null
when trying to find <body>
element with querySelector()
on document
object after compiling to javascript. Here's the Dart code:
void main() {
print(document.querySelector('body')); // => null
}
This also produces a range error:
document.getElementsByTagName('body')[0] // => Range error, obviously the List is empty
The dart code works just fine in Dartium though.