Bug Tracker

Opened 6 years ago

Closed 5 years ago

#6708 closed bug (fixed)

Opera has inconsistent result for usemap attribute value

Reported by: kemayo Owned by: timmywil
Priority: low Milestone: 1.6
Component: attributes Version: 1.5.2
Keywords: Cc:
Blocked by: Blocking:

Description

With the html: <img id="foo" src="foo.gif" usemap="#bar"/>

This happens:

$('#foo').attr('usemap') == "http://abc.com/abc.html#bar";
$('#foo').get(0).getAttribute('usemap') == '#bar';

All other browsers I've tested return just '#bar' as the attr for usemap.

Change History (6)

comment:1 Changed 6 years ago by dmethvin

Looks like this is fixed if useMap is added to the special regexp:

	rspecialurl = /href|src|style|useMap/,

comment:2 Changed 6 years ago by miketaylr

  • Milestone changed from 1.4.3 to 1.4.5
  • Owner set to miketaylr
  • Priority set to low
  • Status changed from new to assigned
  • Version changed from 1.4.2 to 1.4.3

comment:3 Changed 6 years ago by miketaylr

Fiddle showing confirmed behavior: http://jsfiddle.net/uguTR/

comment:4 Changed 6 years ago by dmethvin

  • Milestone changed from 1.4.5 to 1.5

comment:5 Changed 5 years ago by timmywil

  • Milestone set to 1.6
  • Owner changed from miketaylr to timmywil
  • Version changed from 1.4.3 to 1.5.2

Also fixed in attrhooks for jQuery 1.6: http://jsfiddle.net/uguTR/2/

comment:6 Changed 5 years ago by timmywil

  • Resolution set to fixed
  • Status changed from assigned to closed
Note: See TracTickets for help on using tickets.