tag.setAttribute() not compatible with <tag/>
Brought to you by:
derrickoswald
When adding attributes to a <tag/> with a trailing slash, the new attributes are inserted after the trailing slash.
For example, with the following tag:
<input type='text' name='foo'/>
Calling inputTag.setAttribute("value", "bar", '\'');
results in the following HTML:
<input type='text' name='foo'/ value='bar'>
The expected result is:
<input type='text' name='foo' value='bar'/>
If there is a way to achieve my expected result without waiting for a bugfix, please let me know.
JUnit test case
Logged In: YES
user_id=605407
Originator: NO
Handle empty xml tag as a special case in TagNode.setAttribute().