function getActionForTag($tag)
		{
			$tag = strtoupper($tag);
			
			// Ignorable elements
			foreach($this->ignoreElements->resourceContent as $ignoreElement) 
			{
				if ($ignoreElement === $tag)
				{
					return 0;
				}
			}
			
			// Link elements
			foreach($this->linkElements->resourceContent as $linkElement) 
			{
				if ($linkElement === $tag)
				{
					return 1;
				}
			}

			// Body elements
			foreach($this->bodyElements->resourceContent as $bodyElement) 
			{
				if ($bodyElement === $tag)
				{
					return 2;
				}
			}
			
			// Inline elements
			foreach($this->inlineElements->resourceContent as $inlineElement) 
			{
				if ($inlineElement === $tag)
				{
					return 3;
				}
			}
			
			return -1;
		}