-module(attr). -compile([no_auto_import, nowarn_unused_vars, nowarn_unused_function, nowarn_nomatch, inline]). -define(FILEPATH, "src/attr.gleam"). -export([aria/2, accept/1, accept_charset/1, accesskey/1, action/1, align/1, allow/1, alpha/1, alt/1, as_/1, async/1, autocapitalize/1, autocomplete/1, autoplay/1, background/1, bgcolor/1, border/1, capture/1, charset/1, checked/1, cite/1, class/1, color/1, colorspace/1, cols/1, colspan/1, content/1, contenteditable/1, controls/1, coords/1, crossorigin/1, csp/1, data/1, datetime/1, decoding/1, default/1, defer/1, dir/1, dirname/1, disabled/1, download/1, draggable/1, enctype/1, enterkeyhint/1, elementtiming/1, fetchpriority/1, for/1, form/1, formaction/1, formenctype/1, formmethod/1, formnovalidate/1, formtarget/1, headers/1, height/1, hidden/1, high/1, href/1, hreflang/1, http_equiv/1, id/1, integrity/1, inputmode/1, ismap/1, itemprop/1, kind/1, label/1, lang/1, language/1, loading/1, list/1, loop/1, low/1, max/1, maxlength/1, minlength/1, media/1, method/1, min/1, multiple/1, muted/1, name/1, novalidate/1, open/1, optimum/1, pattern/1, ping/1, placeholder/1, playsinline/1, poster/1, preload/1, readonly/1, referrerpolicy/1, rel/1, required/1, reversed/1, role/1, rows/1, rowspan/1, sandbox/1, scope/1, selected/1, shape/1, size/1, sizes/1, slot/1, span/1, spellcheck/1, src/1, srcdoc/1, srclang/1, srcset/1, start/1, step/1, style/1, summary/1, tabindex/1, target/1, title/1, translate/1, type_/1, usemap/1, value/1, width/1, wrap/1]). -if(?OTP_RELEASE >= 27). -define(MODULEDOC(Str), -moduledoc(Str)). -define(DOC(Str), -doc(Str)). -else. -define(MODULEDOC(Str), -compile([])). -define(DOC(Str), -compile([])). -endif. ?MODULEDOC( " Element creation functions scraped from https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Attributes\n" " This list automatically excludes any elements or attributes that are deprecated\n" ). -file("src/attr.gleam", 8). -spec aria(binary(), EKC) -> {binary(), EKC}. aria(Name, Value) -> mellie:attribute(<<"aria-"/utf8, Name/binary>>, Value). -file("src/attr.gleam", 13). ?DOC(" List of types the server accepts, typically a file type.\n"). -spec accept(EKE) -> {binary(), EKE}. accept(Value) -> mellie:attribute(<<"accept"/utf8>>, Value). -file("src/attr.gleam", 18). ?DOC(" The character set, which if provided must be \"UTF-8\" .\n"). -spec accept_charset(EKG) -> {binary(), EKG}. accept_charset(Value) -> mellie:attribute(<<"accept-charset"/utf8>>, Value). -file("src/attr.gleam", 23). ?DOC(" Keyboard shortcut to activate or add focus to the element.\n"). -spec accesskey(EKI) -> {binary(), EKI}. accesskey(Value) -> mellie:attribute(<<"accesskey"/utf8>>, Value). -file("src/attr.gleam", 28). ?DOC(" The URI of a program that processes the information submitted via the form.\n"). -spec action(EKK) -> {binary(), EKK}. action(Value) -> mellie:attribute(<<"action"/utf8>>, Value). -file("src/attr.gleam", 33). ?DOC(" Specifies the horizontal alignment of the element.\n"). -spec align(EKM) -> {binary(), EKM}. align(Value) -> mellie:attribute(<<"align"/utf8>>, Value). -file("src/attr.gleam", 38). ?DOC(" Specifies a feature-policy for the iframe.\n"). -spec allow(EKO) -> {binary(), EKO}. allow(Value) -> mellie:attribute(<<"allow"/utf8>>, Value). -file("src/attr.gleam", 43). ?DOC(" Allow the user to select a color's opacity on a type=\"color\" input.\n"). -spec alpha(EKQ) -> {binary(), EKQ}. alpha(Value) -> mellie:attribute(<<"alpha"/utf8>>, Value). -file("src/attr.gleam", 48). ?DOC(" Alternative text in case an image can't be displayed.\n"). -spec alt(EKS) -> {binary(), EKS}. alt(Value) -> mellie:attribute(<<"alt"/utf8>>, Value). -file("src/attr.gleam", 53). ?DOC(" Specifies the type of content being loaded by the link.\n"). -spec as_(EKU) -> {binary(), EKU}. as_(Value) -> mellie:attribute(<<"as"/utf8>>, Value). -file("src/attr.gleam", 58). ?DOC(" Executes the script asynchronously.\n"). -spec async(EKW) -> {binary(), EKW}. async(Value) -> mellie:attribute(<<"async"/utf8>>, Value). -file("src/attr.gleam", 63). ?DOC(" Sets whether input is automatically capitalized when entered by user\n"). -spec autocapitalize(EKY) -> {binary(), EKY}. autocapitalize(Value) -> mellie:attribute(<<"autocapitalize"/utf8>>, Value). -file("src/attr.gleam", 68). ?DOC(" Indicates whether controls in this form can by default have their values automatically completed by the browser.\n"). -spec autocomplete(ELA) -> {binary(), ELA}. autocomplete(Value) -> mellie:attribute(<<"autocomplete"/utf8>>, Value). -file("src/attr.gleam", 73). ?DOC(" The audio or video should play as soon as possible.\n"). -spec autoplay(ELC) -> {binary(), ELC}. autoplay(Value) -> mellie:attribute(<<"autoplay"/utf8>>, Value). -file("src/attr.gleam", 78). ?DOC(" Specifies the URL of an image file. Note: Although browsers and email clients may still support this attribute, it is obsolete. Use CSS background-image instead.\n"). -spec background(ELE) -> {binary(), ELE}. background(Value) -> mellie:attribute(<<"background"/utf8>>, Value). -file("src/attr.gleam", 83). ?DOC(" Background color of the element. Note: This is a legacy attribute. Please use the CSS background-color property instead.\n"). -spec bgcolor(ELG) -> {binary(), ELG}. bgcolor(Value) -> mellie:attribute(<<"bgcolor"/utf8>>, Value). -file("src/attr.gleam", 88). ?DOC(" The border width. Note: This is a legacy attribute. Please use the CSS border property instead.\n"). -spec border(ELI) -> {binary(), ELI}. border(Value) -> mellie:attribute(<<"border"/utf8>>, Value). -file("src/attr.gleam", 93). ?DOC(" From the Media Capture specification , specifies a new file can be captured.\n"). -spec capture(ELK) -> {binary(), ELK}. capture(Value) -> mellie:attribute(<<"capture"/utf8>>, Value). -file("src/attr.gleam", 98). ?DOC(" Declares the character encoding of the page or script.\n"). -spec charset(ELM) -> {binary(), ELM}. charset(Value) -> mellie:attribute(<<"charset"/utf8>>, Value). -file("src/attr.gleam", 103). ?DOC(" Indicates whether the element should be checked on page load.\n"). -spec checked(ELO) -> {binary(), ELO}. checked(Value) -> mellie:attribute(<<"checked"/utf8>>, Value). -file("src/attr.gleam", 108). ?DOC(" Contains a URI which points to the source of the quote or change.\n"). -spec cite(ELQ) -> {binary(), ELQ}. cite(Value) -> mellie:attribute(<<"cite"/utf8>>, Value). -file("src/attr.gleam", 113). ?DOC(" Often used with CSS to style elements with common properties.\n"). -spec class(ELS) -> {binary(), ELS}. class(Value) -> mellie:attribute(<<"class"/utf8>>, Value). -file("src/attr.gleam", 118). ?DOC(" This attribute sets the text color using either a named color or a color specified in the hexadecimal #RRGGBB format. Note: This is a legacy attribute. Please use the CSS color property instead.\n"). -spec color(ELU) -> {binary(), ELU}. color(Value) -> mellie:attribute(<<"color"/utf8>>, Value). -file("src/attr.gleam", 123). ?DOC(" Defines the color space that is used by a type=\"color\" input.\n"). -spec colorspace(ELW) -> {binary(), ELW}. colorspace(Value) -> mellie:attribute(<<"colorspace"/utf8>>, Value). -file("src/attr.gleam", 128). ?DOC(" Defines the number of columns in a textarea.\n"). -spec cols(ELY) -> {binary(), ELY}. cols(Value) -> mellie:attribute(<<"cols"/utf8>>, Value). -file("src/attr.gleam", 133). ?DOC(" The colspan attribute defines the number of columns a cell should span.\n"). -spec colspan(EMA) -> {binary(), EMA}. colspan(Value) -> mellie:attribute(<<"colspan"/utf8>>, Value). -file("src/attr.gleam", 138). ?DOC(" A value associated with http-equiv or name depending on the context.\n"). -spec content(EMC) -> {binary(), EMC}. content(Value) -> mellie:attribute(<<"content"/utf8>>, Value). -file("src/attr.gleam", 143). ?DOC(" Indicates whether the element's content is editable.\n"). -spec contenteditable(EME) -> {binary(), EME}. contenteditable(Value) -> mellie:attribute(<<"contenteditable"/utf8>>, Value). -file("src/attr.gleam", 148). ?DOC(" Indicates whether the browser should show playback controls to the user.\n"). -spec controls(EMG) -> {binary(), EMG}. controls(Value) -> mellie:attribute(<<"controls"/utf8>>, Value). -file("src/attr.gleam", 153). ?DOC(" A set of values specifying the coordinates of the hot-spot region.\n"). -spec coords(EMI) -> {binary(), EMI}. coords(Value) -> mellie:attribute(<<"coords"/utf8>>, Value). -file("src/attr.gleam", 158). ?DOC(" How the element handles cross-origin requests\n"). -spec crossorigin(EMK) -> {binary(), EMK}. crossorigin(Value) -> mellie:attribute(<<"crossorigin"/utf8>>, Value). -file("src/attr.gleam", 163). ?DOC(" Specifies the Content Security Policy that an embedded document must agree to enforce upon itself.\n"). -spec csp(EMM) -> {binary(), EMM}. csp(Value) -> mellie:attribute(<<"csp"/utf8>>, Value). -file("src/attr.gleam", 168). ?DOC(" Specifies the URL of the resource.\n"). -spec data(EMO) -> {binary(), EMO}. data(Value) -> mellie:attribute(<<"data"/utf8>>, Value). -file("src/attr.gleam", 173). ?DOC(" Indicates the date and time associated with the element.\n"). -spec datetime(EMQ) -> {binary(), EMQ}. datetime(Value) -> mellie:attribute(<<"datetime"/utf8>>, Value). -file("src/attr.gleam", 178). ?DOC(" Indicates the preferred method to decode the image.\n"). -spec decoding(EMS) -> {binary(), EMS}. decoding(Value) -> mellie:attribute(<<"decoding"/utf8>>, Value). -file("src/attr.gleam", 183). ?DOC(" Indicates that the track should be enabled unless the user's preferences indicate something different.\n"). -spec default(EMU) -> {binary(), EMU}. default(Value) -> mellie:attribute(<<"default"/utf8>>, Value). -file("src/attr.gleam", 188). ?DOC(" Indicates that the script should be executed after the page has been parsed.\n"). -spec defer(EMW) -> {binary(), EMW}. defer(Value) -> mellie:attribute(<<"defer"/utf8>>, Value). -file("src/attr.gleam", 193). ?DOC(" Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)\n"). -spec dir(EMY) -> {binary(), EMY}. dir(Value) -> mellie:attribute(<<"dir"/utf8>>, Value). -file("src/attr.gleam", 197). -spec dirname(ENA) -> {binary(), ENA}. dirname(Value) -> mellie:attribute(<<"dirname"/utf8>>, Value). -file("src/attr.gleam", 202). ?DOC(" Indicates whether the user can interact with the element.\n"). -spec disabled(ENC) -> {binary(), ENC}. disabled(Value) -> mellie:attribute(<<"disabled"/utf8>>, Value). -file("src/attr.gleam", 207). ?DOC(" Indicates that the hyperlink is to be used for downloading a resource.\n"). -spec download(ENE) -> {binary(), ENE}. download(Value) -> mellie:attribute(<<"download"/utf8>>, Value). -file("src/attr.gleam", 212). ?DOC(" Defines whether the element can be dragged.\n"). -spec draggable(ENG) -> {binary(), ENG}. draggable(Value) -> mellie:attribute(<<"draggable"/utf8>>, Value). -file("src/attr.gleam", 217). ?DOC(" Defines the content type of the form data when the method is POST.\n"). -spec enctype(ENI) -> {binary(), ENI}. enctype(Value) -> mellie:attribute(<<"enctype"/utf8>>, Value). -file("src/attr.gleam", 222). ?DOC(" The enterkeyhint specifies what action label (or icon) to present for the enter key on virtual keyboards. The attribute can be used with form controls (such as the value of textarea elements), or in elements in an editing host (e.g., using contenteditable attribute).\n"). -spec enterkeyhint(ENK) -> {binary(), ENK}. enterkeyhint(Value) -> mellie:attribute(<<"enterkeyhint"/utf8>>, Value). -file("src/attr.gleam", 227). ?DOC(" Indicates that an element is flagged for tracking by PerformanceObserver objects using the \"element\" type. For more details, see the PerformanceElementTiming interface.\n"). -spec elementtiming(ENM) -> {binary(), ENM}. elementtiming(Value) -> mellie:attribute(<<"elementtiming"/utf8>>, Value). -file("src/attr.gleam", 232). ?DOC(" Signals that fetching a particular image early in the loading process has more or less impact on user experience than a browser can reasonably infer when assigning an internal priority.\n"). -spec fetchpriority(ENO) -> {binary(), ENO}. fetchpriority(Value) -> mellie:attribute(<<"fetchpriority"/utf8>>, Value). -file("src/attr.gleam", 237). ?DOC(" Describes elements which belongs to this one.\n"). -spec for(ENQ) -> {binary(), ENQ}. for(Value) -> mellie:attribute(<<"for"/utf8>>, Value). -file("src/attr.gleam", 242). ?DOC(" Indicates the form that is the owner of the element.\n"). -spec form(ENS) -> {binary(), ENS}. form(Value) -> mellie:attribute(<<"form"/utf8>>, Value). -file("src/attr.gleam", 247). ?DOC(" Indicates the action of the element, overriding the action defined in the