|
Posted by Neredbojias on 08/03/05 15:05
With neither quill nor qualm, Toby Inkster quothed:
> Neredbojias wrote:
> > Andy Dingley quothed:
> >
> >> And document.write() is itself the wrong way to modify the DOM
> >
> > Depends on how you define DOM. There's nothing any more wrong with
> > using javascript to modify a page
>
> No, there is nothing wrong with using Javascript to modify a page.
> However, there is something very wrong with using document.write to modify
> an XHTML page.
>
> http://ln.hixie.ch/?start=1091626816&count=1
I dunno, TI. The author states that document.write doesn't work in xml
then proceeds to provide an example of invalid markup as proof.
Furthermore, the conclusion:
"So in order to remain compliant with XML, document.write() doesn't work
on documents that are parsed with an XML parser."
....is a double-talk way of *trying* to state that document.write isn't
complaint with the xml standard/official guidelines, which it fails to
do.
I think this whole thing is just an example of an invalid argument.
--
Neredbojias
Contrary to popular belief, it is believable.
Navigation:
[Reply to this message]
|