Bug 47380 - Add option to output HTML-compatible XML
Summary: Add option to output HTML-compatible XML
Status: NEW
Alias: None
Product: ITS Tool
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Shaun McCance
QA Contact:
Depends on:
Reported: 2012-03-15 16:22 UTC by Shaun McCance
Modified: 2012-03-15 16:22 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Description Shaun McCance 2012-03-15 16:22:04 UTC
Sometimes people have XHTML (or technically valid XML HTML but not really XHTML because it's not in a namespace) for the convenience of using XML tools, but they serve it as HTML for maximum compatibility. When itstool serves freshly translated XML/HTML/XHTML, it (or rather libxml2) minimizes empty elements, like this:

<div class="clear"/>

Correct XML. Danging opening tag in non-XML HTML.

We should be able to disable tag minimizations and do whatever other tricks make compatibility work better, while still creating XML.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.