MCPcopy Create free account
hub / github.com/attoparser/attoparser / HtmlNames

Class HtmlNames

src/main/java/org/attoparser/HtmlNames.java:37–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35 * @since 2.0.0
36 */
37final class HtmlNames {
38
39 // Set containing all the standard element names, for possible external reference
40 static final Set<String> ALL_STANDARD_ELEMENT_NAMES;
41 // Set containing all the standard attribute names, for possible external reference
42 static final Set<String> ALL_STANDARD_ATTRIBUTE_NAMES;
43
44
45
46 static {
47
48
49 final List<String> allStandardElementNamesAux = new ArrayList<String>(HtmlElements.ALL_STANDARD_ELEMENTS.size() + 3);
50 for (final HtmlElement element : HtmlElements.ALL_STANDARD_ELEMENTS) {
51 allStandardElementNamesAux.add(new String(element.name));
52 }
53 Collections.sort(allStandardElementNamesAux);
54 ALL_STANDARD_ELEMENT_NAMES =
55 Collections.unmodifiableSet(new LinkedHashSet<String>(allStandardElementNamesAux));
56
57
58 final List<String> allStandardAttributeNamesAux = new ArrayList<String>(
59 Arrays.asList(new String[]{
60 "abbr", "accept", "accept-charset", "accesskey", "action", "align", "alt", "archive",
61 "autocomplete", "autofocus", "autoplay", "axis", "border", "cellpadding", "cellspacing",
62 "challenge", "char", "charoff", "charset", "checked", "cite", "class", "classid",
63 "codebase", "codetype", "cols", "colspan", "command", "content", "contenteditable",
64 "contextmenu", "controls", "coords", "data", "datetime", "declare", "default",
65 "defer", "dir", "disabled", "draggable", "dropzone", "enctype", "for", "form",
66 "formaction", "formenctype", "formmethod", "formnovalidate", "formtarget",
67 "frame", "headers", "height", "hidden", "high", "href", "hreflang", "http-equiv",
68 "icon", "id", "ismap", "keytype", "kind", "label", "lang", "list", "longdesc",
69 "loop", "low", "max", "maxlength", "media", "method", "min", "multiple", "muted",
70 "name", "nohref", "novalidate", "onabort", "onafterprint", "onbeforeprint",
71 "onbeforeunload", "onblur", "oncanplay", "oncanplaythrough", "onchange",
72 "onclick", "oncontextmenu", "oncuechange", "ondblclick", "ondrag", "ondragend",
73 "ondragenter", "ondragleave", "ondragover", "ondragstart", "ondrop",
74 "ondurationchange", "onemptied", "onended", "onerror", "onfocus",
75 "onformchange", "onforminput", "onhaschange", "oninput", "oninvalid", "onkeydown",
76 "onkeypress", "onkeyup", "onload", "onloadeddata", "onloadedmetadata",
77 "onloadstart", "onmessage", "onmousedown", "onmousemove", "onmouseout", "onmouseover",
78 "onmouseup", "onmousewheel", "onoffline", "ononline", "onpagehide", "onpageshow",
79 "onpause", "onplay", "onplaying", "onpopstate", "onprogress", "onratechange",
80 "onredo", "onreset", "onresize", "onscroll", "onseeked", "onseeking",
81 "onselect", "onstalled", "onstorage", "onsubmit", "onsuspend", "ontimeupdate",
82 "onundo", "onunload", "onvolumechange", "onwaiting", "open", "optimum", "pattern",
83 "placeholder", "poster", "preload", "profile", "radiogroup", "readonly", "rel",
84 "required", "rev", "rows", "rowspan", "rules", "scheme", "scope", "selected",
85 "shape", "size", "span", "spellcheck", "src", "srclang", "standby", "style", "summary",
86 "tabindex", "title", "translate", "type", "usemap", "valign", "value", "valuetype",
87 "width", "xml:lang", "xml:space", "xmlns"
88 }));
89 Collections.sort(allStandardAttributeNamesAux);
90 ALL_STANDARD_ATTRIBUTE_NAMES =
91 Collections.unmodifiableSet(new LinkedHashSet<String>(allStandardAttributeNamesAux));
92
93 }
94

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected