This page is no longer maintained — Please continue to the home page at www.scala-lang.org

[scala-bts] #2043: Outputs from Xhtml.toXhtml are not so compliant to XHTML spec.

1 reply
Scala 2
Joined: 2009-03-05,
User offline. Last seen 42 years 45 weeks ago.
-------------------+-------------------------------------------------------- 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

Scala 2
Joined: 2009-03-05,
User offline. Last seen 42 years 45 weeks ago.
Re: [scala-bts] #2043: Outputs from Xhtml.toXhtml are not so com

-----------------------------+----------------------------------------------
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.

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland