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

Console message saying an element has a duplicate attribute #8928

Open
donnyv opened this issue Aug 7, 2023 · 2 comments
Open

Console message saying an element has a duplicate attribute #8928

donnyv opened this issue Aug 7, 2023 · 2 comments
Labels
✨ feature request New feature or request

Comments

@donnyv
Copy link

donnyv commented Aug 7, 2023

What problem does this feature solve?

This will help with unexplained rendering issues. Where you have duplicate attributes in an element.
Example: <span class="fw-bold" :class="{style}"></span>

This error caused a rendering issue but none of the console errors mentioned that there was a duplicate "class" attribute.

What does the proposed API look like?

Add a console message saying either there is a duplicate attribute in a element or that name the attribute and element if possible.

@donnyv donnyv added the ✨ feature request New feature or request label Aug 7, 2023
@donnyv
Copy link
Author

donnyv commented Aug 7, 2023

Looks like this is actually supported in Vue. Apparently the rendering problem was a textarea tag wasn't closed.
Is there anyway to add a message to the console to say a element tag isn't closed?

@edison1105
Copy link
Member

A compilation error will likely be displayed in your terminal if the element is not closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ feature request New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants