diff --git a/source b/source index be99ee65fa7..d5ed4b38399 100644 --- a/source +++ b/source @@ -3134,7 +3134,7 @@ a.setAttribute('href', 'http://example.com/'); // change the content attribute d
  • The slot concept, and its name and assigned nodes
  • The find flattened slotables algorithm
  • The pre-insert, insert, append, replace, remove, and adopt algorithms for nodes
  • -
  • The change, append, remove, and replace algorithms for attributes
  • +
  • The change, append, remove, replace, and set value algorithms for attributes
  • The insertion steps, removing steps, and adopting steps hooks
  • @@ -9570,8 +9570,7 @@ interface HTMLUnknownElement : HTMLElement { };
      -
    1. Let realm be the result of GetFunctionRealm(the currently - executing HTMLElement function).

    2. +
    3. Let realm be the current Realm Record.

    4. Let registry be realm's global object's CustomElementsRegistry object.

    5. @@ -9589,9 +9588,13 @@ interface HTMLUnknownElement : HTMLElement { }; empty, then:

        -
      1. Let localName be the definition's

        Let localName be definition's local name.

      2. +
      3. Let document be realm's global + object's newest Document + object.

      4. +
      5. Let element be a new element that implements the HTMLElement interface, with no attributes, namespace set to the HTML namespace, local name set to localName, and node document set to document.

      6. @@ -26224,14 +26227,27 @@ interface HTMLImageElement : HTMLElement {

        A constructor is provided for creating HTMLImageElement objects (in addition to the factory methods from DOM such as createElement()): Image(width, height). - When invoked as a constructor, this must return a new HTMLImageElement object (a new - img element). If the width argument is present, the new object's - width content attribute must be set to width. If the height argument is also present, the new object's - height content attribute must be set to height. - The element's node document must be the active document of the - browsing context of the Window object on which the interface object of - the invoked constructor is found.

        + data-x="dom-image">Image(width, height). When invoked, + the constructor must perform the following steps:

        + +
          +
        1. Let document be the current Realm Record's newest Document object.

        2. + +
        3. Let img be the result of creating an + element given document, img, and the HTML + namespace.

        4. + +
        5. If the width argument is present, set an attribute value for img + using "width" and width.

        6. + +
        7. If the height argument is present, set an attribute value for img + using "height" and height.

        8. + +
        9. Return img.

        10. +
    @@ -29666,17 +29682,30 @@ interface HTMLAudioElement : HTMLMediaElement {};

    A constructor is provided for creating HTMLAudioElement objects (in addition to the factory methods from DOM such as createElement()): - Audio(src). When invoked as a - constructor, it must return a new HTMLAudioElement object (a new audio - element). The element must be created with its preload - attribute set to the literal value "auto". If the - src argument is present, the object created must be created with its src content attribute set to the provided value (this will cause the user agent to invoke the object's - resource selection algorithm before returning). - The element's node document must be the active document of the browsing - context of the Window object on which the interface object of the invoked - constructor is found.

    + Audio(src). When invoked, + the constructor must perform the following steps:

    + +
      +
    1. Let document be the current Realm Record's newest Document object.

    2. + +
    3. Let audio be the result of creating an + element given document, audio, and the HTML + namespace.

    4. + +
    5. Set an attribute value for + audio using "preload" and "auto".

    6. + +
    7. If the src argument is present, set an attribute value for audio + using "src" and src. (This will cause the user agent to invoke the object's + resource selection algorithm before + returning.)

    8. + +
    9. Return audio.

    10. +
    @@ -50031,18 +50060,36 @@ interface HTMLOptionElement : HTMLElement {

    A constructor is provided for creating HTMLOptionElement objects (in addition to the factory methods from DOM such as createElement()): - Option(text, value, defaultSelected, selected). When invoked as a - constructor, it must return a new HTMLOptionElement object (a new option - element). If the first argument is not the empty string, the new object must have as its only - child a Text node whose data is the value of that argument. Otherwise, it must have - no children. If the value argument is present, the new object must have a - value attribute set with the value of the argument as its - value. If the defaultSelected argument is true, the new object must have a - selected attribute set with no value. If the selected argument is true, the new object must have its selectedness set to true; otherwise the selectedness must be set to false, even if the defaultSelected argument is true. The element's node document must be the active - document of the browsing context of the Window object on which - the interface object of the invoked constructor is found.

    + Option(text, value, + defaultSelected, selected). When invoked, the constructor must + perform the following steps:

    + +
      +
    1. Let document be the current Realm Record's newest Document object.

    2. + +
    3. Let option be the result of creating an + element given document, option, and the HTML + namespace.

    4. + +
    5. If the text argument is not an empty string, append to option a new + Text node whose data is text.

    6. + +
    7. If the value argument is present, set an attribute value for option + using "value" and value.

    8. + +
    9. If the defaultSelected argument is true, set an attribute value for option + using "selected" and the empty string.

    10. + +
    11. If the selected argument is true, set option's selectedness to true; otherwise set its selectedness to false (even if the + defaultSelected argument is true).

    12. + +
    13. Return option.

    14. +
    @@ -67607,8 +67654,8 @@ fetch(articleURL)
  • Let document be element's node document.

  • Let is be the value of the attribute in element's attribute - list whose qualified name is "is", if any such attribute exists, - or null otherwise.

  • + list whose qualified name is "is", if any such attribute + exists, or null otherwise.

  • Let definition be the result of looking up a custom element definition given document, @@ -87745,7 +87792,7 @@ interface NavigatorOnLine {

    Current

    The JavaScript specification defines the current Realm Record, sometimes - abbreviated to "the current Realm".

    + abbreviated to the "current Realm".

    Then, the current settings object is the environment settings object of the current @@ -103465,8 +103512,8 @@ dictionary StorageEventInit : EventInit {

  • Let local name be the tag name of the token.

  • -
  • Let is be the value of the "is" attribute in the given - token, if such an attribute exists, or null otherwise.

  • +
  • Let is be the value of the "is" attribute in the + given token, if such an attribute exists, or null otherwise.

  • Let definition be the result of looking up a custom element definition given document, given