Home Reference Source Repository
import Comment from 'html-document/src/Comment.js'
public class | source

Comment

Extends:

Node → Comment

See:

Constructor Summary

Public Constructor
public

constructor(comment: string)

Member Summary

Public Members
public get

Comment's value

public set

data(data: string): *

public get
public get

Inherited Summary

From class Node
public get
public set

nodeValue(value: *): *

public get

Returns the Document that this node belongs to.

public get
public

addEventListener(eventType: string, listener: function, capturingPhase: boolean): *

public
public

getAttribute(attributeName: string): string

get attribute's value

public

hasAttribute(attributeName: string): boolean

checks if attribute exists for node

public

removeAttribute(attributeName: string)

remove attribute

public

removeEventListener(eventType: string, listener: function, capturingPhase: boolean): boolean

public

setAttribute(attributeName: string, attributeValue: string)

set attribute's value

Public Constructors

public constructor(comment: string) source

Override:

Node#constructor

Params:

NameTypeAttributeDescription
comment string

Public Members

public get data: string source

Comment's value

public set data(data: string): * source

public get innerHTML: string source

public get outerHTML: * source