Bug 16207 - Editing states such as style with css flag should be reset when the document is replaced
Editing states such as style with css flag should be reset when the document ...
Status: RESOLVED FIXED
Product: WebAppsWG
Classification: Unclassified
Component: HTML Editing APIs
unspecified
PC All
: P2 normal
: ---
Assigned To: Aryeh Gregor
HTML Editing APIs spec bugbot
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-03-02 20:15 UTC by Ryosuke Niwa
Modified: 2012-03-05 19:31 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ryosuke Niwa 2012-03-02 20:15:24 UTC
The spec should clarify whether or not document-wide (soon to be per-host) editing states such as of StyleWithCSS and DefaultParagraphSeparator to be reset when a new document is loaded.
Comment 1 Aryeh Gregor 2012-03-05 18:06:25 UTC
IIUC, the HTML spec says that when you load a new document, the Document object is replaced entirely.  Therefore, any state associated with it is replaced.  I added a note to this effect.  I also added that it gets reset on document.open(), which was not explicitly required anywhere before AFAICT.

http://dvcs.w3.org/hg/editing/rev/3859b3153f0c
Comment 2 Ehsan Akhgari [:ehsan] 2012-03-05 19:31:05 UTC
This makes sense to me, thanks!