** Changed in: zorba
Milestone: 2.5 => None
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
empty tags in XHTML serialization
Status in Zorba - The XQuery Processor:
In SGML-based HTML 4 certain elements were permitted to omit the end tag;
with the elements that followed implying closure. XML does not allow end tags
to be omitted. All elements other than those declared in the DTD as EMPTY must
have an end tag. Elements that are declared in the DTD as EMPTY can have an end
tag or can use empty element shorthand (see Empty Elements).
Empty elements must either have an end tag or the start tag must end with />.
For instance, <br/> or <hr></hr>. See HTML Compatibility Guidelines for
information on ways to ensure this is backward compatible with HTML 4 user
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
<p> </p> and not <p />).
In other words:
There are only 10 legal XHTML empty tags. A quick search for “empty” on the
XHTML 1.0 DTD returns the following list of tags that can legally use the empty
All the other elements must use <ELEM></ELEM>.
To manage notifications about this bug go to:
Mailing list: https://launchpad.net/~zorba-coders
Post to : email@example.com
Unsubscribe : https://launchpad.net/~zorba-coders
More help : https://help.launchpad.net/ListHelp