W3C home > Mailing lists > Public > www-validator@w3.org > September 2014

Re: Incorrect checking for HTML5 <IFRAME> WIDTH as percent

From: David Dorward <david@dorward.me.uk>
Date: Fri, 19 Sep 2014 08:48:57 +0100
To: "Harvey Partridge" <harveyp@hotmail.fr>
Cc: "www-validator@w3.org" <www-validator@w3.org>
Message-ID: <84A06DCA-8D16-4A3A-BAEE-8C3B1AD7894D@dorward.me.uk>
On 18 Sep 2014, at 18:52, Harvey Partridge wrote:

>  Bad value 95% for attribute width on element iframe: Expected a digit 
> but saw % instead.
>  …me/N151.12061,6.11309,-3.06282,48.19144/Z8/" width="95%" 
> height="200"></iframe>

> This conflicts with the information on 
> http://www.w3schools.com/html/html_iframe.asp where it says ...

W3Schools (which is not affiliated wight he W3C) is wrong, or describing 
HTML 4, it is unclear.

See [the spec][1]:

> The attributes, if specified, must have values that are valid 
> non-negative integers.


[1]: http://www.w3.org/TR/html5/embedded-content-0.html#attr-dim-width

-- 
David Dorward
http://dorward.co.uk/
Received on Friday, 19 September 2014 07:49:23 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:18:11 UTC