<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body><figure class="quote"><figcaption><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="1" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[1]</anchor-end> <cite xml:lang="en-US">Mozilla XForms Specials - Archive of obsolete content | MDN</cite>
(<time>2014-04-15 00:00:08 +09:00</time> 版)
<anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="https://developer.mozilla.org/en-US/docs/Archive/Web/XForms/Mozilla_XForms_Specials">https://developer.mozilla.org/en-US/docs/Archive/Web/XForms/Mozilla_XForms_Specials</anchor-external></p></figcaption><blockquote><p>In the XForms 1.0 specification there is no way to get to the instance element from an instance data node. We have added a function via the getFeature() call on each node, that allows the form author to do that. That is, if instanceNode is a node in an instance document, then:</p><p>instanceNode.getFeature(&quot;org.mozilla.xforms.instanceOwner&quot;, &quot;1.0&quot;)</p><p>will return the &lt;instance&gt; element (in the main document) that the node belongs to.</p></blockquote></figure></body></html>