Skip to main content

Bug Tracker

Side navigation

#11387 closed bug (invalid)

Opened February 24, 2012 08:27AM UTC

Closed February 24, 2012 09:00AM UTC

JQuery creates "placeholder" attribute on every input element

Reported by: Owned by:
Priority: low Milestone: None
Component: attributes Version: 1.7.1
Keywords: Cc:
Blocked by: Blocking:

Somehow JQuery silently creates an empty "placeholder" attribute on every input element. Try it out on the JQuery homepage with


or native


Both will give "" as a result, while really they should be undefined (compare with a page with an input and no JQuery).

This needs to be fixed because in the current situation, it is impossible to detect whether an *empty* placeholder attribute is present or *no* placeholder attribute is present. This can hinder development of plugins that show custom placeholders.

Attachments (0)
Change History (1)

Changed February 24, 2012 09:00AM UTC by sindresorhus comment:1

component: unfiledattributes
priority: undecidedlow
resolution: → invalid
status: newclosed

jQuery does return undefined. You can't use the frontpage as a test, since it's using an older jQ version.