universal_html icon indicating copy to clipboard operation
universal_html copied to clipboard

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

Open Aulig opened this issue 3 years ago • 0 comments

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.

Aulig avatar Feb 21 '22 15:02 Aulig