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

Incorrect checking for HTML5 <IFRAME> WIDTH as percent

From: Harvey Partridge <harveyp@hotmail.fr>
Date: Thu, 18 Sep 2014 19:52:26 +0200
Message-ID: <DUB125-W14A61639F403D78006E6CADBB70@phx.gbl>
To: "www-validator@w3.org" <www-validator@w3.org>
I am trying with minimal success to add an iframe map to my new HTML5 webpage http://www.pearblossomhouse.com/pearblossom/documents/drainlake.html

Whilst trying to establish why my iframes do not display I got this checking error ...

Validation Output:
        
        1 Error
        
        


    
    
    
    Line 66,
        Column 111:
    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 ...


Iframe - Set Height and Width
Use the height and width attributes to specify the 
size.

The attribute values are specified in pixels by default, but they can also be 
in percent (like "80%").


My knowledge may be incomplete as in - it is NOT permitted to do % from HTML5 - but it would be nice to know either way which is correct.


Meantime, I'm off to try to do it CSS ...



Thanks for your attention.


Harvey Partridge


 		 	   		  
Received on Friday, 19 September 2014 07:09:42 UTC

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