Method: Browser::DOM::Node#document

Defined in:
opal/browser/dom/node.rb

#documentDocument?

Returns the document the node is attached to.

Returns:

  • (Document?)

    the document the node is attached to


292
293
294
# File 'opal/browser/dom/node.rb', line 292

def document
  DOM(`#@native.ownerDocument`) if defined?(`#@native.ownerDocument`)
end