liaojinxing / firepath

Automatically exported from code.google.com/p/firepath
GNU General Public License v3.0
0 stars 0 forks source link

Add case-insensitive option #15

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I use another tool that produces uppercase tagnames for XPaths. I would love an 
option in firepath to use case insensitive tagnames so that for example //div 
//Div and //DIV produce the same result.

Original issue reported on code.google.com by rnijvel...@gmail.com on 17 Jan 2011 at 10:13

GoogleCodeExporter commented 9 years ago
Thanks for reporting this.

Apparently Firefox will automatically lower case all tags inside html documents 
and because XPath is case sensitive, this feature would make a lot of sense. 

However I need to make sure it is not case insensitive for xml and xhtml 
documents because in this case Firefox keep the original case of the tags and 
it matters when evaluating the XPath expression.

Original comment by pierre.t...@gmail.com on 17 Feb 2011 at 8:05

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I made the necessary changes and committed them to trunk at revision r26.
Now when evaluating an XPath expression on a HTML document it will be case 
insensitive.
It is still case sensitive for XML documents.

Original comment by pierre.t...@gmail.com on 12 Mar 2011 at 5:32

GoogleCodeExporter commented 9 years ago
Released on March 22, 2011

Original comment by pierre.t...@gmail.com on 6 Aug 2011 at 3:38