# Vote (``) An up/down vote over the server's two forms. The forms are the vote without JS (each posts its side; the server answers with a page); the element makes the round trip feel instant: it paints the press at once, posts it with fetch and reconciles with the server's tally. Self-registering, light DOM, no words of its own. ```html
``` Load the script as a module (deferred): the element reads its forms when it upgrades. ## The markup | where | what | notes | |---|---|---| | host `field` | the name of the input carrying the side | default `valeur` | | host `error` | the toast when the server gives no message | default `Your vote could not be saved.`: set it in the page's language | | each `
` | `action` (posted to), an input named `field`, one `