ElementInternals Class

https://html.spec.whatwg.org/multipage/custom-elements.html#elementinternals

public sealed class ElementInternals

Properties

NameDescription
AriaActiveDescendantElementGets or sets the default value of the ariaActiveDescendantElement ARIA property of the custom element (used when the element has no corresponding ARIA attribute).
AriaAtomicGets or sets the default value of the ariaAtomic ARIA property of the custom element (used when the element has no corresponding ARIA attribute).
AriaAutoCompleteGets or sets the default value of the ariaAutoComplete ARIA property of the custom element (used when the element has no corresponding ARIA attribute).
AriaBrailleLabelGets or sets the default value of the ariaBrailleLabel ARIA property of the custom element (used when the element has no corresponding ARIA attribute).
AriaBrailleRoleDescriptionGets or sets the default value of the ariaBrailleRoleDescription ARIA property of the custom element (used when the element has no corresponding ARIA attribute).
AriaBusyGets or sets the default value of the ariaBusy ARIA property of the custom element (used when the element has no corresponding ARIA attribute).
AriaCheckedGets or sets the default value of the ariaChecked ARIA property of the custom element (used when the element has no corresponding ARIA attribute).
AriaColCountGets or sets the default value of the ariaColCount ARIA property of the custom element (used when the element has no corresponding ARIA attribute).
AriaColIndexGets or sets the default value of the ariaColIndex ARIA property of the custom element (used when the element has no corresponding ARIA attribute).
AriaColIndexTextGets or sets the default value of the ariaColIndexText ARIA property of the custom element (used when the element has no corresponding ARIA attribute).
AriaColSpanGets or sets the default value of the ariaColSpan ARIA property of the custom element (used when the element has no corresponding ARIA attribute).
AriaControlsElementsGets or sets the default value of the ariaControlsElements ARIA property of the custom element (used when the element has no corresponding ARIA attribute).
AriaCurrentGets or sets the default value of the ariaCurrent ARIA property of the custom element (used when the element has no corresponding ARIA attribute).
AriaDescribedByElementsGets or sets the default value of the ariaDescribedByElements ARIA property of the custom element (used when the element has no corresponding ARIA attribute).
AriaDescriptionGets or sets the default value of the ariaDescription ARIA property of the custom element (used when the element has no corresponding ARIA attribute).
AriaDetailsElementsGets or sets the default value of the ariaDetailsElements ARIA property of the custom element (used when the element has no corresponding ARIA attribute).
AriaDisabledGets or sets the default value of the ariaDisabled ARIA property of the custom element (used when the element has no corresponding ARIA attribute).
AriaErrorMessageElementsGets or sets the default value of the ariaErrorMessageElements ARIA property of the custom element (used when the element has no corresponding ARIA attribute).
AriaExpandedGets or sets the default value of the ariaExpanded ARIA property of the custom element (used when the element has no corresponding ARIA attribute).
AriaFlowToElementsGets or sets the default value of the ariaFlowToElements ARIA property of the custom element (used when the element has no corresponding ARIA attribute).
AriaHasPopupGets or sets the default value of the ariaHasPopup ARIA property of the custom element (used when the element has no corresponding ARIA attribute).
AriaHiddenGets or sets the default value of the ariaHidden ARIA property of the custom element (used when the element has no corresponding ARIA attribute).
AriaInvalidGets or sets the default value of the ariaInvalid ARIA property of the custom element (used when the element has no corresponding ARIA attribute).
AriaKeyShortcutsGets or sets the default value of the ariaKeyShortcuts ARIA property of the custom element (used when the element has no corresponding ARIA attribute).
AriaLabelGets or sets the default value of the ariaLabel ARIA property of the custom element (used when the element has no corresponding ARIA attribute).
AriaLabelledByElementsGets or sets the default value of the ariaLabelledByElements ARIA property of the custom element (used when the element has no corresponding ARIA attribute).
AriaLevelGets or sets the default value of the ariaLevel ARIA property of the custom element (used when the element has no corresponding ARIA attribute).
AriaLiveGets or sets the default value of the ariaLive ARIA property of the custom element (used when the element has no corresponding ARIA attribute).
AriaModalGets or sets the default value of the ariaModal ARIA property of the custom element (used when the element has no corresponding ARIA attribute).
AriaMultiLineGets or sets the default value of the ariaMultiLine ARIA property of the custom element (used when the element has no corresponding ARIA attribute).
AriaMultiSelectableGets or sets the default value of the ariaMultiSelectable ARIA property of the custom element (used when the element has no corresponding ARIA attribute).
AriaOrientationGets or sets the default value of the ariaOrientation ARIA property of the custom element (used when the element has no corresponding ARIA attribute).
AriaOwnsElementsGets or sets the default value of the ariaOwnsElements ARIA property of the custom element (used when the element has no corresponding ARIA attribute).
AriaPlaceholderGets or sets the default value of the ariaPlaceholder ARIA property of the custom element (used when the element has no corresponding ARIA attribute).
AriaPosInSetGets or sets the default value of the ariaPosInSet ARIA property of the custom element (used when the element has no corresponding ARIA attribute).
AriaPressedGets or sets the default value of the ariaPressed ARIA property of the custom element (used when the element has no corresponding ARIA attribute).
AriaReadOnlyGets or sets the default value of the ariaReadOnly ARIA property of the custom element (used when the element has no corresponding ARIA attribute).
AriaRelevantGets or sets the default value of the ariaRelevant ARIA property of the custom element (used when the element has no corresponding ARIA attribute).
AriaRequiredGets or sets the default value of the ariaRequired ARIA property of the custom element (used when the element has no corresponding ARIA attribute).
AriaRoleDescriptionGets or sets the default value of the ariaRoleDescription ARIA property of the custom element (used when the element has no corresponding ARIA attribute).
AriaRowCountGets or sets the default value of the ariaRowCount ARIA property of the custom element (used when the element has no corresponding ARIA attribute).
AriaRowIndexGets or sets the default value of the ariaRowIndex ARIA property of the custom element (used when the element has no corresponding ARIA attribute).
AriaRowIndexTextGets or sets the default value of the ariaRowIndexText ARIA property of the custom element (used when the element has no corresponding ARIA attribute).
AriaRowSpanGets or sets the default value of the ariaRowSpan ARIA property of the custom element (used when the element has no corresponding ARIA attribute).
AriaSelectedGets or sets the default value of the ariaSelected ARIA property of the custom element (used when the element has no corresponding ARIA attribute).
AriaSetSizeGets or sets the default value of the ariaSetSize ARIA property of the custom element (used when the element has no corresponding ARIA attribute).
AriaSortGets or sets the default value of the ariaSort ARIA property of the custom element (used when the element has no corresponding ARIA attribute).
AriaValueMaxGets or sets the default value of the ariaValueMax ARIA property of the custom element (used when the element has no corresponding ARIA attribute).
AriaValueMinGets or sets the default value of the ariaValueMin ARIA property of the custom element (used when the element has no corresponding ARIA attribute).
AriaValueNowGets or sets the default value of the ariaValueNow ARIA property of the custom element (used when the element has no corresponding ARIA attribute).
AriaValueTextGets or sets the default value of the ariaValueText ARIA property of the custom element (used when the element has no corresponding ARIA attribute).
Formhttps://html.spec.whatwg.org/multipage/custom-elements.html#dom-elementinternals-form
Labelshttps://html.spec.whatwg.org/multipage/forms.html#dom-elementinternals-labels
RoleGets or sets the default value of the role ARIA property of the custom element (used when the element has no corresponding ARIA attribute).
ShadowRoothttps://html.spec.whatwg.org/multipage/custom-elements.html#dom-elementinternals-shadowroot
Stateshttps://html.spec.whatwg.org/multipage/custom-elements.html#dom-elementinternals-states
ValidationMessagehttps://html.spec.whatwg.org/multipage/custom-elements.html#dom-elementinternals-validationmessage
Validityhttps://html.spec.whatwg.org/multipage/custom-elements.html#dom-elementinternals-validity
WillValidatehttps://html.spec.whatwg.org/multipage/custom-elements.html#dom-elementinternals-willvalidate

