Bug Tracker

Modify

Ticket #10433 (closed bug: invalid)

Opened 20 months ago

Last modified 20 months ago

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

comment:1 Changed 20 months ago by dmethvin

  • Status changed from new to closed
  • Resolution set to invalid

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.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.