...

innerHTML substitute?

Leithakor
12-15-2002, 01:28 AM
Is there by chance an innerHTML DOM substitute? Did a bunch of looking through the w3c site, and couldn't find any. But I may just be missing it somewhere.


James

jkd
12-15-2002, 02:11 AM
Not until DOM3 Load and Save do you actually find the ability to progmatically call the XML parser and serializer on strings and dom nodes.

No browser implements DOM3 Load and Save either (unless you count the document.load() method).

brothercake
12-15-2002, 04:40 AM
Unless your thinking of things like createElement, setAttribute and appendChild ?

Leithakor
12-17-2002, 08:51 PM
No, was wondering if there was something akin to createTextNode (believe that's the method). For HTML since createTextNode only inputs text ( including any HTML coding you may have in it..)

If not that's fine innerHTML it is. It might as well be standard hehe :D


Leithakor

BrainJar
12-18-2002, 03:03 PM
SourceForge has a neat little utility script called XML for <SCRIPT> at http://xmljs.sourceforge.net/

Using that, you could write a function to parse an XHTML string and create HTML elements via document.createElement(), document.createTextNode(), etc. If you were feeling industrious.

Leithakor
12-19-2002, 05:15 PM
Hmm interesting. Cool link. Thanks I may do that.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum