Re: Changing nodeName/tagName

"J. Lester Novros II" <[email protected]>
Newsgroups gmane.comp.web.dom.wdf
Message-ID <[email protected]>
Chris Rule wrote:
> Is it possible to change one nodeName to another with the DOM ?
> e.g. Changing an <input type='text'> to a <textarea>.

Following Joris' lead, you could use 'replaceChild':

<http://developer.mozilla.org/en/docs/DOM:element.replaceChild>
<http://msdn.microsoft.com/workshop/author/dhtml/reference/methods/replacechild.asp>

l8R lES
-- 
If consumers even know there's [such a thing as] D[igital R[ights] M[anagement],
what it is, and how it works, we've already failed.
                                    Peter Lee, Disney executive, in The Economist
                                                           http://www.denhaag.org




------------------------ Yahoo! Groups Sponsor --------------------~--> 
AIDS in India: A "lurking bomb." Click and help stop AIDS now.
http://us.click.yahoo.com/VpTY2A/lzNLAA/yQLSAA/9rHolB/TM
--------------------------------------------------------------------~-> 

Unsubscribe
[email protected]

List info
http://www.quirksmode.org/dom/list.html 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/wdf-dom/

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.