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
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, such as ariaLabel and ariaExpanded. For example, access the aria-label attribute as ariaLabel in JavaScript.
The standard properties include:
ariaActiveDescendant, ariaAtomic, ariaAutoComplete, ariaBusy, ariaChecked, ariaColCount, ariaColIndex, ariaColIndexText, ariaColSpan, ariaControls, ariaCurrent, ariaDescription, ariaDescribedBy, ariaDetails, ariaDisabled, ariaErrorMessage, ariaExpanded, ariaFlowTo, ariaHasPopup, ariaHidden, ariaInvalid, ariaKeyShortcuts, ariaLabel, ariaLabelledBy, ariaLevel, ariaLive, ariaModal, ariaMultiLine, ariaMultiSelectable, ariaOrientation, ariaPlaceholder, ariaOwns, ariaPosInSet, ariaPressed, ariaReadOnly, ariaRelevant, ariaRequired, ariaRoleDescription, ariaRowCount, ariaRowIndex, ariaRowIndexText, ariaRowSpan, ariaSelected, ariaSetSize, ariaSort, ariaValueMax, ariaValueMin, ariaValueNow, ariaValueText, ariaBrailleLabel, ariaBrailleRoleDescription
See ARIA attributes.
In LWC OSS v4.0.0, some of the standard WAI-ARIA properties are no longer included as a global polyfill. For more information, see Deprecated ARIA reflected properties.
See Also