0 | ||| Note: only currently valid attributes as per [MDN website][1] are listed.
1 | ||| Experimental or deprecated attributes are on purpose not available.
2 | |||
3 | ||| [1]: https://developer.mozilla.org/docs/Web/HTML/Reference/Elements
13 | %hide Language.Reflection.TT.Name
16 | %language ElabReflection
18 | ||| Escaped attribute value.
19 | |||
20 | ||| The constructor is not exported. Escaped attribute values can only be
21 | ||| created using the `escape` function.
22 | export
33 | ||| Escapes a string for use as an attribute value.
34 | |||
35 | ||| The following characters are escaped: '"', '\'', '&' and '<'.
36 | ||| This function is the only way to construct an `EscapedValue` as the
37 | ||| `EscapedValue` constructor is kept private.
38 | export
41 | where
50 | ||| HTML element attribute.
59 | ||| List the attributes' names
60 | |||
61 | ||| The names are provided as a standard `List` for simplicity.
62 | ||| Nevertheless, the list will not have any duplicate value as it derives
63 | ||| from a `FreshList`.
69 | ||| Attributes for a **a** element as per [MDN list][1].
70 | |||
71 | ||| [1]: https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/a
83 | ]
85 | ||| Attributes for an **area** element as per [MDN list][1].
86 | |||
87 | ||| [1]: https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/area
100 | ]
102 | ||| Attributes for an **audio** element as per [MDN list][1].
103 | |||
104 | ||| [1]: https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/audio
117 | ]
119 | ||| Attributes for a **base** element as per [MDN list][1].
120 | |||
121 | ||| [1]: https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/base
126 | ||| Attributes for a **blockquote** or **q** element as per [MDN list][1].
127 | |||
128 | ||| [1]: https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/blockquote
133 | ||| Attributes for a **button** element as per [MDN list][1].
134 | |||
135 | ||| [1]: https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/button
155 | ]
157 | ||| Attributes for a **canvas** element as per [MDN list][1].
158 | |||
159 | ||| [1]: https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/canvas
164 | ||| Attributes for a [**del**][1] or [**ins**][2] element.
165 | |||
166 | ||| [1]: https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/del
167 | ||| [2]: https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/ins
172 | ||| Attributes for a **col** element as per [MDN list][1].
173 | |||
174 | ||| [1]: https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/col
179 | ||| Attributes for a **details** element as per [MDN list][1].
180 | |||
181 | ||| [1]: https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/details
186 | ||| Attributes for a **dialgo** element as per [MDN list][1].
187 | |||
188 | ||| [1]: https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/dialog
193 | ||| Attributes for a **embed** element as per [MDN list][1].
194 | |||
195 | ||| [1]: https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/embed
200 | ||| Attributes for a **fieldset** element as per [MDN list][1].
201 | |||
202 | ||| [1]: https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/fieldset
207 | ||| Attributes for a **form** element as per [MDN list][1].
208 | |||
209 | ||| [1]: https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/form
213 | "accept-charset"
223 | ]
225 | ||| Global HTML attributes as per [MDN list][1].
226 | |||
227 | ||| Note: the experimental attributes are not included.
228 | ||| Also, the event attributes are not included as their use is discouraged as
229 | ||| per [MDN recommendations][1].
230 | |||
231 | ||| [1]: https://developer.mozilla.org/docs/Web/HTML/Reference/Global_attributes
267 | ]
282 | ]
301 | ]
303 | ||| List of attributes for the **input** element.
304 | |||
305 | ||| Note: some attributes specific to a given type of input could be missing.
343 | ]
345 | ||| Attributes for a **label** element as per [MDN list][1].
346 | |||
347 | ||| [1]: https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/label
371 | ]
381 | ]
396 | ]
407 | ]
415 | ]
428 | ]
436 | ]
456 | ]
469 | ]
485 | ]
494 | ]
502 | ]
512 | ]
534 | ]
544 | ]
558 | ]
577 | ]