title: Is there a way to tell whether Safari is fullscreen? (e.g. document.fullscreenElement)
body: <p>I am trying to find out whether Safari is in fullscreen mode using Javascript. Chrome and Mozilla both use vendor-prefixed versions of document.fullscreenElement:</p>
  
  <pre><code>isFullscreen = function() {
    return document.fullscreenElement
        || document.webkitFullscreenElement
        || document.mozFullScreenElement;
  }
  </code></pre>
  
  <p>However, this doesn't work on Safari 5.1.7 -- there is no "webkitFullscreenElement" or similar property on document.</p>
  
  <p>Does anyone know if there's a way to tell whether Safari is in fullscreen mode?</p>