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
Let realm be the result of GetFunctionRealm(the currently
- executing HTMLElement
function).
Let realm be the current Realm Record.
Let registry be realm's global
object's CustomElementsRegistry
object.
Let localName be the definition's Let localName be definition's local name.
Let document be realm's global
+ object's newest Document
+ object.
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.
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.
Image(width, height)
. When invoked,
+ the constructor must perform the following steps:
+
+ Let document be the current Realm Record's newest Document
object.
Let img be the result of creating an
+ element given document, img
, and the HTML
+ namespace.
If the width argument is present, set an attribute value for img
+ using "width
" and width.
If the height argument is present, set an attribute value for img
+ using "height
" and height.
Return img.
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:
+
+ Let document be the current Realm Record's newest Document
object.
Let audio be the result of creating an
+ element given document, audio
, and the HTML
+ namespace.
Set an attribute value for
+ audio using "preload
" and "auto
".
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.)
Return audio.
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:
+
+ Let document be the current Realm Record's newest Document
object.
Let option be the result of creating an
+ element given document, option
, and the HTML
+ namespace.
If the text argument is not an empty string, append to option a new
+ Text
node whose data is text.
If the value argument is present, set an attribute value for option
+ using "value
" and value.
If the defaultSelected argument is true, set an attribute value for option
+ using "selected
" and the empty string.
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).
Return option.
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.
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 {
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 " Let is be the value of the " Let definition be the result of looking up a custom element definition given document, given
is
" attribute in the given
- token, if such an attribute exists, or null otherwise.is
" attribute in the
+ given token, if such an attribute exists, or null otherwise.