Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

fix(jqLite): use getElementsByTagName for dealoc-ing elements, cz of SVG on IE #8136

Merged
merged 3 commits into from
Jul 10, 2014

Conversation

rodyhaddad
Copy link
Contributor

See comments in #8075

rodyhaddad and others added 3 commits July 10, 2014 10:38
The method doesn't exist in jQuery,
and there's shouldn't be any need for it
SVG elements in IE don't have a `.children` but only `.childNodes` so it broke.
We started using `.children` for perf in e35abc9.

This also acts as a perf improvements, since
`getElementsByTagName` is faster than traversing the tree.

Related angular#8075
@mary-poppins
Copy link

Thanks for the PR! Please check the items below to help us merge this faster. See the contributing docs for more information.

  • Uses the issue template (#8136)

If you need to make changes to your pull request, you can update the commit with git commit --amend.
Then, update the pull request with git push -f.

Thanks again for your help!

@jbedard
Copy link
Contributor

jbedard commented Jul 10, 2014

I had a change (not committed) essentially doing the exact same thing including the onlyDescendants flag for html/empty, so I like it! :P I didn't try the .childNodes check though, or the qSA case...

@IgorMinar
Copy link
Contributor

LGTM

@rodyhaddad rodyhaddad merged commit c61626f into angular:master Jul 10, 2014
@rodyhaddad
Copy link
Contributor Author

Landed as 38bdb40...c61626f

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

Successfully merging this pull request may close these issues.

5 participants