Dodo
DOm DOcument implementation
|
Static Public Member Functions | |
static | assert (bool $condition, ?string $message="") |
Original: throw new Error("Assertion failed: " + (msg || "") + "\n" new Error().stack);. | |
static never | error (string $name, ?string $message=null) |
Throw a DOMException. | |
static string | toAsciiLowercase (string $s) |
ASCII lowercase a string. | |
static string | toAsciiUppercase (string $s) |
ASCII uppercase a string. | |
static string | stripAndCollapseWhitespace (string $s) |
"Strip and collapse ASCII whitespace" | |
|
static |
Original: throw new Error("Assertion failed: " + (msg || "") + "\n" new Error().stack);.
TODO: Need to add the stack trace info, or advise catchers call Exception::getTraceAsString()
TODO: Make this a true PHP assert?
bool | $condition | |
?string | $message |
Exception -assert-true-condition $condition
|
static |
Throw a DOMException.
string | $name | one of the values below |
string | null | $message | an optional message to include in the Exception |
DOMException |
NOTE Allowed values for $string are: IndexSizeError, HierarchyRequestError WrongDocumentError, InvalidCharacterError, NoModificationAllowedError, NotFoundError, NotSupportedError, InvalidStateError, SyntaxError, InvalidModificationError, NamespaceError, InvalidAccessError, TypeMismatchError, SecurityError, NetworkError, AbortError, UrlMismatchError, QuotaExceededError, TimeoutError, InvalidNodeTypeError, and DataCloneError
For more information, see interfaces/DOMException.php
|
static |
"Strip and collapse ASCII whitespace"
string | $s |
|
static |
ASCII lowercase a string.
string | $s |
|
static |
ASCII uppercase a string.
string | $s |