[whatwg] Fullscreenchange event

Anne van Kesteren annevk at opera.com
Fri Oct 28 23:38:48 PDT 2011


On Sat, 29 Oct 2011 04:18:37 +0200, Chris Pearce <cpearce at mozilla.com>  
wrote:
> Should we still dispatch the fullscreenchange event to the element which  
> requested fullscreen if the element was removed from its document before  
> the event was dispatched? What if the element was added to another  
> document before the event could be dispatched? Should we dispatch to  
> requester's original document in these cases? Or just not dispatch the  
> event? We'll be exiting full-screen in this case anyway, since the  
> element was removed from the doc. Or should we do something else?

There's a similar case with the user exiting fullscreen before the events  
have dispatched. Accounting for it seems like needless complexity. Having  
the event dispatch twice combined with simply checking  
document.fullscreenElement seems sufficient.


-- 
Anne van Kesteren
http://annevankesteren.nl/



More information about the whatwg mailing list