std1.0.0-beta-7 SafeC docs

std :: wasm::dom

Function std::dom_get_element

#include <std/wasm/dom.h> source ยท definition

int dom_get_element(const &char selector)

First element matching the CSS selector (document.querySelector); -1 if none. dom_query is the same; dom_query_in searches under 'parent'.