Thanks! I should have tested that... silly IE8!! Why would they do something
like that? sight...

2009/5/27 Fábio Costa <[email protected]>

> Unfortunately this a IE8 problem.
> The javascript way of creating DOM elements and getting tagName:
>
> document.createElement('image').tagName
>
> returns 'IMG'.
>
> :(
>
>
> Fábio Miranda Costa
> Engenheiro de Computação
> http://meiocodigo.com
>
>
>
> On Wed, May 27, 2009 at 3:57 PM, Eneko Alonso <[email protected]>wrote:
>
>> I'm having trouble parsing some XML on IE8 (I convert it to DOM elements
>> so I can use x.getElement('nodetag'), etc)
>> the issue is when the xml has a tag called image. For some reason, when
>> creating a new Element image on IE8, it gets converted to IMG:
>>
>> On IE8's js console:
>> var a = new Element('image'); a.tagName;
>>
>> we get the output:
>> >>var a = new Element('image'); a.tagName;
>> "IMG"
>>
>> Could this be a Mootools issue on the Element class or is this a weird
>> behaviour if IE when creating new image elements?
>>
>> Any ideas of how to work around this?
>>
>>
>> Thanks
>>
>
>

Reply via email to