diff --git a/HtmlBuilder.php b/HtmlBuilder.php
index c7cf424..42ea738 100644
--- a/HtmlBuilder.php
+++ b/HtmlBuilder.php
@@ -1,6 +1,6 @@
$value)
{
- $html[] = static::attributeElement($key, $value);
+ $element = static::attributeElement($key, $value);
+
+ if ( ! is_null($element)) $html[] = $element;
}
return count($html) > 0 ? ' '.implode(' ', $html) : '';