Re: Fun with ignorable whitespace definition.

Thank you Peter.

All of my problems [of this thread :-}] were because I have
forgot/misunderstood the rule 1 bellow. Now, it is clear that that my
example just falls under this case and does not conflict with CSS
whitespace issues.

Regards.
  Alex.

Ps. I am not asking questions because I am writing HTML; I am writing YA
html browser. (That is why the thing that would be intuitive when one
writes html - like my example - were not at all intuitive to me when I
tried to implement a generic parser dealing with it.)

 On 15 Dec 1997, Peter Flynn wrote: > 
> The rules on white-space in SGML are tricky, but basically 
> 
>    1. in element content (ie places where only more markup is allowed,
>       never any character data), all white-space must be removed.
> 
>    2. in mixed content (ie places where intermingled markup and
>       character data are allowed), white-space is preserved because it
>       is a part of the character data.
> 
>    3. line-breaks are also character data in mixed content.
> 



> 
> If you currently create HTML, I do recommend that you start to shift
> NOW to creating only valid, parsable HTML, so that if/when you want to
> move into XML, you can translate your files automatically. Otherwise
> you are going to have an appalling manual job to do (you may already
> be facing one if your existing HTML is currently invalid).
> 
> ///Peter
> 

Received on Monday, 15 December 1997 21:27:25 UTC