AriaActiveDescendantElement

ElementInternals.g.cs

Gets or sets the default value of the ariaActiveDescendantElement ARIA property of the custom element (used when the element has no corresponding ARIA attribute).

public Element? AriaActiveDescendantElement { get; set; }

Gets or sets the default value of the ariaAtomic ARIA property of the custom element (used when the element has no corresponding ARIA attribute).

public string? AriaAtomic { get; set; }

AriaAutoComplete

ElementInternals.g.cs

Gets or sets the default value of the ariaAutoComplete ARIA property of the custom element (used when the element has no corresponding ARIA attribute).

public string? AriaAutoComplete { get; set; }

AriaBrailleLabel

ElementInternals.g.cs

Gets or sets the default value of the ariaBrailleLabel ARIA property of the custom element (used when the element has no corresponding ARIA attribute).

public string? AriaBrailleLabel { get; set; }

AriaBrailleRoleDescription

ElementInternals.g.cs

Gets or sets the default value of the ariaBrailleRoleDescription ARIA property of the custom element (used when the element has no corresponding ARIA attribute).

public string? AriaBrailleRoleDescription { get; set; }

Gets or sets the default value of the ariaBusy ARIA property of the custom element (used when the element has no corresponding ARIA attribute).

public string? AriaBusy { get; set; }

