IDLeDOM
DOM interfaces automatically generated from WebIDL
Loading...
Searching...
No Matches
Wikimedia\IDLeDOM\ShadowRootMode Class Reference

ShadowRootMode. More...

Static Public Member Functions

static string cast (string $value)
 Throw a TypeError if the provided string is not a valid member of this enumeration.
 

Public Attributes

const open = 'open'
 
const closed = 'closed'
 

Detailed Description

ShadowRootMode.

See also
https://dom.spec.whatwg.org/#enumdef-shadowrootmode

-forbid-undeclared-magic-properties

Member Function Documentation

◆ cast()

static string Wikimedia\IDLeDOM\ShadowRootMode::cast ( string $value)
static

Throw a TypeError if the provided string is not a valid member of this enumeration.

Parameters
string$valueThe string to test
Returns
string The provided string, if it is valid
Exceptions

Wikimedia\IDLeDOM\TypeError if it is not valid


The documentation for this class was generated from the following file: