You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by "Enxian Ren (Jira)" <xe...@xml.apache.org> on 2020/05/12 07:47:00 UTC

[jira] [Commented] (XERCESJ-1212) DOMResultBuilder.startElement has a calls ElementImpl.setIdAttribute before setting the attribute onto the associated element

    [ https://issues.apache.org/jira/browse/XERCESJ-1212?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17105188#comment-17105188 ] 

Enxian Ren commented on XERCESJ-1212:
-------------------------------------

Hello, may I ask what version of JDK will solve this issue?

> DOMResultBuilder.startElement has a calls ElementImpl.setIdAttribute before setting the attribute onto the associated element
> -----------------------------------------------------------------------------------------------------------------------------
>
>                 Key: XERCESJ-1212
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-1212
>             Project: Xerces2-J
>          Issue Type: Bug
>          Components: JAXP (javax.xml.validation)
>    Affects Versions: 2.7.0, 2.7.1, 2.8.0, 2.8.1
>         Environment: Windows XP SP2, Ubuntu Linux 6.06, Java 1.5.07
>            Reporter: Grant Mcdonald
>            Assignee: Michael Glavassevich
>            Priority: Major
>             Fix For: 2.9.0
>
>         Attachments: XERCESJ-1212.patch
>
>
> 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.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org