Edgewall Software
Modify

Opened 16 years ago

Closed 16 years ago

#7365 closed defect (invalid)

Safari and <map> under the {{{#!html }}}

Reported by: aleksandrat@… Owned by: Christian Boos
Priority: normal Milestone:
Component: wiki system Version: 0.10.4
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

I am using Safari 3.1.1 (4525.18) on Mac OS X 1.4 and when I view the page with map does not want to make the links clickable

{{{
#!html
<center>
  <img src="../attachment/wiki/MyImage/MyImage.png?format=raw" title="MyImage" usemap="MyImage">
    <map name="MyImage" id="MyImage">
        <area shape=rect coords="197,634,286,649" href="link1">
        <area shape=rect coords="536,453,606,499" href="link2">
        <area shape=rect coords="508,494,606,525" href="link3">
    </map>
  </img>
</center>
}}}


Different web browsers present it properly.

Attachments (0)

Change History (3)

comment:1 by Emmanuel Blot, 16 years ago

Component: attachmentwiki system
Priority: highnormal
Severity: majornormal

At least, <center> is not a valid XHMTL strict tag. I don't think it's the root cause of the issue here, but it's invalid nonetheless.

in reply to:  1 comment:2 by Emmanuel Blot, 16 years ago

Replying to eblot:

At least, <center> is not a valid XHMTL strict tag. I don't think it's the root cause of the issue here, but it's invalid nonetheless.

… as well as shape value that should be quoted: <img shape="rect" ... />

comment:3 by Emmanuel Blot, 16 years ago

Resolution: invalid
Status: newclosed

Trac is producing XHTML strict web page. So you need to write XHTML-compliant code. It is not, which explain the Safari "bug".

The following XHTML snippet should work:

  <map name="MyImage" id="MyImage">
    <area shape="rect" coords="197,634,286,649" href="link1">
    <area shape="rect" coords="536,453,606,499" href="link2">
    <area shape="rect" coords="508,494,606,525" href="link3">
  </map>
  <img src="../attachment/wiki/MyImage/MyImage.png?format=raw" 
              title="MyImage" usemap="#MyImage" style="align: center" />

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Christian Boos.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Christian Boos to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.