Skip to content

Commit

Permalink
Improve docs for AMP_Tag_And_Attribute_Sanitizer::process_node()
Browse files Browse the repository at this point in the history
  • Loading branch information
westonruter committed Sep 2, 2018
1 parent 673206e commit 0a2916d
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,10 @@ private function get_rule_spec_list_to_validate( $node, $rule_spec ) {
}

/**
* Process a node by sanitizing and/or validating it per.
* Process a node by checking if an element and its attributes are valid, and removing them when invalid.
*
* Attributes which are not valid are removed. Elements which are not allowed are also removed,
* including elements which miss mandatory attributes.
*
* @param DOMNode $node Node.
*/
Expand Down

0 comments on commit 0a2916d

Please sign in to comment.