Closed Bug 266134 Opened 20 years ago Closed 20 years ago

"id" doesn't work for image map when using xhtml 1.1

Categories

(SeaMonkey :: General, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED DUPLICATE of bug 109445

People

(Reporter: pplwong, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; rv:1.7.3) Gecko/20041001 Firefox/0.10.1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; rv:1.7.3) Gecko/20041001 Firefox/0.10.1

When using client side image map in xhtml1.1, "name" is already deprecated, so I
used "id" instead. And use something like <img usemap"#theID" /> to map the map
and image together.

However, the result is that the "id" attribute doesn't work. So I have to use
"name" for it. I believe it's a violation of xhtml doc.

Reproducible: Always
Steps to Reproduce:
Create a file with soemthing like:

<map id="id1">
 <area {something}/>
</map>
<img src"{something}" usemap"#id1" />
Actual Results:  
The map doesn't work unless we change <map id="id1"> to <map name="id1">

Expected Results:  
It should work with id instead of name
You can't do that unless you serve your page as application/xhtml+xml, as an
XHTML 1.1 page is supposed to be.

Otherwise, it's parsed as text/html, and so has to be written to be compatible
as in http://www.w3.org/TR/xhtml1/#guidelines

*** This bug has been marked as a duplicate of 109445 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
Oh, thanks.
So I need to add a meta tag?
No, adding a meta tag won't affect the behavior here.  Following the XHTML
specification will, though.
Product: Browser → Seamonkey
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.