Clarify when CSS styling flag, etc. are cleared
authorAryeh Gregor <ayg@aryeh.name>
Mon, 05 Mar 2012 10:45:01 -0700
changeset 7113859b3153f0c
parent 710 52c84909f3b3
child 712 cbe370176b36
Clarify when CSS styling flag, etc. are cleared

Fixes: https://www.w3.org/Bugs/Public/show_bug.cgi?id=16207
Reported-By: Ryosuke Niwa
editing.html
source.html
     1.1 --- a/editing.html	Mon Mar 05 10:38:38 2012 -0700
     1.2 +++ b/editing.html	Mon Mar 05 10:45:01 2012 -0700
     1.3 @@ -2010,6 +2010,21 @@
     1.4  <p class=XXX>Figure out exactly what commands need to preserve state/value
     1.5  overrides.
     1.6  
     1.7 +<p class=comments>See
     1.8 +<a href="https://www.w3.org/Bugs/Public/show_bug.cgi?id=16207">bug 16207</a>.
     1.9 +
    1.10 +<p>When
    1.11 +<code class=external data-anolis-spec=html title=dom-Document-open><a href=http://www.whatwg.org/specs/web-apps/current-work/multipage/elements.html#dom-document-open>document.open()</a></code> is
    1.12 +called and a <a class=external data-anolis-spec=dom href=http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#concept-document title=concept-document>document</a>'s singleton objects are all replaced by new instances
    1.13 +of those objects, editing state associated with that document (including the
    1.14 +<a href=#css-styling-flag>CSS styling flag</a>, <a href=#default-single-line-container-name>default single-line container name</a>,
    1.15 +and any <a href=#state-override title="state override">state overrides</a> or
    1.16 +<a href=#value-override title="value override">value overrides</a>) must be reset.
    1.17 +
    1.18 +<p class=note>Of course, any action that replaces a <a class=external data-anolis-spec=dom href=http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#concept-document title=concept-document>document</a> object
    1.19 +entirely, such as reloading the page, will also reset any editing state
    1.20 +associated with the document.
    1.21 +
    1.22  <p>When this specification refers to a method or attribute that is defined in a
    1.23  specification, the user agent must treat the method or attribute as defined by
    1.24  that specification.  In particular, if a script has overridden a standard
     2.1 --- a/source.html	Mon Mar 05 10:38:38 2012 -0700
     2.2 +++ b/source.html	Mon Mar 05 10:45:01 2012 -0700
     2.3 @@ -1996,6 +1996,21 @@
     2.4  <p class=XXX>Figure out exactly what commands need to preserve state/value
     2.5  overrides.
     2.6  
     2.7 +<p class=comments>See
     2.8 +<a href=https://www.w3.org/Bugs/Public/show_bug.cgi?id=16207>bug 16207</a>.
     2.9 +
    2.10 +<p>When
    2.11 +<code data-anolis-spec=html title=dom-Document-open>document.open()</code> is
    2.12 +called and a [[document]]'s singleton objects are all replaced by new instances
    2.13 +of those objects, editing state associated with that document (including the
    2.14 +<span>CSS styling flag</span>, <span>default single-line container name</span>,
    2.15 +and any <span title="state override">state overrides</span> or
    2.16 +<span title="value override">value overrides</span>) must be reset.
    2.17 +
    2.18 +<p class=note>Of course, any action that replaces a [[document]] object
    2.19 +entirely, such as reloading the page, will also reset any editing state
    2.20 +associated with the document.
    2.21 +
    2.22  <p>When this specification refers to a method or attribute that is defined in a
    2.23  specification, the user agent must treat the method or attribute as defined by
    2.24  that specification.  In particular, if a script has overridden a standard