<?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>20472</bug_id>
          
          <creation_ts>2012-12-21 08:11:48 +0000</creation_ts>
          <short_desc>spec doesn&apos;t make it clear that &lt;title&gt;&lt;/title&gt; is non-conforming</short_desc>
          <delta_ts>2012-12-31 04:40:31 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>HTML</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael[tm] Smith">mike</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>ian</cc>
    
    <cc>mike</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>80472</commentid>
    <comment_count>0</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2012-12-21 08:11:48 +0000</bug_when>
    <thetext>Hixie says &lt;title&gt;&lt;/title&gt; with no contents is non-conforming. But from the spec it&apos;s not clear that should be so.

The spec says that content model is &quot;Text&quot; (hyperlinked to a dfn). From just that it&apos;s not clear that the text must be non-empty or that it means a &quot;Text node&quot;.

The link for &quot;Text&quot; takes you to a dfn with, &quot;Text, in the context of content models, means Text nodes. Text is sometimes used as a content model on its own, but is also phrasing content, and can be inter-element whitespace (if the Text nodes are empty or contain just space characters).&quot;

From that, someone (e.g, most authors, who don&apos;t think in terms of parsing behavior and the DOM) might assume that &lt;title&gt;&lt;/title&gt; is fine because it just contains &quot;Text&quot; that&apos;s empty -- or, for any of the very few of them who at that point spend time to think about it further, an empty Text node in the DOM.

Of course they&apos;re not going to end up a with any Text node at all in the DOM from parsing a source file/stream that contains &lt;title&gt;&lt;/title&gt;, but very few authors reading the spec are going to make that leap.

Anyway, it might be best to have an explicit statement in the spec along the lines of, &quot;The contents of title element must be non-empty.&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80473</commentid>
    <comment_count>1</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2012-12-21 08:51:02 +0000</bug_when>
    <thetext>Note that the spec also says the content model for the textarea is &quot;Text&quot;. I assume the intent there is not to make examples like &lt;textarea cols=80 name=comments&gt;&lt;/textarea&gt; in the spec non-conforming. So the title element and textarea elements are intended to contain different kinds of Text (non-empty vs optionally empty).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80746</commentid>
    <comment_count>2</comment_count>
    <who name="">contributor</who>
    <bug_when>2012-12-31 04:39:26 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r7622.
Check-in comment: Be clearer about the content models of &lt;option&gt;, &lt;textarea&gt;, &lt;title&gt;.
http://html5.org/tools/web-apps-tracker?from=7621&amp;to=7622</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>