I want to redefine the "standard" getElementsByTagName with your
getElementsByTagNameNoNS.

Do you know where can i make it?


Luca Morandini-2 wrote:
> 
> 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]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Firefox-3-and-URL-tp18212745p18233410.html
Sent from the Cocoon - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to