goog.asserts.dom
Exported Functions
assertIsElement( value ) → Element
Element
Checks if the value is a DOM Element if goog.asserts.ENABLE_ASSERTS is true.
Parameters |
| ||||
---|---|---|---|---|---|
Returns |
| ||||
Throws |
|
assertIsHtmlAnchorElement( value ) → HTMLAnchorElement
HTMLAnchorElement
Checks if the value is an HTMLAnchorElement if goog.asserts.ENABLE_ASSERTS is true.
Parameters |
| ||||
---|---|---|---|---|---|
Returns |
| ||||
Throws |
|
assertIsHtmlAudioElement( value ) → HTMLAudioElement
HTMLAudioElement
Checks if the value is an HTMLAudioElement if goog.asserts.ENABLE_ASSERTS is true.
Parameters |
| ||||
---|---|---|---|---|---|
Returns |
| ||||
Throws |
|
assertIsHtmlButtonElement( value ) → HTMLButtonElement
HTMLButtonElement
Checks if the value is an HTMLButtonElement if goog.asserts.ENABLE_ASSERTS is true.
Parameters |
| ||||
---|---|---|---|---|---|
Returns |
| ||||
Throws |
|
assertIsHtmlCanvasElement( value ) → HTMLCanvasElement
HTMLCanvasElement
Checks if the value is an HTMLCanvasElement if goog.asserts.ENABLE_ASSERTS is true.
Parameters |
| ||||
---|---|---|---|---|---|
Returns |
| ||||
Throws |
|
assertIsHtmlElement( value ) → HTMLElement
HTMLElement
Checks if the value is a DOM HTMLElement if goog.asserts.ENABLE_ASSERTS is true.
Parameters |
| ||||
---|---|---|---|---|---|
Returns |
| ||||
Throws |
|
assertIsHtmlElementOfType<T>( value, tagName ) → T
T
Checks if the value is a DOM HTMLElement of the specified tag name / subclass if goog.asserts.ENABLE_ASSERTS is true.
Parameters |
| ||||||||
---|---|---|---|---|---|---|---|---|---|
Returns |
| ||||||||
Throws |
|
assertIsHtmlEmbedElement( value ) → HTMLEmbedElement
HTMLEmbedElement
Checks if the value is an HTMLEmbedElement if goog.asserts.ENABLE_ASSERTS is true.
Parameters |
| ||||
---|---|---|---|---|---|
Returns |
| ||||
Throws |
|
assertIsHtmlFormElement( value ) → HTMLFormElement
HTMLFormElement
Checks if the value is an HTMLFormElement if goog.asserts.ENABLE_ASSERTS is true.
Parameters |
| ||||
---|---|---|---|---|---|
Returns |
| ||||
Throws |
|
assertIsHtmlFrameElement( value ) → HTMLFrameElement
HTMLFrameElement
Checks if the value is an HTMLFrameElement if goog.asserts.ENABLE_ASSERTS is true.
Parameters |
| ||||
---|---|---|---|---|---|
Returns |
| ||||
Throws |
|
assertIsHtmlIFrameElement( value ) → HTMLIFrameElement
HTMLIFrameElement
Checks if the value is an HTMLIFrameElement if goog.asserts.ENABLE_ASSERTS is true.
Parameters |
| ||||
---|---|---|---|---|---|
Returns |
| ||||
Throws |
|
assertIsHtmlImageElement( value ) → HTMLImageElement
HTMLImageElement
Checks if the value is an HTMLImageElement if goog.asserts.ENABLE_ASSERTS is true.
Parameters |
| ||||
---|---|---|---|---|---|
Returns |
| ||||
Throws |
|
assertIsHtmlInputElement( value ) → HTMLInputElement
HTMLInputElement
Checks if the value is an HTMLInputElement if goog.asserts.ENABLE_ASSERTS is true.
Parameters |
| ||||
---|---|---|---|---|---|
Returns |
| ||||
Throws |
|
assertIsHtmlLinkElement( value ) → HTMLLinkElement
HTMLLinkElement
Checks if the value is an HTMLLinkElement if goog.asserts.ENABLE_ASSERTS is true.
Parameters |
| ||||
---|---|---|---|---|---|
Returns |
| ||||
Throws |
|
assertIsHtmlObjectElement( value ) → HTMLObjectElement
HTMLObjectElement
Checks if the value is an HTMLObjectElement if goog.asserts.ENABLE_ASSERTS is true.
Parameters |
| ||||
---|---|---|---|---|---|
Returns |
| ||||
Throws |
|
assertIsHtmlScriptElement( value ) → HTMLScriptElement
HTMLScriptElement
Checks if the value is an HTMLScriptElement if goog.asserts.ENABLE_ASSERTS is true.
Parameters |
| ||||
---|---|---|---|---|---|
Returns |
| ||||
Throws |
|
assertIsHtmlTextAreaElement( value ) → HTMLTextAreaElement
HTMLTextAreaElement
Checks if the value is an HTMLTextAreaElement if goog.asserts.ENABLE_ASSERTS is true.
Parameters |
| ||||
---|---|---|---|---|---|
Returns |
| ||||
Throws |
|
assertIsHtmlVideoElement( value ) → HTMLVideoElement
HTMLVideoElement
Checks if the value is an HTMLVideoElement if goog.asserts.ENABLE_ASSERTS is true.
Parameters |
| ||||
---|---|---|---|---|---|
Returns |
| ||||
Throws |
|