cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexandre Mazouz <alexandre.maz...@gmail.com>
Subject Re: Firefox 3 and URL
Date Wed, 02 Jul 2008 09:18:43 GMT

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: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
> 
> 
> 

-- 
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: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message