<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>9685</bug_id>
          
          <creation_ts>2010-05-07 19:38:03 +0000</creation_ts>
          <short_desc>empty elements in polyglot documents</short_desc>
          <delta_ts>2010-10-05 13:07:42 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML WG</product>
          <component>pre-LC1 HTML/XHTML Compat. Authoring Guide (ed: Eliot Graff)</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc>http://dev.w3.org/html5/html-xhtml-author-guide/html-xhtml-authoring-guide.html#empty-elements</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>FPWD</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Eliot Graff">eliotgra</reporter>
          <assigned_to name="Eliot Graff">eliotgra</assigned_to>
          <cc>eliotgra</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
          
          <qa_contact name="HTML WG Bugzilla archive list">public-html-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>35517</commentid>
    <comment_count>0</comment_count>
    <who name="Eliot Graff">eliotgra</who>
    <bug_when>2010-05-07 19:38:03 +0000</bug_when>
    <thetext>Currently, the spec says this about empty elements:

You may use only the elements in the following table as empty elements. 

area
base
br
col
command
embed
hr
img
input
keygen
link
meta
param
source
You must use the minimized tag syntax for empty elements, e.g. &lt;br/&gt;. The alternative syntax &lt;br&gt;&lt;/br&gt; allowed by XML gives uncertain results in many existing user agents. 

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 &lt;p&gt; &lt;/p&gt; and not &lt;p /&gt;). 

Note that MathML and SVG elements may be either self-closing or contain content. 

Other issues have arisen in feedback and need to be resolved:
--  Many elements, such as &lt;i&gt; and &lt;b&gt;, are ones where &lt;i/&gt; and &lt;b/&gt; would most likely cause behavior that is decidely unexpected.
--  What to say about completely new elements, where &lt;newEmptyElement&gt;&lt;/newEmptyElement&gt; 
has better text/html compatibility than &lt;newEmptyElement /&gt;
--  Should &quot;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 &lt;p&gt; &lt;/p&gt; and not &lt;p /&gt;)&quot; use the RFC2119 MUST NOT?
--  What to say about legacy elements, like the &apos;br&apos; element?
--  What to say about other legacy elements, like &apos;meta&apos;, &apos;img&apos;, &apos;embed&apos; and &apos;param&apos;?
--  What do we say about white space and newline characters in empty elements?
--  What special considerations must be made for &lt;i/&gt; or &lt;b/&gt; and other inline elements?


Related emails:
1. http://lists.w3.org/Archives/Public/public-html/2010Apr/1095.html
2. http://lists.w3.org/Archives/Public/public-html/2010Apr/1102.html
3. http://lists.w3.org/Archives/Public/public-html/2010Apr/1166.html
4. http://lists.w3.org/Archives/Public/public-html/2010Apr/1191.html
5. http://lists.w3.org/Archives/Public/public-html/2010Apr/1192.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39618</commentid>
    <comment_count>1</comment_count>
    <who name="Eliot Graff">eliotgra</who>
    <bug_when>2010-09-27 21:49:31 +0000</bug_when>
    <thetext>I have opened individual bugs as they apply. This has too many issues in it to be a good bug.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>