<?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>18271</bug_id>
          
          <creation_ts>2012-07-18 17:54:42 +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-04-08 22:29:42 +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>HTML5 spec</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>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="This bug has no owner yet - up for the taking">dave.null</assigned_to>
          <cc>annevk</cc>
    
    <cc>cam</cc>
    
    <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
    
    <cc>robin</cc>
    
    <cc>silviapfeiffer1</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>71008</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2012-07-18 17:54:42 +0000</bug_when>
    <thetext>This was was cloned from bug 17087 as part of operation convergence.
Originally filed: 2012-05-17 11:38:00 +0000

================================================================================
 #0   contributor@whatwg.org                          2012-05-17 11:38:20 +0000 
--------------------------------------------------------------------------------
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
================================================================================
 #1   Anne                                            2012-05-17 11:43:19 +0000 
--------------------------------------------------------------------------------
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;.
================================================================================
 #2   Simon Pieters                                   2012-05-21 14:03:06 +0000 
--------------------------------------------------------------------------------
Also give replaceState the same treatment.
================================================================================
 #3   Ian &apos;Hixie&apos; Hickson                             2012-06-29 01:34:00 +0000 
--------------------------------------------------------------------------------
Isn&apos;t there some WebIDL magic I can use for this?
================================================================================
 #4   Cameron McCormack                               2012-06-29 01:50:58 +0000 
--------------------------------------------------------------------------------
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>73588</commentid>
    <comment_count>1</comment_count>
    <who name="Robin Berjon">robin</who>
    <bug_when>2012-09-11 14:04:19 +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: Accepted
Change Description: I made |url| nullable for both pS and rS, and ignored null in the prose. I didn&apos;t go with Heycam&apos;s suggestion because of current entry URL vs entry script URL.
Rationale: It&apos;s nicer this way, and it breaks a major library.

https://github.com/w3c/html/commit/cd7313f8b21c8069488c1efec603769745585990</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85754</commentid>
    <comment_count>2</comment_count>
    <who name="Silvia Pfeiffer">silviapfeiffer1</who>
    <bug_when>2013-04-08 22:29:42 +0000</bug_when>
    <thetext>FYI: added a further improvement from WHATWG commit:
https://github.com/w3c/html/commit/54524c9626a8493598b4162266a54a6e3cd64ff9</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>