summaryrefslogtreecommitdiff
path: root/it_html.class
diff options
context:
space:
mode:
authorUrban Müller2009-08-20 12:38:08 +0000
committerUrban Müller2009-08-20 12:38:08 +0000
commit9f92541c0dd856f8ffe6e956ebe76bff33eade0f (patch)
tree5542f90e40e036e258ba536f10a4783bf5e23879 /it_html.class
parent685d9970cc58adc93500058215ae6c9337790a59 (diff)
downloaditools-9f92541c0dd856f8ffe6e956ebe76bff33eade0f.tar.gz
itools-9f92541c0dd856f8ffe6e956ebe76bff33eade0f.tar.bz2
itools-9f92541c0dd856f8ffe6e956ebe76bff33eade0f.zip
enforce img alt
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);
}