crossfoot-inline 0.3.0

Inline XBRL 1.1 document sets and the transformation registry (Crossfoot)
Documentation
//! Generated by bench/scripts/gen_xhtml_attrs.py from the Inline XBRL 1.1 XHTML schema
//! (xhtml-inlinexbrl-1_1.xsd, XHTML 1.1 modules, redefines applied). Do not edit.

/// The no-namespace attributes an XHTML element accepts, or `None` for an element the
/// schema does not declare (or that accepts any attribute).
pub(crate) fn allowed(element: &str) -> Option<&'static [&'static str]> {
    Some(match element {
        "a" => &[
            "accesskey",
            "charset",
            "class",
            "coords",
            "dir",
            "href",
            "hreflang",
            "id",
            "onblur",
            "onfocus",
            "rel",
            "rev",
            "shape",
            "style",
            "tabindex",
            "title",
            "type",
        ],
        "abbr" => &["class", "dir", "id", "style", "title"],
        "acronym" => &["class", "dir", "id", "style", "title"],
        "address" => &["class", "dir", "id", "style", "title"],
        "area" => &[
            "accesskey",
            "alt",
            "class",
            "coords",
            "dir",
            "href",
            "id",
            "nohref",
            "onblur",
            "onfocus",
            "shape",
            "style",
            "tabindex",
            "title",
        ],
        "b" => &["class", "dir", "id", "style", "title"],
        "base" => &["href"],
        "bdo" => &["class", "dir", "id", "title"],
        "big" => &["class", "dir", "id", "style", "title"],
        "blockquote" => &["cite", "class", "dir", "id", "style", "title"],
        "body" => &["class", "dir", "id", "onload", "onunload", "style", "title"],
        "br" => &["class", "id", "title"],
        "button" => &[
            "accesskey",
            "class",
            "dir",
            "disabled",
            "id",
            "name",
            "onblur",
            "onfocus",
            "style",
            "tabindex",
            "title",
            "type",
            "value",
        ],
        "caption" => &["class", "dir", "id", "style", "title"],
        "cite" => &["class", "dir", "id", "style", "title"],
        "code" => &["class", "dir", "id", "style", "title"],
        "col" => &[
            "align", "char", "charoff", "class", "dir", "id", "span", "style", "title", "valign",
            "width",
        ],
        "colgroup" => &[
            "align", "char", "charoff", "class", "dir", "id", "span", "style", "title", "valign",
            "width",
        ],
        "dd" => &["class", "dir", "id", "style", "title"],
        "del" => &["cite", "class", "datetime", "dir", "id", "style", "title"],
        "dfn" => &["class", "dir", "id", "style", "title"],
        "div" => &["class", "dir", "id", "style", "title"],
        "dl" => &["class", "dir", "id", "style", "title"],
        "dt" => &["class", "dir", "id", "style", "title"],
        "em" => &["class", "dir", "id", "style", "title"],
        "fieldset" => &["class", "dir", "id", "style", "title"],
        "form" => &[
            "accept",
            "accept-charset",
            "action",
            "class",
            "dir",
            "enctype",
            "id",
            "method",
            "onreset",
            "onsubmit",
            "style",
            "title",
        ],
        "h1" => &["class", "dir", "id", "style", "title"],
        "h2" => &["class", "dir", "id", "style", "title"],
        "h3" => &["class", "dir", "id", "style", "title"],
        "h4" => &["class", "dir", "id", "style", "title"],
        "h5" => &["class", "dir", "id", "style", "title"],
        "h6" => &["class", "dir", "id", "style", "title"],
        "head" => &["dir", "profile"],
        "hr" => &["class", "dir", "id", "style", "title"],
        "html" => &["dir", "version"],
        "i" => &["class", "dir", "id", "style", "title"],
        "img" => &[
            "alt", "class", "dir", "height", "id", "ismap", "longdesc", "src", "style", "title",
            "usemap", "width",
        ],
        "input" => &[
            "accept",
            "accesskey",
            "alt",
            "checked",
            "class",
            "dir",
            "disabled",
            "id",
            "ismap",
            "maxlength",
            "name",
            "onblur",
            "onchange",
            "onfocus",
            "onselect",
            "readonly",
            "size",
            "src",
            "style",
            "tabindex",
            "title",
            "type",
            "usemap",
            "value",
        ],
        "ins" => &["cite", "class", "datetime", "dir", "id", "style", "title"],
        "kbd" => &["class", "dir", "id", "style", "title"],
        "label" => &[
            "accesskey",
            "class",
            "dir",
            "for",
            "id",
            "onblur",
            "onfocus",
            "style",
            "title",
        ],
        "legend" => &["accesskey", "class", "dir", "id", "style", "title"],
        "li" => &["class", "dir", "id", "style", "title"],
        "link" => &[
            "charset", "class", "dir", "href", "hreflang", "id", "media", "rel", "rev", "style",
            "title", "type",
        ],
        "map" => &["class", "dir", "id", "title"],
        "meta" => &["content", "dir", "http-equiv", "name", "scheme"],
        "noscript" => &["class", "dir", "id", "style", "title"],
        "object" => &[
            "archive", "class", "classid", "codebase", "codetype", "data", "declare", "dir",
            "height", "id", "name", "standby", "style", "tabindex", "title", "type", "usemap",
            "width",
        ],
        "ol" => &["class", "dir", "id", "style", "title"],
        "optgroup" => &["class", "dir", "disabled", "id", "label", "style", "title"],
        "option" => &[
            "class", "dir", "disabled", "id", "label", "selected", "style", "title", "value",
        ],
        "p" => &["class", "dir", "id", "style", "title"],
        "param" => &["id", "name", "type", "value", "valuetype"],
        "pre" => &["class", "dir", "id", "style", "title"],
        "q" => &["cite", "class", "dir", "id", "style", "title"],
        "rb" => &[],
        "rp" => &[],
        "rt" => &[],
        "ruby" => &[],
        "samp" => &["class", "dir", "id", "style", "title"],
        "script" => &["charset", "defer", "src", "type"],
        "select" => &[
            "class", "dir", "disabled", "id", "multiple", "name", "onblur", "onchange", "onfocus",
            "size", "style", "tabindex", "title",
        ],
        "small" => &["class", "dir", "id", "style", "title"],
        "span" => &["class", "dir", "id", "style", "title"],
        "strong" => &["class", "dir", "id", "style", "title"],
        "style" => &["dir", "media", "title", "type"],
        "sub" => &["class", "dir", "id", "style", "title"],
        "sup" => &["class", "dir", "id", "style", "title"],
        "table" => &[
            "border",
            "cellpadding",
            "cellspacing",
            "class",
            "dir",
            "frame",
            "id",
            "rules",
            "style",
            "summary",
            "title",
            "width",
        ],
        "tbody" => &[
            "align", "char", "charoff", "class", "dir", "id", "style", "title", "valign",
        ],
        "td" => &[
            "abbr", "align", "axis", "char", "charoff", "class", "colspan", "dir", "headers", "id",
            "rowspan", "scope", "style", "title", "valign",
        ],
        "textarea" => &[
            "accesskey",
            "class",
            "cols",
            "dir",
            "disabled",
            "id",
            "name",
            "onblur",
            "onchange",
            "onfocus",
            "onselect",
            "readonly",
            "rows",
            "style",
            "tabindex",
            "title",
        ],
        "tfoot" => &[
            "align", "char", "charoff", "class", "dir", "id", "style", "title", "valign",
        ],
        "th" => &[
            "abbr", "align", "axis", "char", "charoff", "class", "colspan", "dir", "headers", "id",
            "rowspan", "scope", "style", "title", "valign",
        ],
        "thead" => &[
            "align", "char", "charoff", "class", "dir", "id", "style", "title", "valign",
        ],
        "title" => &["dir"],
        "tr" => &[
            "align", "char", "charoff", "class", "dir", "id", "style", "title", "valign",
        ],
        "tt" => &["class", "dir", "id", "style", "title"],
        "ul" => &["class", "dir", "id", "style", "title"],
        "var" => &["class", "dir", "id", "style", "title"],
        _ => return None,
    })
}