<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>45973</bug_id>
          
          <creation_ts>2010-09-17 10:31:28 -0700</creation_ts>
          <short_desc>Wrong exposure of list item markers with non-inline objects inside the items</short_desc>
          <delta_ts>2013-10-23 16:34:20 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Accessibility</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>UNCONFIRMED</bug_status>
          <resolution></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>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Mario Sanchez Prada">mario</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>apinheiro</cc>
    
    <cc>cfleizach</cc>
    
    <cc>jcraig</cc>
    
    <cc>jdiggs</cc>
    
    <cc>xan.lopez</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>280721</commentid>
    <comment_count>0</comment_count>
    <who name="Mario Sanchez Prada">mario</who>
    <bug_when>2010-09-17 10:31:28 -0700</bug_when>
    <thetext>I&apos;ve observed the following behavior which I found strange when exposing list items to accessible technologies.

Take the following HTML:

 &lt;ul&gt;
   &lt;li&gt;Item with just plain text&lt;/li&gt;
   &lt;li&gt;&lt;a href=&quot;http//foo.bar.baz&quot;&gt;Item with an inline item (a link)&lt;/a&gt;&lt;/li&gt;
   &lt;li&gt;&lt;p&gt;Item with a non-inline item (a paragraph)&lt;/p&gt;&lt;/li&gt;
 &lt;/ul&gt;

I&apos;ve checked the accessible hierarchy (AccessibleObject&apos;s) generated for the first two items is something like this, from the POV of the roles:

 ListRole
   |---&gt; ListItemRole
   |            `---&gt; ListMarkerRole (bullet)
   |
   |---&gt; ListItemRole
   |            |---&gt; ListMarkerRole (bullet)
   |            `---&gt; LinkRole
  ...

As you can see the marker is exposed as a child of the item, and as far as I understood it so far, this is correct and the expected behaviour in WebCore.

However I find the following exposure about the third item (with a non inline item) strange:

  ...
   `---&gt; ListItemRole
                `---&gt; GroupRole (the paragraph)
                             `---&gt; ListMarkerRole (bullet)

What I would have expected is more something like this:

  ...
   `---&gt; ListItemRole
                |---&gt; ListMarkerRole (bullet)
                `---&gt; GroupRole (the paragraph)

Hence filing this bug as I&apos;m not sure whether this should be the expected behaviour. If instead it&apos;s the expected behaviour please accept my apologies and resolve the bug, although I must say I&apos;d appreciate an brief explanation on the topic if that was the case :-)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>280724</commentid>
    <comment_count>1</comment_count>
    <who name="Mario Sanchez Prada">mario</who>
    <bug_when>2010-09-17 10:34:29 -0700</bug_when>
    <thetext>Adding some people to CC that I think could be interested on this topic.

Chris, perhaps you&apos;re the one here best knowing the answer to this topic or, at least, to decide whether this is actually a bug or an expected behaviour.

Opinions?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>942896</commentid>
    <comment_count>2</comment_count>
    <who name="James Craig">jcraig</who>
    <bug_when>2013-10-23 16:34:20 -0700</bug_when>
    <thetext>This probably is a bug, but not a terribly serious one.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>