dart-lang / html

Dart port of html5lib. For parsing HTML/HTML5 with Dart. Works in the client and on the server.
https://pub.dev/packages/html
Other
276 stars 58 forks source link

:hover throws in SelectorEvaluator.visitPseudoClassSelector #223

Open TheCarpetMerchant opened 1 year ago

TheCarpetMerchant commented 1 year ago

When parsing an element with the hover attribute (such as a a:link:hover for example), SelectorEvaluator.visitPseudoClassSelector throws. I'm not sure if this is because hover is not an official selector as per MDN documentation, but this is still annoying as it is a regular occurrence.

Being given the choice to simply return false would be nice.