<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to 91: Move checking for required attributes into compiler</title><link href="https://sourceforge.net/p/wact/feature-requests/91/" rel="alternate"/><link href="https://sourceforge.net/p/wact/feature-requests/91/feed.atom" rel="self"/><id>https://sourceforge.net/p/wact/feature-requests/91/</id><updated>2004-12-06T20:56:54Z</updated><subtitle>Recent changes to 91: Move checking for required attributes into compiler</subtitle><entry><title>Move checking for required attributes into compiler</title><link href="https://sourceforge.net/p/wact/feature-requests/91/" rel="alternate"/><published>2004-12-06T20:56:54Z</published><updated>2004-12-06T20:56:54Z</updated><author><name>Jeff Moore</name><uri>https://sourceforge.net/u/jeffmoore/</uri></author><id>https://sourceforge.net60510b320ec2d6248ca3de230ff1308edd178790</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Right now, each tag checks individually for its required attributes &lt;br /&gt;
with code such as :&lt;/p&gt;
&lt;p&gt;$binding = $this-&amp;gt;getAttribute('for'); &lt;br /&gt;
if (empty($binding)) {&lt;br /&gt;
$this-&lt;br /&gt;
&amp;gt;raiseCompilerError('MISSINGREQUIREATTRIBUTE', &lt;br /&gt;
array('attribute' =&amp;gt; 'for'));&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;The list of which attributes are required for a tag should be &lt;br /&gt;
specified in the TagInfo for that tag and the compiler should &lt;br /&gt;
automatically make these checks before the component is even &lt;br /&gt;
added to the tree.  This request is related to request #910997 &lt;br /&gt;
(Convert TagInfo to XML based format)&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>