[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: RE: [cgmo-webcgm] Incorrect WebCGM 2.0 test?
--
Stuart Galt
SGML Resource
Group
stuart.a.galt@boeing.com
(206) 544-3656
From: Bezaire, Benoit [mailto:bbezaire@ptc.com]
Sent: Wednesday, December 10, 2008 6:53 AM
To: WebCGM
Subject: [cgmo-webcgm] Incorrect WebCGM 2.0 test?Hi All,I'm wondering if Node-metadata.html is correct? More specifically the 'hasAttributes, attributes' sub test. According to the test results, there should be two attributes on <extra:el>, but one seems like the correct answer (in my opinion).The spec says the following about .attributes:A WebCGMNodeList containing all attributes (WebCGM and namespaced) of this node or null if the WebCGMNode doesn't have any attributes. Always null when nodeType is APS_STRUCTURE_NODE and nodeName is 'grnode'. The 'apsid' parameter of the Begin APS element is considered to be an attribute of its APS for DOM purposes, and the 'pictid' parameter of the Begin Picture element is considered to be an attribute of its Picture for DOM purposes. This table summarizes the contents of 'attributes' for the various node types:
Node type attributes PICTURE_NODE pictid (always); NS attributes APP_STRUCTURE_NODE apsid (always); NS attributes; APS Attributes XML_METADATA_NODE NS attributes ATTR_NODE none (always null) TEXT_NODE none (always null) Only the picture node and APS node have ids, in this particular case, it's a metadata node, it shouldn't have an id.Thoughts?
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]