Skip to content

Warn if we are overriding is= attribute #7

@lourot

Description

@lourot

When doing

<ImageDisplayControl>
  <img src=... />
</ImageDisplayControl>

an is="image-display-control" attribute will be added to the <img> tag in order to turn it into an Image Display Control web component. This is problematic however if the <img> tag already had another is= attribute, e.g.

<ImageDisplayControl>
  <img is="already-another-component" src=... />
</ImageDisplayControl>

An <img> tag can't be two web components at the same time. We should at least issue a warning if this happens.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions