#5479 closed enhancement (fixed)
removeAttr: remove multiple attributes
Reported by: | scottgonzalez | Owned by: | Rick Waldron |
---|---|---|---|
Priority: | low | Milestone: | 1.7 |
Component: | attributes | Version: | 1.5.2 |
Keywords: | 1.7-discuss | Cc: | |
Blocked by: | Blocking: |
Description
It would be nice if removeAttr() accepted multiple attributes. This could work exactly like removeClass() does.
Change History (29)
comment:1 Changed 13 years ago by
Component: | unfiled → attributes |
---|
comment:2 Changed 12 years ago by
Keywords: | needsreview added |
---|---|
Milestone: | → 1.5 |
Owner: | set to Rick Waldron |
Priority: | major → low |
Status: | new → assigned |
comment:3 Changed 12 years ago by
Keywords: | needsreview removed |
---|
comment:5 Changed 12 years ago by
Version: | 1.3.2 → 1.4.4 |
---|
comment:9 Changed 12 years ago by
Milestone: | → 1.7 |
---|---|
Version: | 1.4.4 → 1.5.2 |
My guess is this will probably land with the enhancement on removeData in 1.7: #7323
comment:12 Changed 12 years ago by
Keywords: | 1.7-discuss added |
---|
Nominating ticket for 1.7 discussion.
comment:16 Changed 12 years ago by
+1, Yes, but possibly with an access-like function to dry up similar functions.
comment:23 follow-up: 24 Changed 12 years ago by
+1, I like it, but should we do .removeAttr("foo bar") or .removeAttr("foo", "bar")?
comment:24 Changed 12 years ago by
Replying to cowboy:
+1, I like it, but should we do .removeAttr("foo bar") or .removeAttr("foo", "bar")?
"foo bar", consistent with everything
comment:25 Changed 12 years ago by
Milestone: | 1.next → 1.7 |
---|
comment:26 Changed 12 years ago by
comment:27 Changed 12 years ago by
At this point, whatever, the first is out of date, but that can be fixed. The second is up-to-date, but has no tests and hasn't responded or updated with the tests I provided: ( https://github.com/rwldrn/jquery/commit/bece3a7ab2ae26947634ad57fb08390d55d209fc )
comment:28 Changed 12 years ago by
Since no one has responded to my last comment about combining the efforts, I've gone ahead and done so myself.
comment:29 Changed 12 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Landing pull request 492. 1.7 Remove multiple attributes (Symmetry with removeClass) Combines patches submitted by leeoniya, zertosh and my own tests. Fixes #5479.
More Details:
Good suggestion