Uploaded image for project: 'Xerces2-J'
  1. Xerces2-J
  2. XERCESJ-1022

cloneNode forgets IDness of attribute

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • 2.6.2
    • None
    • DOM (Level 3 Core)
    • None
    • java version "1.4.2_05"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_05-141.3)
      Java HotSpot(TM) Client VM (build 1.4.2-38, mixed mode)

    Description

      Cloning a node that contains an ID type attribute forgets that the attribute is an ID. Interestingly importing the element into a new document, even one without a DocType, does not forget that the Attr has ID type.

      The attached program generates the following output:

      Xerces-J 2.6.2
      Found element with ID
      Did not find element with ID

      Attachments

        1. CoreDocumentImpl.java_IDness.patch
          3 kB
          Jacob Kjome
        2. IDTest.java
          0.8 kB
          elharo

        Issue Links

          Activity

            People

              Unassigned Unassigned
              elharo@metalab.unc.edu elharo
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: