<?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>20101</bug_id>
          
          <creation_ts>2012-11-27 16:49:01 +0000</creation_ts>
          <short_desc>insufficient set of &quot;Return value data type&quot; values</short_desc>
          <delta_ts>2012-11-27 18:32:15 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>webplatform.org</product>
          <component>infrastructure</component>
          <version>unspecified</version>
          <rep_platform>PC</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></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mike Sierra">letmespellitoutforyou</reporter>
          <assigned_to name="Doug Schepers">schepers</assigned_to>
          <cc>komoroske</cc>
    
    <cc>team-webplatform-admin</cc>
          
          <qa_contact name="public-webplatform-bugs list">public-webplatform-bugs</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>78922</commentid>
    <comment_count>0</comment_count>
    <who name="Mike Sierra">letmespellitoutforyou</who>
    <bug_when>2012-11-27 16:49:01 +0000</bug_when>
    <thetext>See http://docs.webplatform.org/wiki/dom/apis/document/getNamedFlows for example. The method returns a NamedFlowCollection object, which is not represented in the canonical list of possible return values (http://docs.webplatform.org/wiki/Property:Javascript_data_type). &quot;DOM Node&quot; is perhaps closest, but misleading, as NamedFlowCollection is more analogous to a dynamic NodeList. The guy who reviewed my content flagged it as incorrect. Suggest implementing as &lt;datalist&gt; to allow content authors to enter different values as needed, then add valid new data types to the datalist.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78923</commentid>
    <comment_count>1</comment_count>
    <who name="Alex Komoroske">komoroske</who>
    <bug_when>2012-11-27 16:55:37 +0000</bug_when>
    <thetext>In this case I think you should just add NamedFlowCollection to the list of canonical data types.

As we go forward, we will get to a position where that list just gets way too darn big, but we aren&apos;t there yet.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78924</commentid>
    <comment_count>2</comment_count>
    <who name="Mike Sierra">letmespellitoutforyou</who>
    <bug_when>2012-11-27 16:59:13 +0000</bug_when>
    <thetext>Looks like the real problem is that &quot;getNamedFlows&quot; is a method &amp; thus a function object, but that&apos;s pedantic in context considering that almost everyone will call it as a method &amp; expect the method&apos;s return value.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78925</commentid>
    <comment_count>3</comment_count>
    <who name="Mike Sierra">letmespellitoutforyou</who>
    <bug_when>2012-11-27 17:11:11 +0000</bug_when>
    <thetext>Possible setup is a &lt;select/&gt; box for the existing fixed &quot;canonical&quot; list of object member data types. If the member is a function, enable a &lt;datalist/&gt; mechanism specifying a much wider set of possible method return values.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78933</commentid>
    <comment_count>4</comment_count>
    <who name="Alex Komoroske">komoroske</who>
    <bug_when>2012-11-27 18:21:02 +0000</bug_when>
    <thetext>I&apos;m not sure I follow comment #2. getNamedFlows is a method that returns a NamedFlowCollection object. NamedFlowCollection isn&apos;t an option in that part of the form because it&apos;s not on http://docs.webplatform.org/wiki/Property:Javascript_data_type (which is how that part of the form is generated). It should thus be added to that configuration page so it can be specified as the return value for getNamedFlows.

Also, Semantic Forms is unfortunately somewhat limited in what types of form fields we can have. We (basically) get either a &lt;select&gt; or a free-form text field.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78934</commentid>
    <comment_count>5</comment_count>
    <who name="Mike Sierra">letmespellitoutforyou</who>
    <bug_when>2012-11-27 18:32:15 +0000</bug_when>
    <thetext>OK, misunderstood &quot;canonical&quot; in this context.  Also forgot I already submitted this as bug# 20005.  Too bad the forms aren&apos;t more configurable.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>