Dokuwiki - Plugin Note not XHTML Compliant

1 - About

After installation of the note plugin, I had this error :

Line 154, Column 3: document type does not allow element "p" here; missing one of "object", "applet", "map",
 "iframe", "button", "ins", "del" start-tag

<p><div class="noteimportant">This relationship is often used to describe classi

The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned
 elements are the only ones that are both allowed there and can contain the element mentioned. This might 
mean that you need a containing element, or possibly that you've forgotten to close a previous element.

One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" 
or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").

3 - Solution

I changed this lines to be able to have an XHTML compliant document.

function getPType(){ return 'block'; }
$renderer->doc .= '<div class="'.$data.'" >';
$renderer->doc .= "\n</div>";
  • Ptype normal to block
  • Suppression of the <p></p> elements in the render instructions.
dokuwiki/pluginnote_not_xhtml_compliant.txt ยท Last modified: 2011/08/28 11:47 by gerardnico