bug report: attributes becomes Uppercase in Dreamweaver xml file
Posted by info on 11th January 2012
This is a problem that maybe only I came across but you never know if somebody else found this too:
When creating an XML file and use an element with attribute “href” the attribute becomes “HREF” with capitals when somewhere in de XML the content of a node has entity in it. An other entity like & doesn’t show this “feature”.
This only applies when you have set the Code Format preference: Default attribute case to lowercase and have checked Overwrite case of attributes.
This only occurs on attributes and elements that are listed in the tag libraries under Advanced Formatting and the attribute case are set to “default”.
It seems that Dreamweaver doesn’t respect the default setting set by the checkbox Default attribute case.
Steps to reproduce bug:
1. create XML file
2. enter node: <link href=”/mypath”>Example text</link>
3. save the file
4. open the file again in dreamweaver
Results:
<link HREF=”/mypath”>Example text</link> and dreamweaver reports no change in the document.
Expected results:
<link href=”/mypath”>Example text</link>
By adding the following at the top of your XML (under the <?xml version=”1.0″ encoding=”UTF-8″?> )Â the problem is solved for Dreamweaver:
<!DOCTYPE FirstElementName [ <!ENTITY nbsp " "> ]>
Posted in Scripting | Comments Off on bug report: attributes becomes Uppercase in Dreamweaver xml file