Bug Tracker

Opened 8 years ago

Closed 8 years ago

#10433 closed bug (invalid)

removeProp don't working for title

Reported by: alphamax@… Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.6.4
Keywords: Cc:
Blocked by: Blocking:

Description

hi, the removeProp on a title attribut dont remove attribut but change value to "undefined". exemple :

$("input.name").prop("title", "enter your name"); --> ok, working but $("input.name").removeProp("title"); --> ko, don't remove title attribut and change value to "undefined".

i tested on firefox 7.0.1

Change History (1)

comment:1 Changed 8 years ago by dmethvin

Resolution: invalid
Status: newclosed

As the docs say, "Do not use this method to remove native properties..."

http://www.w3.org/TR/REC-html40/interact/forms.html#h-17.4

Set the property to an empty string.

Note: See TracTickets for help on using tickets.