JRS: In article <3f*************@news.cis.dfn.de>, seen in
news:comp.lang.javascript, Jim Ley <ji*@jibbering.com> posted at Sat, 3
Jan 2004 13:07:02 :-
On Sat, 03 Jan 2004 01:59:25 +0100, Lasse Reichstein Nielsen
<lr*@hotpop.com> wrote:
You can also (safely, I think) assume that a value gotten from the
innerHTML property can be put back in and give the same result.
The same would be true of .chicken or a read only innerHTML that
resulted in no change afterwards. What we want to know is if our
content ended up on the page.
We want to know if the previous visible content (if any) is removed, if
new content appears, and if new content looks as expected; or if an
error message appears.
We, as authors, can never know, since writing for an unknown browser is
a one-way process. Only if we can run the same version of the same
browser and test it ourselves can we really know.
Our code can never know all of the above; it cannot detect a fatal
error, it cannot read the screen, and it cannot detect a systematic
delusion that the required property is spelt InnerHTML.
ISTM that
<div ID=X><FONT color=red>NO GOOD</font></div>
That should read "All seems well", in lime.
<script ... >
DynWrite('X', '<FONT color=lime>All seems well</font>')
should enable the user to tell whether things are at least to some
extent working.
--
© John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 IE 4 ©
<URL:http://jibbering.com/faq/> Jim Ley's FAQ for news:comp.lang.javascript
<URL:http://www.merlyn.demon.co.uk/js-index.htm> jscr maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.