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
stringThe qualified name, like svg:svg.
publicId
stringThe PUBLIC identifier.
systemId
stringThe 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
stringThe 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
stringThe feature name.
version
stringThe version of the specification defining the feature.