<?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>12948</bug_id>
          
          <creation_ts>2011-06-13 22:56:09 +0000</creation_ts>
          <short_desc>New feature request: GROUP tag What I&apos;d like to achieve in HTML is to easily access a group of elements via Javascript using a single parent element (GROUP). The GROUP element would not under any circumstance affect the layout of the page, and would not b</short_desc>
          <delta_ts>2011-08-04 05:04:25 +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>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#top</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>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>abaitis</cc>
    
    <cc>ayg</cc>
    
    <cc>jackalmage</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>49535</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2011-06-13 22:56:09 +0000</bug_when>
    <thetext>Specification: http://dev.w3.org/html5/spec/Overview.html
Section: http://www.whatwg.org/specs/web-apps/current-work/#top

Comment:
New feature request: GROUP tag

What I&apos;d like to achieve in HTML is to easily access a group of elements via
Javascript using a single parent element (GROUP). The GROUP element would not
under any circumstance affect the layout of the page, and would not be able to
have style or CSS applied to it.

Why? For use in Widgets produced by a server side CMS the contents of the
Widgets could then be updated asynchronously, I&apos;m sure there are other
applications.

Why not use a DIV? A DIV in it&apos;s normal form is a block level element that
affects the layout of the page, so we need to set &quot;display:inline&quot; to achieve
the desired result if it is the parent of other inline elements, and hope that
it doesn&apos;t get selected by any CSS selectors and have it&apos;s style influenced.

Thanks for any consideration this request may receive.

Andreas Baitis, abaitis@gmail.com

Posted from: 110.174.70.97
User agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.17) Gecko/20110422 Ubuntu/10.10 (maverick) Firefox/3.6.17</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49537</commentid>
    <comment_count>1</comment_count>
    <who name="Tab Atkins Jr.">jackalmage</who>
    <bug_when>2011-06-13 23:00:03 +0000</bug_when>
    <thetext>You can either use a &lt;div&gt; or &lt;span&gt; and just be careful not to style it, or set a class on all the elements you want and use document.getElementsByClassName() or document.querySelectorAll().</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49551</commentid>
    <comment_count>2</comment_count>
    <who name="Andreas Baitis">abaitis</who>
    <bug_when>2011-06-14 02:53:50 +0000</bug_when>
    <thetext>We are using DIVs now, one problem with this method is the content is arbitrary, sometimes containing only block elements, sometimes only inline, sometimes both. So this complicates things in that the CMS needs to decide on what sort of wrapper to use, block or inline. Also the group or wrapper elements can be accessed by designers through CSS which is not desirable, we want them to style the content based on the semantics of the content, not the CMS.

Adding classes and using document.getElementsByClassName() or similar works but is not without issues, it adds to the file size when pages are complex with multiple widgets being used, and makes replacing the nodes with the updated content a little messier, although it&apos;s probably the way we&apos;ll go as these issues are easier to deal with than the issues mentioned above.

Many web-sites are now data driven, and constructed by ever more sophisticated CMS, it&apos;d be nice to help CMS developers create clean standards based semantic markup, so I would&apos;ve thought that it&apos;s worth considering.



Thanks for your time anyway.

Regards

Andreas Baitis</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49595</commentid>
    <comment_count>3</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2011-06-14 22:50:05 +0000</bug_when>
    <thetext>We can&apos;t have an element that&apos;s in the DOM but has no style.  That would require significant changes to all sorts of things, which just aren&apos;t worth it.

Would I be crazy to suggest that &lt;span&gt; just be allowed to contain block elements?  It has the correct visual behavior, right?  Why is it invalid as a block wrapper to start with?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49605</commentid>
    <comment_count>4</comment_count>
    <who name="Tab Atkins Jr.">jackalmage</who>
    <bug_when>2011-06-15 00:11:36 +0000</bug_when>
    <thetext>(In reply to comment #3)
&gt; Would I be crazy to suggest that &lt;span&gt; just be allowed to contain block
&gt; elements?  It has the correct visual behavior, right?  Why is it invalid as a
&gt; block wrapper to start with?

Its default display value interacts badly with block descendants, for one.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49650</commentid>
    <comment_count>5</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2011-06-15 22:32:28 +0000</bug_when>
    <thetext>How so?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49659</commentid>
    <comment_count>6</comment_count>
    <who name="Tab Atkins Jr.">jackalmage</who>
    <bug_when>2011-06-15 23:41:17 +0000</bug_when>
    <thetext>Inlines that contain blocks are split around the blocks into multiple inline boxes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49711</commentid>
    <comment_count>7</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2011-06-16 18:14:12 +0000</bug_when>
    <thetext>And this differs how from the desired behavior here?  In what case would $foo and &lt;span&gt;$foo&lt;/span&gt; render differently, assuming that $foo is a snippet of HTML markup in the body with all tags properly closed?  (You do have to make sure to properly close tags, because &lt;/span&gt; doesn&apos;t auto-close &lt;p&gt; and such.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49725</commentid>
    <comment_count>8</comment_count>
    <who name="Tab Atkins Jr.">jackalmage</who>
    <bug_when>2011-06-16 21:12:05 +0000</bug_when>
    <thetext>If you had any styles defined for &quot;span&quot;, like borders, you&apos;d get some unexpected rendering.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49743</commentid>
    <comment_count>9</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2011-06-16 22:14:36 +0000</bug_when>
    <thetext>The use case according to comment 0 is that there are no styles defined.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49754</commentid>
    <comment_count>10</comment_count>
    <who name="Andreas Baitis">abaitis</who>
    <bug_when>2011-06-16 22:48:27 +0000</bug_when>
    <thetext>(In reply to comment #9)
&gt; The use case according to comment 0 is that there are no styles defined.

The use case is that sometimes designers will style the SPAN or DIV because they can, hence the request for the GROUP tag which can not be styled, it&apos;s sole purpose would be to group it&apos;s children.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49790</commentid>
    <comment_count>11</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2011-06-17 17:13:40 +0000</bug_when>
    <thetext>That is not going to happen.  All elements are styleable, no way are we going to change that without *extremely* good reason.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49821</commentid>
    <comment_count>12</comment_count>
    <who name="Andreas Baitis">abaitis</who>
    <bug_when>2011-06-18 05:45:25 +0000</bug_when>
    <thetext>(In reply to comment #11)
&gt; That is not going to happen.  All elements are styleable, no way are we going
&gt; to change that without *extremely* good reason.

OK thanks for everyones time anyway, I had to ask of course :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49863</commentid>
    <comment_count>13</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2011-06-19 22:15:36 +0000</bug_when>
    <thetext>If you would like to withdraw the request, please mark the bug RESOLVED INVALID.  That way the editor won&apos;t have to spend his time reading it, and can read other people&apos;s bugs instead.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49872</commentid>
    <comment_count>14</comment_count>
    <who name="Andreas Baitis">abaitis</who>
    <bug_when>2011-06-20 00:39:14 +0000</bug_when>
    <thetext>(In reply to comment #13)
&gt; If you would like to withdraw the request, please mark the bug RESOLVED
&gt; INVALID.  That way the editor won&apos;t have to spend his time reading it, and can
&gt; read other people&apos;s bugs instead.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>52816</commentid>
    <comment_count>15</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2011-08-04 05:04:25 +0000</bug_when>
    <thetext>mass-moved component to LC1</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>