How to reproduce: 1) Go to http://aai.grnet.gr/metadata.xml 2) Open Firebug's HTML view 3) Right on any element in the HTML tree and select "Copy Xpath" 4) Paste anywhere
The pasted Xpath string is transformed to lowercase. Expected result is to keep cases as they are in the file's source.
NOTE: If there is any good reason to make it lowercase, I couldn't find it documented anywhere.
Workaround and possible fix:
Edit the file: firebug@software.joehewitt.com.xpi\content\firebug\lib\xpath.js and change the line "var tagName = element.nodeName.toLowerCase();" into "var tagName = element.nodeName;"
I don't know if this would have any side-effect, though.
Tested using Firebug 1.9.1 | Firefox 10.0.2 |Windows 7
Comment #1
Posted on Mar 14, 2012 by Happy GiraffeI suppose this toLowerCase() is intended only for HTML content.
Sebastian
Comment #2
Posted on Mar 23, 2013 by Helpful Wombat(No comment was entered for this change.)
Comment #3
Posted on Apr 4, 2013 by Helpful WombatFixed in https://github.com/firebug/firebug/commit/233beba352a904edac3f0ed9632e28ecaf6d8d0a and https://github.com/firebug/firebug/commit/9b2c404a54183b797924a28f369a8048376775ff.
Sebastian
Comment #4
Posted on Apr 5, 2013 by Massive WombatThis issue has been fixed in Firebug 1.12 alpha 4 https://getfirebug.com/releases/firebug/1.12/firebug-1.12.0a4.xpi
Please try it and let us know if it works for you.
Thanks for the help!
Honza
Comment #5
Posted on Apr 5, 2013 by Grumpy CamelI confirm the issue is fixed in firebug-1.12.0a4.xpi
Comment #6
Posted on Apr 6, 2013 by Helpful WombatGreat! Thanks for the feedback.
Sebastian
Status: Verified
Labels:
Type-Defect
html
1.9.1
Test-case-available
FBTest-wanted
fixed-1.12-a4