Skip to content

IE doesn't allow setAttribute('style') #80

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

Closed
yyx990803 opened this issue Feb 8, 2014 · 6 comments
Closed

IE doesn't allow setAttribute('style') #80

yyx990803 opened this issue Feb 8, 2014 · 6 comments
Labels
Milestone

Comments

@yyx990803
Copy link
Member

Kinda annoying when using {{ }} inside style

@yyx990803 yyx990803 added this to the v0.8.4 milestone Feb 8, 2014
@bpierre
Copy link

bpierre commented Feb 8, 2014

It seems to be fixed since IE8.

@bpierre
Copy link

bpierre commented Feb 8, 2014

@yyx990803
Copy link
Member Author

Ah, it seems to be IE ignoring invalid inline CSS when parsing the HTML

@bpierre
Copy link

bpierre commented Feb 8, 2014

OK, I see. I made some tests, it looks like a v-style attribute will be required…

Tests: http://jsfiddle.net/xEvn7/6/

Results on IE9 and IE10:

getAttribute("style"): null
setAttribute("style"), getAttribute("style"): null
style.getAttribute("cssText"): 
getAttribute("style") on an unknown Element: null
outerHTML: : <p id="test1">test1</p>
attributes: : {id:"test1"}
getAttribute("id"): {{invalid}}

IE11:

getAttribute("style"): 
setAttribute("style"), getAttribute("style"): 
style.getAttribute("cssText"): 
getAttribute("style") on an unknown Element: 
outerHTML: : <p id="test1">test1</p>
attributes: : {id:"test1", style:""}
getAttribute("id"): {{invalid}}

@yyx990803
Copy link
Member Author

exactly... alas, even IE9+ still causing headache.

@yyx990803
Copy link
Member Author

Reintroduced v-style: 120af4b

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

No branches or pull requests

2 participants