Feedback on: irt.org FAQ Knowledge Base Q1370
Worth:
Worth reading
Comments:
Would be far better if you included example of actually setting outerHTML.
With ie5.5 in windows 98 se,
document.all['myid'].outerHTML ="<p>hello</p>" yields js error -
"Unknown runtime error"
This error seems limited to use of outerHTML; innerHTML as well as outerText, innerText etc function without incident.
Best,
Hugh McDonald
Castaic, CA USA
Worth:
Length:
Technical:
Not technical enough
Comments:
We want live demo,atleast its explanation. :)
Worth:
Length:
Too short
Technical:
Not technical enough
Comments:
Your example clearly illustrates the difference between innerHTML and outerHTML - and indeed, the difference between these and inner/outerText.
However, from the example given, it would seem that innerText and outerText return the same thing. A better example would show a case where their return values differ.
Worth:
Worth reading
Length:
Just right
Technical:
Comments:
Thanks! I've been trying to work out how this innertext works. This sure helped me.