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

Duplicate attribute: class in edge and IE #3929

Closed
tdekoning opened this issue Oct 13, 2016 · 6 comments
Closed

Duplicate attribute: class in edge and IE #3929

tdekoning opened this issue Oct 13, 2016 · 6 comments

Comments

@tdekoning
Copy link

tdekoning commented Oct 13, 2016

Vue.js version

2.0.2

Reproduction Link

http://codepen.io/anon/pen/WGyrdz

Steps to reproduce

Just load up the page in edge or internet explorer (11) with your console open. Vue will display the warning "duplicate attribute: class".
When removing the class attribute, the warning goes away.

What is Expected?

No warnings :). I expect vue to use both the regular class attribute and the :class attribute and merge them together into the class attribute.

@yyx990803
Copy link
Member

Actually it's IE that messed up outerHTML by duplicating the attribute :(
I've just disabled this warning for IE.

@tdekoning
Copy link
Author

Thanks!

@jdalton
Copy link

jdalton commented Nov 8, 2016

I'm not able to repro this.

In the simplified test case class and :class show up in the attributes list of
IE11, Edge 14, & Chrome 54.

@Kcharle
Copy link

Kcharle commented Mar 30, 2017

As @jdalton said, this is still an issue in Edge 14.

@posva
Copy link
Member

posva commented Mar 31, 2017

@Kcharle Could you open a new issue with a repro, please? I'm not sure to understand. Does this mean we can remove the check?

@Yangfan2016
Copy link

I‘m meeting this too

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

No branches or pull requests

6 participants