Safari Developer Library

Developer

Element Additions Reference

Options
Deployment Target:

On This Page

Element

These Safari additions to the Element class are mainly used to support full-screen mode. There’s also a method for comparing selectors.

  • An event listener that is called when the element enters or exits full-screen mode.

    Declaration

    attribute EventListener onwebkitfullscreenchange

  • Changes the element to full-screen mode.

    Declaration

    voidwebkitRequestFullScreen (in unsigned short flags);

    Parameters

    flags

    No flags are currently supported. Pass 0.

  • Compares selectors to see whether they match.

    Declaration

    booleanwebkitMatchesSelector (in DOMString selectors);

    Parameters

    selectors

    The selectors to compare.

    Return Value

    true if the selectors match. false if they don’t match.