Skip to content

Instantly share code, notes, and snippets.

@Kaleidea
Created November 9, 2021 14:43
Show Gist options
  • Save Kaleidea/ffa2f1876272add8ce7ec016e3c945a9 to your computer and use it in GitHub Desktop.
Save Kaleidea/ffa2f1876272add8ce7ec016e3c945a9 to your computer and use it in GitHub Desktop.
<search> element specification draft with <form> functionality

Specification draft

Categories:

  • Flow content.
  • Palpable content.

Contexts in which this element can be used:

  • Where flow content is expected, but not within another search or form element.

Content model:

  • Flow content, but with no search or form element descendants.

Tag omission in text/html:

  • Neither tag is omissible.

Content attributes:

  • Global attributes
  • form attributes
  • action — URL to use for form submission
    • unspecified to disable implicit form submission upon pressing ENTER.
    • empty string or whitespace only to use the URL of the form's document (the URL's query part is replaced).

DOM interface:

TBD: explainer + example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment