Skip to main content

Search and Top Navigation

#9251 closed bug (notabug)

Opened April 24, 2013 01:46PM UTC

Closed April 24, 2013 02:06PM UTC

Last modified April 24, 2013 02:15PM UTC

datepicker fails with same id elements

Reported by: ronak128 Owned by:
Priority: minor Milestone: none
Component: ui.datepicker Version: 1.10.2
Keywords: Cc:
Blocked by: Blocking:
Description

Please click here

I know the HTML is invalid, you don't have to test it, but the browser(any browser incl. oldIe) renders it correctly, even the datepicker-div renders separately for each of the element(that's great), then why it is not setting up the value for that particular element(i.e., the element next to which the datepicker-div is displayed)?? That is wrong.

You might have to change the logic in _attachHandlers function which gets id of instance and pass it on to other methods as argument, but instead of passing the id as an argument, you should have used instance itself.

Please resolve this problem. I'm big fan of jQuery and jQuery UI. This' not a problem of invalid markup.

Possible duplicate of Ticket #9105 but wanted to reopen the issue as genuinely it is an issue.

Attachments (0)
Change History (2)

Changed April 24, 2013 02:06PM UTC by scottgonzalez comment:1

resolution: → notabug
status: newclosed
I know the HTML is invalid

So don't file a ticket...

Changed April 24, 2013 02:15PM UTC by ronak128 comment:2

Then your plugin should throw an error when calling it on invalid markup.