refactor(common): removed TODO no longer considered necessary (#43378)

The TODO comment suggesting to verify that the target element to
scroll to needs to be an anchor does not longer seems under consideration
so it can be removed

resolves #43348

PR Close #43378
This commit is contained in:
dario-piotrowicz
2021-09-07 23:19:56 +01:00
committed by Andrew Scott
parent d647491679
commit 9c7d18e892
+1 -3
View File
@@ -120,9 +120,7 @@ export class BrowserViewportScroller implements ViewportScroller {
if (!this.supportsScrolling()) {
return;
}
// TODO(atscott): The correct behavior for `getElementsByName` would be to also verify that the
// element is an anchor. However, this could be considered a breaking change and should be
// done in a major version.
const elSelected = findAnchorFromDocument(this.document, target);
if (elSelected) {