Closed Bug 36803 Opened 24 years ago Closed 24 years ago

Weird behavior of MAP tags in html file

Categories

(Core :: DOM: HTML Parser, defect, P3)

x86
Windows NT
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: joki, Assigned: harishd)

References

()

Details

Attachments

(3 files)

So in one of my imagemap test cases I found this weird case.  In the test case, 
once the MAP element has been defined no other page elements show up.  However, 
if all visible content is placed first and then the maps are defined it works 
ok.  Weird.  Attaching both working and non-working page versions.  In the 
working version two mozilla banners show up.  In the non-working version only 
one does.
Sounds like a layout problem. Checkout the content model: ( Both MAPS are 
present )

docshell=00CE8380
html@00F0BE08 refcount=3<
  head@00F08278 refcount=2<
    title@01EEF2C8 refcount=2<
      Text@01EEF100 refcount=2<Imagemaps - NOHREF attribute of AREA element not
implemented>
    >
    Text@01EECFB0 refcount=2<\n\n>
    Comment@01EECF40 refcount=2<!-- testcase: area_noref_2.html -->
    Text@01EECED0 refcount=2<\n>
    Comment@01EECDD0 refcount=2<!-- Author: Nicholas Cull, Date 28/8/99 -->
    Text@01EECD60 refcount=2<\n>
    Comment@01EECC40 refcount=2<!-- Purpose: To test the alternative content mod
el of the MAP element,\r\n     particularly as it relates to areas where no acti
on should be taken -->
  >
  Text@01EECBD0 refcount=3<\n>
  body@01EECAA8 refcount=3<
    Text@01F13610 refcount=3<\n>
    Comment@01F169B0 refcount=2<!-- Test cases involving the alternative content
 model for client-side image maps -->
    Text@01F15990 refcount=3<\n>
    Comment@01F120D0 refcount=2<!-- First test case -->
    Text@01F13320 refcount=3<\n>
    p@01F149A8 refcount=3<
      Text@01F105F0 refcount=4<This imagemap does not reference a URL for the Mo
zilla "head". For the rest of the\nimage, "page2" should be referenced.>
    >
    Text@01F164C0 refcount=3<\n>
    a@01F12BBC href=links4.map refcount=4<
      Text@01F11FB0 refcount=3<\n>
      img@01F11F4C src=http://www.mozilla.org/images/mozilla-banner.gif width=60
0 height=58 ismap= usemap=#map1 border=0 refcount=3<>
      Text@01F17BB0 refcount=3<\n>
    >
    Text@01F171C0 refcount=3<\n     >
    map@01F108F8 name=map1 refcount=3<
      p@01F10268 refcount=2<
        Text@01F10190 refcount=2<Navigate the site:\n       >
        a@01F177BC shape=rect coords=0,0,110,57 refcount=2<
          Text@01F15DB0 refcount=2<This should be inactive>
        >
        Text@01F1B620 refcount=2<.\n       >
        a@01F1E8CC shape=rect coords=0,0,599,57 href=page2.html refcount=2<
          Text@01F1F0B0 refcount=2<Next page>
        >
        Text@01F1A050 refcount=2<.\n     \n\n>
        Comment@01F1E740 refcount=2<!-- Second test case -->
        Text@01F1CCF0 refcount=2<\n>
      >
      p@01F19808 refcount=2<
        Text@01F1B0B0 refcount=2<This imagemap references a URL for the Mozilla
"head". The rest of the image\nshould have no action associated with it. The ser
ver side image map should not be invoked.>
      >
      a@01F1E3FC href=links4.map refcount=2<
        Text@01F1A570 refcount=2<\n>
        img@01F1A50C src=http://www.mozilla.org/images/mozilla-banner.gif width=
600 height=58 ismap= usemap=#map2 border=0 refcount=2<>
        Text@01F1D860 refcount=2<\n>
      >
    >
    map@01F186B8 name=map2 refcount=3<
      p@01F1BA88 refcount=2<
        Text@01F1BA10 refcount=2<Navigate the site:\n       >
        a@01F18FBC shape=rect coords=0,0,110,57 href=page2.html refcount=2<
          Text@01F21C60 refcount=2<Next page>
        >
        Text@01F21480 refcount=2<. \n       >
        a@01F2320C shape=rect coords=0,0,599,57 refcount=2<
          Text@01F26FB0 refcount=2<This should be inactive>
        >
        Text@01F26DD0 refcount=2<.\n     \n\n\n>
      >
    >
  >
>
I don't think this is beta blocker..moving to M17.
Status: NEW → ASSIGNED
Target Milestone: --- → M17
Attached file Further reduced
This bug is very similar to 13354.
Fixed by rickg's last update.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
updated qa contact.
QA Contact: janc → bsharma
Verified on 2001-07-19-branch on WinNT

The attached test cases load as expected.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: