Author: Leif Halvard Silli. Demo related to bug 7076

1. Image map test

1.1. Testing the two HTML4 options — a@coords and area@coords

The a element.
<a coords=* href=* >link text</a>
Whatwg.org (in the center), HTML5 (in the border)
The area element.
<area coords=* href=* alt="alt text">
Whatwg.org (in the center), HTML5 (in the border)

1.2. Testing the workarounds for a@coords that HTML5 currently allows.

Variant 1: An area element side by side an a element – already permitted in HTML4!
<area coords=* href=* ><a href=* >link text</a>
Whatwg.org Whatwg.org (in the center), HTML5 HTML5 (in the border)
Variant 2: An area element inside an a element. Incompatible with Mozilla browsers
<a href=* ><area coords=* href=* >link text</a>
Whatwg.orgWhatwg.org (in the center), HTML5HTML5 (in the border)

1.3. Testing Mozilla compatible nesting solutions (That is: Variants of <a href=*><area></a>).

Variant 1: A dummy (aka "boolean") coords attribute inside at least one of the each a element causes also those without this attribute to work.
<a coords=* shape=* href=* ><area coords=* href=*>link text</a>
Whatwg.orgWhatwg.org (in the center), HTML5HTML5 (in the border)
Variant 2: A dummy (aka "boolean") area element inside the map element causes magics.
<map name=* ><area><a href=* ><area coords=* href=*>link text</a>
Alt C.Whatwg.org (in the center), HTML5HTML5 (in the border)

1.4 Title attribute and nesting

Variant 1: title attribute on both a and area element.
Alt C.Whatwg.org
Variant 2: title attribute only on a element.
Alt C.Whatwg.org
Variant 3: title attribute on area element.
Alt C.Whatwg.org
Variant 4: no title attribute – does browsers use the alt attribute of the area element instead?
Alt C.Whatwg.org