From b36fc4b975ba1901c34ef3f1129db5fc685deb99 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] Wording: "form elements" -> "forms", etc. --- source | 351 +++++++++++++++++++++++++++++++++------------------------ 1 file changed, 203 insertions(+), 148 deletions(-) diff --git a/source b/source index 234caa8a2f8..3448b9b40d8 100644 --- a/source +++ b/source @@ -7579,7 +7579,7 @@ interface HTMLAllCollection {

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

+ elements in forms.

[Exposed=Window]
 interface HTMLFormControlsCollection : HTMLCollection {
@@ -23172,10 +23172,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. @@ -23807,8 +23809,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:

@@ -24321,7 +24323,7 @@ document.body.appendChild(wbr); link a and area - form + form @@ -25919,20 +25921,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.
@@ -42780,7 +42782,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.

@@ -43176,7 +43179,8 @@ interface HTMLTableCellElement : HTMLElement {

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

+ form is + submitted.

@@ -113303,15 +113350,16 @@ 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.

+

Pop that form off the + stack of open elements.

@@ -115060,8 +115108,9 @@ document.body.appendChild(text);
  • Whether the document is set to no-quirks mode, limited-quirks mode, or 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)
  • +
  • The association between form controls and forms that aren't their nearest + form ancestor + (use of the form element pointer in the parser)
  • The template contents of any template elements.
  • @@ -115591,10 +115640,11 @@ document.body.appendChild(text);
    • html
      • head
      • body
        • form id="outer"
          • div
            • form id="inner"
              • input
    -

    The input element will be associated with the inner form element. +

    The input element will be associated with the inner + form. Now, if this tree structure is serialized and reparsed, the <form id="inner"> start tag will be ignored, and so the input element will be - associated with the outer form element instead.

    + associated with the outer form instead.

    <html><head></head><body><form id="outer"><div><form id="inner"><input></form></div></form></body></html>
    @@ -115848,11 +115898,13 @@ console.assert(container.firstChild instanceof SuperP);
  • -

    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.)

    +

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

  • @@ -119505,7 +119557,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 @@ -124028,7 +124080,7 @@ interface External { select; textarea; form-associated custom elements - Associates the element with a form element + Associates the element with a form ID* formaction @@ -125821,8 +125873,9 @@ INSERT INTERFACES HERE formdata FormDataEvent - form elements - Fired at a form element when it is constructing the entry list + forms + Fired at a form + when it is constructing the entry list hashchange @@ -125924,8 +125977,9 @@ INSERT INTERFACES HERE reset Event - form elements - Fired at a form element when it is reset + forms + Fired at a form + when it is reset securitypolicyviolation @@ -125954,8 +126008,9 @@ INSERT INTERFACES HERE submit SubmitEvent - form elements - Fired at a form element when it is submitted + forms + Fired at a form + when it is submitted toggle