<?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>11256</bug_id>
          
          <creation_ts>2010-11-08 09:13:26 +0000</creation_ts>
          <short_desc>Obtaining correct outline when article is entire body of document  X</short_desc>
          <delta_ts>2011-08-04 05:00:41 +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>LC1 HTML5 spec</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="James Clark">jjc</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>ayg</cc>
    
    <cc>hsivonen</cc>
    
    <cc>ian</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>42242</commentid>
    <comment_count>0</comment_count>
    <who name="James Clark">jjc</who>
    <bug_when>2010-11-08 09:13:26 +0000</bug_when>
    <thetext>The HTML5 &lt;article&gt; element seems potentially very useful, but there
seems to me to be an aspect of the overall design that makes it work
not quite as well as it might.

I&apos;m guessing that HTML5 is designed to support the scenario where an
author creates create potentially reusable chunks of HTML5 content,
which are then assembled by the publishing system into valid HTML5
documents, where these reusable chunks would typically use &lt;article&gt;
or &lt;section&gt; as their root element.  The problem with the current
design seems to me to occur when you want such a chunk to be the
entire content of a page.  I don&apos;t see any way to get the &quot;right&quot;
outline without modifying the reusable chunk. If I simply wrap the
&lt;article&gt; in a &lt;body&gt; in the obvious way:

&lt;html&gt;
&lt;head&gt;...&lt;/head&gt;
&lt;body&gt;
&lt;article&gt;
&lt;h1&gt;Article title&lt;/h1&gt;
...
&lt;/article&gt;
&lt;/body&gt;
&lt;/html&gt;

then I get an outline, according to [1], where the &lt;body&gt; node is a
section with an implied heading containing a single section with a
&quot;Article title&quot; heading, whereas I would want to get the same outline
as:

&lt;html&gt;
&lt;head&gt;...&lt;/head&gt;
&lt;body&gt;
&lt;h1&gt;Article title&lt;/h1&gt;
...
&lt;/body&gt;
&lt;/html&gt;

One way round this might be a &quot;nosection&quot; boolean attribute on &lt;body&gt;,
which would say to the outline algorithm not to create a section for
the &lt;body&gt; element, and which would be valid only when the &lt;body&gt;
element consists of a single sectioning content element.

[1] http://dev.w3.org/html5/spec/Overview.html#outlines</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42295</commentid>
    <comment_count>1</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2010-11-09 00:52:38 +0000</bug_when>
    <thetext>see also the following reply posted to the comments list:

http://lists.w3.org/Archives/Public/public-html-comments/2010Nov/0003.html

quoting Gannon Dick:

[[
Wouldn&apos;t it make more sense to put a &quot;nosection&quot; boolean attribute on the &lt;html&gt; instead of &lt;body&gt;  ... the meaning would be no metadata except for &lt;title&gt; and &lt;meta http-equiv=&quot;Content-type&quot; content=&quot;foo&quot; /&gt;

The reductio ad absurdum HTML document (stripped of &lt;article&gt; fragments) would then be truly empty.
]]</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42308</commentid>
    <comment_count>2</comment_count>
    <who name="Henri Sivonen">hsivonen</who>
    <bug_when>2010-11-09 10:19:13 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; [[
&gt; Wouldn&apos;t it make more sense to put a &quot;nosection&quot; boolean attribute on the
&gt; &lt;html&gt; instead of &lt;body&gt;  ... the meaning would be no metadata except for
&gt; &lt;title&gt; and &lt;meta http-equiv=&quot;Content-type&quot; content=&quot;foo&quot; /&gt;
&gt; 
&gt; The reductio ad absurdum HTML document (stripped of &lt;article&gt; fragments) would
&gt; then be truly empty.
&gt; ]]

Making the section computation depend on attributes seems scary from a performance point of view in case a selector that matches on outline depth is introduced.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43617</commentid>
    <comment_count>3</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2010-12-29 08:32:37 +0000</bug_when>
    <thetext>EDITOR&apos;S RESPONSE: This is an Editor&apos;s Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Rejected
Change Description: no spec change
Rationale: The &lt;article&gt; or &lt;section&gt; shouldn&apos;t be part of the reused chunk, it should be added as part of the process that merges the reusable chunks.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43658</commentid>
    <comment_count>4</comment_count>
    <who name="James Clark">jjc</who>
    <bug_when>2010-12-30 03:24:15 +0000</bug_when>
    <thetext>In the context of XHTML, it&apos;s important that the reused chunk be a well-formed XML document (so that, for example, I can edit with a schema-aware XML-editing tool) which means it requires a root element.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>44680</commentid>
    <comment_count>5</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-01-24 19:54:35 +0000</bug_when>
    <thetext>Sure  the root element should be the root element of whatever format it is you are using that can embed HTML fragments (e.g. &lt;fragment xmlns=&quot;http://example.com/my-syndication-storage-format&quot;&gt;), or if you&apos;re using pure HTML, it would be the required &lt;html&gt;/&lt;body&gt; pair. The point is just that when you take the content from this document to the syndicated document, you only take the contents of the fragment, not the fragment&apos;s container.

EDITOR&apos;S RESPONSE: This is an Editor&apos;s Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Rejected
Change Description: no spec change
Rationale: see comment 3</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>52361</commentid>
    <comment_count>6</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2011-08-04 05:00:41 +0000</bug_when>
    <thetext>mass-moved component to LC1</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>