Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mark Element.scrollIntoView as not implemented #3639

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions lib/jsdom/living/nodes/Element-impl.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ const ShadowRoot = require("../generated/ShadowRoot");
const Text = require("../generated/Text");
const { isValidHostElementName } = require("../helpers/shadow-dom");
const { isValidCustomElementName, lookupCEDefinition } = require("../helpers/custom-elements");
const notImplemented = require("../../browser/not-implemented");

function attachId(id, elm, doc) {
if (id && elm && doc) {
Expand Down Expand Up @@ -382,6 +383,10 @@ class ElementImpl extends NodeImpl {
return 0;
}

scrollIntoView() {
notImplemented("Element.prototype.scrollIntoView", this._ownerDocument._defaultView);
}

// https://dom.spec.whatwg.org/#dom-element-attachshadow
attachShadow(init) {
const { _ownerDocument, _namespaceURI, _localName, _isValue } = this;
Expand Down