W3C home > Mailing lists > Public > www-validator@w3.org > March 2012

Re: Element style is missing required attribute scoped, but scoped is a boolean attribute

From: David Dorward <david@dorward.me.uk>
Date: Mon, 26 Mar 2012 09:19:05 +0100
Cc: www-validator@w3.org
Message-Id: <92E3AC99-2F3F-4174-80A0-7710C57A0363@dorward.me.uk>
To: Martijn Otto <martijn.otto@copernica.com>

On 26 Mar 2012, at 08:39, Martijn Otto wrote:

> I am having issues validating a html5 document with an inline style tag. The validator complains about a missing scoped attribute.
> 
> When checking the specs, it says that the scoped attribute is a boolean one. This means that including it at all means a true value. To give false for the attribute it has to be omitted entirely.
> 
> Therefor, omitting the attribute has to be valid, otherwise there would be no valid way to specify a non-scoping style tag.


There is: Put the style element in the head. Style elements in the content part of the document must be scoped.

-- 
David Dorward
http://dorward.me.uk
Received on Monday, 26 March 2012 08:19:42 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:59:25 UTC