Skip to content
This repository has been archived by the owner on Jun 20, 2019. It is now read-only.

No warning shown for duplicate attributes such as 'class' #648

Open
ghost opened this issue Oct 2, 2018 · 1 comment
Open

No warning shown for duplicate attributes such as 'class' #648

ghost opened this issue Oct 2, 2018 · 1 comment

Comments

@ghost
Copy link

ghost commented Oct 2, 2018

This component template doesn't show any warning while editing:

<material-button class="use-session-btn" class="blue">Use</material-button>

During compile time we see this error:
ParseErrorLevel.FATAL: Found multiple attributes with the same name: class.

@MichaelRFairhurst
Copy link
Contributor

Thanks for filing!

You're right. Our old parser would reject this before we even started to analyze, so we never implemented this. On the new parser, it'd be a really good & easy thing to catch!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

1 participant