Hello.
My version is:
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.634.0 Safari/534.16
The problem is:
The module "core", test unit "selector state", test "#main parent Selector" return invalid result on Chrome.
| Expected: | "#main.parent(body)" |
|---|
| Result: | "#main.parent(body,body,,,,,,,,,,,,,,,,,)" |
|---|
| Diff: | "#main.parent(body)" "#main.parent(body,body,,,,,,,,,,,,,,,,,)"
|
|---|
| Source: | at Object. (http://127.0.0.1/jquery/test/unit/core.js:148:2) |
|---|
I tried to debug with:
console.log(jQuery("#main"));
console.log(jQuery("#main").parent("body"));
console.log(jQuery("#main").parent());
And I have received:
[- <div id="main">…</div>
] []
[- <dl id="dl" style="position:absolute;top:-32767px;left:-32767px;">…</dl>
]
It suggest the correct result, for me, one time that parent("body") don't exists, only parent("dl").
According with
http://api.jquery.com/parent/ only the real parent element is tested with selector. But I think that test expect that travel up DOM Tree, what need happen with .parents(selector).
Bye.