From 01a5426ec518c468a7758ceade9d208034bcc95c Mon Sep 17 00:00:00 2001
From: Anne van Kesteren Documents have a Returns " The On getting, if The The last state set must persist until the document is destroyed or the state is changed.
- Initially, documents must have their The When the Let value be the given value, converted to ASCII
+ lowercase. If value is " 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 " An editing host is either an HTML
element with its Making entire documents editable: the
-
- designMode
- IDL attributedesignMode, which can be either enabled or
- disabled.Making entire documents
+ editable: the
designMode getter and setter
-
designMode [ = value ]on" if the document is editable, and "off" if it isn't.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.designMode is enabled, the IDL
- attribute must return the value "on"; otherwise it is disabled, and the
- attribute must return the value "off".designMode getter
+ steps are to return "on" if this's design mode
+ enabled is true; otherwise "off".designMode
- disabled.designMode setter steps are: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.
+
on" and this's design mode
+ enabled is false, then:
+
+ off", then set this's
+ design mode enabled to false.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,
Date: Sat, 30 May 2020 12:24:16 +0200
Subject: [PATCH 2/2] Editorial: refactor innerText
---
source | 27 ++++++++++++---------------
1 file changed, 12 insertions(+), 15 deletions(-)
diff --git a/source b/source
index 924257f3fc8..4e4d94ab625 100644
--- a/source
+++ b/source
@@ -12272,12 +12272,11 @@ interface DOMStringMap {
- Returns the element's text content "as rendered". On getting, the The 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 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 The Let document be this element's node document. Let document be this's node document. Let fragment be a new Replace all with fragment within
- this element.The
+ innerText IDL attributeThe
innerText getter and
+ setter
-
innerText [ = value ]innerText attribute must follow
- these steps:innerText getter steps are:
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.
innerText attribute must follow these
- steps:innerText setter steps are:
-
DocumentFragment object whose node
document is document.
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.