fix(web platform): Do not barf on attribute selectors.

See #1189