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: |
Description
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
Note: See
TracTickets for help on using
tickets.
Why are you trying to remove the
src
attribute? It's mirrored in thesrc
property which is why the assignment to""
is required in some browsers. Don't try to remove DOM0 attroperties.