<strong> in the html filter brakes the w3c xhtml validation at the print friendly version output.
the code generated by the printer-friendly version shows <p><strong>text</strong><br />. Instead, it should be something like <p><strong>text</strong></p><br />

Comments

preferred name’s picture

opps...
printer-friendly version and not the module print friendly version

dmitrig01’s picture

ahem...

is one of the few tags that does not need to be closed

dmitrig01’s picture

<p>that is

preferred name’s picture

Title: filtered html <strong> not xhtml valid with print freindly version » filtered html <h3>, <blockquote> ect, not xhtml valid with printer-freindly version

In this example, <p><h3>text</h3><br /> is not xhtml valid as there appears to be a glitch in the core, because the drupal's generation of that code appears to be a random event and I don't know why that is. Sorry, I can't give you anymore information about why that may be, but that is what I see when I view the various page sources of the printer-friendly version.

The <p><h3>text</h3><br /> is the output from the printer-friendly version. Pasting the source into a w3c xhtml validator will fail. The blockquote (and some other html tags, such as h1) also brakes the code and may led to other problems, such as when a third party filter module is installed. In any case, the result will be many xhtml validation errors.

Try using h3 or blockquote in addition to the strong

Crell’s picture

In XHTML it does. All tags need to be closed in XHTML.

preferred name’s picture

Crell, In XHTML it does?
I have verified that this is a bug. It is very easy to determine that this is a bug. Edit a book topic, put in h3 tag, close the h3 tag, as in my example above, and then click the printer-friendly version and verify that it does not validate.

dave reid’s picture

Status: Active » Fixed

If your content's input filter is not using the HTML Corrector, there's no chance to fix this. But I gave this a try and a default book page with the default 'filtered HTML' input format and my output was:

<p><strong>text</strong><br />
test</p>

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.