<?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>131920</bug_id>
          
          <creation_ts>2014-04-20 15:04:52 -0700</creation_ts>
          <short_desc>AX: expose (heading) level based on heading elements outline depth</short_desc>
          <delta_ts>2015-02-17 06:44:38 -0800</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>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Steve Faulkner">faulkner.steve</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>faulkner.steve</cc>
    
    <cc>jcraig</cc>
    
    <cc>m.goleb+bugzilla</cc>
    
    <cc>mike</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1002422</commentid>
    <comment_count>0</comment_count>
    <who name="Steve Faulkner">faulkner.steve</who>
    <bug_when>2014-04-20 15:04:52 -0700</bug_when>
    <thetext>Currently the HTML5 outline algorithm [1] is not implemented, propose implementing and exposing as a DOM method  so developers and 3rd part software such as assistive technology can provide a document outline to users. 

The HTML5 outline algorithm is implemented in conformance checkers:
http://validator.w3.org/nu/ 
https://github.com/validator/

and browser extensions:
https://chrome.google.com/webstore/detail/html5-outliner/afoibpobokebhgfnknfndkgemglggomo?hl=en

[1] http://www.w3.org/html/wg/drafts/html/master/sections.html#outlines

Implement &apos;heading role, with the aria-level property set to the element&apos;s outline depth&apos; as per  
http://www.w3.org/html/wg/drafts/html/master/dom.html#sec-implicit-aria-semantics

Acc API mappings
http://rawgit.com/w3c/html-api-map/master/index.html#el-h1-h6

* MSAA + IAccessible2 *
Role:  IA2_ROLE_HEADING 
Object attributes:  level:&lt;heading_level&gt; 
Interfaces:  IAccessibleText2; IAccessibleHypertext2; 

*ATK*
Role:  ATK_ROLE_HEADING 
Object attributes:  level:&lt;heading_level&gt; 
Interfaces:  AtkText; AtkHypertext  

*AX*
AXRole: AXHeading 
AXSubrole: (nil) 
AXRoleDescription: &quot;heading&quot; 
Properties: Use AXLevel to expose the heading level</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1002423</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2014-04-20 15:05:20 -0700</bug_when>
    <thetext>&lt;rdar://problem/16671435&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1002516</commentid>
    <comment_count>2</comment_count>
    <who name="Steve Faulkner">faulkner.steve</who>
    <bug_when>2014-04-21 01:58:49 -0700</bug_when>
    <thetext>related HTML spec bug
https://www.w3.org/Bugs/Public/show_bug.cgi?id=25003</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1002704</commentid>
    <comment_count>3</comment_count>
    <who name="James Craig">jcraig</who>
    <bug_when>2014-04-21 15:45:30 -0700</bug_when>
    <thetext>There is some ongoing discussion in the W3C bug that should be addressed before we consider changing WebKit.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1002817</commentid>
    <comment_count>4</comment_count>
    <who name="Steve Faulkner">faulkner.steve</who>
    <bug_when>2014-04-21 23:00:58 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; There is some ongoing discussion in the W3C bug that should be addressed before we consider changing WebKit.

There is also an issue with outline depth calculation as currently specced that needs to be resolved
https://www.w3.org/Bugs/Public/show_bug.cgi?id=25394</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>