Move checking for required attributes into compiler
Status: Pre-Alpha
Brought to you by:
jeffmoore
Right now, each tag checks individually for its required attributes
with code such as :
$binding = $this->getAttribute('for');
if (empty($binding)) {
$this-
>raiseCompilerError('MISSINGREQUIREATTRIBUTE',
array('attribute' => 'for'));
}
The list of which attributes are required for a tag should be
specified in the TagInfo for that tag and the compiler should
automatically make these checks before the component is even
added to the tree. This request is related to request #910997
(Convert TagInfo to XML based format)