//// Element creation functions scraped from https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Attributes //// This list automatically excludes any elements or attributes that are deprecated // This file is generated. Do not edit by hand import mellie pub fn aria(name, value) { mellie.attribute("aria-" <> name, value) } /// List of types the server accepts, typically a file type. pub fn accept(value) { mellie.attribute("accept", value) } /// The character set, which if provided must be "UTF-8" . pub fn accept_charset(value) { mellie.attribute("accept-charset", value) } /// Keyboard shortcut to activate or add focus to the element. pub fn accesskey(value) { mellie.attribute("accesskey", value) } /// The URI of a program that processes the information submitted via the form. pub fn action(value) { mellie.attribute("action", value) } /// Specifies the horizontal alignment of the element. pub fn align(value) { mellie.attribute("align", value) } /// Specifies a feature-policy for the iframe. pub fn allow(value) { mellie.attribute("allow", value) } /// Allow the user to select a color's opacity on a type="color" input. pub fn alpha(value) { mellie.attribute("alpha", value) } /// Alternative text in case an image can't be displayed. pub fn alt(value) { mellie.attribute("alt", value) } /// Specifies the type of content being loaded by the link. pub fn as_(value) { mellie.attribute("as", value) } /// Executes the script asynchronously. pub fn async(value) { mellie.attribute("async", value) } /// Sets whether input is automatically capitalized when entered by user pub fn autocapitalize(value) { mellie.attribute("autocapitalize", value) } /// Indicates whether controls in this form can by default have their values automatically completed by the browser. pub fn autocomplete(value) { mellie.attribute("autocomplete", value) } /// The audio or video should play as soon as possible. pub fn autoplay(value) { mellie.attribute("autoplay", value) } /// 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. pub fn background(value) { mellie.attribute("background", value) } /// Background color of the element. Note: This is a legacy attribute. Please use the CSS background-color property instead. pub fn bgcolor(value) { mellie.attribute("bgcolor", value) } /// The border width. Note: This is a legacy attribute. Please use the CSS border property instead. pub fn border(value) { mellie.attribute("border", value) } /// From the Media Capture specification , specifies a new file can be captured. pub fn capture(value) { mellie.attribute("capture", value) } /// Declares the character encoding of the page or script. pub fn charset(value) { mellie.attribute("charset", value) } /// Indicates whether the element should be checked on page load. pub fn checked(value) { mellie.attribute("checked", value) } /// Contains a URI which points to the source of the quote or change. pub fn cite(value) { mellie.attribute("cite", value) } /// Often used with CSS to style elements with common properties. pub fn class(value) { mellie.attribute("class", value) } /// 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. pub fn color(value) { mellie.attribute("color", value) } /// Defines the color space that is used by a type="color" input. pub fn colorspace(value) { mellie.attribute("colorspace", value) } /// Defines the number of columns in a textarea. pub fn cols(value) { mellie.attribute("cols", value) } /// The colspan attribute defines the number of columns a cell should span. pub fn colspan(value) { mellie.attribute("colspan", value) } /// A value associated with http-equiv or name depending on the context. pub fn content(value) { mellie.attribute("content", value) } /// Indicates whether the element's content is editable. pub fn contenteditable(value) { mellie.attribute("contenteditable", value) } /// Indicates whether the browser should show playback controls to the user. pub fn controls(value) { mellie.attribute("controls", value) } /// A set of values specifying the coordinates of the hot-spot region. pub fn coords(value) { mellie.attribute("coords", value) } /// How the element handles cross-origin requests pub fn crossorigin(value) { mellie.attribute("crossorigin", value) } /// Specifies the Content Security Policy that an embedded document must agree to enforce upon itself. pub fn csp(value) { mellie.attribute("csp", value) } /// Specifies the URL of the resource. pub fn data(value) { mellie.attribute("data", value) } /// Indicates the date and time associated with the element. pub fn datetime(value) { mellie.attribute("datetime", value) } /// Indicates the preferred method to decode the image. pub fn decoding(value) { mellie.attribute("decoding", value) } /// Indicates that the track should be enabled unless the user's preferences indicate something different. pub fn default(value) { mellie.attribute("default", value) } /// Indicates that the script should be executed after the page has been parsed. pub fn defer(value) { mellie.attribute("defer", value) } /// Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left) pub fn dir(value) { mellie.attribute("dir", value) } pub fn dirname(value) { mellie.attribute("dirname", value) } /// Indicates whether the user can interact with the element. pub fn disabled(value) { mellie.attribute("disabled", value) } /// Indicates that the hyperlink is to be used for downloading a resource. pub fn download(value) { mellie.attribute("download", value) } /// Defines whether the element can be dragged. pub fn draggable(value) { mellie.attribute("draggable", value) } /// Defines the content type of the form data when the method is POST. pub fn enctype(value) { mellie.attribute("enctype", value) } /// 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). pub fn enterkeyhint(value) { mellie.attribute("enterkeyhint", value) } /// Indicates that an element is flagged for tracking by PerformanceObserver objects using the "element" type. For more details, see the PerformanceElementTiming interface. pub fn elementtiming(value) { mellie.attribute("elementtiming", value) } /// 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. pub fn fetchpriority(value) { mellie.attribute("fetchpriority", value) } /// Describes elements which belongs to this one. pub fn for(value) { mellie.attribute("for", value) } /// Indicates the form that is the owner of the element. pub fn form(value) { mellie.attribute("form", value) } /// Indicates the action of the element, overriding the action defined in the