<style> and <!-- comments -->

At the style sheet draft spec at:

http://www.w3.org/pub/WWW/TR/WD-css1

I read this :

----------------------------------

Traditionally, UAs have silently ignored unknown 
tags. As as result, old UAs will ignore the
'STYLE' element, but its content will be treated 
as part of the document body, and rendered as
such. During a transition phase, 'STYLE' element 
content may be hidden using SGML comments: 

  <STYLE>
    <!--
      H1 { color: green }
    -->
  </STYLE>

Note that conformant SGML parsers normally will 
remove comments. 

----------------------------------

So, how does the SGML parser parse the document
and yet still parse the Style sheet stuff?

Or is the style sheet stuff parsed only by a
special style sheet parser?


Charles


C  h a r l e s    P e y t o n   T a y l o r        
ctaylor@nps.navy.mil

The opinions and views expressed       ##  even though we're on
our own,

are my own and do not reflect          ##        we are never all
alone,

Those of the Naval PostGraduate School ##  when we are singing,
singing.

                   http://vislab-www.nps.navy.mil/%7ectaylor/

Received on Friday, 17 May 1996 14:21:04 UTC