-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
XML toolbox does not parse in IE11 for <hr> #50
Comments
Just a random guess, is IE11 ok with but not ? |
Previous comment got rendered by GitHub. Heh. Let's try that again, this time HTML encoded... Just a random guess, is IE11 ok with <hr/> but not <hr>? |
That was my first guest as well, but it does not work either way. However, I just noticed that using I started looking back the git history up to when the separators were added (5aed33b) and What I find interesting is that in my fork I am loading an XML file with |
Does it want <hr><hr/>? Or maybe it is allergic to an XML tag than looks like HTML? Does switching from <hr> to <ie_is_trash> or <ie_is_trash/> work? |
|
Ok, that's really helpful, thank you. |
Change committed, documentation updated. |
I was just about to suggest a slightly different approach. It's not an elegant fix, but it would maintain the hr tag usable in IE. I can prepare a demo in a little bit of time. |
The feature is only two months old, so I think it's fine to make a breaking change to it. There's probably only one developer using <hr> right now (the one who asked for it originally). |
Nevermind then. In case you are curios, IE was removing the self closing slash from the HTML DOM, and that is way it did not parse as valid XML (carlosperate@e990eb4). That is also why it worked in IE when I was loading the XML data from a file. |
I've notice that the code demo does not work in IE11 in the latest head (1c39a63 at the time of writing).
The problem arises in xml.js file when it is trying to parse the toolbox xml (https://github.com/google/blockly/blob/master/core/xml.js#L199). I'm not quite sure if i'll have the time in the inmediate future to look into it to submit a pull request, so I though I should post it here in case somebody else can do that.
The text was updated successfully, but these errors were encountered: