Re: Bug in the HTML Validator

On Mon, Aug 07, 2006 at 12:44:26AM +0100, Jon Ribbens wrote:
> > No. Double quote characters are preferectly acceptable as data in
> > attribute values delimited with single quotes (if delimited with
> > double quotes then they need to be escaped, but that isn't the case
> > here).
> > 
> > Looks like you found a false positive bug in Tidy.
 
> Either that, or one of the cases where "valid" doesn't mean what
> people expect it to - i.e. HTML that conforms to the HTML specification.

No.

  By default, SGML requires that all attribute values be delimited
  using either double quotation marks (ASCII decimal 34) or single
  quotation marks (ASCII decimal 39). Single quote marks can be
  included within the attribute value when the value is delimited by
  double quote marks, and vice versa.
 
http://www.w3.org/TR/html4/intro/sgmltut.html#h-3.2.2

-- 
David Dorward                                      http://dorward.me.uk

Received on Monday, 7 August 2006 08:43:49 UTC