- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
[scala-bts] #2043: Outputs from Xhtml.toXhtml are not so compliant to XHTML spec.
Sat, 2009-06-06, 07:18
-------------------+--------------------------------------------------------
Reporter: ymnk | Owner: scala-xml_team
Type: defect | Status: new
Priority: normal | Component: XML support
Keywords: XHTML |
-------------------+--------------------------------------------------------
In the element minimization point of view, outputs from Xhtml.toXhtml are
not
so compliant to XHTML 1.0 specification[1].
C.3. Element Minimization and Empty Element Content[2] says that
Given an empty instance of an element whose content model is not EMPTY
(for example, an empty title or paragraph) do not use the minimized form
(e.g. use
and not
). In the trunk, Xhtml.toXhtml has disabled the minimization by the default, and if it is enabled, "p" tag, for example, will be minimized. Attached pach will improve the compliance to XHTML-1.0-Strict in that point of view. [1] http://www.w3.org/TR/xhtml1/ [2] http://www.w3.org/TR/xhtml1/guidelines.html#C_3
-----------------------------+----------------------------------------------
Reporter: ymnk | Owner: scala-xml_team
Type: defect | Status: closed
Priority: normal | Component: XML support
Version: Unreleased-2.8.x | Resolution: fixed
Keywords: XHTML |
-----------------------------+----------------------------------------------
Changes (by extempore):
* cc: paulp@… (added)
* status: new => closed
* version: => Unreleased-2.8.x
* resolution: => fixed
Comment:
A whitelist and on by default is much better. Applied in r18004, thanks.