Skip to content

Commit

Permalink
lib - improve support for iframe "sandbox" attr
Browse files Browse the repository at this point in the history
  • Loading branch information
LankyMoose committed Sep 23, 2024
1 parent c400015 commit 46c3716
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions packages/lib/src/types.dom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,18 +140,19 @@ type EncType =
| "multipart/form-data"
| "text/plain"

type IFrameSandbox =
| "allow-forms"
| "allow-modals"
| "allow-orientation-lock"
| "allow-pointer-lock"
| "allow-popups"
| "allow-popups-to-escape-sandbox"
| "allow-presentation"
| "allow-same-origin"
| "allow-scripts"
| "allow-top-navigation"
| "allow-top-navigation-by-user-activation"
type IFrameSandbox = string | boolean
// | "allow-forms"
// | "allow-modals"
// | "allow-orientation-lock"
// | "allow-pointer-lock"
// | "allow-popups"
// | "allow-popups-to-escape-sandbox"
// | "allow-presentation"
// | "allow-same-origin"
// | "allow-scripts"
// | "allow-top-navigation"
// | "allow-top-navigation-by-user-activation"

type InputAccept = "audio/*" | "video/*" | "image/*" | MimeType
type AutoComplete = "on" | "off"
type FormMethod = "get" | "post"
Expand Down

0 comments on commit 46c3716

Please sign in to comment.