You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by "Tobias Schuette (JIRA)" <xe...@xml.apache.org> on 2005/10/31 14:25:55 UTC

[jira] Commented: (XERCESC-1479) DOM(Attr/Element) PSVI type info interface isSupported/getInterface

    [ http://issues.apache.org/jira/browse/XERCESC-1479?page=comments#action_12356410 ] 

Tobias Schuette commented on XERCESC-1479:
------------------------------------------

the changes to DOM(Attr/ElementNS)Impl::isSupported look straight forward,
but the changes commited to DOMDocumentTypeImpl::isSupported under the hood of this issue are missing a part.

correct me if i'm wrong, but DOMDocumentTypeImpl::isSupported should response to queries for '+DOMDocumentTypeImpl' as well,
because DOMDocumentTypeImpl* is directly castable.

please review.


> DOM(Attr/Element) PSVI type info interface isSupported/getInterface
> -------------------------------------------------------------------
>
>          Key: XERCESC-1479
>          URL: http://issues.apache.org/jira/browse/XERCESC-1479
>      Project: Xerces-C++
>         Type: Improvement
>   Components: DOM
>     Reporter: Tobias Schuette
>     Priority: Trivial

>
> in xercesc/dom/impl/DOM(Attr/ElementNS)Impl.cpp queries for the "DOMPSVITypeInfo" feature interface are processed by returning the proper const xercesc::PSVIItem*.
> To check interface existence the coresponding call to DOM(Attr/ElementNS)Impl::isSupported("+DOMPSVITypeInfo", NULL) should return true, which is actually returning false, because calls are redirected to xercesc::DOMImplementation::hasFeature.
> note the requirement of the "+" before the "DOMPSVITypeInfo" in the call to DOM(Attr/ElementNS)Impl::isSupported("+DOMPSVITypeInfo", ...) which is required because xercesc::PSVIItem doesn't implement the xercesc::DOMNode interface as described in DOM3->Core->DOM Features.
> calls to DOM(Attr/ElementNS)Impl::isSupported("DOMPSVITypeInfo", ...) without "+" should continue returning false;

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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