Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disallow elements that mention the same attribute twice #129

Closed
lambda-fairy opened this issue May 13, 2018 · 0 comments
Closed

Disallow elements that mention the same attribute twice #129

lambda-fairy opened this issue May 13, 2018 · 0 comments

Comments

@lambda-fairy
Copy link
Owner

Duplicate attributes (e.g. p title="Hello" title="world") are not allowed by HTML5, but Maud still accepts them. It would be nice if Maud emitted an error in this case.

This includes elements which have both a shorthand class/ID attribute and a longhand one (e.g. p.foo class="bar"), as they expand to duplicate attributes as well.

Note that this should be implemented as a hard error in maud_macros, not a lint, since there is no situation where duplicate attributes are useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant