#2662 closed bug (worksforme)
attr "action" of form and Selectors' attribute filter
Reported by: | vytautas | Owned by: | flesler |
---|---|---|---|
Priority: | low | Milestone: | |
Component: | selector | Version: | 1.2.3 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
html:
<form action="account/edit">....</form>
javascript:
$('form[action="account/edit"]').size(); $('form[action="account/edit"]').attr('action'); $('form[action="http://example.org/account/edit"]').size(); $('form[action="http://example.org/account/edit"]').attr('action');
results:
firefox-1.5.0.1, firefox-2.0.0.13, firefox-3b5: 0, "undefined", 1, "account/edit" mozilla-1.7.7, opera-9.50b, ie-6, ie-7, safari-3.1.525.13: 1, "account/edit", 0, "undefined" opera-8.0, opera-9.00, opera-9.26: 0, "undefined", 1, "http://example.org/account/edit"
conclusions:
- the firefoxes differ - jquery should hide these browser incompatibilities and always result in: 1, "account/edit", 0, "undefined"
Attachments (2)
Change History (10)
comment:1 Changed 15 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:2 Changed 15 years ago by
Resolution: | fixed |
---|---|
Status: | closed → reopened |
Reopening, because nothing changed.
Here are test results using jquery-1.2.6:
firefox-1.5.0.1, firefox-2.0.0.14, firefox-3_rc1: 0, "undefined", 1, "account/edit" mozilla-1.7.7, opera-9.50b, ie-6, ie-7, safari-3.1.1_525.17.0: 1, "account/edit", 0, "undefined" opera-8.0, opera-9.00, opera-9.27: 0, "undefined", 1, "http://example.org/account/edit"
While all browsers should return: 1, "account/edit", 0, "undefined"
Changed 15 years ago by
Attachment: | action.2.html added |
---|
Changed 15 years ago by
Attachment: | action.html added |
---|
comment:3 Changed 15 years ago by
Owner: | set to flesler |
---|---|
Status: | reopened → new |
comment:4 Changed 15 years ago by
Component: | core → selector |
---|---|
Milestone: | 1.2.4 → 1.3 |
#3194 fixes this, but adds a lot of overhead... This will require hard work with the benchmarker.
comment:6 Changed 12 years ago by
Keywords: | needsreview added |
---|---|
Milestone: | 1.3 |
Priority: | major → low |
Status: | new → open |
Was this implemented?
comment:7 Changed 12 years ago by
Resolution: | → worksforme |
---|---|
Status: | open → closed |
http://jsfiddle.net/dmethvin/6rCGW/ IE 8, FF 3.5, Chrome 7, Opera 10, Safari5 give identical results with the 1.4.4pre GIT0 version.
comment:8 Changed 12 years ago by
Keywords: | needsreview removed |
---|
This needs to be retested, but I think this is fixed now at [5574].
Please reopen if necessary.