Skip to content

Misplaced is="..." attribute causes false negatives. #2

@mikesamuel

Description

@mikesamuel

https://gerrit-review.googlesource.com/c/111010/2

<gr-autocomplete
     id="newProject"
     class="newProjectInput"
     is="iron-input"
     ... >

causes polymer-resin to create a <gr-autocomplete> proxy element instead of using the default HTMLElement proxy.

We should recognize when is="..." appears on a non-builtin HTML element, and issue a clear violation report that explains the problem, and then reject the value.

Treat an is attribute as misplaced when the element containing the is attribute

  1. has a valid custom element name, OR
  2. is an instance of HTMLUnknownElement
  3. is a legacy element.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions