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

David Prévot taffit at moszumanska.debian.org
Sun Mar 22 15:08:53 UTC 2015


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

taffit pushed a commit to branch master
in repository firexpath.

commit af43979ac4bd3deaa4077d9ea3d307b3f00bd2a4
Author: pierre.tholence at gmail.com <pierre.tholence at gmail.com@dfa30af4-1965-11df-8728-136f2c2ca76e>
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.
    
    
    git-svn-id: http://firepath.googlecode.com/svn/trunk@40 dfa30af4-1965-11df-8728-136f2c2ca76e
---
 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