Skip to content

'sandbox' attribute is not removed when bound to a nullish value #13946

Closed

Description

@tomasz-pucka

Version

3.5.22

Reproduction link

play.vuejs.org/

Steps to reproduce

Run the reproduction and confirm the presence of sandbox attribute in the iframe element.

What is expected?

According to the Vue docs, the sandbox attribute shouldn't be present - the sandbox restrictions shouldn't be applied.
This behavior is observable in Vue 2 in this example:
https://codepen.io/tomasz-pucka/pen/gbPrzoV

What is actually happening?

sandbox attribute is set to 'null' string resulting in console errors. Setting it to an empty string applies the most restrictive sandbox mode.

Activity

  1. added
    🔨 p3-minor-bug
    on Oct 4, 2025
  2. added a commit that references this issue on Nov 5, 2025
    5689884
  3. locked and limited conversation to collaborators on Nov 20, 2025
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

    🔨 p3-minor-bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions