protected function replaceAttribute(DOMAttr $attribute, $expr, $value)
	{
		AVTHelper::replace(
			$attribute,
			function ($token) use ($expr, $value)
			{
				// Test whether this expression is the one we're looking for
				if ($token[0] === 'expression' && $token[1] === $expr)
				{
					// Replace the expression with the value (as a literal)
					$token = ['literal', $value];
				}

				return $token;
			}
		);
	}
protected function replaceAttribute(DOMAttr $attribute, $expr, $value)
	{
		AVTHelper::replace(
			$attribute,
			function ($token) use ($expr, $value)
			{
				// Test whether this expression is the one we're looking for
				if ($token[0] === 'expression' && $token[1] === $expr)
				{
					// Replace the expression with the value (as a literal)
					$token = ['literal', $value];
				}

				return $token;
			}
		);
	}
protected function replaceAttribute ( DOMAttr $ attribute , $ expr , $ value ) { AVTHelper :: replace ( $ attribute , function ( $ token ) use ( $ expr , $ value ) { // Test whether this expression is the one we're looking for if ( $ token [ 0 ] === 'expression' && $ token [ 1 ] === $ expr ) { // Replace the expression with the value (as a literal) $ token = [ 'literal' , $ value ] ; } return $ token ; } ) ; }
Replace an expression with a literal value in given attribute

@param  DOMAttr $attribute
@param  string  $expr
@param  string  $value
@return void
Replace an expression with a literal value in given attribute