Gets or sets the default value of the ariaChecked ARIA property of the custom element (used when the element has no corresponding ARIA attribute).

public string? AriaChecked { get; set; }

Gets or sets the default value of the ariaColCount ARIA property of the custom element (used when the element has no corresponding ARIA attribute).

public string? AriaColCount { get; set; }

Gets or sets the default value of the ariaColIndex ARIA property of the custom element (used when the element has no corresponding ARIA attribute).

public string? AriaColIndex { get; set; }

AriaColIndexText

ElementInternals.g.cs

Gets or sets the default value of the ariaColIndexText ARIA property of the custom element (used when the element has no corresponding ARIA attribute).

public string? AriaColIndexText { get; set; }

Gets or sets the default value of the ariaColSpan ARIA property of the custom element (used when the element has no corresponding ARIA attribute).

public string? AriaColSpan { get; set; }

AriaControlsElements

ElementInternals.g.cs

Gets or sets the default value of the ariaControlsElements ARIA property of the custom element (used when the element has no corresponding ARIA attribute).

public IReadOnlyList<Element>? AriaControlsElements { get; set; }

Gets or sets the default value of the ariaCurrent ARIA property of the custom element (used when the element has no corresponding ARIA attribute).

public string? AriaCurrent { get; set; }

AriaDescribedByElements

ElementInternals.g.cs

Gets or sets the default value of the ariaDescribedByElements ARIA property of the custom element (used when the element has no corresponding ARIA attribute).

public IReadOnlyList<Element>? AriaDescribedByElements { get; set; }

AriaDescription

ElementInternals.g.cs

Gets or sets the default value of the ariaDescription ARIA property of the custom element (used when the element has no corresponding ARIA attribute).

public string? AriaDescription { get; set; }

AriaDetailsElements

ElementInternals.g.cs

Gets or sets the default value of the ariaDetailsElements ARIA property of the custom element (used when the element has no corresponding ARIA attribute).

public IReadOnlyList<Element>? AriaDetailsElements { get; set; }

Gets or sets the default value of the ariaDisabled ARIA property of the custom element (used when the element has no corresponding ARIA attribute).

public string? AriaDisabled { get; set; }

AriaErrorMessageElements

ElementInternals.g.cs

Gets or sets the default value of the ariaErrorMessageElements ARIA property of the custom element (used when the element has no corresponding ARIA attribute).

public IReadOnlyList<Element>? AriaErrorMessageElements { get; set; }

Gets or sets the default value of the ariaExpanded ARIA property of the custom element (used when the element has no corresponding ARIA attribute).

public string? AriaExpanded { get; set; }

AriaFlowToElements

ElementInternals.g.cs

Gets or sets the default value of the ariaFlowToElements ARIA property of the custom element (used when the element has no corresponding ARIA attribute).

public IReadOnlyList<Element>? AriaFlowToElements { get; set; }

Gets or sets the default value of the ariaHasPopup ARIA property of the custom element (used when the element has no corresponding ARIA attribute).

public string? AriaHasPopup { get; set; }

