<?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>17087</bug_id>
          
          <creation_ts>2012-05-17 11:38:20 +0000</creation_ts>
          <short_desc>pushState()&apos;s third argument being null (and maybe undefined) needs to be ignored as it breaks YUI. I suggest making it nullable and ignoring null in prose, that should be sufficient. (Gecko treats null as the empty string here, stringifies undefined at t</short_desc>
          <delta_ts>2013-03-22 18:17:13 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>HTML</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/#history-0</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>annevk</cc>
    
    <cc>cam</cc>
    
    <cc>ian</cc>
    
    <cc>mike</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>67804</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2012-05-17 11:38:20 +0000</bug_when>
    <thetext>Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/history.html
Multipage: http://www.whatwg.org/C#history-0
Complete: http://www.whatwg.org/c#history-0

Comment:
pushState()&apos;s third argument being null (and maybe undefined) needs to be
ignored as it breaks YUI. I suggest making it nullable and ignoring null in
prose, that should be sufficient. (Gecko treats null as the empty string here,
stringifies undefined at the moment; WebKit treats null/undefined as missing
argument; Opera breaks YUI :-(.)

Posted from: 82.161.179.17 by annevk@opera.com
User agent: Opera/9.80 (Macintosh; Intel Mac OS X 10.7.4; U; en) Presto/2.10.229 Version/11.64</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67805</commentid>
    <comment_count>1</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2012-05-17 11:43:19 +0000</bug_when>
    <thetext>Search for pushState in http://yuilibrary.com/yui/docs/api/files/history_js_history-html5.js.html by the way to see the &quot;mistake&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67966</commentid>
    <comment_count>2</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2012-05-21 14:03:06 +0000</bug_when>
    <thetext>Also give replaceState the same treatment.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69522</commentid>
    <comment_count>3</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2012-06-29 01:34:00 +0000</bug_when>
    <thetext>Isn&apos;t there some WebIDL magic I can use for this?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69523</commentid>
    <comment_count>4</comment_count>
    <who name="Cameron McCormack">cam</who>
    <bug_when>2012-06-29 01:50:58 +0000</bug_when>
    <thetext>Is the behaviour of pushState when passing &quot;&quot; as the url different from leaving it off?  If not, then you can just use [TreatNullAs=EmptyString].  If it is, and you need null to behave like omitting the argument, you&apos;ll need to do as Anne suggested.  I *could* introduce a [TreatNullAs=Missing], just like the [TreatUndefinedAs=Missing] that exists now, but it seems simpler just to handle this in prose.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71009</commentid>
    <comment_count>5</comment_count>
    <who name="">contributor</who>
    <bug_when>2012-07-18 17:54:45 +0000</bug_when>
    <thetext>This bug was cloned to create bug 18271 as part of operation convergence.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73654</commentid>
    <comment_count>6</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2012-09-11 23:59:13 +0000</bug_when>
    <thetext>This will need some testing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78518</commentid>
    <comment_count>7</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2012-11-20 08:12:51 +0000</bug_when>
    <thetext>Also consider:
https://github.com/w3c/html/commit/cd7313f8b21c8069488c1efec603769745585990</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82450</commentid>
    <comment_count>8</comment_count>
    <who name="">contributor</who>
    <bug_when>2013-02-01 00:19:00 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r7685.
Check-in comment: Make the third argument of pushState and replaceState accept null.
http://html5.org/tools/web-apps-tracker?from=7684&amp;to=7685</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82464</commentid>
    <comment_count>9</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2013-02-01 09:28:44 +0000</bug_when>
    <thetext>Reopening as bz will ask you to make it default to null in IDL.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84868</commentid>
    <comment_count>10</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-03-22 18:16:20 +0000</bug_when>
    <thetext>That&apos;s the definition of a pointless change. But fine. Hopefully I didn&apos;t break anything while making it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84869</commentid>
    <comment_count>11</comment_count>
    <who name="">contributor</who>
    <bug_when>2013-03-22 18:17:13 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r7767.
Check-in comment: Move the presence checking into the IDL
http://html5.org/tools/web-apps-tracker?from=7766&amp;to=7767</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>