Table of Contents

Interface IImplementation

Namespace
AngleSharp.Dom
Assembly
AngleSharp.dll

The DOMImplementation interface represent an object providing methods which are not dependent on any particular document.

[DomName("DOMImplementation")]
public interface IImplementation
Extension Methods

Methods

CreateDocumentType(string, string, string)

Creates and returns a DocumentType.

[DomName("createDocumentType")]
IDocumentType CreateDocumentType(string qualifiedName, string publicId, string systemId)

Parameters

qualifiedName string

The qualified name, like svg:svg.

publicId string

The PUBLIC identifier.

systemId string

The SYSTEM identifiers.

Returns

IDocumentType

A document type with the specified attributes.

CreateHtmlDocument(string)

Creates and returns an HTML Document.

[DomName("createHTMLDocument")]
IDocument CreateHtmlDocument(string title)

Parameters

title string

The title to give the new HTML document.

Returns

IDocument

A new document.

HasFeature(string, string?)

Returns a Boolean indicating if a given feature is supported or not. This function is unreliable and kept for compatibility purpose alone: except for SVG-related queries, it always returns true.

[DomName("hasFeature")]
bool HasFeature(string feature, string? version = null)

Parameters

feature string

The feature name.

version string

The version of the specification defining the feature.

Returns

bool