[thelist] MSIE DOM annoying me again

VOLKAN ÖZÇELİK volkan.ozcelik at gmail.com
Mon Apr 4 14:55:57 CDT 2005


Well tried:

ps[i].getElementsByTagName('textarea')[0].NAME="KillBillGates";
ps[i].getElementsByTagName('textarea')[0].name="KillBillGates";
ps[i].getElementsByTagName('textarea')[0].nAmE="KillBillGates";

just cut your line and plug the above three lines. You'll be amazed :)

It appears that anything but "name" works. The parser simply ignores
the name attribute :)

I love the way internet exploder explodes.
I'll post if something pops out in my mind, but imho the situation
seems sorta hopeless.

good nite!
Volkan.


On Apr 4, 2005 3:53 PM, Chris Heilmann <lists at onlinetools.org> wrote:
> 
> I am playing with the idea of an editor and ran into an odd MSIE problem:
> 
> http://www.icant.co.uk/sandbox/editor/
> 
> When you click the "+" buttons the whole form gets cloned and the IDs and
> names changed:
>                                ps[i].getElementsByTagName('label')[0].htmlFor='c'+i;
> ps[i].getElementsByTagName('textarea')[0].id='c'+i;
> ps[i].getElementsByTagName('textarea')[0].name='c'+i;
> 
> The for and the ID attribute are no problem, but as you can see at the
> control output, MSIE fails to rename the "name" attribute from c to c0:
> 
> <TEXTAREA id=c0 name=c>
> 
> Mozilla plays nicely.
> 
> Any fix?
> 
> Cheers,
> Chris
> 
> --
> Chris Heilmann
> Blog: http://www.wait-till-i.com
> Writing: http://icant.co.uk/
> Binaries: http://www.onlinetools.org/
> 
> --
> 
> * * Please support the community that supports you.  * *
> http://evolt.org/help_support_evolt/
> 
> For unsubscribe and other options, including the Tip Harvester
> and archives of thelist go to: http://lists.evolt.org
> Workers of the Web, evolt !
>


More information about the thelist mailing list