summaryrefslogtreecommitdiff
path: root/inc/parser
diff options
context:
space:
mode:
authorchris <chris@teacherscpd.co.uk>2005-06-24 15:06:36 +0200
committerchris <chris@teacherscpd.co.uk>2005-06-24 15:06:36 +0200
commit90db23d71d75b2d863812238d45064285332ff85 (patch)
tree92f78d5544147f932634f84851f9acd74ca6847b /inc/parser
parent8dd5e97b489505a9f48d0eca1a9f3edf8f07a8f6 (diff)
downloadrpg-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
Diffstat (limited to 'inc/parser')
-rw-r--r--inc/parser/xhtml.php4
1 files changed, 2 insertions, 2 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) {