diff options
Diffstat (limited to 'inc/parser/xhtml.php')
-rw-r--r-- | inc/parser/xhtml.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/inc/parser/xhtml.php b/inc/parser/xhtml.php index 70a8c7830..37cd36cf3 100644 --- a/inc/parser/xhtml.php +++ b/inc/parser/xhtml.php @@ -750,8 +750,12 @@ class Doku_Renderer_xhtml extends Doku_Renderer { $ret .= ' class="media'.$align.'"'; - if (!is_null($title)) + if (!is_null($title)) { $ret .= ' title="'.$this->_xmlEntities($title).'"'; + $ret .= ' alt="'.$this->_xmlEntities($title).'"'; + }else{ + $ret .= ' alt=""'; + } if ( !is_null($width) ) $ret .= ' width="'.$this->_xmlEntities($width).'"'; |