Table of Contents

Class DocumentType

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll

The DocumentType interface represents a Node containing a doctype.

[Value("DocumentType")]
public class DocumentType : Node, ChildNode
Inheritance
DocumentType
Implements
Inherited Members

Remarks

Constructors

DocumentType()

public DocumentType()

Properties

Name

The read-only name property of the DocumentType returns the type of the document.

[Value("name")]
public string Name { get; }

Property Value

string

A string.

Remarks

For synthetic DocumentType, this property reflects the value given in parameter to CreateDocumentType(string, string, string).

For HTML documents, browsers always set it up to html, whatever the actual doctype in the source code is.

See also on MDN

PublicId

The read-only publicId property of the DocumentType returns a formal identifier of the document.

[Value("publicId")]
public string PublicId { get; }

Property Value

string

A string.

Remarks

For synthetic DocumentType, this property reflects the value given in parameter to CreateDocumentType(string, string, string).

See also on MDN

SystemId

The read-only systemId property of the DocumentType returns the URL of the associated DTD.

[Value("systemId")]
public string SystemId { get; }

Property Value

string

A string.

Remarks

For synthetic DocumentType, this property reflects the value given in parameter to CreateDocumentType(string, string, string).

See also on MDN