Bug Tracker

Opened 9 years ago

Closed 9 years ago

#14525 closed bug (notabug)

removeAttr() causes to send an unexpected request on Firefox

Reported by: nkzawa Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.10.2
Keywords: Cc:
Blocked by: Blocking:


When a page has a base tag, $('img').removeAttr('src') sends an unexpected request to the base URI on Firefox, that is because removeAttr() sets empty strings before removing src attributes.


See also: https://bugzilla.mozilla.org/show_bug.cgi?id=444931

Change History (1)

comment:1 Changed 9 years ago by dmethvin

Resolution: notabug
Status: newclosed

Why are you trying to remove the src attribute? It's mirrored in the src property which is why the assignment to "" is required in some browsers. Don't try to remove DOM0 attroperties.

Note: See TracTickets for help on using tickets.