-
- // …except for IE 10 and 11. Prod it with a location.hash change.
- if ( shouldChangeFragment && profile.name === 'msie' && profile.versionNumber >= 10 ) {
- location.hash = fragment;
+ if ( shouldChangeFragment ) {
+ // Specification for history.replaceState() doesn't require browser to scroll,
+ // so scroll to be sure (see also T110501). Support for IE9 and IE10.
+ node = document.getElementById( fragment.slice( 1 ) );
+ if ( node ) {
+ node.scrollIntoView();
+ }