protected function checkAttributeNode(DOMAttr $attribute, Tag $tag)
	{
		// Parse the attribute value for XPath expressions and assess their safety
		foreach (AVTHelper::parse($attribute->value) as $token)
		{
			if ($token[0] === 'expression')
			{
				$this->checkExpression($attribute, $token[1], $tag);
			}
		}
	}
protected function checkAttributeNode(DOMAttr $attribute, Tag $tag)
	{
		// Parse the attribute value for XPath expressions and assess their safety
		foreach (AVTHelper::parse($attribute->value) as $token)
		{
			if ($token[0] === 'expression')
			{
				$this->checkExpression($attribute, $token[1], $tag);
			}
		}
	}
protected function checkAttributeNode ( DOMAttr $ attribute , Tag $ tag ) { // Parse the attribute value for XPath expressions and assess their safety foreach ( AVTHelper :: parse ( $ attribute -> value ) as $ token ) { if ( $ token [ 0 ] === 'expression' ) { $ this -> checkExpression ( $ attribute , $ token [ 1 ] , $ tag ) ; } } }
Test whether an attribute node is safe

@param  DOMAttr $attribute Attribute node
@param  Tag     $tag       Reference tag
@return void
Test whether an attribute node is safe