Bug Tracker

Ticket #10740 (closed bug: fixed)

Opened 3 years ago

Last modified 3 years ago

Wrong/Missing Documentation for fn.removeAttr

Reported by: dcherman Owned by:
Priority: high Milestone:
Component: attributes Version: 1.7
Keywords: Cc:
Blocking: Blocked by:

Description

For jQuery.fn.removeAttr, the docs only show it as accepting a single attribute name.

Per the source, you can pass in a space delimited string and it'll split/remove as needed.

attrNames = ( value || "" ).split( rspace );
l = attrNames.length;

for ( ; i < l; i++ ) {
    name = attrNames[ i ].toLowerCase();
.....

 http://jsfiddle.net/LMbWj/

Change History

comment:1 Changed 3 years ago by rwaldron

  • Status changed from new to open
  • Component changed from unfiled to attributes
  • Priority changed from undecided to high
  • Version set to 1.7
  • Milestone changed from None to 1.next
  • Keywords needsdocs added

comment:2 Changed 3 years ago by dmethvin

  • Status changed from open to closed
  • Resolution set to fixed

I've updated the docs.

comment:3 Changed 3 years ago by addyosmani

  • Keywords needsdocs removed

comment:4 Changed 3 years ago by dmethvin

  • Milestone 1.next deleted
Note: See TracTickets for help on using tickets.