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

Charles Peyton Taylor (CTaylor@wposmtp.nps.navy.mil)
Fri, 17 May 1996 11:25:28 -0800


Message-Id: <s19c6245.008@wposmtp.nps.navy.mil>
Date: Fri, 17 May 1996 11:25:28 -0800
From: Charles Peyton Taylor <CTaylor@wposmtp.nps.navy.mil>
To: www-html@w3.org
Subject:  <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/