#764 DOM Feature information not supplied

v9.0
closed
Michael Kay
5
2012-10-08
2008-01-17
Michael Kay
No

When calling an extension function that expects to handle DOM nodes, Saxon nodes are wrapped in a wrapper class that implements the DOM interface.

The implementation of the DOM Node interface is class NodeOverNodeInfo. The method isSupported(feature, version) on this class does not report feature information correctly, which may cause the calling application to believe that the DOM, for example, is not namespace aware.

Similarly, the class that implements the DOMImplementation interface is class DOMImplementationImpl, and this does not return anything useful from the hasFeature() method, causing similar problems.

A patch is being placed in Subversion, whose effect is to cause these methods to return true if the feature is "Core" or "XML" (case blind) and the version is null, "", "1.0", "2.0", or "3.0".

Discussion

  • Michael Kay
    Michael Kay
    2008-01-18

    Logged In: YES
    user_id=251681
    Originator: YES

    Fixed in 9.0.0.3