Gets or sets the default value of the ariaHidden ARIA property of the custom element (used when the element has no corresponding ARIA attribute).

public string? AriaHidden { get; set; }

Gets or sets the default value of the ariaInvalid ARIA property of the custom element (used when the element has no corresponding ARIA attribute).

public string? AriaInvalid { get; set; }

AriaKeyShortcuts

ElementInternals.g.cs

Gets or sets the default value of the ariaKeyShortcuts ARIA property of the custom element (used when the element has no corresponding ARIA attribute).

public string? AriaKeyShortcuts { get; set; }

Gets or sets the default value of the ariaLabel ARIA property of the custom element (used when the element has no corresponding ARIA attribute).

public string? AriaLabel { get; set; }

AriaLabelledByElements

ElementInternals.g.cs

Gets or sets the default value of the ariaLabelledByElements ARIA property of the custom element (used when the element has no corresponding ARIA attribute).

public IReadOnlyList<Element>? AriaLabelledByElements { get; set; }

Gets or sets the default value of the ariaLevel ARIA property of the custom element (used when the element has no corresponding ARIA attribute).

public string? AriaLevel { get; set; }

Gets or sets the default value of the ariaLive ARIA property of the custom element (used when the element has no corresponding ARIA attribute).

public string? AriaLive { get; set; }

Gets or sets the default value of the ariaModal ARIA property of the custom element (used when the element has no corresponding ARIA attribute).

public string? AriaModal { get; set; }

Gets or sets the default value of the ariaMultiLine ARIA property of the custom element (used when the element has no corresponding ARIA attribute).

public string? AriaMultiLine { get; set; }

AriaMultiSelectable

ElementInternals.g.cs

Gets or sets the default value of the ariaMultiSelectable ARIA property of the custom element (used when the element has no corresponding ARIA attribute).

public string? AriaMultiSelectable { get; set; }

AriaOrientation

ElementInternals.g.cs

Gets or sets the default value of the ariaOrientation ARIA property of the custom element (used when the element has no corresponding ARIA attribute).

public string? AriaOrientation { get; set; }

AriaOwnsElements

ElementInternals.g.cs

Gets or sets the default value of the ariaOwnsElements ARIA property of the custom element (used when the element has no corresponding ARIA attribute).

public IReadOnlyList<Element>? AriaOwnsElements { get; set; }

AriaPlaceholder

ElementInternals.g.cs

Gets or sets the default value of the ariaPlaceholder ARIA property of the custom element (used when the element has no corresponding ARIA attribute).

public string? AriaPlaceholder { get; set; }

Gets or sets the default value of the ariaPosInSet ARIA property of the custom element (used when the element has no corresponding ARIA attribute).

public string? AriaPosInSet { get; set; }

Gets or sets the default value of the ariaPressed ARIA property of the custom element (used when the element has no corresponding ARIA attribute).

public string? AriaPressed { get; set; }

Gets or sets the default value of the ariaReadOnly ARIA property of the custom element (used when the element has no corresponding ARIA attribute).

public string? AriaReadOnly { get; set; }

Gets or sets the default value of the ariaRelevant ARIA property of the custom element (used when the element has no corresponding ARIA attribute).

public string? AriaRelevant { get; set; }

Gets or sets the default value of the ariaRequired ARIA property of the custom element (used when the element has no corresponding ARIA attribute).

public string? AriaRequired { get; set; }

AriaRoleDescription

ElementInternals.g.cs

Gets or sets the default value of the ariaRoleDescription ARIA property of the custom element (used when the element has no corresponding ARIA attribute).

public string? AriaRoleDescription { get; set; }

Gets or sets the default value of the ariaRowCount ARIA property of the custom element (used when the element has no corresponding ARIA attribute).

public string? AriaRowCount { get; set; }

Gets or sets the default value of the ariaRowIndex ARIA property of the custom element (used when the element has no corresponding ARIA attribute).

public string? AriaRowIndex { get; set; }

AriaRowIndexText

ElementInternals.g.cs

Gets or sets the default value of the ariaRowIndexText ARIA property of the custom element (used when the element has no corresponding ARIA attribute).

public string? AriaRowIndexText { get; set; }

