googlearchive / polylint

Lint polymer!
BSD 3-Clause "New" or "Revised" License
116 stars 19 forks source link

Add linting for incorrect `:host[...]` selector #140

Open sorvell opened 8 years ago

sorvell commented 8 years ago

Users have written incorrect :host selectors like this: :host[foo]. This selector matches (currently) in Shady DOM but not Shady DOM. Because people have relied on this behavior, it's hard to change now, but the incorrect selector should be highlighted by the linter.