-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: bridge-impl-5.0.0, bridge-ext-5.0.2
-
Fix Version/s: bridge-impl-5.0.0, bridge-ext-5.0.3
-
Labels:None
Run the following JUnit test to reproduce the issue:
@Test public void testOverwriteElementAttribute() { Element element = new ElementImpl("script", null); element.setAttribute("id", "my_id"); NamedNodeMap attributes = element.getAttributes(); Assert.assertEquals("my_id", attributes.item(0).getNodeValue()); element.setAttribute("id", "my_id_again"); Assert.assertEquals(1, attributes.getLength()); Assert.assertEquals("my_id_again", attributes.item(0).getNodeValue()); }