W3cubDocs

/Haxe JavaScript

DocumentType

package js.html

extends NodeEventTarget

Available on js

The DocumentType interface represents a Node containing a doctype.

Documentation DocumentType by Mozilla Contributors, licensed under CC-BY-SA 2.5.

See also:

Variables

read onlyname:String

A DOMString, eg "html" for !DOCTYPE HTML.

read onlypublicId:String

A DOMString, eg "-//W3C//DTD HTML 4.01//EN", empty string for HTML5.

read onlysystemId:String

A DOMString, eg "http://www.w3.org/TR/html4/strict.dtd", empty string for HTML5.

Methods

after(nodes:Rest<Node>):Void

after(nodes:Rest<String>):Void

Throws:

null

DOMError

before(nodes:Rest<Node>):Void

before(nodes:Rest<String>):Void

Throws:

null

DOMError

remove():Void

replaceWith(nodes:Rest<Node>):Void

replaceWith(nodes:Rest<String>):Void

Throws:

null

DOMError

© 2005–2020 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/html/DocumentType.html