<?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>15589</bug_id>
          
          <creation_ts>2012-01-17 02:41:40 +0000</creation_ts>
          <short_desc>[Shadow]: Content element should be able to specify a parser context for fallback content, and allowed in many (any?) contexts</short_desc>
          <delta_ts>2012-01-18 18:49:15 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebAppsWG</product>
          <component>HISTORICAL - Component Model</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>---</target_milestone>
          
          <blocked>14978</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Dominic Cooney">dominicc</reporter>
          <assigned_to name="Dimitri Glazkov">dglazkov</assigned_to>
          
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>62800</commentid>
    <comment_count>0</comment_count>
    <who name="Dominic Cooney">dominicc</who>
    <bug_when>2012-01-17 02:41:40 +0000</bug_when>
    <thetext>The content element may be used to provide fallback content in various contexts, for example, by providing rows in a table:

&lt;table&gt;
  &lt;content select=&quot;tr&quot;&gt;
    &lt;tr&gt;
      …
    &lt;/tr&gt;
  &lt;/content&gt;
&lt;/table&gt;

Should the content model of all? almost all? elements be extended to permit the content element?

Should the content element be able to specify its content model (perhaps by analogy to another element; in the above example as table?)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62819</commentid>
    <comment_count>1</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2012-01-17 21:44:33 +0000</bug_when>
    <thetext>Note to self: this is going to be the same set of content model modifications as for HTML Templates.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62821</commentid>
    <comment_count>2</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2012-01-17 23:53:37 +0000</bug_when>
    <thetext>I believe this is the Transparent content model: http://www.whatwg.org/specs/web-apps/current-work/multipage/elements.html#transparent

What do you think?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62823</commentid>
    <comment_count>3</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2012-01-18 00:25:04 +0000</bug_when>
    <thetext>http://dvcs.w3.org/hg/webcomponents/rev/6d61186d429e

WDYT?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62834</commentid>
    <comment_count>4</comment_count>
    <who name="Dominic Cooney">dominicc</who>
    <bug_when>2012-01-18 02:18:17 +0000</bug_when>
    <thetext>Transparent content model is splendid for the content element’s content model.

There is still the problem of allowing content element everywhere. The transparent content model doesn’t affect where the element with the transparent content model can appear, does it? For example we still have this problem:

&lt;table&gt;
  &lt;content&gt;
    &lt;tr&gt;
      &lt;td&gt;foo&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/content&gt;
&lt;/table&gt;

will be parsed as something like

&lt;table&gt;
  &lt;content&gt;&lt;/content&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td&gt;foo&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62836</commentid>
    <comment_count>5</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2012-01-18 03:25:43 +0000</bug_when>
    <thetext>(In reply to comment #4)
&gt; Transparent content model is splendid for the content element’s content model.
&gt; 
&gt; There is still the problem of allowing content element everywhere. The
&gt; transparent content model doesn’t affect where the element with the transparent
&gt; content model can appear, does it? For example we still have this problem:
&gt; 
&gt; &lt;table&gt;
&gt;   &lt;content&gt;
&gt;     &lt;tr&gt;
&gt;       &lt;td&gt;foo&lt;/td&gt;
&gt;     &lt;/tr&gt;
&gt;   &lt;/content&gt;
&gt; &lt;/table&gt;
&gt; 
&gt; will be parsed as something like
&gt; 
&gt; &lt;table&gt;
&gt;   &lt;content&gt;&lt;/content&gt;
&gt;   &lt;tbody&gt;
&gt;     &lt;tr&gt;
&gt;       &lt;td&gt;foo&lt;/td&gt;
&gt;     &lt;/tr&gt;
&gt;   &lt;/tbody&gt;
&gt; &lt;/table&gt;
&gt; 
&gt; ?

That&apos;s just hard-coded into the parser: http://www.whatwg.org/specs/web-apps/current-work/multipage/tree-construction.html#parsing-main-intable

As far as I understand, content models aren&apos;t related back into the parser. They are just semantic glitter.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62868</commentid>
    <comment_count>6</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2012-01-18 18:49:15 +0000</bug_when>
    <thetext>I am going to close this and open parser changes bug separately.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>