diff --git a/source b/source index d76ca234b80..4e4d94ab625 100644 --- a/source +++ b/source @@ -12272,12 +12272,11 @@ interface DOMStringMap { -
innerText IDL attributeinnerText getter and
+ setterinnerText [ = value ]Returns the element's text content "as rendered".
@@ -12287,16 +12286,15 @@ interface DOMStringMap {On getting, the innerText attribute must follow
- these steps:
The innerText getter steps are:
If this element is not being rendered, or if the user agent is a non-CSS user - agent, then return this element's descendant text content.
+If this is not being rendered or if the user agent is a non-CSS + user agent, then return this's descendant text content.
This step can produce surprising results, as when the innerText attribute is accessed on an element not being
+ data-x="dom-innerText">innerText getter is invoked on an element not being
rendered, its text contents are returned, but when accessed on an element that is
being rendered, all of its children that are not being rendered have
their text contents ignored.
Let results be a new empty list.
For each child node node of this element:
+For each child node node of this:
Let current be the list resulting in running the inner @@ -12419,11 +12417,10 @@ interface DOMStringMap { stringifier and maybe expose it directly on ranges. See Bugzilla bug 10583.
-On setting, the innerText attribute must follow these
- steps:
The innerText setter steps are:
Let document be this element's node document.
Let document be this's node document.
Let fragment be a new DocumentFragment object whose node
document is document.
Replace all with fragment within - this element.
designMode
- IDL attributeDocuments have a designMode, which can be either enabled or
- disabled.
designMode getter and setterdesignMode [ = value ]Returns "on" if the document is editable, and "off" if it isn't.
The designMode IDL attribute on the
- Document object takes two values, "on" and "off". On setting, the new value must be compared in an ASCII
- case-insensitive manner to these two values; if it matches the "on"
- value, then designMode must be enabled, and if it
- matches the "off" value, then designMode must be disabled. Other values must be
- ignored.
Document objects have an associated design mode enabled, which is a
+ boolean. It is initially false.
On getting, if designMode is enabled, the IDL
- attribute must return the value "on"; otherwise it is disabled, and the
- attribute must return the value "off".
The designMode getter
+ steps are to return "on" if this's design mode
+ enabled is true; otherwise "off".
The last state set must persist until the document is destroyed or the state is changed.
- Initially, documents must have their designMode
- disabled.
The designMode setter steps are:
When the designMode changes from being disabled to
- being enabled, the user agent must immediately reset the document's active range's
- start and end boundary points to be at the start of the Document and then run the
- focusing steps for the document element of the Document, if
- non-null.
Let value be the given value, converted to ASCII + lowercase.
If value is "on" and this's design mode
+ enabled is false, then:
Set this's design mode enabled to true.
Reset this's active range's start and end boundary points to + be at the start of this.
Run the focusing steps for this's document + element, if non-null.
If value is "off", then set this's
+ design mode enabled to false.
An editing host is either an HTML
element with its contenteditable attribute in
the true state, or a child HTML element of a Document with designMode enabled.
Document whose design mode enabled is
+ true.
The definition of the terms active range, W3C Permissive Document License.
-Part of the revision history of the innerText IDL attribute
- can be found in the Part of the revision history of the innerText getter and
+ setter can be found in the rocallahan/innerText-spec
repository.