mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 06:07:59 +01:00
Add XTML2 support to the Buffer#evaluateXPath namespace resolver.
--HG-- extra : transplant_source : 2v%E9%27%09%0B%23%09%86%96%96h%40v%9B%3D%24%F2%AD%17
This commit is contained in:
@@ -1004,8 +1004,8 @@ function Buffer() //{{{
|
||||
|
||||
/**
|
||||
* Evaluates an XPath expression in the current or provided
|
||||
* document. It provides the xhtml and liberator XML namespaces. The
|
||||
* result may be used as an iterator.
|
||||
* document. It provides the xhtml, xhtml2 and liberator XML
|
||||
* namespaces. The result may be used as an iterator.
|
||||
*
|
||||
* @param {string} expression The XPath expression to evaluate.
|
||||
* @param {Document} doc The document to evaluate the expression in.
|
||||
@@ -1027,6 +1027,7 @@ function Buffer() //{{{
|
||||
{
|
||||
return {
|
||||
xhtml: "http://www.w3.org/1999/xhtml",
|
||||
xhtml2: "http://www.w3.org/2002/06/xhtml2",
|
||||
liberator: NS.uri
|
||||
}[prefix] || null;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user