{ "tag_name": "button", "struct_name": "Button", "submodule_name": "forms", "mdn_link": "https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button", "has_global_attributes": true, "has_closing_tag": true, "attributes": [ { "name": "disabled", "description": "Whether the form control is disabled", "field_name": "disabled", "ty": "Bool" }, { "name": "form", "description": "Associates the element with a form element", "field_name": "form", "ty": "KString" }, { "name": "formaction", "description": "URL to use for form submission", "field_name": "form_action", "ty": "KString" }, { "name": "formenctype", "description": "Entry list encoding type to use for form submission", "field_name": "form_enctype", "ty": "KString" }, { "name": "formmethod", "description": "Variant to use for form submission", "field_name": "form_method", "ty": "KString" }, { "name": "formnovalidate", "description": "Bypass form control validation for form submission", "field_name": "form_no_validate", "ty": "Bool" }, { "name": "formtarget", "description": "Navigable for form submission", "field_name": "form_target", "ty": "KString" }, { "name": "name", "description": "Name of the element to use for form submission and in the form.elements API", "field_name": "name", "ty": "KString" }, { "name": "popovertarget", "description": "Targets a popover element to toggle, show, or hide", "field_name": "popovertarget", "ty": "KString" }, { "name": "popovertargetaction", "description": "Indicates whether a targeted popover element is to be toggled, shown, or hidden", "field_name": "popovertargetaction", "ty": "KString" }, { "name": "type", "description": "Type of button", "field_name": "type_", "ty": "KString" }, { "name": "value", "description": "Value to be used for form submission", "field_name": "value", "ty": "KString" }, { "name": "role", "description": "Describes the role(s) the current element plays in the context of the document.", "field_name": "role", "ty": "KString" }, { "name": "aria-activedescendant", "description": "Identifies the currently active element when DOM focus is on a composite widget, combobox, textbox, group, or application.", "field_name": "aria_active_descendant_element", "ty": "KString" }, { "name": "aria-atomic", "description": "Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute.", "field_name": "aria_atomic", "ty": "Bool" }, { "name": "aria-autocomplete", "description": "Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for a combobox, searchbox, or textbox and specifies how predictions would be presented if they were made.", "field_name": "aria_auto_complete", "ty": "KString" }, { "name": "aria-braillelabel", "description": "Defines a string value that labels the current element, which is intended to be converted into Braille. See related aria-label.", "field_name": "aria_braille_label", "ty": "KString" }, { "name": "aria-brailleroledescription", "description": "Defines a human-readable, author-localized abbreviated description for the role of an element, which is intended to be converted into Braille. See related aria-roledescription.", "field_name": "aria_braille_role_description", "ty": "KString" }, { "name": "aria-busy", "description": "Indicates an element is being modified and that assistive technologies could wait until the modifications are complete before exposing them to the user.", "field_name": "aria_busy", "ty": "Bool" }, { "name": "aria-checked", "description": "Indicates the current \"checked\" state of checkboxes, radio buttons, and other widgets. See related aria-pressed and aria-selected.", "field_name": "aria_checked", "ty": "KString" }, { "name": "aria-colindex", "description": "Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid. See related aria-colindextext, aria-colcount, and aria-colspan.", "field_name": "aria_col_index", "ty": "Integer" }, { "name": "aria-colindextext", "description": "Defines a human readable text alternative of aria-colindex. See related aria-rowindextext.", "field_name": "aria_col_index_text", "ty": "KString" }, { "name": "aria-colspan", "description": "Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid. See related aria-colindex and aria-rowspan.", "field_name": "aria_col_span", "ty": "Integer" }, { "name": "aria-controls", "description": "Identifies the element (or elements) whose contents or presence are controlled by the current element. See related aria-owns.", "field_name": "aria_controls_elements", "ty": "KString" }, { "name": "aria-current", "description": "Indicates the element that represents the current item within a container or set of related elements.", "field_name": "aria_current", "ty": "KString" }, { "name": "aria-describedby", "description": "Identifies the element (or elements) that describes the object. See related aria-labelledby and aria-description.", "field_name": "aria_described_by_elements", "ty": "KString" }, { "name": "aria-description", "description": "Defines a string value that describes or annotates the current element. See related aria-describedby.", "field_name": "aria_description", "ty": "KString" }, { "name": "aria-details", "description": "Identifies the element (or elements) that provide additional information related to the object. See related aria-describedby.", "field_name": "aria_details_elements", "ty": "KString" }, { "name": "aria-disabled", "description": "Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable. See related aria-hidden and aria-readonly.", "field_name": "aria_disabled", "ty": "Bool" }, { "name": "aria-dropeffect", "description": "[Deprecated in ARIA 1.1] Indicates what functions can be performed when a dragged object is released on the drop target.", "field_name": "aria_drop_effect", "ty": "KString" }, { "name": "aria-errormessage", "description": "Identifies the element (or elements) that provides an error message for an object. See related aria-invalid and aria-describedby.", "field_name": "aria_error_message_elements", "ty": "KString" }, { "name": "aria-expanded", "description": "Indicates whether a grouping element owned or controlled by this element is expanded or collapsed.", "field_name": "aria_expanded", "ty": "Bool" }, { "name": "aria-flowto", "description": "Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion, allows assistive technology to override the general default of reading in document source order.", "field_name": "aria_flow_to_elements", "ty": "KString" }, { "name": "aria-grabbed", "description": "[Deprecated in ARIA 1.1] Indicates an element's \"grabbed\" state in a drag-and-drop operation.", "field_name": "aria_grabbed", "ty": "Bool" }, { "name": "aria-haspopup", "description": "Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.", "field_name": "aria_has_popup", "ty": "KString" }, { "name": "aria-hidden", "description": "Indicates whether the element is exposed to an accessibility API. See related aria-disabled.", "field_name": "aria_hidden", "ty": "Bool" }, { "name": "aria-invalid", "description": "Indicates the entered value does not conform to the format expected by the application. See related aria-errormessage.", "field_name": "aria_invalid", "ty": "KString" }, { "name": "aria-keyshortcuts", "description": "Defines keyboard shortcuts that an author has implemented to activate or give focus to an element.", "field_name": "aria_key_shortcuts", "ty": "KString" }, { "name": "aria-label", "description": "Defines a string value that labels the current element. See related aria-labelledby.", "field_name": "aria_label", "ty": "KString" }, { "name": "aria-labelledby", "description": "Identifies the element (or elements) that labels the current element. See related aria-label and aria-describedby.", "field_name": "aria_labelled_by_elements", "ty": "KString" }, { "name": "aria-level", "description": "Defines the hierarchical level of an element within a structure.", "field_name": "aria_level", "ty": "Integer" }, { "name": "aria-live", "description": "Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region.", "field_name": "aria_live", "ty": "KString" }, { "name": "aria-orientation", "description": "Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous.", "field_name": "aria_orientation", "ty": "KString" }, { "name": "aria-owns", "description": "Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship between DOM elements where the DOM hierarchy cannot be used to represent the relationship. See related aria-controls.", "field_name": "aria_owns_elements", "ty": "KString" }, { "name": "aria-posinset", "description": "Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM. See related aria-setsize.", "field_name": "aria_pos_in_set", "ty": "Integer" }, { "name": "aria-pressed", "description": "Indicates the current \"pressed\" state of toggle buttons. See related aria-checked and aria-selected.", "field_name": "aria_pressed", "ty": "KString" }, { "name": "aria-readonly", "description": " Indicates that the element is not editable, but is otherwise operable. See related aria-disabled.", "field_name": "aria_read_only", "ty": "Bool" }, { "name": "aria-relevant", "description": "Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified. See related aria-atomic.", "field_name": "aria_relevant", "ty": "KString" }, { "name": "aria-required", "description": "Indicates that user input is required on the element before a form can be submitted.", "field_name": "aria_required", "ty": "Bool" }, { "name": "aria-roledescription", "description": "Defines a human-readable, author-localized description for the role of an element.", "field_name": "aria_role_description", "ty": "KString" }, { "name": "aria-rowindex", "description": "Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid. See related aria-rowindextext, aria-rowcount, and aria-rowspan.", "field_name": "aria_row_index", "ty": "Integer" }, { "name": "aria-rowindextext", "description": "Defines a human readable text alternative of aria-rowindex. See related aria-colindextext.", "field_name": "aria_row_index_text", "ty": "KString" }, { "name": "aria-rowspan", "description": "Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid. See related aria-rowindex and aria-colspan.", "field_name": "aria_row_span", "ty": "Integer" }, { "name": "aria-selected", "description": "Indicates the current \"selected\" state of various widgets. See related aria-checked and aria-pressed.", "field_name": "aria_selected", "ty": "Bool" }, { "name": "aria-setsize", "description": "Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM. See related aria-posinset.", "field_name": "aria_set_size", "ty": "Integer" }, { "name": "aria-valuemax", "description": "Defines the maximum allowed value for a range widget.", "field_name": "aria_value_max", "ty": "Float" }, { "name": "aria-valuemin", "description": "Defines the minimum allowed value for a range widget.", "field_name": "aria_value_min", "ty": "Float" }, { "name": "aria-valuetext", "description": "Defines the human readable text alternative of aria-valuenow for a range widget.", "field_name": "aria_value_text", "ty": "KString" } ], "dom_interface": "HTMLButtonElement", "content_categories": [ "Flow", "Phrasing", "Interactive", "Palpable" ], "permitted_child_elements": [ "Abbreviation", "Anchor", "Audio", "BidirectionalIsolate", "BidirectionalTextOverride", "Bold", "Button", "Canvas", "Cite", "Code", "Data", "DataList", "Definition", "DeletedText", "Embed", "Emphasis", "Iframe", "Image", "ImageMap", "ImageMapArea", "Input", "InsertedText", "Italic", "KeyboardInput", "Label", "LineBreak", "LineBreakOpportunity", "Link", "MarkText", "Meta", "Meter", "NoScript", "Object", "Output", "Picture", "Progress", "Quotation", "RubyAnnotation", "SampleOutput", "Script", "Select", "SideComment", "Slot", "Span", "StrikeThrough", "Strong", "SubScript", "SuperScript", "Template", "Text", "TextArea", "Time", "Underline", "Variable", "Video" ] }