HTML5 validation not recognizing sizes attribute

For technical support for all editions of CSE HTML Validator. Includes bug reports.

HTML5 validation not recognizing sizes attribute

Postby tgm » Thu Mar 15, 2012 12:31 pm

The following page:

Code: Select all
<!DOCTYPE html>
<html lang="en">
...
<head>
...
   <link rel="apple-touch-icon" sizes="72x72" href="images/apple-touch-icon-72x72.png">
   <link rel="apple-touch-icon" sizes="114x114" href="images/apple-touch-icon-114x114.png">

</head>
<body>
...
</body>
</html>


Produces the error, "The "sizes" attribute is not valid for the "link" element."

This doesn't seem correct for HTML5, as documented here:
http://www.w3.org/TR/html5/semantics.ht ... nk-element

Am I missing something?

Thanks!
tgm
Rank 0 - Newcomer
Rank 0 - Newcomer
 
Posts: 2
Joined: Thu Mar 15, 2012 12:19 pm

Re: HTML5 validation not recognizing sizes attribute

Postby Albert Wiersch » Fri Mar 16, 2012 12:11 am

Thanks! I'll get that into the next update. I had not seen that attribute before so I suspect that it is something recently added to the spec.

I will post a new config for v11.01 soon. It will accept this attribute but won't check the value. I'll try to get checking in for the value in v11.02.
Image
Albert Wiersch
User avatar
Albert Wiersch
Site Admin
Site Admin
 
Posts: 2361
Joined: Sat Dec 11, 2004 10:23 am
Location: Near Dallas, TX

Re: HTML5 validation not recognizing sizes attribute

Postby Albert Wiersch » Fri Mar 16, 2012 9:12 am

Here's a new config file that supports the "sizes" attribute (but doesn't check the value):
http://www.htmlvalidator.com/htmlvalV1101cfg.zip

In v11.02, I'll try to get a value check in there.

I hope this helps!
Image
Albert Wiersch
User avatar
Albert Wiersch
Site Admin
Site Admin
 
Posts: 2361
Joined: Sat Dec 11, 2004 10:23 am
Location: Near Dallas, TX

Re: HTML5 validation not recognizing sizes attribute

Postby tgm » Fri Mar 16, 2012 9:15 am

Great, thank you!
tgm
Rank 0 - Newcomer
Rank 0 - Newcomer
 
Posts: 2
Joined: Thu Mar 15, 2012 12:19 pm


Return to CSE Tech Support

Who is online

Users browsing this forum: No registered users and 1 guest