I'm trying to construct compliant xhtml 1.0 strict pages in Matrix 3.6.2 but the editor is not 'tidying' the code to xhtml. In fact when I manually enter breaks as <br /> it converts it to <br> whilst saving.
[quote]I’m trying to construct compliant xhtml 1.0 strict pages in Matrix 3.6.2 but the editor is not ‘tidying’ the code to xhtml. In fact when I manually enter breaks as <br /> it converts it to <br> whilst saving.
[right][post=“13344”]<{POST_SNAPBACK}>[/post][/right][/quote]
This issue appears to have been fixed, see:
http://bugs.matrix.squiz.net/view_bug.php?bug_id=998
and:
http://bugs.matrix.squiz.net/view_bug.php?bug_id=998
You will need to upgrade to a more recent version of Matrix to correct this issue.
It's OK you can ignore this. The generated page source is xhtml compliant, it's just that the raw html view in the WYSIWYG editor doesn't show the trailing slash. It appears to remove it then add it back when generating the page. It's weird, but I guess I can live with it.
[quote]It’s OK you can ignore this. The generated page source is xhtml compliant, it’s just that the raw html view in the WYSIWYG editor doesn’t show the trailing slash. It appears to remove it then add it back when generating the page. It’s weird, but I guess I can live with it.
[right][post=“13346”]<{POST_SNAPBACK}>[/post][/right][/quote]
Correct. The WYSIWYG Editor is rendered by the browser, so it uses the compliance level of the browser’s internal renderer (most of which are only HTML4.01). We then pass the content through HTML Tidy on save to convert it to XHTML compliant code. This is why you only see the true XHTML code on the Preview output, and not in the editor itself.