Open
Description
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/
- 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