-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
:style with multiline attribute removes root element in all versions of IE #3663
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
Comments
Oh, I tried using the unminified version of Vue and it showed a helpful error:
So the problem seems to be that IE/Edge transforms the Line Feeds into HTML entities, and the other browsers don't. Hope this helps. Reproduction with unminified version: http://danieldiekmeier.de/vue/3.html |
Well, this looks like an IE issue to me 😄 |
@posva I thought this was a recent Vue bug because v1.0.26 handles this just fine: So it should be (and certainly was) possible, and this regression seems to be new. Did Vue 2 make fundamental changes to the way attributes are parsed? Reproduction with uniminfied Vue v1.0.26: http://danieldiekmeier.de/vue/4.html |
Oh, didn't know it worked on the previous version. Vue 2 is rewritten from scratch and uses Virtual dom to parse templates. Maybe Vue 1 actually handled that. |
This is happening for me using Edge, Vue v2.4.2 |
Vue.js version
2.0.0-rc5
Browser
Internet Explorer 10
Microsoft Edge
Reproduction Link
http://danieldiekmeier.de/vue/1.html // This one doesn't show anything
http://danieldiekmeier.de/vue/2.html // This one shows "Hello" in Red, as expected
Steps to reproduce
This is the HTML that does not work:
This is the HTML that does work:
This is the JavaScript:
What is Expected?
No matter if I enter the
:style
attribute in multiple lines or not, it should always work the same. (It also works in both cases if I use Vue v1).In Chrome and Firefox, both versions are working.
What is actually happening?
(Here you can see the
#app
div completely missing in the DOM tree.)When using IE (11, in my case) or Edge, the whole root element (
#app
) gets completely thrown out of the DOM as soon as Vue starts rendering. This happens regardless of emulated document mode (Edge, 10, 9 all behave the same).(I was not able to reproduce this bug in a JSFiddle, even when using exactly this code. But in the examples above, it does happen). Here is the fiddle: https://jsfiddle.net/gzd6o9ob/4/
The text was updated successfully, but these errors were encountered: