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:
Sam Stephenson 2007-10-08 19:01:31 +00:00
parent 05e48f6feb
commit 8cf1f895f7
2 changed files with 5 additions and 1 deletions

View File

@ -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]

View File

@ -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;
};
}