File tree Expand file tree Collapse file tree 3 files changed +6
-7
lines changed
testassets/BasicTestApp/RouterTest Expand file tree Collapse file tree 3 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -55,8 +55,7 @@ function setHasLocationChangingListeners(hasListeners: boolean) {
55
55
}
56
56
57
57
export function scrollToElement ( identifier : string ) : boolean {
58
- const element = document . getElementById ( identifier )
59
- || document . getElementsByName ( identifier ) [ 0 ] ;
58
+ const element = document . getElementById ( identifier ) ;
60
59
61
60
if ( element ) {
62
61
element . scrollIntoView ( ) ;
Original file line number Diff line number Diff line change @@ -1547,7 +1547,7 @@ public void CanNavigateBetweenPagesWithQueryStrings()
1547
1547
}
1548
1548
1549
1549
[ Fact ]
1550
- public void AnchorWithHrefContainingHashSamePage_ScrollsToElementWithIdOnTheSamePage ( )
1550
+ public void AnchorWithHrefContainingHashSamePage_ScrollsToElementOnTheSamePage ( )
1551
1551
{
1552
1552
SetUrlViaPushState ( "/" ) ;
1553
1553
var app = Browser . MountTestComponent < TestRouter > ( ) ;
@@ -1563,7 +1563,7 @@ public void AnchorWithHrefContainingHashSamePage_ScrollsToElementWithIdOnTheSame
1563
1563
}
1564
1564
1565
1565
[ Fact ]
1566
- public void AnchorWithHrefContainingHashAnotherPage_NavigatesToPageAndScrollsToElementWithName ( )
1566
+ public void AnchorWithHrefContainingHashAnotherPage_NavigatesToPageAndScrollsToElement ( )
1567
1567
{
1568
1568
SetUrlViaPushState ( "/" ) ;
1569
1569
var app = Browser . MountTestComponent < TestRouter > ( ) ;
@@ -1579,7 +1579,7 @@ public void AnchorWithHrefContainingHashAnotherPage_NavigatesToPageAndScrollsToE
1579
1579
}
1580
1580
1581
1581
[ Fact ]
1582
- public void NavigatationManagerNavigateToSameUrlWithHash_ScrollsToElementWithIdOnTheSamePage ( )
1582
+ public void NavigatationManagerNavigateToSameUrlWithHash_ScrollsToElementOnTheSamePage ( )
1583
1583
{
1584
1584
SetUrlViaPushState ( "/" ) ;
1585
1585
var app = Browser . MountTestComponent < TestRouter > ( ) ;
@@ -1595,7 +1595,7 @@ public void NavigatationManagerNavigateToSameUrlWithHash_ScrollsToElementWithIdO
1595
1595
}
1596
1596
1597
1597
[ Fact ]
1598
- public void NavigatationManagerNavigateToAnotherUrlWithHash_NavigatesToPageAndScrollsToElementWithName ( )
1598
+ public void NavigatationManagerNavigateToAnotherUrlWithHash_NavigatesToPageAndScrollsToElement ( )
1599
1599
{
1600
1600
SetUrlViaPushState ( "/" ) ;
1601
1601
var app = Browser . MountTestComponent < TestRouter > ( ) ;
Original file line number Diff line number Diff line change 5
5
Scroll past me to find the links
6
6
</div >
7
7
8
- <p name =" test2" >Test2</p >
8
+ <p id =" test2" >Test2</p >
9
9
10
10
<div style =" border : 2px dashed blue ; margin : 1rem ; padding : 1rem ; height : 1500px ;" >
11
11
Scroll past me to find the links
You can’t perform that action at this time.
0 commit comments