Method: Browser::DOM::Document#root

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

#rootElement?

Returns the root element of the document.

Returns:

  • (Element?)

    the root element of the document



106
107
108
# File 'opal/browser/dom/document.rb', line 106

def root
  DOM(`#@native.documentElement`)
end