<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to 91: Move checking for required attributes into compiler</title><link>https://sourceforge.net/p/wact/feature-requests/91/</link><description>Recent changes to 91: Move checking for required attributes into compiler</description><atom:link href="https://sourceforge.net/p/wact/feature-requests/91/feed.rss" rel="self"/><language>en</language><lastBuildDate>Mon, 06 Dec 2004 20:56:54 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/wact/feature-requests/91/feed.rss" rel="self" type="application/rss+xml"/><item><title>Move checking for required attributes into compiler</title><link>https://sourceforge.net/p/wact/feature-requests/91/</link><description>&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;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jeff Moore</dc:creator><pubDate>Mon, 06 Dec 2004 20:56:54 -0000</pubDate><guid>https://sourceforge.net60510b320ec2d6248ca3de230ff1308edd178790</guid></item></channel></rss>