Web API Properties

Lightning web components reflect the properties of many Web APIs.

Lightning web components reflect these properties of the Element interface.

children, classList, className, firstElementChild, getAttribute, getAttributeNS, getBoundingClientRect, getElementsByClassName, getElementsByTagName, hasAttribute, id, lastElementChild, querySelector, querySelectorAll, removeAttribute, removeAttributeNS, setAttributeNS, setAttribute, shadowRoot, slot

See Shadow DOM, Access Elements the Component Owns, and Pass Markup into Slots.

When Lightning Web Security is enabled in the Salesforce org, setAttributeNS, setAttribute, and shadowRoot are modified by distortions.

Lightning web components reflect these properties of the EventTarget interface.

addEventListener, dispatchEvent, removeEventListener

See Communicate with Events.

Lightning web components reflect these properties of the HTMLElement interface.

accessKeyLabel, contentEditable, dataset, dir, hidden, isContentEditable, lang, offsetHeight, offsetLeft, offsetParent, offsetTop, offsetWidth, title

When Lightning Web Security is enabled in the Salesforce org, dataset is modified by a distortion.

Lightning web components reflect these properties of the Node interface.

childNodes, firstChild, isConnected, lastChild

See Run Code When a Component Is Inserted or Removed from the DOM.

Lightning web components reflect these WAI-ARIA states and properties.

ariaActiveDescendant, ariaAtomic, ariaAutoComplete, ariaBusy, ariaChecked, ariaColCount, ariaColIndex, ariaColSpan, ariaControls, ariaCurrent, ariaDescribedBy, ariaDetails, ariaDisabled, ariaErrorMessage, ariaExpanded, ariaFlowTo, ariaHasPopup, ariaHidden, ariaInvalid, ariaKeyShortcuts, ariaLabel, ariaLabelledBy, ariaLevel, ariaLive, ariaModal, ariaMultiLine, ariaMultiSelectable, ariaOrientation, ariaOwns, ariaPlaceholder, ariaPosInSet, ariaPressed, ariaReadOnly, ariaRelevant, ariaRequired, ariaRoleDescription, ariaRowCount, ariaRowIndex, ariaRowSpan, ariaSelected, ariaSetSize, ariaSort, ariaValueMax, ariaValueMin, ariaValueNow, ariaValueText

See Component Accessibility.