[
https://issues.apache.org/jira/browse/XERCESJ-317?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Elliotte Rusty Harold resolved XERCESJ-317.
-------------------------------------------
Resolution: Won't Do
These methods are defined by the DOM spec. Subclasses probably shouldn't be
overriding them.
> Make the final methods in HTML DOM not finals.
> ----------------------------------------------
>
> Key: XERCESJ-317
> URL: https://issues.apache.org/jira/browse/XERCESJ-317
> Project: Xerces2-J
> Issue Type: Bug
> Components: DOM (HTML)
> Affects Versions: 2.0.1
> Environment: Operating System: Other
> Platform: Other
> Reporter: sc
> Priority: Minor
>
> For examples these 2 methods are final in HTMLElementImpl
> public final NodeList getElementsByTagName( String tagName )
> public final NodeList getElementsByTagNameNS( String namespaceURI,
> String localName )
> By marking these methods, I can't over-ride these methods when I need to. And
> I
> need to do that if I need to integrate the DOM with javaScript engine
> (Rhino),
> since NodeList are not "Scriptable" (Rhino). If these methods are not final,
> I
> can inherit these methods and put a wrapper around the NodeList of the return
> value.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]