prototype: Ensure document._getElementsByXPath extends the elements it returns; fixes $$ not returning extended elements in Opera 9.2. Closes #8843.
This commit is contained in:
parent
05e48f6feb
commit
8cf1f895f7
@ -1,5 +1,9 @@
|
||||
*SVN*
|
||||
|
||||
* Ensure document._getElementsByXPath extends the elements it returns; fixes $$ not returning extended elements in Opera 9.2. Closes #8843. [jdalton]
|
||||
|
||||
* Update Prototype.Browser.MobileSafari for iPod touch compatibility. [sam]
|
||||
|
||||
* Add tests for Object.extend and Object.clone. [Tobie Langel]
|
||||
|
||||
* Add a test for Form.Observer. [Christoph Sturm]
|
||||
|
@ -15,7 +15,7 @@ if (Prototype.BrowserFeatures.XPath) {
|
||||
var query = document.evaluate(expression, $(parentElement) || document,
|
||||
null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null);
|
||||
for (var i = 0, length = query.snapshotLength; i < length; i++)
|
||||
results.push(query.snapshotItem(i));
|
||||
results.push(Element.extend(query.snapshotItem(i)));
|
||||
return results;
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user