protected function checkAttributes(DOMElement $embed)
	{
		$settingName = strtolower($this->settingName);
		$useDefault  = true;
		foreach ($embed->attributes as $attribute)
		{
			$attrName = strtolower($attribute->name);
			if ($attrName === $settingName)
			{
				$this->checkSetting($attribute, $attribute->value);
				$useDefault = false;
			}
		}
		if ($useDefault)
		{
			$this->checkSetting($embed, $this->defaultSetting);
		}
	}
protected function checkAttributes(DOMElement $embed)
	{
		$settingName = strtolower($this->settingName);
		$useDefault  = true;
		foreach ($embed->attributes as $attribute)
		{
			$attrName = strtolower($attribute->name);
			if ($attrName === $settingName)
			{
				$this->checkSetting($attribute, $attribute->value);
				$useDefault = false;
			}
		}
		if ($useDefault)
		{
			$this->checkSetting($embed, $this->defaultSetting);
		}
	}
protected function checkAttributes ( DOMElement $ embed ) { $ settingName = strtolower ( $ this -> settingName ) ; $ useDefault = true ; foreach ( $ embed -> attributes as $ attribute ) { $ attrName = strtolower ( $ attribute -> name ) ; if ( $ attrName === $ settingName ) { $ this -> checkSetting ( $ attribute , $ attribute -> value ) ; $ useDefault = false ; } } if ( $ useDefault ) { $ this -> checkSetting ( $ embed , $ this -> defaultSetting ) ; } }
Test given element's attributes

@param  DOMElement $embed Context element
@return void
Test given element s attributes