The OpenD Programming Language

Element.querySelector

Returns a child element that matches the given selector.

Note: you can give multiple selectors, separated by commas. It will return the first match it finds.

Tip: to use namespaces, escape the colon in the name:

element.querySelector(`ns\:tag`); // the backticks are raw strings then the backslash is interpreted by querySelector
class Element
@scriptable
querySelector
(
string selector
)

Meta