Modify ↓
Ticket #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: | ||
| Blocking: | Blocked by: |
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
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
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.