Gets or sets the default value of the ariaRowSpan ARIA property of the custom element (used when the element has no corresponding ARIA attribute).

public string? AriaRowSpan { get; set; }

Gets or sets the default value of the ariaSelected ARIA property of the custom element (used when the element has no corresponding ARIA attribute).

public string? AriaSelected { get; set; }

Gets or sets the default value of the ariaSetSize ARIA property of the custom element (used when the element has no corresponding ARIA attribute).

public string? AriaSetSize { get; set; }

Gets or sets the default value of the ariaSort ARIA property of the custom element (used when the element has no corresponding ARIA attribute).

public string? AriaSort { get; set; }

Gets or sets the default value of the ariaValueMax ARIA property of the custom element (used when the element has no corresponding ARIA attribute).

public string? AriaValueMax { get; set; }

Gets or sets the default value of the ariaValueMin ARIA property of the custom element (used when the element has no corresponding ARIA attribute).

public string? AriaValueMin { get; set; }

Gets or sets the default value of the ariaValueNow ARIA property of the custom element (used when the element has no corresponding ARIA attribute).

public string? AriaValueNow { get; set; }

Gets or sets the default value of the ariaValueText ARIA property of the custom element (used when the element has no corresponding ARIA attribute).

public string? AriaValueText { get; set; }

https://html.spec.whatwg.org/multipage/custom-elements.html#dom-elementinternals-form

public HtmlFormElement? Form { get; }

https://html.spec.whatwg.org/multipage/forms.html#dom-elementinternals-labels

public NodeList Labels { get; }

Gets or sets the default value of the role ARIA property of the custom element (used when the element has no corresponding ARIA attribute).

public string? Role { get; set; }

https://html.spec.whatwg.org/multipage/custom-elements.html#dom-elementinternals-shadowroot

public ShadowRoot? ShadowRoot { get; }

https://html.spec.whatwg.org/multipage/custom-elements.html#dom-elementinternals-states

public CustomStateSet States { get; }

ValidationMessage

ElementInternals.cs

https://html.spec.whatwg.org/multipage/custom-elements.html#dom-elementinternals-validationmessage

public string ValidationMessage { get; }

https://html.spec.whatwg.org/multipage/custom-elements.html#dom-elementinternals-validity

public ValidityState Validity { get; }

https://html.spec.whatwg.org/multipage/custom-elements.html#dom-elementinternals-willvalidate

public bool WillValidate { get; }

Methods

NameDescription
CheckValidity()https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#dom-elementinternals-checkvalidity
ReportValidity()https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#dom-elementinternals-reportvalidity
SetFormValue(FileOrStringOrFormData?)https://html.spec.whatwg.org/multipage/custom-elements.html#dom-elementinternals-setformvalue
SetFormValue(FileOrStringOrFormData?, FileOrStringOrFormData?)https://html.spec.whatwg.org/multipage/custom-elements.html#dom-elementinternals-setformvalue
SetValidity(ValidityStateFlags?, string?, HtmlElement?)https://html.spec.whatwg.org/multipage/custom-elements.html#dom-elementinternals-setvalidity

CheckValidity()

ElementInternals.cs

https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#dom-elementinternals-checkvalidity

public bool CheckValidity()

ReportValidity()

ElementInternals.cs

https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#dom-elementinternals-reportvalidity

public bool ReportValidity()

SetFormValue overloads

SetFormValue(FileOrStringOrFormData?)

ElementInternals.cs

https://html.spec.whatwg.org/multipage/custom-elements.html#dom-elementinternals-setformvalue

public void SetFormValue(FileOrStringOrFormData? value)

SetFormValue(FileOrStringOrFormData?, FileOrStringOrFormData?)

ElementInternals.cs

https://html.spec.whatwg.org/multipage/custom-elements.html#dom-elementinternals-setformvalue

public void SetFormValue(FileOrStringOrFormData? value, FileOrStringOrFormData? state)

SetValidity(ValidityStateFlags?, string?, HtmlElement?)

ElementInternals.cs

https://html.spec.whatwg.org/multipage/custom-elements.html#dom-elementinternals-setvalidity

public void SetValidity(ValidityStateFlags? flags = null, string? message = null, HtmlElement? anchor = null)