Public bug reported:

Spec sections:
http://www.w3.org/TR/xhtml1/#h-4.3
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).

http://www.w3.org/TR/xhtml1/#h-4.6
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 
agents.

http://www.w3.org/TR/xhtml1/#C_3
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 
element shorthand:
<area/>
<base/>
<br/>
<col/>
<hr/>
<img/>
<input/>
<link/>
<meta/>
<param/>

All the other elements must use <ELEM></ELEM>.

** Affects: zorba
     Importance: High
     Assignee: Chris Hillery (ceejatec)
         Status: New

-- 
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/932884

Title:
  empty tags in XHTML serialization

Status in Zorba - The XQuery Processor:
  New

Bug description:
  Spec sections:
  http://www.w3.org/TR/xhtml1/#h-4.3
  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).

  http://www.w3.org/TR/xhtml1/#h-4.6
  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 
agents.

  http://www.w3.org/TR/xhtml1/#C_3
  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 
element shorthand:
  <area/>
  <base/>
  <br/>
  <col/>
  <hr/>
  <img/>
  <input/>
  <link/>
  <meta/>
  <param/>

  All the other elements must use <ELEM></ELEM>.

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/932884/+subscriptions

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to     : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp

Reply via email to