You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
im not sure if this is a bug in mootools core or slick, but i think it belongs here
when creating a element that is stored in a js variable and is not in the page dom and i try to search in it (with getElement) for a id that is used there AND in the page dom then the search returns null
ive got the problem with an project im using ajax in. on requesting a page i get html with elements like #navi as result but as there is a #navi on the main page i cant access the navi from the ajax result
crated a element with a bit html in it: 2 p-elements with the ids "test" and "test2"
searching in the element for the first one "test" (the id is not in the page dom): returns the element
seraching in the element for the second one "test2" (the id is already used in the page dom): returns null
im expecting the second element to get returned even if it has the same id that is already used in the dom because the element itself is not in the dom
The text was updated successfully, but these errors were encountered:
Hi deos, Thank you for your report! Sorry for taking so long to respond.
Looks like this happens because before selecting element using querySelectorAll we define the context as the parentNode of the current context, so selectors like + some and ~ some, which will select elements that are not inside the context, will work. What I'm gonna do is, I'll just set the context as the parentNode if the selector is one of those.
im not sure if this is a bug in mootools core or slick, but i think it belongs here
when creating a element that is stored in a js variable and is not in the page dom and i try to search in it (with getElement) for a id that is used there AND in the page dom then the search returns null
ive got the problem with an project im using ajax in. on requesting a page i get html with elements like #navi as result but as there is a #navi on the main page i cant access the navi from the ajax result
example: http://jsfiddle.net/Pqq6t/
im expecting the second element to get returned even if it has the same id that is already used in the dom because the element itself is not in the dom
The text was updated successfully, but these errors were encountered: