diff --git a/source b/source index 85c2f66f2a2..e565249588e 100644 --- a/source +++ b/source @@ -8235,7 +8235,7 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
If a reflected IDL attribute has the type USVString:
Let contentAttributeValue be the result of running this's get the content attribute.
Let attributeDefinition be the attribute definition of element's - content attribute whose namespace is null and local name is the reflected content - attribute name. -
If attributeDefinition indicates it contains a URL:
+If the reflected IDL attribute is treated as a URL:
If contentAttributeValue is null, then return the empty string.
Elements" for
consistency.
+ Reflection can be used from IDL through extended attributes. [Reflect], [ReflectSetter], [ReflectURL],
+ [ReflectNonNegative], [ReflectPositive], and
+ [ReflectPositiveWithFallback] all
+ trigger reflection. These must either take no arguments, or take a
+ string; they must not appear on anything other than an interface member attribute; and only one of
+ these can be used at a time.
For one of these primary reflection extended + attributes, its reflected content attribute name is the string value it takes, + if one is provided; otherwise it is the IDL attribute name converted to ASCII + lowercase.
+ +IDL attributes with the [Reflect] extended
+ attribute must reflect [Reflect]'s
+ reflected content attribute name.
IDL attributes with the [ReflectSetter]
+ extended attribute on setting must reflect [ReflectSetter]'s reflected content attribute
+ name.
The [ReflectURL] extended attribute must
+ only appear on attributes with a type of USVString.
IDL attributes with the [ReflectURL] extended
+ attribute must reflect, as a URL, [ReflectURL]'s reflected content attribute name.
The [ReflectNonNegative] extended
+ attribute must only appear on attributes with a type of long.
IDL attributes with the [ReflectNonNegative]
+ extended attribute must reflect, limited to only non-negative
+ numbers, [ReflectNonNegative]'s
+ reflected content attribute name.
The [ReflectPositive] and [ReflectPositiveWithFallback] extended attributes must only appear on attributes with a type
+ of double or unsigned
+ long.
IDL attributes with the [ReflectPositive]
+ extended attribute must reflect, limited to only positive
+ numbers, [ReflectPositive]'s reflected
+ content attribute name.
IDL attributes with the [ReflectPositiveWithFallback] extended
+ attribute must reflect, limited to only positive numbers with
+ fallback, [ReflectPositiveWithFallback]'s reflected
+ content attribute name.
To supplement the above extended attributes we also
+ introduce [ReflectRange], and [ReflectDefault]. These
+ augment how reflection works and also must only appear on interface
+ member attributes.
The [ReflectRange] extended attribute
+ must take an integer list limited to two values. It must only be used on attributes with a type of
+ unsigned long. Additionally, it must also only appear
+ alongside [Reflect].
IDL attributes with the [ReflectRange] extended
+ attribute are clamped to the range [clampedMin,
+ clampedMax] where clampedMin is the first, and clampedMax is the
+ second argument to the list provided to [ReflectRange].
The [ReflectDefault] extended attribute
+ must only be used on attributes with a type of double, long, or unsigned long. When used
+ on an attribute of type double, it must take a decimal; otherwise
+ it must take an integer. Additionally, it must also only appear alongside [Reflect], [ReflectNonNegative], [ReflectPositive], or [ReflectPositiveWithFallback].
IDL attributes with the [ReflectDefault]
+ extended attribute have a default value provided by the argument
+ provided to [ReflectDefault].
Reflection is primarily about improving web developer ergonomics @@ -11919,21 +12013,21 @@ interface HTMLElement : Element { [HTMLConstructor] constructor(); // metadata attributes - [CEReactions] attribute DOMString title; - [CEReactions] attribute DOMString lang; + [CEReactions, Reflect] attribute DOMString title; + [CEReactions, Reflect] attribute DOMString lang; [CEReactions] attribute boolean translate; [CEReactions] attribute DOMString dir; // user interaction [CEReactions] attribute (boolean or unrestricted double or DOMString)? hidden; - [CEReactions] attribute boolean inert; + [CEReactions, Reflect] attribute boolean inert; undefined click(); - [CEReactions] attribute DOMString accessKey; + [CEReactions, Reflect] attribute DOMString accessKey; readonly attribute DOMString accessKeyLabel; [CEReactions] attribute boolean draggable; [CEReactions] attribute boolean spellcheck; - [CEReactions] attribute DOMString writingSuggestions; - [CEReactions] attribute DOMString autocapitalize; + [CEReactions, ReflectSetter] attribute DOMString writingSuggestions; + [CEReactions, ReflectSetter] attribute DOMString autocapitalize; [CEReactions] attribute boolean autocorrect; [CEReactions] attribute [LegacyNullToEmptyString] DOMString innerText; @@ -12014,8 +12108,8 @@ interface HTMLUnknownElement : HTMLElement { [SameObject] readonly attribute DOMStringMap dataset; attribute DOMString nonce; // intentionally no [CEReactions] - [CEReactions] attribute boolean autofocus; - [CEReactions] attribute long tabIndex; + [CEReactions, Reflect] attribute boolean autofocus; + [CEReactions, ReflectSetter] attribute long tabIndex; undefined focus(optional FocusOptions options = {}); undefined blur(); }; @@ -13595,9 +13689,6 @@ Transport Protocol">HTTP</abbr> today.</p> -
The lang IDL attribute
- must reflect the lang content attribute in no
- namespace.
HTMLBaseElement.The href IDL attribute, on setting, must set the href content attribute to the given new value.
The target IDL
- attribute must reflect the content attribute of the same name.
The IDL attributes
- href,
- hreflang,
- integrity,
- media,
- rel,
- sizes,
- type,
- blocking, and
- disabled
- each must reflect the respective content attributes of the same name.
There is no reflecting IDL attribute for the color attribute, but this might be added later.
fetchpriority content
attribute, limited to only known values.
- The imageSrcset IDL attribute must reflect the
- imagesrcset content attribute.
The imageSizes IDL attribute must reflect the
- imagesizes content attribute.
The relList
- IDL attribute must reflect the rel content attribute.
The relList attribute can be used for
feature detection, by calling its supports()
method to check which types of links are supported.
media
attribute has no effect on the processing model and must not be used by authors.
- The name, content, and media IDL attributes
- must reflect the respective content attributes of the same name. The IDL attribute
- httpEquiv must
- reflect the content attribute http-equiv.
This specification does not specify a style system, but CSS is expected to be supported by most web browsers. CSS
-The media and
- blocking IDL
- attributes must each reflect the respective content attributes of the same name.
The LinkStyle interface is also implemented by this element. CSSOM
The HTMLQuoteElement interface is
- also used by the q element.
The HTMLQuoteElement interface is also used by the q
+ element.
HTMLQuoteElement.The cite IDL
- attribute must reflect the element's cite content
- attribute.
Here a blockquote element is used in conjunction with a figure
@@ -20472,9 +20499,9 @@ be cowed by the possibility.</blockquote>
interface HTMLOListElement : HTMLElement {
[HTMLConstructor] constructor();
- [CEReactions] attribute boolean reversed;
- [CEReactions] attribute long start;
- [CEReactions] attribute DOMString type;
+ [CEReactions, Reflect] attribute boolean reversed;
+ [CEReactions, Reflect, ReflectDefault=1] attribute long start;
+ [CEReactions, Reflect] attribute DOMString type;
// also has obsolete members
};
@@ -20598,17 +20625,10 @@ interface HTMLOListElement : HTMLElement {
The reversed
- and type IDL
- attributes must reflect the respective content attributes of the same name.
The start IDL
- attribute must reflect the content attribute of the same name, with a default
- value of 1.
This means that the start IDL attribute does
- not necessarily match the list's starting value, in cases
- where the start content attribute is omitted and the Due to [ReflectDefault] the start IDL attribute does not necessarily match the list's starting value, in cases where the start content attribute is omitted and the reversed content attribute is specified.
The value IDL
- attribute must reflect the value of the value
- content attribute.
The element's value IDL attribute does not directly
correspond to its ordinal value; it simply reflects
@@ -21879,13 +21895,13 @@ interface HTMLDivElement : HTMLElement {
interface HTMLAnchorElement : HTMLElement {
[HTMLConstructor] constructor();
- [CEReactions] attribute DOMString target;
- [CEReactions] attribute DOMString download;
- [CEReactions] attribute USVString ping;
- [CEReactions] attribute DOMString rel;
- [SameObject, PutForwards=value] readonly attribute DOMTokenList relList;
- [CEReactions] attribute DOMString hreflang;
- [CEReactions] attribute DOMString type;
+ [CEReactions, Reflect] attribute DOMString target;
+ [CEReactions, Reflect] attribute DOMString download;
+ [CEReactions, Reflect] attribute USVString ping;
+ [CEReactions, Reflect] attribute DOMString rel;
+ [SameObject, PutForwards=value, Reflect="rel"] readonly attribute DOMTokenList relList;
+ [CEReactions, Reflect] attribute DOMString hreflang;
+ [CEReactions, Reflect] attribute DOMString type;
[CEReactions] attribute DOMString text;
@@ -21959,19 +21975,6 @@ interface HTMLAnchorElement : HTMLElement {
The IDL attributes download, ping, target, rel, hreflang, and type, must reflect the respective content attributes
- of the same name.
The IDL attribute relList must reflect the rel content attribute.
The IDL attribute referrerPolicy must reflect the referrerpolicy content attribute, limited to
@@ -23402,7 +23405,7 @@ this specification: the <abbr>WHATWG</abbr> and the
interface HTMLDataElement : HTMLElement {
[HTMLConstructor] constructor();
- [CEReactions] attribute DOMString value;
+ [CEReactions, Reflect] attribute DOMString value;
};
HTMLDataElement.data-*
attributes can also be useful in such situations.)
The value IDL
- attribute must reflect the content attribute of the same name.
Here, a short table has its numeric values encoded using the data element so
@@ -23485,7 +23481,7 @@ interface HTMLDataElement : HTMLElement {
interface HTMLTimeElement : HTMLElement {
[HTMLConstructor] constructor();
- [CEReactions] attribute DOMString dateTime;
+ [CEReactions, Reflect] attribute DOMString dateTime;
};
HTMLTimeElement.The dateTime
- IDL attribute must reflect the element's datetime content attribute.
a and area elementsinterface mixin HTMLHyperlinkElementUtils {
- [CEReactions] stringifier attribute USVString href;
+ [CEReactions, ReflectSetter] stringifier attribute USVString href;
readonly attribute USVString origin;
[CEReactions] attribute USVString protocol;
[CEReactions] attribute USVString username;
@@ -25287,9 +25279,6 @@ document.body.appendChild(wbr);
Return url, serialized.
The href setter steps are to set this's
- href content attribute's value to the given value.
-
The origin getter steps are:
The cite IDL
- attribute must reflect the element's cite content
- attribute. The dateTime IDL attribute must reflect the
- element's datetime content attribute.
HTMLSourceElement.The IDL attributes src, type, srcset, sizes, and media must reflect the respective
- content attributes of the same name.
The alt, src, srcset, and sizes IDL attributes must
- reflect the respective content attributes of the same name.
The crossOrigin IDL attribute must
reflect the crossorigin content attribute,
limited to only known values.
The useMap IDL
- attribute must reflect the usemap content
- attribute.
The isMap IDL
- attribute must reflect the ismap content
- attribute.
The referrerPolicy IDL attribute must
reflect the referrerpolicy content
@@ -29849,9 +29810,6 @@ interface HTMLImageElement : HTMLElement {
rendered; or else 0, if the image is not available or does
not have density-corrected natural width and height. CSS
On setting, they must act as if they reflected the respective - content attributes of the same name.
-The IDL attributes naturalWidth and naturalHeight must return
@@ -33424,14 +33382,14 @@ href="?audio">audio</a> test instead.)</p>
interface HTMLIFrameElement : HTMLElement {
[HTMLConstructor] constructor();
- [CEReactions] attribute USVString src;
+ [CEReactions, ReflectURL] attribute USVString src;
[CEReactions] attribute (TrustedHTML or DOMString) srcdoc;
- [CEReactions] attribute DOMString name;
- [SameObject, PutForwards=value] readonly attribute DOMTokenList sandbox;
- [CEReactions] attribute DOMString allow;
- [CEReactions] attribute boolean allowFullscreen;
- [CEReactions] attribute DOMString width;
- [CEReactions] attribute DOMString height;
+ [CEReactions, Reflect] attribute DOMString name;
+ [SameObject, PutForwards=value, Reflect] readonly attribute DOMTokenList sandbox;
+ [CEReactions, Reflect] attribute DOMString allow;
+ [CEReactions, Reflect] attribute boolean allowFullscreen;
+ [CEReactions, Reflect] attribute DOMString width;
+ [CEReactions, Reflect] attribute DOMString height;
[CEReactions] attribute DOMString referrerPolicy;
[CEReactions] attribute DOMString loading;
readonly attribute Document? contentDocument;
@@ -34199,13 +34157,6 @@ interface HTMLIFrameElement : HTMLElement {
The IDL attributes src, name, sandbox, and allow must
- reflect the respective content attributes of the same name.
The srcdoc getter steps are:
sandbox attribute and supported by
the user agent.
- The allowFullscreen IDL attribute must
- reflect the allowfullscreen content
- attribute.
The referrerPolicy IDL attribute must
reflect the referrerpolicy content
@@ -34326,10 +34272,10 @@ interface HTMLIFrameElement : HTMLElement {
interface HTMLEmbedElement : HTMLElement {
[HTMLConstructor] constructor();
- [CEReactions] attribute USVString src;
- [CEReactions] attribute DOMString type;
- [CEReactions] attribute DOMString width;
- [CEReactions] attribute DOMString height;
+ [CEReactions, ReflectURL] attribute USVString src;
+ [CEReactions, Reflect] attribute DOMString type;
+ [CEReactions, Reflect] attribute DOMString width;
+ [CEReactions, Reflect] attribute DOMString height;
Document? getSVGDocument();
// also has obsolete members
@@ -34559,15 +34505,6 @@ interface HTMLEmbedElement : HTMLElement {
The embed element supports dimension attributes.
The IDL attributes src and type each must reflect the respective content
- attributes of the same name.
The IDL attributes data, type, and name each must reflect the respective content
- attributes of the same name.
The contentDocument getter steps are to return
this's content document.
HTMLVideoElement.The poster
- IDL attribute must reflect the poster content
- attribute.
The playsInline IDL attribute must reflect
- the playsinline content attribute.
track element's text track's
corresponding TextTrack object.
- The src, srclang, label, and default IDL
- attributes must reflect the respective content attributes of the same name. The kind IDL attribute
- must reflect the content attribute of the same name, limited to only known
- values.
The kind IDL
+ attribute must reflect the content attribute of the same name, limited to only
+ known values.
src attribute does
not do this, even if there are source elements present.)
- The src IDL
- attribute on media elements must reflect the
- content attribute of the same name.
The crossOrigin IDL attribute must reflect
the crossorigin content attribute, limited to
@@ -37923,13 +37837,6 @@ interface MediaError {
element is to seek back to the start of the media resource upon reaching the
end.
The loop IDL
- attribute must reflect the content attribute of the same name.
The autoplay IDL attribute must reflect the
- content attribute of the same name.
The controls IDL attribute must reflect the
- content attribute of the same name.
The defaultMuted IDL attribute must reflect
- the muted content attribute.
This attribute has no dynamic effect (it only controls the default state of the element).
@@ -42040,7 +41927,7 @@ dictionary TrackEventInit : EventInit { interface HTMLMapElement : HTMLElement { [HTMLConstructor] constructor(); - [CEReactions] attribute DOMString name; + [CEReactions, Reflect] attribute DOMString name; [SameObject] readonly attribute HTMLCollection areas; }; @@ -42074,10 +41961,6 @@ interface HTMLMapElement : HTMLElement { attribute must return anHTMLCollection rooted at the map element, whose
filter matches only area elements.
- The IDL attribute name must reflect the content attribute of the
- same name.
The IDL attributes alt, coords, shape, target, download, ping, and rel, each must reflect the respective content
- attributes of the same name.
The IDL attribute relList must reflect the rel content attribute.
The IDL attribute User agent requirements: User agents are expected to use these attributes as hints for the rendering. The For The The referrerPolicy must reflect the referrerpolicy content attribute, limited to
@@ -42745,15 +42614,6 @@ interface HTMLAreaElement : HTMLElement {
width and height IDL attributes on the iframe,
- embed, object, source, and video elements must
- reflect the respective content attributes of the same name.iframe, embed and object the IDL
attributes are DOMString; for video and
source the IDL attributes are unsigned
@@ -43545,7 +43405,7 @@ the cell that corresponds to the values of the two dice.
interface HTMLTableColElement : HTMLElement {
[HTMLConstructor] constructor();
- [CEReactions] attribute unsigned long span;
+ [CEReactions, Reflect, ReflectDefault=1, ReflectRange=(1, 1000)] attribute unsigned long span;
// also has obsolete members
};
@@ -43568,10 +43428,6 @@ interface HTMLTableColElement : HTMLElement {
colgroup element and its span
attribute take part in the table model.span
- IDL attribute must reflect the content attribute of the same name. It is
- clamped to the range [1, 1000], and its default value is 1.
The colSpan IDL attribute must reflect the colspan content attribute. It is clamped to the
- range [1, 1000], and its default value is 1.
The rowSpan IDL attribute must reflect the rowspan content attribute. It is clamped to the
- range [0, 65534], and its default value is 1.
The headers IDL attribute must reflect the content
- attribute of the same name.
The cellIndex IDL attribute must, if the element has a parent
tr element, return the index of the cell's element in the parent element's HTMLTableCellElement : HTMLElement {
IDL attribute must reflect the content attribute of the same name, limited to
only known values.
The abbr IDL
- attribute must reflect the content attribute of the same name.
The name and
- rel IDL attributes
- must reflect the content attribute of the same name.
The acceptCharset IDL attribute must reflect
- the accept-charset content attribute.
The relList
- IDL attribute must reflect the rel content
- attribute.
The elements
@@ -46539,7 +46366,7 @@ interface HTMLLabelElement : HTMLElement {
[HTMLConstructor] constructor();
readonly attribute HTMLFormElement? form;
- [CEReactions] attribute DOMString htmlFor;
+ [CEReactions, Reflect="for"] attribute DOMString htmlFor;
readonly attribute HTMLElement? control;
};
@@ -46645,10 +46472,6 @@ interface HTMLLabelElement : HTMLElement {
The htmlFor
- IDL attribute must reflect the for content
- attribute.
The control
IDL attribute must return the label element's labeled control, if any,
or null if there isn't one.
The accept,
- alpha, alt, max, min, multiple, pattern, placeholder, required, size, src, and step IDL attributes must
- reflect the respective content attributes of the same name. The dirName IDL attribute must
- reflect the dirname content attribute. The readOnly IDL
- attribute must reflect the readonly content
- attribute. The defaultChecked IDL attribute must
- reflect the checked content attribute. The
- defaultValue IDL attribute must reflect
- the value content attribute.
The colorSpace IDL attribute must reflect the
colorspace content attribute, limited to only
known values. The type IDL attribute must reflect the respective
- content attribute of the same name, limited to only known values. The maxLength IDL attribute
- must reflect the maxlength content
- attribute, limited to only non-negative numbers. The minLength IDL
- attribute must reflect the minlength
- content attribute, limited to only non-negative numbers.
The IDL attributes width and HTMLInputElement : HTMLElement {
data-x="attr-input-type-image">Image Button state, then no image is available. CSS
On setting, they must act as if they reflected the respective - content attributes of the same name.
-The willValidate, validity, and validationMessage IDL attributes, and the
interface HTMLButtonElement : HTMLElement {
[HTMLConstructor] constructor();
- [CEReactions] attribute DOMString command;
- [CEReactions] attribute Element? commandForElement;
- [CEReactions] attribute boolean disabled;
+ [CEReactions, ReflectSetter] attribute DOMString command;
+ [CEReactions, Reflect] attribute Element? commandForElement;
+ [CEReactions, Reflect] attribute boolean disabled;
readonly attribute HTMLFormElement? form;
- [CEReactions] attribute USVString formAction;
+ [CEReactions, ReflectSetter] attribute USVString formAction;
[CEReactions] attribute DOMString formEnctype;
[CEReactions] attribute DOMString formMethod;
- [CEReactions] attribute boolean formNoValidate;
- [CEReactions] attribute DOMString formTarget;
- [CEReactions] attribute DOMString name;
- [CEReactions] attribute DOMString type;
- [CEReactions] attribute DOMString value;
+ [CEReactions, Reflect] attribute boolean formNoValidate;
+ [CEReactions, Reflect] attribute DOMString formTarget;
+ [CEReactions, Reflect] attribute DOMString name;
+ [CEReactions, ReflectSetter] attribute DOMString type;
+ [CEReactions, Reflect] attribute DOMString value;
readonly attribute boolean willValidate;
readonly attribute ValidityState validity;
@@ -53920,11 +53710,6 @@ interface HTMLButtonElement : HTMLElement {
data-x="attr-fs-formtarget">formtarget must not be specified if the element is not
a submit button.
The commandForElement IDL attribute must
- reflect the element's commandfor
- content attribute.
The command getter steps are:
Return the keyword corresponding to the value of command.
The command setter steps are to set the command content attribute to the given value.
The The The Return the keyword value corresponding to state. The The value
attribute gives the element's value for the purposes of form submission. The element's value is the value of the element's HTMLButtonElement : HTMLElement {
value
- IDL attribute must reflect the content attribute of the same name.type
getter steps are:type setter steps are to set the type content attribute to the given value.willValidate, validity, and validationMessage IDL attributes, and the HTMLButtonElement : HTMLElement {
data-x="dom-cva-setCustomValidity">setCustomValidity() methods, are part of the
constraint validation API. The labels IDL
attribute provides a list of the element's labels. The disabled, form, and
- name IDL attributes are part of the element's forms API.form, and name IDL attributes are part of the element's forms API.
select element having no multiple
attribute and a display size of 1.
The multiple, required, and size IDL attributes must
- reflect the respective content attributes of the same name. The size IDL attribute has a default value of 0.
For historical reasons, the default value of the size IDL attribute does not return the actual size used, which, in
the absence of the size content attribute, is either 1 or 4
@@ -54719,8 +54488,8 @@ interface HTMLSelectElement : HTMLElement {
data-x="dom-cva-setCustomValidity">setCustomValidity() methods, are part of the
constraint validation API. The labels IDL
attribute provides a list of the element's labels. The disabled, form, and
- name IDL attributes are part of the element's forms API.
form, and name IDL attributes are part of the element's forms API.
HTMLOptGroupElement.optgroup has no child legend
element.
- The disabled and label attributes must
- reflect the respective content attributes of the same name.
The optgroup HTML element removing
steps, given removedNode and oldParent, are:
The disabled IDL attribute must reflect the
- content attribute of the same name. The defaultSelected IDL attribute must
- reflect the selected content
- attribute.
The label
- IDL attribute, on getting, if there is a label content
- attribute, must return that attribute's value; otherwise, it must return the element's label. On setting, the element's label content attribute must be set to the new value.
Let attribute be this's label attribute.
If attribute is null, then return this's label.
Return attribute's value.
The value
- IDL attribute, on getting, must return the element's value. On setting, the element's value content attribute must be set to the new value.
The selected IDL attribute, on getting, must return true if
@@ -55550,19 +55310,19 @@ interface HTMLOptionElement : HTMLElement {
interface HTMLTextAreaElement : HTMLElement {
[HTMLConstructor] constructor();
- [CEReactions] attribute DOMString autocomplete;
- [CEReactions] attribute unsigned long cols;
- [CEReactions] attribute DOMString dirName;
- [CEReactions] attribute boolean disabled;
+ [CEReactions, ReflectSetter] attribute DOMString autocomplete;
+ [CEReactions, ReflectPositiveWithFallback, ReflectDefault=20] attribute unsigned long cols;
+ [CEReactions, Reflect] attribute DOMString dirName;
+ [CEReactions, Reflect] attribute boolean disabled;
readonly attribute HTMLFormElement? form;
- [CEReactions] attribute long maxLength;
- [CEReactions] attribute long minLength;
- [CEReactions] attribute DOMString name;
- [CEReactions] attribute DOMString placeholder;
- [CEReactions] attribute boolean readOnly;
- [CEReactions] attribute boolean required;
- [CEReactions] attribute unsigned long rows;
- [CEReactions] attribute DOMString wrap;
+ [CEReactions, ReflectNonNegative] attribute long maxLength;
+ [CEReactions, ReflectNonNegative] attribute long minLength;
+ [CEReactions, Reflect] attribute DOMString name;
+ [CEReactions, Reflect] attribute DOMString placeholder;
+ [CEReactions, Reflect] attribute boolean readOnly;
+ [CEReactions, Reflect] attribute boolean required;
+ [CEReactions, ReflectPositiveWithFallback, ReflectDefault=2] attribute unsigned long rows;
+ [CEReactions, Reflect] attribute DOMString wrap;
readonly attribute DOMString type;
[CEReactions] attribute DOMString defaultValue;
@@ -55897,29 +55657,6 @@ interface HTMLTextAreaElement : HTMLElement {
The cols, placeholder, required, rows, and wrap IDL
- attributes must reflect the respective content attributes of the same name. The cols and rows attributes
- are limited to only positive numbers with fallback. The cols IDL attribute's default value is 20. The rows IDL attribute's default value is 2. The dirName IDL
- attribute must reflect the dirname content
- attribute. The maxLength IDL attribute must reflect the
- maxlength content attribute, limited to only
- non-negative numbers. The minLength IDL attribute must reflect the
- minlength content attribute, limited to only
- non-negative numbers. The readOnly IDL attribute must reflect the
- readonly content attribute.
The type
IDL attribute must return the value "textarea".
selectionDirection, setRangeText(), and setSelectionRange() methods and IDL attributes
- expose the element's text selection. The disabled,
- form, and name IDL attributes
- are part of the element's forms API.
+ data-x="dom-textarea/input-setSelectionRange">setSelectionRange() methods and IDL
+ attributes expose the element's text selection. The disabled, form, and name IDL attributes are part of the element's forms API.
The type
getter steps are to return "output".
The htmlFor IDL attribute must reflect the for content attribute.
The willValidate, validity, and validationMessage IDL attributes, and the HTMLOutputElement : HTMLElement {
data-x="dom-cva-setCustomValidity">setCustomValidity() methods, are part of the
constraint validation API. The labels IDL
attribute provides a list of the element's labels. The form and name IDL attributes are
- part of the element's forms API.
name IDL attributes
+ are part of the element's forms API.
If the progress bar is an indeterminate progress bar, then the value IDL attribute, on
- getting, must return 0. Otherwise, it must return the current value. On setting, the given value must be
- converted to the best representation of the number as a floating-point number and
- then the value content attribute must be set to that
- string.
The value getter steps are to return 0 if this
+ is an indeterminate progress bar; otherwise this's current value.
Setting the value IDL attribute to itself
when the corresponding content attribute is absent would change the progress bar from an
indeterminate progress bar to a determinate progress bar with no progress.
The max
- IDL attribute must reflect the content attribute of the same name, limited to
- only positive numbers. The default value for max is 1.0.
The labels IDL attribute provides a list of the element's
labels.
The value IDL
- attribute, on getting, must return the actual value. On
- setting, the given value must be converted to the best representation of the number as a
- floating-point number and then the value content
- attribute must be set to that string.
The value
+ getter steps are to return this's actual
+ value.
The min IDL
- attribute, on getting, must return the minimum value.
- On setting, the given value must be converted to the best representation of the number as a
- floating-point number and then the min content
- attribute must be set to that string.
The min getter
+ steps are to return this's minimum
+ value.
The max IDL
- attribute, on getting, must return the maximum value.
- On setting, the given value must be converted to the best representation of the number as a
- floating-point number and then the max content
- attribute must be set to that string.
The max getter
+ steps are to return this's maximum
+ value.
The low IDL
- attribute, on getting, must return the low boundary. On
- setting, the given value must be converted to the best representation of the number as a
- floating-point number and then the low content
- attribute must be set to that string.
The low getter
+ steps are to return this's low boundary.
The high IDL
- attribute, on getting, must return the high boundary. On
- setting, the given value must be converted to the best representation of the number as a
- floating-point number and then the high content
- attribute must be set to that string.
The high
+ getter steps are to return this's high
+ boundary.
The optimum
- IDL attribute, on getting, must return the optimum
- value. On setting, the given value must be converted to the best representation of
- the number as a floating-point number and then the optimum content attribute must be set to that string.
The labels IDL attribute provides a list of the element's
labels.
The disabled IDL attribute must reflect the
- content attribute of the same name.
The type
IDL attribute must return the string "fieldset".
setCustomValidity() methods, are part of the
constraint validation API. The form and name IDL attributes are part of the element's forms API.
+ data-x="dom-fieldset-name">name IDL attributes are part of the element's forms API.
The name IDL attribute must reflect the name content attribute.
DOM clobbering is a common cause of security issues. Avoid using the names of
built-in form properties with the name content attribute.
The disabled IDL attribute must reflect the disabled content attribute.
The action IDL
- attribute must reflect the content attribute of the same name, except that on
- getting, when the content attribute is missing or its value is the empty string, the element's
- node document's URL must be returned
- instead. The target
- IDL attribute must reflect the content attribute of the same name. The method and enctype IDL attributes must
- reflect the respective content attributes of the same name, limited to only
- known values. The The action
+ getter steps are:
Let attribute be this's action attribute.
If attribute is null or attribute's value is the empty string, then return + this's node document's URL.
Let urlString be the result of encoding-parsing-and-serializing a + URL given attribute's value, + relative to this's node document.
If urlString is not failure, then return urlString.
Return attribute's value, converted to a scalar value string.
The formAction getter steps are:
Let attribute be this's formaction attribute.
If attribute is null or attribute's value is the empty string, then return + this's node document's URL.
Let urlString be the result of encoding-parsing-and-serializing a + URL given attribute's value, + relative to this's node document.
If urlString is not failure, then return urlString.
Return attribute's value, converted to a scalar value string.
The method and
+ enctype IDL
+ attributes must reflect the respective content attributes of the same name,
+ limited to only known values. The encoding IDL attribute must reflect the enctype content attribute, limited to only known
- values. The noValidate IDL attribute must reflect the
- novalidate content attribute. The formAction
- IDL attribute must reflect the formaction
- content attribute, except that on getting, when the content attribute is missing or its value is
- the empty string, the element's node document's URL must be returned instead. The . The formEnctype IDL attribute must reflect the
formenctype content attribute, limited to only
known values. The formMethod IDL attribute must reflect the
formmethod content attribute, limited to only known
- values. The formNoValidate IDL attribute must reflect
- the formnovalidate content attribute. The formTarget IDL
- attribute must reflect the formtarget
- content attribute.
+ values
The autocomplete IDL attribute, on getting, must return the
- element's IDL-exposed autofill value, and on setting, must reflect the
- content attribute of the same name.
HTMLDetailsElement.The name
- and open
- IDL attributes must reflect the respective content attributes of the same name.
The ancestor details revealing algorithm is to run the following steps on @@ -62669,9 +62383,9 @@ interface HTMLDetailsElement : HTMLElement { interface HTMLDialogElement : HTMLElement { [HTMLConstructor] constructor(); - [CEReactions] attribute boolean open; + [CEReactions, Reflect] attribute boolean open; attribute DOMString returnValue; - [CEReactions] attribute DOMString closedBy; + [CEReactions, ReflectSetter] attribute DOMString closedBy; [CEReactions] undefined show(); [CEReactions] undefined showModal(); [CEReactions] undefined close(optional DOMString returnValue); @@ -63032,13 +62746,6 @@ interface HTMLDialogElement : HTMLElement { data-x="dom-dialog-closedBy">closedBy getter steps are to return the keyword corresponding to the computed closed-by state given this.
-The closedBy setter steps are to set the closedby content attribute to the given value.
The open IDL
- attribute must reflect the open content
- attribute.
Each The IDL attributes The The The The The The The IDL attribute does intentionally not have a boolean type so it can be
- extended. The shadowRootCustomElementRegistry IDL
+ attribute intentionally does not have a boolean type so it can be extended. The The The To prevent abuse of certain APIs that could be annoying to users (e.g., opening popups or
@@ -81944,13 +81612,32 @@ dictionary CommandEventInit : EventInit {
- The The Let attribute be this's If attribute is not null: Let parsedValue be the result of integer parsing attribute's value. If parsedValue is not an error and is within the Return 0 if this is an The varying default value based on element type is a historical artifact. Focusing the element does not imply that the user agent has to focus the browser
window if it has lost focus. The Document has a dialog pointerdown target, which is an HTMLDialogElement : HTMLElement {
interface HTMLScriptElement : HTMLElement {
[HTMLConstructor] constructor();
- [CEReactions] attribute DOMString type;
- [CEReactions] attribute USVString src;
- [CEReactions] attribute boolean noModule;
+ [CEReactions, Reflect] attribute DOMString type;
+ [CEReactions, ReflectURL] attribute USVString src;
+ [CEReactions, Reflect] attribute boolean noModule;
[CEReactions] attribute boolean async;
- [CEReactions] attribute boolean defer;
- [SameObject, PutForwards=value] readonly attribute DOMTokenList blocking;
+ [CEReactions, Reflect] attribute boolean defer;
+ [SameObject, PutForwards=value, Reflect] readonly attribute DOMTokenList blocking;
[CEReactions] attribute DOMString? crossOrigin;
[CEReactions] attribute DOMString referrerPolicy;
- [CEReactions] attribute DOMString integrity;
+ [CEReactions, Reflect] attribute DOMString integrity;
[CEReactions] attribute DOMString fetchPriority;
[CEReactions] attribute DOMString text;
@@ -63960,18 +63667,6 @@ interface HTMLScriptElement : HTMLElement {
src, type, defer, integrity, and blocking must each
- reflect the respective content attributes of the same name.noModule IDL attribute must reflect the
- nomodule content attribute.crossOrigin IDL attribute must reflect
the crossorigin content attribute, limited to
@@ -65519,10 +65214,10 @@ interface HTMLTemplateElement : HTMLElement {
readonly attribute DocumentFragment content;
[CEReactions] attribute DOMString shadowRootMode;
- [CEReactions] attribute boolean shadowRootDelegatesFocus;
- [CEReactions] attribute boolean shadowRootClonable;
- [CEReactions] attribute boolean shadowRootSerializable;
- [CEReactions] attribute DOMString shadowRootCustomElementRegistry;
+ [CEReactions, Reflect] attribute boolean shadowRootDelegatesFocus;
+ [CEReactions, Reflect] attribute boolean shadowRootClonable;
+ [CEReactions, Reflect] attribute boolean shadowRootSerializable;
+ [CEReactions, Reflect] attribute DOMString shadowRootCustomElementRegistry;
};
HTMLTemplateElement.shadowrootmode content
attribute, limited to only known values.shadowRootDelegatesFocus IDL attribute
- must reflect the shadowrootdelegatesfocus content
- attribute.shadowRootClonable IDL attribute must
- reflect the shadowrootclonable
- content attribute.shadowRootSerializable IDL attribute
- must reflect the shadowrootserializable content attribute.shadowRootCustomElementRegistry
- IDL attribute must reflect the shadowrootcustomelementregistry
- content attribute.
@@ -65860,7 +65534,7 @@ interface HTMLTemplateElement : HTMLElement {
interface HTMLSlotElement : HTMLElement {
[HTMLConstructor] constructor();
- [CEReactions] attribute DOMString name;
+ [CEReactions, Reflect] attribute DOMString name;
sequence<Node> assignedNodes(optional AssignedNodesOptions options = {});
sequence<Element> assignedElements(optional AssignedNodesOptions options = {});
undefined assign((Element or Text)... nodes);
@@ -65915,9 +65589,6 @@ dictionary AssignedNodesOptions {
nodes.
- name IDL
- attribute must reflect the content attribute of the same name.slot element has manually assigned
nodes, which is an ordered set of slottables set by assign().
@@ -80818,9 +80489,6 @@ interface VisibilityStateEntry : PerformanceEntry
inert IDL attribute
- must reflect the content attribute of the same name.Tracking user activation
tabIndex IDL
- attribute must reflect the value of the tabindex
- content attribute. The default value is 0 if the element is an a,
- area, button, frame, iframe,
- input, object, select, textarea, or SVG
- a element, or is a summary element that is a summary for
- its parent details. The default value is −1 otherwise.tabIndex
+ getter steps are:
+
tabindex attribute.
+
+ long range, then return parsedValue.a, area,
+ button, frame, iframe, input,
+ object, select, textarea, or SVG
+ a element, or is a summary element that is a summary for
+ its parent details; otherwise 1.autofocus IDL attribute must reflect the
- content attribute of the same name.
The accessKey IDL
- attribute must reflect the accesskey content
- attribute.
The accessKeyLabel IDL attribute must return a string that
represents the element's assigned access key, if any. If the element does not have
@@ -83821,13 +83500,6 @@ body { display:none }
attribute is not affected by user preferences that override the writingsuggestions content attribute, and therefore
might not reflect the actual writing suggestions state.
The writingSuggestions setter steps are:
Set this's writingsuggestions
- content attribute to the given value.
Return the keyword value corresponding to state.
The autocapitalize setter steps are to set the autocapitalize content attribute to the given value.
User agents that support customizable autocapitalization behavior for a text input method and @@ -88436,14 +88105,10 @@ dictionary DragEventInit : MouseEventInit { DOM interface:
interface mixin PopoverInvokerElement {
- [CEReactions] attribute Element? popoverTargetElement;
+ [CEReactions, Reflect] attribute Element? popoverTargetElement;
[CEReactions] attribute DOMString popoverTargetAction;
};
- The popoverTargetElement IDL attribute must
- reflect the popovertarget attribute.
The popoverTargetAction IDL attribute must
reflect the popovertargetaction
@@ -141119,17 +140784,17 @@ if (s = prompt('What is your name?')) {
interface HTMLMarqueeElement : HTMLElement {
[HTMLConstructor] constructor();
- [CEReactions] attribute DOMString behavior;
- [CEReactions] attribute DOMString bgColor;
- [CEReactions] attribute DOMString direction;
- [CEReactions] attribute DOMString height;
- [CEReactions] attribute unsigned long hspace;
+ [CEReactions, Reflect] attribute DOMString behavior;
+ [CEReactions, Reflect] attribute DOMString bgColor;
+ [CEReactions, Reflect] attribute DOMString direction;
+ [CEReactions, Reflect] attribute DOMString height;
+ [CEReactions, Reflect] attribute unsigned long hspace;
[CEReactions] attribute long loop;
- [CEReactions] attribute unsigned long scrollAmount;
- [CEReactions] attribute unsigned long scrollDelay;
- [CEReactions] attribute boolean trueSpeed;
- [CEReactions] attribute unsigned long vspace;
- [CEReactions] attribute DOMString width;
+ [CEReactions, Reflect, ReflectDefault=6] attribute unsigned long scrollAmount;
+ [CEReactions, Reflect, ReflectDefault=85] attribute unsigned long scrollDelay;
+ [CEReactions, Reflect] attribute boolean trueSpeed;
+ [CEReactions, Reflect] attribute unsigned long vspace;
+ [CEReactions, Reflect] attribute DOMString width;
undefined start();
undefined stop();
@@ -141270,33 +140935,6 @@ interface HTMLMarqueeElement : HTMLElement {
The behavior, direction, height, hspace, vspace, and width IDL attributes must
- reflect the respective content attributes of the same name.
The bgColor IDL attribute must reflect the
- bgcolor content attribute.
The scrollAmount IDL attribute must
- reflect the scrollamount
- content attribute. The default value is 6.
The scrollDelay IDL attribute must reflect
- the scrolldelay content attribute. The
- default value is 85.
The trueSpeed IDL attribute must reflect the
- truespeed content attribute.
The cols
- and rows
- IDL attributes of the frameset element must reflect the respective
- content attributes of the same name.
The frameset element exposes as event handler content attributes a
number of the event handlers of the Window object. It also mirrors their
event handler IDL attributes.
The name, scrolling, and
- src IDL attributes
- of the frame element must reflect the respective content attributes of
- the same name. For the purposes of reflection, the frame element's src content attribute is defined as containing a
- URL.
The frameBorder IDL attribute of the frame
- element must reflect the element's frameborder content attribute.
The longDesc IDL attribute of the frame element
- must reflect the element's longdesc content attribute, which for the purposes of
- reflection is defined as containing a URL.
The noResize IDL attribute of the frame element
- must reflect the element's noresize content attribute.
The marginHeight IDL attribute of the frame
- element must reflect the element's marginheight content attribute.
The marginWidth IDL attribute of the frame
- element must reflect the element's marginwidth content attribute.
The contentDocument getter steps are to return
this's content document.
partial interface HTMLAnchorElement {
- [CEReactions] attribute DOMString coords;
- [CEReactions] attribute DOMString charset;
- [CEReactions] attribute DOMString name;
- [CEReactions] attribute DOMString rev;
- [CEReactions] attribute DOMString shape;
+ [CEReactions, Reflect] attribute DOMString coords;
+ [CEReactions, Reflect] attribute DOMString charset;
+ [CEReactions, Reflect] attribute DOMString name;
+ [CEReactions, Reflect] attribute DOMString rev;
+ [CEReactions, Reflect] attribute DOMString shape;
};
- The coords,
- charset, name, rev, and shape IDL attributes of the
- a element must reflect the respective content attributes of the same
- name.
partial interface HTMLAreaElement {
- [CEReactions] attribute boolean noHref;
+ [CEReactions, Reflect] attribute boolean noHref;
};
- The noHref IDL
- attribute of the area element must reflect the element's nohref content attribute.
partial interface HTMLBodyElement {
- [CEReactions] attribute [LegacyNullToEmptyString] DOMString text;
- [CEReactions] attribute [LegacyNullToEmptyString] DOMString link;
- [CEReactions] attribute [LegacyNullToEmptyString] DOMString vLink;
- [CEReactions] attribute [LegacyNullToEmptyString] DOMString aLink;
- [CEReactions] attribute [LegacyNullToEmptyString] DOMString bgColor;
- [CEReactions] attribute DOMString background;
+ [CEReactions, Reflect] attribute [LegacyNullToEmptyString] DOMString text;
+ [CEReactions, Reflect] attribute [LegacyNullToEmptyString] DOMString link;
+ [CEReactions, Reflect] attribute [LegacyNullToEmptyString] DOMString vLink;
+ [CEReactions, Reflect] attribute [LegacyNullToEmptyString] DOMString aLink;
+ [CEReactions, Reflect] attribute [LegacyNullToEmptyString] DOMString bgColor;
+ [CEReactions, Reflect] attribute DOMString background;
};
- The text IDL
- attribute of the body element must reflect the element's text content attribute.
The link IDL
- attribute of the body element must reflect the element's link content attribute.
The aLink IDL
- attribute of the body element must reflect the element's alink content attribute.
The vLink IDL
- attribute of the body element must reflect the element's vlink content attribute.
The bgColor
- IDL attribute of the body element must reflect the element's bgcolor content attribute.
The background IDL attribute of the body
- element must reflect the element's background
- content attribute. (The background content is not
- defined to contain a URL, despite rules regarding its handling in the Rendering
- section above.)
The background IDL attribute does not
+ use ReflectURL or USVString for historical reasons.
partial interface HTMLBRElement {
- [CEReactions] attribute DOMString clear;
+ [CEReactions, Reflect] attribute DOMString clear;
};
- The clear IDL
- attribute of the br element must reflect the content attribute of the
- same name.
partial interface HTMLTableCaptionElement {
- [CEReactions] attribute DOMString align;
+ [CEReactions, Reflect] attribute DOMString align;
};
- The align IDL attribute of the caption element
- must reflect the content attribute of the same name.
partial interface HTMLTableColElement {
- [CEReactions] attribute DOMString align;
- [CEReactions] attribute DOMString ch;
- [CEReactions] attribute DOMString chOff;
- [CEReactions] attribute DOMString vAlign;
- [CEReactions] attribute DOMString width;
+ [CEReactions, Reflect] attribute DOMString align;
+ [CEReactions, Reflect="char"] attribute DOMString ch;
+ [CEReactions, Reflect="charoff"] attribute DOMString chOff;
+ [CEReactions, Reflect] attribute DOMString vAlign;
+ [CEReactions, Reflect] attribute DOMString width;
};
- The align
- and width IDL
- attributes of the col element must reflect the respective content
- attributes of the same name.
The ch IDL
- attribute of the col element must reflect the element's char content attribute.
The chOff
- IDL attribute of the col element must reflect the element's charoff content attribute.
The vAlign
- IDL attribute of the col element must reflect the element's valign content attribute.
User agents must treat dir elements in a manner equivalent to ul
@@ -141583,45 +141122,28 @@ interface HTMLFrameElement : HTMLElement {
interface HTMLDirectoryElement : HTMLElement {
[HTMLConstructor] constructor();
- [CEReactions] attribute boolean compact;
+ [CEReactions, Reflect] attribute boolean compact;
};
-
The compact IDL attribute of the dir element must
- reflect the content attribute of the same name.
partial interface HTMLDivElement {
- [CEReactions] attribute DOMString align;
+ [CEReactions, Reflect] attribute DOMString align;
};
- The align IDL
- attribute of the div element must reflect the content attribute of the
- same name.
partial interface HTMLDListElement {
- [CEReactions] attribute boolean compact;
+ [CEReactions, Reflect] attribute boolean compact;
};
- The compact
- IDL attribute of the dl element must reflect the content attribute of
- the same name.
partial interface HTMLEmbedElement {
- [CEReactions] attribute DOMString align;
- [CEReactions] attribute DOMString name;
+ [CEReactions, Reflect] attribute DOMString align;
+ [CEReactions, Reflect] attribute DOMString name;
};
- The name and
- align IDL
- attributes of the embed element must reflect the respective content
- attributes of the same name.
The font element must implement the HTMLFontElement interface.
The color, face, and size IDL attributes of the
- font element must reflect the respective content attributes of the same
- name.
partial interface HTMLHeadingElement {
- [CEReactions] attribute DOMString align;
+ [CEReactions, Reflect] attribute DOMString align;
};
- The align IDL
- attribute of the h1–h6 elements must reflect the
- content attribute of the same name.
The HTMLFontElement : HTMLElement {
partial interface HTMLHRElement {
- [CEReactions] attribute DOMString align;
- [CEReactions] attribute DOMString color;
- [CEReactions] attribute boolean noShade;
- [CEReactions] attribute DOMString size;
- [CEReactions] attribute DOMString width;
+ [CEReactions, Reflect] attribute DOMString align;
+ [CEReactions, Reflect] attribute DOMString color;
+ [CEReactions, Reflect] attribute boolean noShade;
+ [CEReactions, Reflect] attribute DOMString size;
+ [CEReactions, Reflect] attribute DOMString width;
};
- The align, color, size, and width IDL attributes of the
- hr element must reflect the respective content attributes of the same
- name.
The noShade IDL
- attribute of the hr element must reflect the element's noshade content attribute.
partial interface HTMLHtmlElement {
- [CEReactions] attribute DOMString version;
+ [CEReactions, Reflect] attribute DOMString version;
};
- The version
- IDL attribute of the html element must reflect the content attribute of
- the same name.
partial interface HTMLIFrameElement {
- [CEReactions] attribute DOMString align;
- [CEReactions] attribute DOMString scrolling;
- [CEReactions] attribute DOMString frameBorder;
- [CEReactions] attribute USVString longDesc;
+ [CEReactions, Reflect] attribute DOMString align;
+ [CEReactions, Reflect] attribute DOMString scrolling;
+ [CEReactions, Reflect] attribute DOMString frameBorder;
+ [CEReactions, ReflectURL] attribute USVString longDesc;
- [CEReactions] attribute [LegacyNullToEmptyString] DOMString marginHeight;
- [CEReactions] attribute [LegacyNullToEmptyString] DOMString marginWidth;
+ [CEReactions, Reflect] attribute [LegacyNullToEmptyString] DOMString marginHeight;
+ [CEReactions, Reflect] attribute [LegacyNullToEmptyString] DOMString marginWidth;
};
- The align
- and scrolling IDL attributes of the iframe
- element must reflect the respective content attributes of the same name.
The frameBorder IDL attribute of the iframe
- element must reflect the element's frameborder content attribute.
The longDesc IDL attribute of the iframe
- element must reflect the element's longdesc content attribute, which for the purposes of
- reflection is defined as containing a URL.
The marginHeight IDL attribute of the
- iframe element must reflect the element's marginheight content attribute.
The marginWidth IDL attribute of the iframe
- element must reflect the element's marginwidth content attribute.
partial interface HTMLImageElement {
- [CEReactions] attribute DOMString name;
- [CEReactions] attribute USVString lowsrc;
- [CEReactions] attribute DOMString align;
- [CEReactions] attribute unsigned long hspace;
- [CEReactions] attribute unsigned long vspace;
- [CEReactions] attribute USVString longDesc;
-
- [CEReactions] attribute [LegacyNullToEmptyString] DOMString border;
+ [CEReactions, Reflect] attribute DOMString name;
+ [CEReactions, ReflectURL] attribute USVString lowsrc;
+ [CEReactions, Reflect] attribute DOMString align;
+ [CEReactions, Reflect] attribute unsigned long hspace;
+ [CEReactions, Reflect] attribute unsigned long vspace;
+ [CEReactions, ReflectURL] attribute USVString longDesc;
+
+ [CEReactions, Reflect] attribute [LegacyNullToEmptyString] DOMString border;
};
- The name, align, border, hspace, and vspace IDL attributes of the
- img element must reflect the respective content attributes of the same
- name.
The longDesc
- IDL attribute of the img element must reflect the element's longdesc content attribute, which for the purposes of reflection
- is defined as containing a URL.
The lowsrc IDL
- attribute of the img element must reflect the element's lowsrc content attribute, which for the purposes of reflection is
- defined as containing a URL.
partial interface HTMLInputElement {
- [CEReactions] attribute DOMString align;
- [CEReactions] attribute DOMString useMap;
+ [CEReactions, Reflect] attribute DOMString align;
+ [CEReactions, Reflect] attribute DOMString useMap;
};
- The align IDL
- attribute of the input element must reflect the content attribute of the
- same name.
The useMap
- IDL attribute of the input element must reflect the element's usemap content attribute.
partial interface HTMLLegendElement {
- [CEReactions] attribute DOMString align;
+ [CEReactions, Reflect] attribute DOMString align;
};
- The align
- IDL attribute of the legend element must reflect the content attribute
- of the same name.
partial interface HTMLLIElement {
- [CEReactions] attribute DOMString type;
+ [CEReactions, Reflect] attribute DOMString type;
};
- The type IDL
- attribute of the li element must reflect the content attribute of the
- same name.
partial interface HTMLLinkElement {
- [CEReactions] attribute DOMString charset;
- [CEReactions] attribute DOMString rev;
- [CEReactions] attribute DOMString target;
+ [CEReactions, Reflect] attribute DOMString charset;
+ [CEReactions, Reflect] attribute DOMString rev;
+ [CEReactions, Reflect] attribute DOMString target;
};
- The charset,
- rev, and target IDL attributes
- of the link element must reflect the respective content attributes of
- the same name.
User agents must treat listing elements in a manner equivalent to pre
@@ -141817,17 +141248,13 @@ interface HTMLFontElement : HTMLElement {
partial interface HTMLMenuElement {
- [CEReactions] attribute boolean compact;
+ [CEReactions, Reflect] attribute boolean compact;
};
- The compact
- IDL attribute of the menu element must reflect the content attribute of
- the same name.
partial interface HTMLMetaElement {
- [CEReactions] attribute DOMString scheme;
+ [CEReactions, Reflect] attribute DOMString scheme;
};
User agents may treat the scheme content attribute on the
@@ -141862,73 +141289,35 @@ interface HTMLFontElement : HTMLElement {
-
The scheme IDL
- attribute of the meta element must reflect the content attribute of the
- same name.
partial interface HTMLObjectElement {
- [CEReactions] attribute DOMString align;
- [CEReactions] attribute DOMString archive;
- [CEReactions] attribute DOMString code;
- [CEReactions] attribute boolean declare;
- [CEReactions] attribute unsigned long hspace;
- [CEReactions] attribute DOMString standby;
- [CEReactions] attribute unsigned long vspace;
- [CEReactions] attribute DOMString codeBase;
- [CEReactions] attribute DOMString codeType;
- [CEReactions] attribute DOMString useMap;
-
- [CEReactions] attribute [LegacyNullToEmptyString] DOMString border;
+ [CEReactions, Reflect] attribute DOMString align;
+ [CEReactions, Reflect] attribute DOMString archive;
+ [CEReactions, Reflect] attribute DOMString code;
+ [CEReactions, Reflect] attribute boolean declare;
+ [CEReactions, Reflect] attribute unsigned long hspace;
+ [CEReactions, Reflect] attribute DOMString standby;
+ [CEReactions, Reflect] attribute unsigned long vspace;
+ [CEReactions, ReflectURL] attribute DOMString codeBase;
+ [CEReactions, Reflect] attribute DOMString codeType;
+ [CEReactions, Reflect] attribute DOMString useMap;
+
+ [CEReactions, Reflect] attribute [LegacyNullToEmptyString] DOMString border;
};
- The align,
- archive,
- border, code, declare, hspace, standby, and vspace IDL attributes of the
- object element must reflect the respective content attributes of the
- same name.
The codeBase IDL attribute of the object
- element must reflect the element's codebase content attribute, which for the purposes of
- reflection is defined as containing a URL.
The codeType IDL attribute of the object
- element must reflect the element's codetype content attribute.
The useMap
- IDL attribute must reflect the usemap
- content attribute.
partial interface HTMLOListElement {
- [CEReactions] attribute boolean compact;
+ [CEReactions, Reflect] attribute boolean compact;
};
- The compact
- IDL attribute of the ol element must reflect the content attribute of
- the same name.
partial interface HTMLParagraphElement {
- [CEReactions] attribute DOMString align;
+ [CEReactions, Reflect] attribute DOMString align;
};
- The align IDL
- attribute of the p element must reflect the content attribute of the
- same name.
The param element must implement the HTMLParamElement interface.
The name,
- value, and type IDL attributes
- of the param element must reflect the respective content attributes of
- the same name.
The valueType IDL attribute of the param
- element must reflect the element's valuetype content
- attribute.
User agents must treat plaintext elements in a manner equivalent to
@@ -141963,197 +141341,81 @@ interface HTMLParamElement : HTMLElement {
partial interface HTMLPreElement {
- [CEReactions] attribute long width;
+ [CEReactions, Reflect] attribute long width;
};
- The width IDL
- attribute of the pre element must reflect the content attribute of the
- same name.
partial interface HTMLStyleElement {
- [CEReactions] attribute DOMString type;
+ [CEReactions, Reflect] attribute DOMString type;
};
- The type IDL
- attribute of the style element must reflect the element's type content attribute.
partial interface HTMLScriptElement {
- [CEReactions] attribute DOMString charset;
- [CEReactions] attribute DOMString event;
- [CEReactions] attribute DOMString htmlFor;
+ [CEReactions, Reflect] attribute DOMString charset;
+ [CEReactions, Reflect] attribute DOMString event;
+ [CEReactions, Reflect="for"] attribute DOMString htmlFor;
};
- The charset and event IDL attributes of the script element
- must reflect the respective content attributes of the same name.
The htmlFor IDL attribute of the script element
- must reflect the element's for content
- attribute.
partial interface HTMLTableElement {
- [CEReactions] attribute DOMString align;
- [CEReactions] attribute DOMString border;
- [CEReactions] attribute DOMString frame;
- [CEReactions] attribute DOMString rules;
- [CEReactions] attribute DOMString summary;
- [CEReactions] attribute DOMString width;
-
- [CEReactions] attribute [LegacyNullToEmptyString] DOMString bgColor;
- [CEReactions] attribute [LegacyNullToEmptyString] DOMString cellPadding;
- [CEReactions] attribute [LegacyNullToEmptyString] DOMString cellSpacing;
+ [CEReactions, Reflect] attribute DOMString align;
+ [CEReactions, Reflect] attribute DOMString border;
+ [CEReactions, Reflect] attribute DOMString frame;
+ [CEReactions, Reflect] attribute DOMString rules;
+ [CEReactions, Reflect] attribute DOMString summary;
+ [CEReactions, Reflect] attribute DOMString width;
+
+ [CEReactions, Reflect] attribute [LegacyNullToEmptyString] DOMString bgColor;
+ [CEReactions, Reflect] attribute [LegacyNullToEmptyString] DOMString cellPadding;
+ [CEReactions, Reflect] attribute [LegacyNullToEmptyString] DOMString cellSpacing;
};
- The align,
- border, frame, summary, rules, and width IDL attributes of the
- table element must reflect the respective content attributes of the same
- name.
The bgColor
- IDL attribute of the table element must reflect the element's bgcolor content attribute.
The cellPadding IDL attribute of the table
- element must reflect the element's cellpadding content attribute.
The cellSpacing IDL attribute of the table
- element must reflect the element's cellspacing content attribute.
partial interface HTMLTableSectionElement {
- [CEReactions] attribute DOMString align;
- [CEReactions] attribute DOMString ch;
- [CEReactions] attribute DOMString chOff;
- [CEReactions] attribute DOMString vAlign;
+ [CEReactions, Reflect] attribute DOMString align;
+ [CEReactions, Reflect="char"] attribute DOMString ch;
+ [CEReactions, Reflect="charoff"] attribute DOMString chOff;
+ [CEReactions, Reflect] attribute DOMString vAlign;
};
- The align IDL attribute of the tbody,
- thead, and tfoot elements must reflect the content
- attribute of the same name.
The ch
- IDL attribute of the tbody, thead, and tfoot elements must
- reflect the elements' char content
- attributes.
The chOff IDL attribute of the tbody,
- thead, and tfoot elements must reflect the elements' charoff content attributes.
The vAlign IDL attribute of the tbody,
- thead, and tfoot elements must reflect the elements' valign content attributes.
partial interface HTMLTableCellElement {
- [CEReactions] attribute DOMString align;
- [CEReactions] attribute DOMString axis;
- [CEReactions] attribute DOMString height;
- [CEReactions] attribute DOMString width;
+ [CEReactions, Reflect] attribute DOMString align;
+ [CEReactions, Reflect] attribute DOMString axis;
+ [CEReactions, Reflect] attribute DOMString height;
+ [CEReactions, Reflect] attribute DOMString width;
- [CEReactions] attribute DOMString ch;
- [CEReactions] attribute DOMString chOff;
- [CEReactions] attribute boolean noWrap;
- [CEReactions] attribute DOMString vAlign;
+ [CEReactions, Reflect="char"] attribute DOMString ch;
+ [CEReactions, Reflect="charoff"] attribute DOMString chOff;
+ [CEReactions, Reflect] attribute boolean noWrap;
+ [CEReactions, Reflect] attribute DOMString vAlign;
- [CEReactions] attribute [LegacyNullToEmptyString] DOMString bgColor;
+ [CEReactions, Reflect] attribute [LegacyNullToEmptyString] DOMString bgColor;
};
- The align,
- axis, height, and width IDL
- attributes of the td and th elements must reflect the
- respective content attributes of the same name.
The ch IDL
- attribute of the td and th elements must reflect the
- elements' char content attributes.
The chOff
- IDL attribute of the td and th elements must reflect the
- elements' charoff content attributes.
The noWrap IDL attribute of the td and
- th elements must reflect the elements' nowrap content attributes.
The vAlign IDL attribute of the td and
- th elements must reflect the elements' valign content attributes.
The bgColor IDL attribute of the td and
- th elements must reflect the elements' bgcolor content attributes.
partial interface HTMLTableRowElement {
- [CEReactions] attribute DOMString align;
- [CEReactions] attribute DOMString ch;
- [CEReactions] attribute DOMString chOff;
- [CEReactions] attribute DOMString vAlign;
+ [CEReactions, Reflect] attribute DOMString align;
+ [CEReactions, Reflect="char"] attribute DOMString ch;
+ [CEReactions, Reflect="charoff"] attribute DOMString chOff;
+ [CEReactions, Reflect] attribute DOMString vAlign;
- [CEReactions] attribute [LegacyNullToEmptyString] DOMString bgColor;
+ [CEReactions, Reflect] attribute [LegacyNullToEmptyString] DOMString bgColor;
};
- The align IDL
- attribute of the tr element must reflect the content attribute of the
- same name.
The ch IDL
- attribute of the tr element must reflect the element's char content attribute.
The chOff IDL
- attribute of the tr element must reflect the element's charoff content attribute.
The vAlign
- IDL attribute of the tr element must reflect the element's valign content attribute.
The bgColor
- IDL attribute of the tr element must reflect the element's bgcolor content attribute.
partial interface HTMLUListElement {
- [CEReactions] attribute boolean compact;
- [CEReactions] attribute DOMString type;
+ [CEReactions, Reflect] attribute boolean compact;
+ [CEReactions, Reflect] attribute DOMString type;
};
- The compact
- and type IDL
- attributes of the ul element must reflect the respective content
- attributes of the same name.
User agents must treat xmp elements in a manner equivalent to pre