<?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>10001</bug_id>
          
          <creation_ts>2010-06-23 21:41:12 +0000</creation_ts>
          <short_desc>For &lt;ol&gt; and &lt;ul&gt;, it would be very useful to have an array containing all top-level elements of the list, such as &apos;HTMLOListElement.listItems&apos;</short_desc>
          <delta_ts>2010-10-09 15:36:56 +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 HTML5 spec (editor: Ian Hickson)</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#htmlolistelement</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>jthoma12</cc>
    
    <cc>mike</cc>
    
    <cc>Ms2ger</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>36390</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2010-06-23 21:41:12 +0000</bug_when>
    <thetext>Section: http://www.whatwg.org/specs/web-apps/current-work/#htmlolistelement

Comment:
For &lt;ol&gt; and &lt;ul&gt;, it would be very useful to have an array containing all
top-level elements of the list, such as &apos;HTMLOListElement.listItems&apos;

Posted from: 129.65.20.50</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36391</commentid>
    <comment_count>1</comment_count>
    <who name="Joseph A Thomas">jthoma12</who>
    <bug_when>2010-06-23 21:43:59 +0000</bug_when>
    <thetext>Currently, when trying to enumerate list items in a list, I am doing &quot;list.getElementsByTagName(&apos;li&apos;)&quot;, but unfortunately this gets items from nested lists. Am I missing some easy way of doing this? (Short of visiting each child node and checking if it is an &lt;li&gt;)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36392</commentid>
    <comment_count>2</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2010-06-23 23:00:09 +0000</bug_when>
    <thetext>Use firstElementChild and nextElementSibling. http://www.w3.org/TR/ElementTraversal/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36409</commentid>
    <comment_count>3</comment_count>
    <who name="Joseph A Thomas">jthoma12</who>
    <bug_when>2010-06-24 17:27:57 +0000</bug_when>
    <thetext>Thanks for the info Simon.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>