1. Create a minimum XHTMl5 content in a text editor
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
</head>
<body>
<p><img src="" alt="" />
<body>
</html>
2. Open in Kompozer
3. Save
Expected result: that the "/>" in the meta tag and in <img/> tag is preserved.
Actual results: the tags are converted to HTML4 syntax (the "/" is removed).
Proposed solution:
1 Whenever the HTML5 DOCTYPE has the 'html' string in lowercase, then consider is to be a XHTML5 doctype
2 Whenever the docukent has both a XHTML namespace string as well as a XHTML5 doctype, then treat it as a XHTML5 syntax trigger.
I forgot to close the <p> in the code example. Corrected version:
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
</head>
<body>
<p><img src="" alt="" /></p>
<body>
</html>