//
// SandboxAttribute.swift
// HTMLStandard
//
// Generated on 09/09/2025.
// THIS FILE IS GENERATED. DO NOT EDIT.
//
public enum SandboxAttribute : String, CaseIterable {
case allowDownloads = "allow-downloads"
case allowForms = "allow-forms"
case allowModals = "allow-modals"
case allowOrientationLock = "allow-orientation-lock"
case allowPointerLock = "allow-pointer-lock"
case allowPopups = "allow-popups"
case allowPopupsToEscapeSandbox = "allow-popups-to-escape-sandbox"
case allowPresentation = "allow-presentation"
case allowSameOrigin = "allow-same-origin"
case allowScripts = "allow-scripts"
case allowTopNavigation = "allow-top-navigation"
case allowTopNavigationByUserActivation = "allow-top-navigation-by-user-activation"
case allowTopNavigationToCustomProtocols = "allow-top-navigation-to-custom-protocols"
public init?(anyCase: String) {
let lcValue = anyCase.lowercased()
guard let result = SandboxAttribute(rawValue: lcValue) else {
return nil
}
self = result
}
public init(expect: String) throws {
guard let result = SandboxAttribute(anyCase: expect) else {
throw AppError("Unexpected value for Sandbox Attribute: \(expect)")
}
self = result
}
}