Opened 15 years ago
Closed 15 years ago
#1930 closed bug (worksforme)
Traversing with parents() doesn't work in IE 7.0
Reported by: | shaupt | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 1.2.2 |
Component: | core | Version: | 1.2.1 |
Keywords: | IE, parents | Cc: | |
Blocked by: | Blocking: |
Description
We use the following jquery expression: $('button').click( function() { alert( $(this).parents('[@class="csMyGroupStyle"]').size() ) } ); Clicking on the button in "Firefox 2.0" returns the value 1, but the "IE 7.0" returns the value 2. If we change the size() to html(), then Firefox returns the correct html code, but IE returns '<BUTTON STYLE="CURSOR:pointer; function (w){ var a = [], The array holding the partial texts. ...' It looks as in IE the method "parents()" is not interpreted correctly. It returns some function code back.
Attachments (1)
Change History (4)
comment:1 Changed 15 years ago by
comment:2 Changed 15 years ago by
It seems to work the same for me in IE7 and FF on the wiki http://docs.jquery.com/Traversing/parents#expr . Do you have an actual test case you could share?
comment:3 Changed 15 years ago by
Resolution: | → worksforme |
---|---|
Status: | new → closed |
I created a test case based on the description and it works for me. If you have an alternate test case please reopen the bug and attach it.
We use the following jquery expression:
Clicking on the button in "Firefox 2.0" returns the value 1, but the "IE 7.0" returns the value 2. If we change the size() to html(), then Firefox returns the correct html code, but IE returns
It looks as in IE the method "parents()" is not interpreted correctly.
It returns some function code back.