diff options
author | chris <chris@teacherscpd.co.uk> | 2005-06-24 15:06:36 +0200 |
---|---|---|
committer | chris <chris@teacherscpd.co.uk> | 2005-06-24 15:06:36 +0200 |
commit | 90db23d71d75b2d863812238d45064285332ff85 (patch) | |
tree | 92f78d5544147f932634f84851f9acd74ca6847b | |
parent | 8dd5e97b489505a9f48d0eca1a9f3edf8f07a8f6 (diff) | |
download | rpg-90db23d71d75b2d863812238d45064285332ff85.tar.gz rpg-90db23d71d75b2d863812238d45064285332ff85.tar.bz2 |
Correct invalid XHTML generated for list elements
Change the <span> element used to differentiate the <ol> numbering from
list item text to a <div> element. A <div> is allowed to have children
with display:block (e.g. <pre>, <ol>, <ul>) whereas a span isn't.
darcs-hash:20050624130636-50fdc-0637f16f3791c845a5247c5233237330a2e8a2d4.gz
-rw-r--r-- | inc/parser/xhtml.php | 4 | ||||
-rw-r--r-- | lib/tpl/default/design.css | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/inc/parser/xhtml.php b/inc/parser/xhtml.php index b1dbb6858..dad6dfb97 100644 --- a/inc/parser/xhtml.php +++ b/inc/parser/xhtml.php @@ -275,11 +275,11 @@ class Doku_Renderer_xhtml extends Doku_Renderer { } function listcontent_open() { - $this->doc .= '<span class="li">'; + $this->doc .= '<div class="li">'; } function listcontent_close() { - $this->doc .= '</span>'.DOKU_LF; + $this->doc .= '</div>'.DOKU_LF; } function unformatted($text) { diff --git a/lib/tpl/default/design.css b/lib/tpl/default/design.css index 22e1671e3..01840e8d6 100644 --- a/lib/tpl/default/design.css +++ b/lib/tpl/default/design.css @@ -362,7 +362,7 @@ ol { } /* the list items overriding the ol definition */ -span.li { +.li { color: #000000; font-weight: normal; } |