summaryrefslogtreecommitdiff
path: root/it_html.class
diff options
context:
space:
mode:
Diffstat (limited to 'it_html.class')
-rw-r--r--it_html.class6
1 files changed, 6 insertions, 0 deletions
diff --git a/it_html.class b/it_html.class
index 9216615..db66abb 100644
--- a/it_html.class
+++ b/it_html.class
@@ -316,6 +316,12 @@ function img($args)
}
}
+ foreach ($args as $arg)
+ $havealt += isset($arg['alt']);
+
+ if (!$havealt)
+ it::error('img() needs alt');
+
return $this->_tag("img", $args);
}