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

Html5 validator bug

From: Kristjan <kristjanile@gmail.com>
Date: Sun, 16 Oct 2011 22:46:29 +0300
To: <www-validator@w3.org>
Message-ID: <AC8EB39256474A12A3C08D70E5F33AEE@kristjan>

Im using HTML5 doctype

<img usemap="#classicCamaro" src="../assets/images/html/camaro.jpg"
width="385" height="567" alt="" />
<map name="classicCamaro">
      <area shape="rectangle" coords="289,31,351,55"
href="../assets/images/html/camaro-512.png" alt="512px x 512px png"  />
      <area shape="circle" coords="78,78,47" alt=""
href="http://en.wikipedia.org/wiki/Moon" />
      <area shape="polygon"
34,280" alt=""
on_camaro_cars_for_sale.jpg" />


I get 2 validation errors
1. Bad value rectangle for attribute shape on element area.
2. Bad value polygon for attribute shape on element area

Illogical fixes
1) Changing shape="rectangle" to shape="rect"
2) Changing shape="polygon" to shape="poly"
If I change shape="circle" to shape="circ" it will give me validation error.

I assume long and shorthand versions should all work.

Kristjan Kure
Received on Monday, 17 October 2011 04:33:14 UTC

This archive was generated by hypermail 2.3.1 : Friday, 27 November 2015 11:01:38 UTC