-
Notifications
You must be signed in to change notification settings - Fork 27.4k
fix($compile): call normalize
on nodes for cases when browser creates ...
#7450
Conversation
…es multiple text nodes when parsing HTML
Thanks for the PR! Please check the items below to help us merge this faster. See the contributing docs for more information.
If you need to make changes to your pull request, you can update the commit with Thanks again for your help! |
Could you hold off on merging this for now? It appears in some cases, IE11 does not honor the |
I'm sorry, but I wasn't able to verify your Contributor License Agreement (CLA) signature. CLA signature is required for any code contributions to AngularJS. Please sign our CLA and ensure that the CLA signature email address and the email address in this PR's commits match. If you signed the CLA as a corporation, please let us know the company's name. Thanks a bunch! PS: If you signed the CLA in the past then most likely the email addresses don't match. Please sign the CLA again or update the email address in the commit of this PR. |
CLA signature verified! Thank you! Someone from the team will now triage your PR and it will be processed based on the determined priority (doc updates and fixes with tests are prioritized over other changes). |
I've added a change that now reliably fixes this issue in IE11. Outside of our client's proprietary app, I haven't been able to produce this bug reliably. I'm probably not going to spend much more time on this since we've fixed this locally, and I don't plan on using Angular again. If you have any questions about this, I'm happy to answer them. If someone else has this problem and wants a quick fix, and Angular devs don't merge these fixes, here's what we're using: Good luck! |
02dc2aa
to
fd2d6c0
Compare
cad9560
to
f294244
Compare
abdaab7
to
30996f8
Compare
e8dc429
to
e83fab9
Compare
4dd5a20
to
998c61c
Compare
Looks like this was fixed here #15025 |
Request Type: bug
How to reproduce: Occurs sporadically in the wild, but the included test synthesizes exactly what happens when it does.
Component(s): $compile
Impact: small
Complexity: small
This issue is related to:
Detailed Description:
Other Comments:
...multiple text nodes when parsing HTML
When IE 11 parses HTML, it occasionally splits text into adjacent sibling text nodes. It's difficult to reproduce, but we have some screenshots of it happening: https://dl.dropboxusercontent.com/spa/4slnjubp16y5phq/3f-ld80p.png
While this is illegal according to the DOM spec, it happens anyways and should be dealt with. Angular currently can't deal with this.
Calling normalize when compiling a node addresses this issue. Test included.