Alexandre Mazouz wrote:
Okay, it seems that getElementsByTagName() has different behavior in FireFox
2.0 and Firefox 3.0.
why? i don't know may be to give us more bug to fix.
The handling of namespaces has changed form FF2 to FF3, here's a code
fragment than handles both IE and FF (it ignores the namespace for FF2/3
and uses the prefix for IE6/7):
/*
Browser-dependent way of returning all <tag> tags from
<elm> element with <prefix> namespace prefix
*/
function getElementsByTagNameNoNS(elm, tag, prefix) {
if ( is_ie6up ) {
return elm.getElementsByTagName(prefix + ":" + tag);
}
return elm.getElementsByTagNameNS("*", tag);
}
Regards,
--------------------
Luca Morandini
www.lucamorandini.it
--------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]