Html5 validator bug

Hello!

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"
coords="34,280,70,270,98,248,224,247,255,280,340,295,335,355,195,375,45,350,
34,280" alt=""
href="http://www.instablogsimages.com/images/2006/04/20/classic_baldwin_moti
on_camaro_cars_for_sale.jpg" />

</map>


Errors
==========================
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.

Regards,
Kristjan Kure

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