Closed Aulig closed 3 years ago
It looks like the issue was introduced in the upgrade from 1.2.4 to 2.0.0. Before that, html and universal_html behave the same in this example.
Thanks for the issue report! It has been fixed in v2.0.5.
Looks good, thanks for your effort!
Hi, I migrated to null-safety yesterday and in the process upgraded universal_html. I'm now encountering an issue when using querySelectors on elements (not the document). It seems like the querySelector is executed on almost the entire document instead of just the element and its children.
The regular html package produces the expected result.
Output:
Am I doing something wrong or is this an intended change? I'd rather not have to use the workaround as it seems like a performance issue. The other alternative would be changing my code to chain the selectors like "nav a" where html and universal_html provide the same result. (Not a 1:1 replacement though as there can be multiple nav elements)