<?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>8967</bug_id>
          
          <creation_ts>2010-02-13 12:21:37 +0000</creation_ts>
          <short_desc>Why is the optional argument in the middle? Isn&apos;t it more convenient when copy/pasting code to make optional modifications at either end without having to precisely place the cursor somewhere in the middle? Particularly for piecing together arguments, too</short_desc>
          <delta_ts>2010-10-04 13:59:47 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML WG</product>
          <component>pre-LC1 HTML5 spec (editor: Ian Hickson)</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#posting-messages</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>LC</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>Ms2ger</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
          
          <qa_contact name="HTML WG Bugzilla archive list">public-html-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>31909</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2010-02-13 12:21:37 +0000</bug_when>
    <thetext>Section: http://www.whatwg.org/specs/web-apps/current-work/#posting-messages

Comment:
Why is the optional argument in the middle? Isn&apos;t it more convenient when
copy/pasting code to make optional modifications at either end without having
to precisely place the cursor somewhere in the middle? Particularly for
piecing together arguments, too, since one could append the mandatory
arguments first, and then if somewhere else some ports are required simple +
them to the string. Admittedly, this would be crafting a string which then
would have to be executed. And what about having an array of arguments? The
second item is sometimes one argument, and sometimes another. So an array of
arrays couldn&apos;t handled simply (e.g. sometime [1], other times [2]) when
processing posts to multiple different domains and potential ports. Admittedly
that be a rather informative filling multiple forms from multiple domains, but
isn&apos;t that potentially desirable?

Posted from: 72.253.36.224</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>32317</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2010-02-17 23:54:30 +0000</bug_when>
    <thetext>I don&apos;t understand what the text starting with &quot;And what about having an array of arguments?&quot; to the end is referring to.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>32568</commentid>
    <comment_count>2</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2010-02-23 11:33:46 +0000</bug_when>
    <thetext>EDITOR&apos;S RESPONSE: This is an Editor&apos;s Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Rejected
Change Description: no spec change
Rationale: It&apos;s in the middle because I was trying to keep targetOrigin at the end, since it looks weird to have targetOrigin in the middle, between the message being sent and the ports being sent.

(This is starting to get implemented. If you would really like this changed, it would be helpful if you could contact implementors who have this implemented, and ask them if they&apos;d be willing to change it. In particular, I think WebKit has an implementation of this. Not sure if the others do yet.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>32581</commentid>
    <comment_count>3</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2010-02-23 12:42:16 +0000</bug_when>
    <thetext>Opera has implemented this, but we&apos;d be happy to change so that the optional argument is at the end.

http://lists.w3.org/Archives/Public/public-html/2010Jan/0578.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>33961</commentid>
    <comment_count>4</comment_count>
    <who name="Ms2ger">Ms2ger</who>
    <bug_when>2010-03-27 09:23:05 +0000</bug_when>
    <thetext>http://html5.org/tools/web-apps-tracker?from=4869&amp;to=4870</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>