W3C home > Mailing lists > Public > www-validator@w3.org > February 2011

'px' or'%' given with values for width&heigth attributes gives validation error (html5)

From: Jan Bassez <janbassez@gmail.com>
Date: Sun, 06 Feb 2011 19:32:26 +0100
Message-ID: <4D4EE93A.3010808@gmail.com>
To: www-validator@w3.org
<iframe name="info" src="owstone.html" seamless="seamless" width="100%" 
height="45px" style="overflow: hidden;"></iframe>

this gives an error in the validator for html 5 ->
Bad value 100% for attribute width on element iframe: Expected a digit 
but saw % instead.
Bad value 45px for attribute height on element iframe: Expected a digit 
but saw p instead.

Technically the px can be left away, but the % for sure not.

document is at: http://ows.freeshell.org/video.html

greetings,
Jan

NOTE: Whenever possible, give the address of the document you were 
checking.
Received on Sunday, 6 February 2011 22:16:16 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:45 GMT