Safari and DOM-Selectors after AJAX-Request

Safari and DOM-Selectors after AJAX-Request


Hello,
I have got some problems with Safari 2.04. And I think this might be a
bug in jQuery (or Safari).
There is a span-Element in my html-Page <span id="myId">Hello World</
span>.
I do an AJAX-Request and Replace the Span-Element with something new.
This is an excerpt of the AJAX Response:
<replaceElement id="myId">
<![CDATA[
<span id="myId">Hello again</span>
]]>
</replaceElement>
I read the AJAX-Response in a self-written AJAX-Plugin and do
something like this:
matchedElementById.replaceWith($(newElementsCData))
The new span-Tag is: <span id="myId">Hello again</span>
Everything works fine.
But now I want to access the new span-Element by ID.
$("myId") does not work.
In jQuery Line 48: var tmp = document.getElementById( m[3] ); --->
null
But $("*[id=myId]") works
and
$($("span").get(10)) works too.
Has anybody noticed this effect before? I'm absolutly clueless.
FF, IE, Opera work fine and Safari 3 for Win, too. I only noticed this
effect with Safari 2.04.
Merry x-mas
Andres