[Pkg-mozext-commits] [firexpath] 02/06: Issue24: Don't change the case of the text between double quotes (") when evaluating an xpath.

David Prévot taffit at moszumanska.debian.org
Sat Mar 26 19:35:57 UTC 2016


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to tag FirePath-0.9.7
in repository firexpath.

commit b860668e211bdd913b0aaa1c00c01d0d44b1a47d
Author: pierre.tholence <pierre.tholence at gmail.com>
Date:   Sat Aug 6 15:17:18 2011 +0000

    Issue24: Don't change the case of the text between double quotes (") when evaluating an xpath.
---
 content/bindings.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/content/bindings.xml b/content/bindings.xml
index 10771f3..519c21f 100644
--- a/content/bindings.xml
+++ b/content/bindings.xml
@@ -341,7 +341,7 @@
 						if (xPath && FBL.isHtmlDocument(this.FirePathPanel.location.document)) {
 							// we want to lower case the XPath expression but not the literal inside.
 							//  eg: //DIV[@id='TEST'] should become //div[@id='TEST']
-							xPath = xPath.replace(/([^']*)('[^']+')?/g, 
+							xPath = xPath.replace(/([^'"]*)('[^']+'|"[^"]+")?/g, 
 								function(str, expression, literal){return expression.toLowerCase() + literal;});
 						}
 						return this.xPathEvaluator.createExpression(xPath, this.NSResolver);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/firexpath.git



More information about the Pkg-mozext-commits mailing list