Compatibility with shadow DOM

Test Plan:

  * Turned on Shadow DOM, saw lint errors.
  * Turned off Shadow DOM, saw lint errors.