Export to GitHub

fbug - issue #5326

Copied Xpath is transformed to lowercase


Posted on Mar 13, 2012 by Grumpy Camel

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 Giraffe

I 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 #4

Posted on Apr 5, 2013 by Massive Wombat

This 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 Camel

I confirm the issue is fixed in firebug-1.12.0a4.xpi

Comment #6

Posted on Apr 6, 2013 by Helpful Wombat

Great! Thanks for the feedback.

Sebastian

Status: Verified

Labels:
Type-Defect html 1.9.1 Test-case-available FBTest-wanted fixed-1.12-a4