Opened 14 years ago
Closed 13 years ago
#4070 closed bug (worksforme)
Selection of empty fields in Chrome and Safari
Reported by: | brnwdrng | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 1.3.2 |
Component: | unfiled | Version: | 1.3.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Selection appears to fail in two browsers: see my issue description at the Google Group jQuery(English):
Only fails using 1.3.x
Attachments (1)
Change History (2)
comment:1 Changed 13 years ago by
Resolution: | → worksforme |
---|---|
Status: | new → closed |
Changed 13 years ago by
Attachment: | test-4070.html added |
---|
Note: See
TracTickets for help on using
tickets.
The
:empty
selector only selects elements with no children, not elements with no value attribute.A
[value]
selector will select elements with a value attribute/property. Firefox always definesvalue
oninput
elements whereas Chrome does not. In most cases usinginput[type=text][value='']
will do what you want.I don't think there's a bug here so I'll close the ticket.