Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4371181

The getSpecified method of Attr does not work in one case

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 1.1
    • 1.1, 1.4.1
    • xml
    • 1.1fcs
    • sparc
    • solaris_7, solaris_8
    • Verified

      The getSpecified method of Attr is supposed to return false in the following case :
      If the attribute has no assigned value in the document and has a default value in the DTD, then specified is false, and the value is the default value in the DTD.
       
      I have attached an xml file with the DTD and also a sample program which shows that it returns the default value of the DTD for the attribute but does not return the specified as false.

            egoei Edwin Goei (Inactive)
            bhamehta Bhakti Mehta (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: