<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -135,6 +135,22 @@ var examples = [
             &lt;/div&gt;
     },
 
+    {
+        name: 'empty attribute',
+
+        template:
+            &lt;div xmlns:st={ns_st}&gt;
+            &lt;div&gt;&lt;st:attr name=&quot;foo&quot;&gt;&lt;/st:attr&gt;&lt;/div&gt;
+            &lt;/div&gt;,
+
+        env: {},
+
+        result:
+            &lt;div xmlns:st={ns_st}&gt;
+            &lt;div/&gt;
+            &lt;/div&gt;
+    },
+
     // The next ones don't describe any new tag or attribute, they
     // just check formerly buggy situations.
 </diff>
      <filename>examples.js</filename>
    </modified>
    <modified>
      <diff>@@ -276,7 +276,8 @@ seethrough.compile.element = function(xmlElement) {
                 var xmlChild;
                 for(var i=0,l=xmlChildren.length(); i&lt;l; i++) {
                     xmlChild = xmlChildren[i];
-                    if(xmlChild.nodeKind() == 'attribute')
+                    if(xmlChild.nodeKind() == 'attribute' &amp;&amp;
+                       xmlChild.toString() != '')
                         xmlOut.@[xmlChild.name()] = xmlChild.toString();
                     else
                         xmlOut.appendChild(xmlChild);</diff>
      <filename>seethrough.js</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>06487f22824d19a0723c413a6850463205de561e</id>
    </parent>
  </parents>
  <author>
    <name>Massimiliano Mirra</name>
    <email>bard@hyperstruct.net</email>
  </author>
  <url>http://github.com/bard/seethrough_js/commit/2dc43d152dfd5755dbc285ee3d1ddc35b8026c10</url>
  <id>2dc43d152dfd5755dbc285ee3d1ddc35b8026c10</id>
  <committed-date>2009-08-12T02:47:16-07:00</committed-date>
  <authored-date>2009-08-12T02:47:16-07:00</authored-date>
  <message>On empty &lt;st:attr/&gt;, omit attribute from parent altogether.</message>
  <tree>5d7547a841ddd94465f6fe2279e4cad57dfe0de7</tree>
  <committer>
    <name>Massimiliano Mirra</name>
    <email>bard@hyperstruct.net</email>
  </committer>
</commit>
