Closed Bug 207241 Opened 21 years ago Closed 21 years ago

Client-side maps in XHTML 1.1: id attribute should be used instead of name

Categories

(SeaMonkey :: General, defect)

PowerPC
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: dellamea, Unassigned)

References

Details

User-Agent:       Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.3.1) Gecko/20030425
Build Identifier: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.3.1) Gecko/20030425

Until XHTML 1.0, client side maps were individuated by means of the name
attribute. With 1.1, name is no more allowed (strictly), and you must use id.
However, id is not considered by Mozilla, thus maps do not behave correctly (not
at all, in fact). Tested only on Macosx, I suppose this could be true on Gecko.

Reproducible: Always

Steps to Reproduce:
Try something like this: 
   <img src="globo.jpg" width="677" height="578" alt="" usemap="map_name_or_id" />
   <map id="map_name_or_id">
   <area shape="rect" alt="" coords="0,0,100,100" href="link.html" />
   </map>

Actual Results:  
This validates as XHTML 1.1, but it does not give a real map. 

Expected Results:  
Show the image as a map. 

If you change id with name, it's all ok; however, it is not valid XHTML 1.1
Are you serving the page as application/xhtml+xml as required for 1.1?
I apologize; I was not serving the page as application/xhtml+xml as required for
1.1 . Thanks to Bill Mason.
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → INVALID
Product: Browser → Seamonkey
*** Bug 320981 has been marked as a duplicate of this bug. ***
You need to log in before you can comment on or make changes to this bug.