Uploaded image for project: 'PUBLIC - Liferay Faces'
  1. PUBLIC - Liferay Faces
  2. FACES-3325

Internal W3C Element implementations allow duplicate attributes

Details

    Description

      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());
      }
      

      Attachments

        Activity

          People

            kyle.stiemann Kyle Stiemann (Inactive)
            kyle.stiemann Kyle Stiemann (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Packages

                Version Package
                bridge-impl-5.0.0
                bridge-ext-5.0.3