PHP Class AMP_DOM_Utils, amp-wp

Exibir arquivo Open project: Automattic/amp-wp Class Usage Examples

Public Methods

Method Description
add_attributes_to_node ( $node, $attributes )
create_node ( $dom, $tag, $attributes )
get_content_from_dom ( $dom )
get_dom_from_content ( $content )
get_node_attributes_as_assoc_array ( $node )
is_node_empty ( $node )
recursive_force_closing_tags ( $dom, $node )

Private Methods

Method Description
is_self_closing_tag ( $tag )

Method Details

add_attributes_to_node() public static method

public static add_attributes_to_node ( $node, $attributes )

create_node() public static method

public static create_node ( $dom, $tag, $attributes )

get_content_from_dom() public static method

public static get_content_from_dom ( $dom )

get_dom_from_content() public static method

public static get_dom_from_content ( $content )

get_node_attributes_as_assoc_array() public static method

public static get_node_attributes_as_assoc_array ( $node )

is_node_empty() public static method

public static is_node_empty ( $node )

recursive_force_closing_tags() public static method

public static recursive_force_closing_tags ( $dom, $node )