Ian Hickson wrote:
>
> On Sun, 15 Apr 2001, Erik Arvidsson wrote:
>
<snip>
> > Should the whitespaces really be this many? To me it seems like the
> > empty whitespaces before and after the document element should not
> > be there because you cannot have any text outside the root element
> > and therefore empty text nodes should be ignored.
>
> You need them to do "white-space: pre" and for the editor (to conserve
> white-space when roundtripping). But yeah, we could maybe hide them.
> Is it worth it?
Hadn't seen this thread till today, but coincidentally, after a recent
thread in the DOM ng ("DOM question" - 09.04.01), I filed a couple of
bug reports:
1. DOM contains text nodes for line breaks that, according to SGML,
should be ignored: http://bugzilla.mozilla.org/show_bug.cgi?id=78061
2. 'white-space:pre' should not render line break immediately
following start tag: http://bugzilla.mozilla.org/show_bug.cgi?id=78059
--
Regards,
Val Sharp - Edinburgh