Class HTMLSanitizerData

This class contains the validity map for the HTMLSanitizer

Source : file core/htmlSanitizer/HTMLSanitizerData.js at line 31

Constructor

new HTMLSanitizerData ( )

The constructor

Source : file core/htmlSanitizer/HTMLSanitizerData.js at line 44

Public methods

getValidAttributesNames ( nodeName )

Get the valid attributes for a node name

Source : file core/htmlSanitizer/HTMLSanitizerData.js at line 98

Parameters

Name Type Description
nodeName String

The name of the node for witch the valid attrbutes are asked. Warning: the node name must be a valid node name verified with the getValidNodeName.

Returns

The valid attributes names
Type : Array of String

getValidNodeName ( nodeName )

Verify that a node name is a valid node name

Source : file core/htmlSanitizer/HTMLSanitizerData.js at line 108

Parameters

Name Type Description
nodeName String

The node name

Returns

The node name or an empty string if the given node name is invalid
Type : String

Private properties

#validityMap : Map

The validity map

Source : file core/htmlSanitizer/HTMLSanitizerData.js at line 38