Skip to main content

Bug Tracker

Side navigation

#10433 closed bug (invalid)

Opened October 06, 2011 09:39AM UTC

Closed October 06, 2011 01:23PM UTC

removeProp don't working for title

Reported by: alphamax@free.fr 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

Attachments (0)
Change History (1)

Changed October 06, 2011 01:23PM UTC by dmethvin comment:1

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.