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>").

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

    elements in the render instructions.

Example

A tip note

A tip note