neovov / Fullscreen-API-Polyfill

MIT License
64 stars 17 forks source link

use w3.element instead of api.element #26

Closed cnspaha closed 8 years ago

cnspaha commented 8 years ago

I think that is the more correct way.

neovov commented 8 years ago

It is better to request the current API than the binded one. Using doc[w3.element] would reject the promise while exiting fullscreen (doc[api.element] is correctly at null since we just exited fullscreen, doc[w3.element] is still binded to the fullscreen element).