#12972 closed bug (notabug)
Strange selector bug in IE with <P><FORM> elements
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | undecided | Milestone: | None |
Component: | unfiled | Version: | 1.8.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
For me this is a strange selector bug to explain. Try the testcase at: http://jsfiddle.net/jorese/Bzc7M/ In IE you will recieve an alert=3, remove the <P> element in front of the <FORM> element and you get the expected alert=5. In Chrome|FF you get alert=5 as expected. The bug probably exist in all version, but only tested in 1.7 and 1.8
Of course this is a serious bug, all $(form INPUT).events will not happen...
Change History (7)
comment:1 Changed 11 years ago by
Resolution: | → notabug |
---|---|
Status: | new → closed |
comment:2 Changed 11 years ago by
Can you please explain why this isn't a bug? Or is it a bug in the selector enginge and not in jquery? Did you try the jsfiddle?
comment:3 Changed 11 years ago by
Sure, post a screen shot of your results from the IE inspector and I can explain.
comment:4 Changed 11 years ago by
comment:5 Changed 11 years ago by
You'll want to actually view the DOM to see which elements are children of which ones.
comment:6 Changed 11 years ago by
Your markup is invalid. DIV is not allowed is not allowed in P. IE automatically inserts </p> before DIV which also closes form. So DIV is not children of form. Fix your markup.
Use the IE inspector to see what's going on. This isn't a jQuery bug and shouldn't be reported here. Ask for help on a forum if you need it.