When using the "Full HTML" input format on a content page, the <p> and <br> tags inserted into the rendered page are not XHTML compliant. The <br> should be <br /> and the <p> tags need to be closed

.

Comments

RobRoy’s picture

Are you using a WYSIWYG editor? Or, do you want Full HTML to validate your input as XHTML? If it's the latter, you could create a filter module to do so.

In other words, what content has these invalid tags in it? User-submitted content or something in Drupal?

gchaix’s picture

No WYSIWYG editor in this case, this problem appears when editing with rich-text disabled. I believe the problem is in the "Line break converter Converts line breaks into HTML (i.e. <br> and <p> tags)" feature. The when the line break filter is enabled, the tags it inserts are not XHTML compliant.

dopry’s picture

Status: Active » Fixed

This seems to be fixed in 4.7.3 looking in filter module.

Anonymous’s picture

Status: Fixed » Closed (fixed)