<?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>21670</bug_id>
          
          <creation_ts>2013-04-11 22:16:12 +0000</creation_ts>
          <short_desc>Clarify that typeof InterfaceObject should be &quot;function&quot;</short_desc>
          <delta_ts>2013-08-04 07:41:23 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebAppsWG</product>
          <component>WebIDL</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>[v1]</status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Erik Arvidsson">erik.arvidsson</reporter>
          <assigned_to name="Cameron McCormack">cam</assigned_to>
          <cc>mike</cc>
    
    <cc>public-script-coord</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>85984</commentid>
    <comment_count>0</comment_count>
    <who name="Erik Arvidsson">erik.arvidsson</who>
    <bug_when>2013-04-11 22:16:12 +0000</bug_when>
    <thetext>Interface objects are Functions with a [[Call]] behavior that throws by default.

http://dev.w3.org/2006/webapi/WebIDL/#es-interface-call

Therefore typeof HTMLElement === &quot;function&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85998</commentid>
    <comment_count>1</comment_count>
    <who name="Cameron McCormack">cam</who>
    <bug_when>2013-04-11 22:38:06 +0000</bug_when>
    <thetext>That should already be required, since http://dev.w3.org/2006/webapi/WebIDL/#interface-object says that the interface object is a function object, and http://dev.w3.org/2006/webapi/WebIDL/#dfn-function-object describes those.  (It has some out of date ES6 terminology that needs updating, but hopefully it is still clear.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85999</commentid>
    <comment_count>2</comment_count>
    <who name="Cameron McCormack">cam</who>
    <bug_when>2013-04-11 22:39:32 +0000</bug_when>
    <thetext>Do you just want a clarifying note pointing out that &quot;typeof &lt;interfaceobject&gt;&quot; will be function?  I can add that, though I think it would be better place in the preceding section http://dev.w3.org/2006/webapi/WebIDL/#interface-object.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86053</commentid>
    <comment_count>3</comment_count>
    <who name="Erik Arvidsson">erik.arvidsson</who>
    <bug_when>2013-04-12 17:10:04 +0000</bug_when>
    <thetext>I just thought a note would be useful since more than one smart person failed to come to this conclusion after reading the spec.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91605</commentid>
    <comment_count>4</comment_count>
    <who name="Cameron McCormack">cam</who>
    <bug_when>2013-08-04 07:41:23 +0000</bug_when>
    <thetext>I&apos;ve added a note:

http://dev.w3.org/cvsweb/2006/webapi/WebIDL/Overview.xml.diff?r1=1.680;r2=1.681;f=h
http://dev.w3.org/cvsweb/2006/webapi/WebIDL/v1.xml.diff?r1=1.122;r2=1.123;f=h</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>