HTMLAttributes2CSS

This class stores certain resources needed for the parsing HTML attributes

package

Docxpresso

subpackage

Parser

Methods

Construct

__construct() 
access

public

Parses the HTML attributes of a img node

_parseImageAttributes(\Docxpresso\Parser\HTML\NodeMap $attributes) 
access

private

Arguments

$attributes

\Docxpresso\Parser\HTML\NodeMap

Parses the HTML attributes of a table node

_parseTableAttributes(\Docxpresso\Parser\HTML\NodeMap $attributes) 
access

private

Arguments

$attributes

\Docxpresso\Parser\HTML\NodeMap

Parses the HTML attributes of a table cell node (td or th)

_parseTableCellAttributes(\Docxpresso\Parser\HTML\NodeMap $attributes) 
access

private

Arguments

$attributes

\Docxpresso\Parser\HTML\NodeMap

Parses the HTML attributes of a given node

parseAttributes(string $nodeName, \Docxpresso\Parser\HTML\NodeMap $attributes) 
access

public

Arguments

$nodeName

string

$attributes

\Docxpresso\Parser\HTML\NodeMap

Properties

This array holds all attributes associated to a given HTML node as a key- value pair

nodeName : array
var
access

public

Type(s)

array

In HTML5 is deprecated the use of attributes for styling purposes but for a few particular cases

attributes : array
static
access

public

static
var

In HTML5 is deprecated the use of attributes for styling purposes but for a few particular cases

Type(s)

array