Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.7.0, 2.7.1, 2.8.0, 2.8.1
-
None
-
Windows XP SP2, Ubuntu Linux 6.06, Java 1.5.07
Description
The code in ElementImpl.setIdAttribute contains a (reasonable) check to see whether the attribute's owner element is the same as the current element and if not a DOMException.NOT_FOUND_ERR is thrown. Since the DOMResultBuilder.startElement method contains two separate calls to the setIdAttribute method prior to setting the attribute onto the element this exception will always be thrown when encountering xsd:ID attrbutes.