Re: Validator parses HTML in CSS block comment?

On Mon, 15 Aug 2011, Russell Morrisey wrote:

> Do elements within a <style> tag, inside a /* block comment */,
> need to be HTML entity-escaped?
  ...
> The following HTML snippet reproduces the issue:
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"

You don't use HTML, you use XHTML.
But you do not understand the difference.
 http://www.w3.org/TR/xhtml1/#h-4.8

Stick to HTML 4 as long as you don't understand XHTML.

Received on Tuesday, 16 August 2011 18:11:15 UTC