From c8f983f04a7b2c78ffc6c2450b7a71ff876e710c Mon Sep 17 00:00:00 2001 From: Kaleidea <74888177+Kaleidea@users.noreply.github.com> Date: Wed, 1 Dec 2021 12:16:59 +0100 Subject: [PATCH 01/26] Add to "Acknowledgements" --- source | 1 + 1 file changed, 1 insertion(+) diff --git a/source b/source index 1848f28ff2b..3a8d07fd865 100644 --- a/source +++ b/source @@ -127455,6 +127455,7 @@ INSERT INTERFACES HERE Ka-Sing Chou, Kagami Sascha Rosylight, Kai Hendry, + Kaleidea, Kamishetty Sreeja, 呂康豪 (KangHao Lu), Karl Dubost, From 4c289382bdc4a1f268928ebd6c6a2338912b46cd Mon Sep 17 00:00:00 2001 From: Kaleidea <74888177+Kaleidea@users.noreply.github.com> Date: Sun, 14 Nov 2021 22:00:50 +0100 Subject: [PATCH 02/26] Editorial: "form element pointer" consistency (add `data-x=""`) Changes: form element pointer -> form element pointer --- source | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/source b/source index 3a8d07fd865..49c0f6fc1da 100644 --- a/source +++ b/source @@ -115385,7 +115385,7 @@ document.body.appendChild(text); quirks mode
  • The association between form controls and forms that aren't their nearest form - element ancestor (use of the form element pointer in the parser)
  • + element ancestor (use of the form element pointer in the parser)
  • The template contents of any template elements.
  • @@ -116174,11 +116174,12 @@ console.assert(container.firstChild instanceof SuperP);
  • -

    Set the parser's form element pointer to the nearest node to the +

    Set the parser's form element pointer + to the nearest node to the context element that is a form element (going straight up the ancestor chain, and including the element itself, if it is a form element), if any. (If there is no such form element, the - form element pointer keeps its initial value, null.)

    + form element pointer keeps its initial value, null.)

  • From 4bca520bcb462223c9ecabc3a98e6c708fb366d5 Mon Sep 17 00:00:00 2001 From: Kaleidea <74888177+Kaleidea@users.noreply.github.com> Date: Mon, 15 Nov 2021 06:16:36 +0100 Subject: [PATCH 03/26] Editorial: "form element pointer" consistency (`data-x="form"` -> `data-x=""`) Changes: form element pointer -> form element pointer --- source | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source b/source index 49c0f6fc1da..c665663ebe4 100644 --- a/source +++ b/source @@ -112440,7 +112440,7 @@ document.body.appendChild(text);
    A start tag whose tag name is "form"
    -

    If the form element pointer is not null, and there is +

    If the form element pointer is not null, and there is no template element on the stack of open elements, then this is a parse error; ignore the token.

    @@ -112452,7 +112452,7 @@ document.body.appendChild(text);

    Insert an HTML element for the token, and, if there is no template element on the stack of open elements, set the form element pointer to point to the element created.

    + data-x="">form element pointer to point to the element created.

    @@ -113627,13 +113627,13 @@ document.body.appendChild(text);

    Parse error.

    If there is a template element on the stack of open elements, or if - the form element pointer is not null, ignore the + the form element pointer is not null, ignore the token.

    Otherwise:

    Insert an HTML element for the token, and set the form element pointer to point to the element created.

    + data-x="">form element pointer to point to the element created.

    Pop that form element off the stack of open elements.

    From 044c6e1a25607b2f355479b902fc11d4c55a703d Mon Sep 17 00:00:00 2001 From: Kaleidea <74888177+Kaleidea@users.noreply.github.com> Date: Fri, 19 Nov 2021 10:14:38 +0100 Subject: [PATCH 04/26] Editorial: "form elements" -> "forms" Changes: form elements -> forms the form element -> forms --- source | 54 +++++++++++++++++++++++++++++++----------------------- 1 file changed, 31 insertions(+), 23 deletions(-) diff --git a/source b/source index c665663ebe4..696f895d7a8 100644 --- a/source +++ b/source @@ -7592,7 +7592,7 @@ interface HTMLAllCollection {

    The HTMLFormControlsCollection interface is used for collections of listed - elements in form elements.

    + elements in forms.

    [Exposed=Window]
     interface HTMLFormControlsCollection : HTMLCollection {
    @@ -23196,10 +23196,12 @@ document.body.appendChild(wbr);
    beyond linking the element's node document to the resource given by the element's href attribute.

    -

    Similarly, for form elements with a rel +

    Similarly, for forms + with a rel attribute, links must be created for the keywords of the rel attribute as defined for those keywords in the link types section. - form elements that do not have a rel attribute, + forms + that do not have a rel attribute, or whose rel attribute has no keywords that are defined as specifying hyperlinks, must also create a hyperlink. @@ -23831,8 +23833,8 @@ document.body.appendChild(wbr);

    This is also used by form submission for - the form element. The exception for a elements is for compatibility with - web content.

    + forms. The exception for a elements is for + compatibility with web content.

    To get an element's noopener, given an a, area, or form element element and a string target:

    @@ -26065,20 +26067,20 @@ document.body.appendChild(wbr);
    Not allowed
    -
    The keyword must not be specified on form elements.
    +
    The keyword must not be specified on forms.
    Hyperlink
    -
    The keyword may be specified on form elements; it creates a +
    The keyword may be specified on forms; it creates a hyperlink.
    External Resource
    -
    The keyword may be specified on form elements; it creates an external - resource link.
    +
    The keyword may be specified on forms; + it creates an external resource link.
    Hyperlink Annotation
    -
    The keyword may be specified on form elements; it annotates other hyperlinks created by the - element.
    +
    The keyword may be specified on forms; + it annotates other + hyperlinks created by the element.
    @@ -43489,13 +43491,15 @@ interface HTMLFormElement : HTMLElement { submission.

    The rel attribute on - form elements controls what kinds of links the elements create. The attribute's value + forms + controls what kinds of links the elements create. The attribute's value must be a unordered set of unique space-separated tokens. The allowed keywords and their meanings are defined in an earlier section.

    rel's supported tokens are the keywords defined in HTML link types which are - allowed on form elements, impact the processing model, and are supported by the user + allowed on forms, + impact the processing model, and are supported by the user agent. The possible supported tokens are noreferrer, noopener, and opener. rel's HTMLLegendElement : HTMLElement { data-x="attr-fae-form">form attribute specified to override this.

    This feature allows authors to work around the lack of support for nested - form elements.

    + forms.

    If a listed form-associated element has a form attribute specified, then that attribute's value must be @@ -53347,7 +53351,8 @@ interface HTMLLegendElement : HTMLElement { associations.

    This example is a non-conforming document, though, as it is a violation of the content models - to nest form elements, and there is a parse error for the forms, + and there is a parse error for the </form> tag.

    @@ -53616,7 +53621,8 @@ form.method === input; // => true
    Form submission attributes
    -

    Attributes for form submission can be specified both on form elements +

    Attributes for form submission can be specified both on + forms and on submit buttons (elements that represent buttons that submit forms, e.g. an input element whose type attribute is in the and that satisfy their constraints

  • -
  • form elements that are not the form owner of any elements that +
  • forms + that are not the form owner of any elements that themselves are candidates for constraint validation but do not satisfy their constraints
  • @@ -70586,7 +70593,8 @@ Demos: constraint validation but that do not satisfy their constraints -
  • form elements that are the form owner of one or more elements +
  • forms + that are the form owner of one or more elements that themselves are candidates for constraint validation but do not satisfy their constraints
  • @@ -119832,7 +119840,7 @@ if (s = prompt('What is your name?')) {
    urn on link elements

    Specify the preferred persistent identifier using the href attribute instead.

    -
    accept on form elements
    +
    accept on forms

    Use the accept attribute directly on the input elements instead.

    hreflang on area @@ -125914,7 +125922,7 @@ INSERT INTERFACES HERE formdata FormDataEvent - form elements + forms Fired at a form element when it is constructing the entry list @@ -126017,7 +126025,7 @@ INSERT INTERFACES HERE reset Event - form elements + forms Fired at a form element when it is reset @@ -126047,7 +126055,7 @@ INSERT INTERFACES HERE submit SubmitEvent - form elements + forms Fired at a form element when it is submitted From bc2e177ad16708b9d709c5786d933032e82dbbb2 Mon Sep 17 00:00:00 2001 From: Kaleidea <74888177+Kaleidea@users.noreply.github.com> Date: Mon, 22 Nov 2021 10:53:57 +0100 Subject: [PATCH 05/26] Editorial: "form element" -> "form" (62 changes) Changes: form element -> form --- source | 174 +++++++++++++++++++++++++++++++++------------------------ 1 file changed, 101 insertions(+), 73 deletions(-) diff --git a/source b/source index 696f895d7a8..1c4435057ef 100644 --- a/source +++ b/source @@ -42928,7 +42928,8 @@ interface HTMLTableCellElement : HTMLElement {

    Form submissions are exposed to servers in a variety of ways, most commonly as HTTP GET or POST requests. To specify the exact method used, the method - attribute is specified on the form element. This doesn't specify how the form data is + attribute is specified on the form. + This doesn't specify how the form data is encoded, though; to specify that, you use the enctype attribute. You also have to specify the URL of the service that will handle the submitted data, using the action attribute.

    @@ -43324,7 +43325,8 @@ interface HTMLTableCellElement : HTMLElement {

    Denotes elements that can be used for constructing the entry list when a - form element is submitted.

    + form is + submitted.

    @@ -108555,7 +108557,8 @@ dictionary StorageEventInit : EventInit { head element pointer gets set to point to this node.

    The form element pointer points to the last - form element that was opened and whose end tag has not yet been seen. It is used to + form (form or search element) + that was opened and whose end tag has not yet been seen. It is used to make form controls associate with forms in the face of dramatically bad markup, for historical reasons. It is ignored inside template elements.

    @@ -112724,8 +112727,9 @@ document.body.appendChild(text);
  • If the current node is not a form, then this is a parse error.

  • -
  • Pop elements from the stack of open elements until a form - element has been popped from the stack.

  • +
  • Pop elements from the stack of open elements until a + form (form or search element) + has been popped from the stack.

  • From 6d4b2201f6311affe758a1b2a8d3732744d52b9f Mon Sep 17 00:00:00 2001 From: Kaleidea <74888177+Kaleidea@users.noreply.github.com> Date: Fri, 19 Nov 2021 10:38:08 +0100 Subject: [PATCH 11/26] Editorial: "Links" section: "form," -> "form, search," Changes: form, -> form, search, , or form -> form, or search --- source | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/source b/source index 9a8cf34a349..1bd94bae893 100644 --- a/source +++ b/source @@ -9975,7 +9975,8 @@ partial interface Document {