Skip to content

Is an immersiveElement attribute needed for immersive model presentation? #162

Open

Description

@cabanier

The proposed immersive API includes:

readonly attribute Element? immersiveElement;

The getter is currently on Document. It returns the current immersive model, retargeted against the document for shadow DOM, or null when no model is immersive. WebKit exposes this attribute today.

Do we need this attribute in the specification, or can the API expose sufficient state through another mechanism?

Points to discuss:

  • What author use cases require identifying the current immersive element, rather than only knowing whether immersive presentation is active?
  • Could per-model state, a boolean, or richer immersivechange events provide the necessary information instead?
  • Without the getter, how would authors reliably handle browser-initiated exits, model replacement, removal, and listeners attached after presentation starts?
  • If the attribute is retained, is nullable Element with shadow-DOM retargeting the appropriate shape?

The draft currently uses the getter to observe presentation state and update exit controls. This issue records whether the attribute should be retained or replaced; it does not remove it yet.

Activity

  1. cabanier commented on Oct 14, 2026

    @cabanier
    MemberAuthor

    /tpac

  2. added
    TPAC
    on Oct 14, 2026
  3. removed
    TPAC
    on Oct 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions