<?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>18178</bug_id>
          
          <creation_ts>2012-07-18 17:33:43 +0000</creation_ts>
          <short_desc>The navigating to a fragment identifier&quot; algorithm shouldn&apos;t be async</short_desc>
          <delta_ts>2013-04-29 22:38:27 +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>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>exclusion</status_whiteboard>
          <keywords></keywords>
          <priority>P2</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>ian</cc>
    
    <cc>james</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
    
    <cc>travil</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>70822</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2012-07-18 17:33:43 +0000</bug_when>
    <thetext>This was was cloned from bug 17155 as part of operation convergence.
Originally filed: 2012-05-23 09:53:00 +0000
Original reporter: James Graham &lt;jgraham@opera.com&gt;

================================================================================
 #0   James Graham                                    2012-05-23 09:53:34 +0000 
--------------------------------------------------------------------------------
When UAs navigate to fragment identifiers they seem to do it in a sync way i.e. 

location.hash = &quot;#bar&quot;
//location.hash is now &quot;#bar&quot;

However the hashchange event seems to be queued rather than fired synchronously so that
location.hash = &quot;foo&quot;
onhashchange = function(e) {document.body.innerHTML += &quot;&lt;p&gt; &quot; + e.oldURL + &quot; &quot; + e.newURL}
location.hash = &quot;bar&quot;

causes the event to be fired twice.

For other navigations, the async behaviour seems to be correct.
================================================================================
 #1   James Graham                                    2012-05-23 10:01:30 +0000 
--------------------------------------------------------------------------------
Also, the scrolling seems to happen synchronously
================================================================================</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86961</commentid>
    <comment_count>1</comment_count>
    <who name="Travis Leithead [MSFT]">travil</who>
    <bug_when>2013-04-29 22:38:27 +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: Fix ported from WHATWG spec</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>