Skip to content

Commit

Permalink
Merge pull request #9149 from w3c/sync_af4895ab8c8fcea44e7a1cc6453f54…
Browse files Browse the repository at this point in the history
…ffb985908b

Try GoToAnchor() with unescaped string before using document's charset.
  • Loading branch information
jgraham committed Jan 23, 2018
2 parents 6e2eb8e + af4895a commit 0358955
Showing 1 changed file with 6 additions and 0 deletions.
Expand Up @@ -8,6 +8,7 @@
<a name="anchor1" style="position:absolute; top:200px;"></a>
<div id="id-equals-anchor" style="position:absolute; top:300px;"></div>
<a name="id-equals-anchor" style="position:absolute; top:400px;"></a>
<a name="§1" style="position:absolute; top:400px;"></a>
<div style="height:200em;"></div>
<script>
var steps = [{
Expand All @@ -21,6 +22,11 @@
// id still takes precedence over anchor name
assert_equals( scrollPosition(), 300 );
}
},{
fragid:'§1',
handler: function(){
assert_equals( scrollPosition(), 400 );
}
}];

function scrollPosition(){
Expand Down

0 comments on commit 0358955

Please sign in to comment.