Expand description
Enums representing HTML elements, attributes and values.
These should be complete according to the HTML specifications, all
elements and all element-specific attributes should be represented,
in such a way that your form structure and values will always be
valid (assuming that you use the HtmlForm builder methods to set
up the form, else form structure validity is not checked). Note that
the values of the Constraint enum (mostly) represent HTML attributes
that cause client-side validation, when used server-side validation
is also performed. One exception is Constraint::Func(), which is
used for per-element server-side validation and is not serialized
as client-side attribute. Attributes in the Attr enum do not cause
value validation.
Enums§
- Attr
- An HTML attribute without validation behaviour. The list should be
complete and up-to-date with the latest HTML specifications. HTML
validity is checked when adding the attributes to the fields using
HtmlForm’s builder methods. - Autocomplete
- Value for
Attr::Autocomplete(). - Button
Type - Value for
Element::Button()to determinebuttonelement behaviour. - Constraint
- Constraints on
Fieldvalues, perform validation. - Element
- Form element types, each of which represent a different HTML element.
- Input
Type - Different input types, use with
Element::Input(). Used as value of thetypeattribute on an HTMLinputelement. - Method
- Form methods, correspond to
methodattribute values (note that these do not correspond to HTTP methods per se, see specs). - Select
Type - Value for
Element::Select()to determineselectelement behaviour. - Spellcheck
- Value for
Attr::Spellcheck()to determinetextareaspell checking behaviour. - Wrap
- Value for
Attr::Wrap()to determinetextareawrapping behaviour.