When checking the syntax of a HTML document that includes an image map, 
BBEdit 10.5.1 incorrectly lists errors of the type:
:9: Value of attribute “usemap” for element “<img>” must begin with one of 
{A-Z,a-z} followed by zero or more of {A-Z,a-z,0-9,-,_,:,.}.
:12: Document type does not permit element “<area>” in content of element 
“<map>”.
:12: Value of attribute “coords” for element “<area>” is invalid; Value 
must be one of {“Circle, Polygon, Rectangle”}.

When changing the DOCTYPE from HTML 5 to HTML 4.01 Transitional the errors 
disappear.

<!DOCTYPE html>
<html lang="nl">
<head>
<meta charset="iso-8859-1" />
<title>Untitled</title>
</head>
<body>
<img src="planets.gif" width="145" height="126" alt="Planets"
usemap="#planetmap">

<map name="planetmap">
<area shape="rect" coords="0,0,82,126" href="sun.htm" alt="Sun">
<area shape="circle" coords="90,58,3" href="mercur.htm" alt="Mercury">
<area shape="circle" coords="124,58,8" href="venus.htm" alt="Venus">
</map>

</body>
</html>

-- 
-- 
You received this message because you are subscribed to the 
"BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
<http://groups.google.com/group/bbedit?hl=en>
If you have a feature request or would like to report a problem, 
please email "[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>



Reply via email to