Menu

#91 Move checking for required attributes into compiler

open
nobody
None
5
2004-12-06
2004-12-06
Jeff Moore
No

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)

Discussion


Log in to post a comment.

MongoDB Logo MongoDB