Skip to main content

Bug Tracker

Side navigation

#14525 closed bug (notabug)

Opened November 08, 2013 10:19AM UTC

Closed November 10, 2013 06:52PM UTC

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:

Attachments (0)
Change History (1)

Changed November 10, 2013 06:52PM UTC by dmethvin comment:1

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.