-
Bug
-
Resolution: Fixed
-
P2
-
1.1, 1.4.1
-
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.
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.
- duplicates
-
JDK-4386139 Attr.getSpecified() returns true for attribute with default value
-
- Closed
-
- relates to
-
JDK-4407105 Attr.getSpecified() returns false for an attribute assigned with a value
-
- Closed
-