Skip to main content
Skip table of contents

LiveFields - Things to avoid

🚫 Blocked JavaScript Functions

To ensure safe and predictable execution of user-provided scripts, in addition to forward compatibility of scripts authored, the following JavaScript functions and DOM APIs are explicitly disallowed. These restrictions are suggested in GlobalSearch Web and strictly enforced in GlobalSearch Go.

❌ DOM Selection Functions

The following methods for selecting DOM elements are blocked:

Function

Description

getElementById

Selects an element by ID

querySelector

Selects the first matching element

querySelectorAll

Selects all matching elements

getElementsByName

Selects elements by name attribute

getElementsByClassName

Selects elements by class name

getElementsByTagName

Selects elements by tag name

getElementsByTagNameNS

Selects elements by tag name and namespace

getSelection

Retrieves the current text selection

❌ DOM Modification Functions

Direct manipulation of the DOM is prohibited:

Function

Description

appendChild

Appends a child node

insertBefore

Inserts a node before another

removeChild

Removes a child node

replaceChild

Replaces one child node with another

innerHTML

Sets or gets HTML content

outerHTML

Sets or gets outer HTML

textContent

Sets or gets text content

innerText

Sets or gets visible text

createElement

Creates a new DOM element

setAttribute

Modifies element attributes

❌ Style and Class Manipulation

Modifying visual presentation or class structure is blocked:

Function

Description

classList.add

Adds a CSS class

classList.remove

Removes a CSS class

classList.toggle

Toggles a CSS class

style.

Direct style manipulation

❌ Unsafe or Legacy APIs

These functions are blocked due to security or stability concerns:

Function

Description

document.write

Writes directly to the document

addEventListener

Adds event listeners (DOM-modifying)

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.