- From: <bugzilla@jessica.w3.org>
- Date: Fri, 20 Sep 2013 17:02:21 +0000
- To: public-webapps-bugzilla@w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=23306 Bug ID: 23306 Summary: [Custom]: Add an ownerDocumentChanged callback Product: WebAppsWG Version: unspecified Hardware: PC OS: All Status: NEW Severity: normal Priority: P2 Component: Component Model Assignee: dglazkov@chromium.org Reporter: dominicc@chromium.org QA Contact: public-webapps-bugzilla@w3.org Blocks: 14968 Many elements depend on their browsing context. For example, if you were trying to implement a Custom Element that behaves like IMG, the HTML spec opines: "In a browsing context where scripting is enabled, user agents must obtain images immediately." That means it is necessary to observe ownerDocument changes, since the ownerDocument is an element's link to its browsing context, and moving one of these elements to a new browsing context necessitates some immediate processing step (in this hypothetical case, obtaining images.) It should be called ownerDocumentChangedCallback since ownerDocument is the name of the DOM property of the element. This callback should take two parameters, documents, the old document and new document. In the case of moving an element from in the document tree of one browsing context to being in the document tree of another browsing context, the ordering of this callback relative to the entered/left view callbacks should be: leftViewCallback of the old document ownerDocumentChangedCallback old document to new document enteredViewCallback of the new document -- You are receiving this mail because: You are the QA Contact for the bug.
Received on Friday, 20 September 2013 17:02:23 UTC