[Bug 23669] [Custom]: "leftView" type of callbacks should not be called on "this document has a browsing context"

https://www.w3.org/Bugs/Public/show_bug.cgi?id=23669

Dimitri Glazkov <dglazkov@chromium.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |WONTFIX

--- Comment #1 from Dimitri Glazkov <dglazkov@chromium.org> ---
(In reply to Tetsuharu OHZEKI from comment #0)
> [reproducible revision]
> http://www.w3.org/TR/2013/WD-custom-elements-20131024/
> 
> In this spec revision, 5.2 Types of Callbacks defines "leftView" type like
> this:
> > Unless specified otherwise, this callback must be enqueued whenever custom
> > element is removed from the document and this document has a browsing context.
> 
> But this last sentence, "this callback must be enqueued whenever ... this
> document has a browsing context", is same sentence as the definition of
> "enteredView":
> > Unless specified otherwise, this callback must be enqueued whenever custom
> > element is removed from the document and this document has a browsing context.
> 
> I think the definition of "leftView" should be "this document lost a
> browsing context" from the viewpoint of symmetry between "enteredView" and
> "leftView".

This is intentional. "leftView" is only called when the element's document
changes, not when the document changes itself.

One motivation here is avoid slowing down destruction of the document by
invoking a bunch of callbacks on its elements.

If you have a specific use case that you feel needs to be address, please
reopen the bug and post it here :)

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Friday, 8 November 2013 20:48:40 UTC