From 506ae684bcf1ce877f4b74e255056d17161e4cc0 Mon Sep 17 00:00:00 2001 From: andi Date: Sun, 24 Apr 2005 15:29:22 +0200 Subject: finally valid XHTML again darcs-hash:20050424132922-9977f-5e9acbeae431ca1c605169829e580bf094a09ef9.gz --- inc/parser/xhtml.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'inc/parser/xhtml.php') 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).'"'; -- cgit v1.2.3