<?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>25285</bug_id>
          
          <creation_ts>2014-04-07 20:54:51 +0000</creation_ts>
          <short_desc>Boolean attributes return null in both situations - if browser returns undefined and if browser returns false</short_desc>
          <delta_ts>2016-09-02 20:52:10 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Browser Test/Tools WG</product>
          <component>WebDriver</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</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>
          
          <blocked>20860</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Andrey Botalov">botalov.andrey</reporter>
          <assigned_to name="Simon Stewart">simon.m.stewart</assigned_to>
          <cc>dburns</cc>
    
    <cc>mike</cc>
          
          <qa_contact name="Browser Testing and Tools WG">public-browser-tools-testing</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>103502</commentid>
    <comment_count>0</comment_count>
    <who name="Andrey Botalov">botalov.andrey</who>
    <bug_when>2014-04-07 20:54:51 +0000</bug_when>
    <thetext>The spec says:
&quot;Because of this, the WebDriver API offers a single command (&quot;getElementAttribute&quot;) which covers the case of returning either of the value of a Document element&apos;s property or attribute.&quot;

But actually spec defines its own algorithm that isn&apos;t similar to neither returning property nor returning attribute in case if boolean attribute is supplied.

Consider the following:
&lt;input id=&quot;id1&quot; type=&quot;checkbox&quot; /&gt;

&lt;input id=&quot;id2&quot; type=&quot;text&quot; /&gt;

&lt;span id=&quot;id2&quot;&gt;&lt;/span&gt;

In browsers &quot;checked&quot; will return false for the first and second elements, but undefined for the third element.

An implementation of Webdriver protocol will return null in all cases.

IMO it&apos;s not good. IMO it would be better if Webdriver will return the same values (true/false/null) as W3C specs say browser to return.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>127285</commentid>
    <comment_count>1</comment_count>
    <who name="Simon Stewart">simon.m.stewart</who>
    <bug_when>2016-09-02 20:52:10 +0000</bug_when>
    <thetext>getAttribute, as discussed in this bug, was removed from the spec. Closing.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>