dint-dev / universal_html

Cross-platform 'dart:html'.
https://pub.dev/packages/universal_html
Apache License 2.0
201 stars 60 forks source link

"Null check operator used on a null value" when passing empty string to querySelectorAll("") #64

Closed Aulig closed 1 year ago

Aulig commented 2 years ago

The null check css.parseSelectorGroup(input)! in querySelectorAll<T extends Element>(String input) in node.dart throws an exception if you pass an empty string as input.

Same issue occurs with querySelector, as that also calls querySelectorAll.

Expected result would be returning an empty list or a clearer exception.

terrier989 commented 1 year ago

Thank you for the issue report! This was fixed in 2.1.0.