GeezerVison is showing luakit.github.io — Luakit API Documentation
Table of Contents
Pages
Modules
Classes
Class dom_document
Web process Lua interface to the DOM
This module is only available from web process Lua states.
Retrieving the DOM document for a page:
To retrieve the DOM document loaded in a page, use the document property.
Methods
Create a new element for the DOM document.
Parameters
-
The tag name of the element to create.
-
attributes
Type: table
Optional
A table of attributes to set on the new element. All keys and values must be strings.
-
inner_text
Type: string
Optional
The inner text to set on the element.
Find the DOM element at the given point.
Parameters
-
The X coordinate of the point.
-
The Y coordinate of the point.
Return Values
-
dom_element
The element at the given point.
Properties
Type: dom_element
Read-only
The body of the DOM document.
The horizontal scroll position of the document view.
The vertical scroll position of the document view.
The inner width of the DOM document.
The inner height of the DOM document.
Attribution