This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 16207 - Editing states such as style with css flag should be reset when the document is replaced
Summary: Editing states such as style with css flag should be reset when the document ...
Status: RESOLVED FIXED
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: HISTORICAL - HTML Editing APIs (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Aryeh Gregor
QA Contact: HTML Editing APIs spec bugbot
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-02 20:15 UTC by Ryosuke Niwa
Modified: 2012-03-05 19:31 UTC (History)
3 users (show)

See Also:


Attachments

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!