D
DKM
I recently found out that the below code works in FireFox 1.0.4.
str = "<b>Hello world!!!</b>";
var doc = new DOMParser().parseFromString(str, "text/xml");
document.getElementById("div1").appendChild(doc.documentElement);
I knew how to manipulate document object. Now, I see that there is this
DOMParser object that one can use in the browser in Javascript.
What other objects are accessible in FireFox?
I went to www.w3.org and searched for DOMParser and did not find
parseFromString as one of its method.
Where can I find about DOMParser and objects available in the browser.
Thanks very much in advance.
D.K. Mishra
str = "<b>Hello world!!!</b>";
var doc = new DOMParser().parseFromString(str, "text/xml");
document.getElementById("div1").appendChild(doc.documentElement);
I knew how to manipulate document object. Now, I see that there is this
DOMParser object that one can use in the browser in Javascript.
What other objects are accessible in FireFox?
I went to www.w3.org and searched for DOMParser and did not find
parseFromString as one of its method.
Where can I find about DOMParser and objects available in the browser.
Thanks very much in advance.
D.K. Mishra