Opened 11 years ago
Closed 11 years ago
#10433 closed bug (invalid)
removeProp don't working for title
Reported by: | 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
Note: See
TracTickets for help on using
tickets.
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.