-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extend autocomplete
attribute values
#302
Comments
That specification is indeed pretty awkward, but I would prefer to avoid "just using a string". In this case, it seems we could start with a fairly simple model such as If you are willing, don't hesitate to submit a (potentially WIP) implementation ! There are instructions on how to add/change attributes in https://github.com/ocsigen/tyxml/blob/master/docs/Contributing.md . :) |
Merged ! |
CHANGES: * Update for OCaml 5.0 and drop support for OCaml 4.2.0 (ocsigen/tyxml#312 by @rr0gi) * Add additional variants to `linktype` for the `rel` attribute (Leon @LogicalOverflow Vack) * Expand options for `autocomplete` attribute on `<input>` elements (ocsigen/tyxml#302 by Aron @aronerben Erben) * Fix the SVG element `<animate>` (by the way, deprecate `animation` et al. in favor of `animate` et al.) (ocsigen/tyxml#306 by Idir @ilankri Lankri) * Add support for `dialog` element and `onclose` attribute (ocsigen/tyxml#301 by Julien Sagot) * Add an escape hatch for emitting attributes with non-standard names in jsx or ppx code (a leading `_` character on attribute name) (ocsigen/tyxml#295 Chas @cemerick Emerick) * Add support for `type` attribute on `<script>` elements (ocsigen/tyxml#293 by Ulrik @ulrikstrid Strid and Chas @cemerick Emerick) * Add svg `fill-rule` attribute (ocsigen/tyxml#294 by Eric @dedbox Griffis)
CHANGES: * Update for OCaml 5.0 and drop support for OCaml 4.2.0 (ocsigen/tyxml#312 by @rr0gi) * Add additional variants to `linktype` for the `rel` attribute (Leon @LogicalOverflow Vack) * Expand options for `autocomplete` attribute on `<input>` elements (ocsigen/tyxml#302 by Aron @aronerben Erben) * Fix the SVG element `<animate>` (by the way, deprecate `animation` et al. in favor of `animate` et al.) (ocsigen/tyxml#306 by Idir @ilankri Lankri) * Add support for `dialog` element and `onclose` attribute (ocsigen/tyxml#301 by Julien Sagot) * Add an escape hatch for emitting attributes with non-standard names in jsx or ppx code (a leading `_` character on attribute name) (ocsigen/tyxml#295 Chas @cemerick Emerick) * Add support for `type` attribute on `<script>` elements (ocsigen/tyxml#293 by Ulrik @ulrikstrid Strid and Chas @cemerick Emerick) * Add svg `fill-rule` attribute (ocsigen/tyxml#294 by Eric @dedbox Griffis)
Hello, thanks for this fantastic project!
Currently, the
autocomplete
attribute only supportson
andoff
. The spec lists many more options. It would be nice ifTyxml
supported those too! I don't know if this is already on the roadmap, or similar, so I decided to open this issue. :)Encoding all possibilities mentioned in the spec with types seems a bit tedious (as there seem to be named groups, special cases for hidden input fields, etc.). Maybe simply turning it into a
string
attribute is "good enough" (I don't know whatTyxml
's philosophy is here).Currently we've solved it by unsafely adding the attribute like so:
where
street_input
is some input field.The text was updated successfully, but these errors were encountered: