<?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>125343</bug_id>
          
          <creation_ts>2013-12-06 04:55:34 -0800</creation_ts>
          <short_desc>AX: Null is not an object when calling body.role field.</short_desc>
          <delta_ts>2016-09-08 14:50:54 -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>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="Lukasz Gajowy">l.gajowy</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>cfleizach</cc>
    
    <cc>k.czech</cc>
    
    <cc>mario</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>957216</commentid>
    <comment_count>0</comment_count>
    <who name="Lukasz Gajowy">l.gajowy</who>
    <bug_when>2013-12-06 04:55:34 -0800</bug_when>
    <thetext>Recently i was working on another bug and noticed a problem in accessibilityControler.getAccessibleElementById() method.

The &quot;problematic&quot; LayoutTest body:

&lt;html&gt;
&lt;head&gt;
&lt;script src=&quot;../resources/js-test-pre.js&quot;&gt;&lt;/script&gt;
&lt;/head&gt;
&lt;body id=&quot;body&quot;&gt;

&lt;p id=&quot;description&quot;&gt;&lt;/p&gt;
&lt;div id=&quot;console&quot;&gt;&lt;/div&gt;
&lt;script&gt;
    description(&quot;This tests that each of these ARIA roles have appropriate mappings.&quot;);
    if (window.testRunner) {
        testRunner.dumpAsText();
        if (window.accessibilityController) {
            var body = accessibilityController.accessibleElementById(&quot;body&quot;);
            debug(&quot;Role for &apos;body&apos; is: &quot; + body.role);
    }
}
&lt;/script&gt;
&lt;script src=&quot;../resources/js-test-post.js&quot;&gt;&lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;

It turned out that when i invoke debug(&quot;Role for &apos;body&apos; is: &quot; + body.role); method, the body.role field is NULL (i get an error in layout test output - &quot;null is not an object&quot;). Should it be like that? What is more, when i explicitly declare the role for body (eg. &lt;body id=&quot;body&quot; role=&quot;alert&quot;&gt;), the body.role field is alert, not NULL anymore. So this method doesn&apos;t work properly in my opinion.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1227842</commentid>
    <comment_count>1</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2016-09-08 14:50:54 -0700</bug_when>
    <thetext>&lt;rdar://problem/28214718&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>