W3C home > Mailing lists > Public > whatwg@whatwg.org > July 2005

[whatwg] text/html conformance checkers and CDATA

From: Lachlan Hunt <lachlan.hunt@lachy.id.au>
Date: Tue, 26 Jul 2005 11:38:43 +1000
Message-ID: <42E59423.6020009@lachy.id.au>
Henri Sivonen wrote:
> Should text/html conformance checkers treat the string '</' as the end 
> of <script> and <style> as in SGML or should they look for the entire 
> end tag as in tag soup?

I believe "</" is only valid in script and style elements according to 
SGML rules when it is the end-tag for the elements, and therefore, must 
be of the form </script>, </style> or the SHORTTAG NET form </>. 
However, since SHORTTAG is not supported, only </script> and </style> 
should be allowed.

> I think conformance checkers should not allow '</' in elements whose 
> content model in HTML 4 was CDATA.

Agreed.  That is how HTML 4 validators currently work.

Lachlan Hunt
Received on Monday, 25 July 2005 18:38:43 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:42 UTC