-
Notifications
You must be signed in to change notification settings - Fork 335
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
Why prefer HTMLElement? #126
Comments
🤷♂️ do you have an argument or reasoning to change it that is currently broken? |
Recalling what was the problem... Ah, it caused feature detection to falsely fail, as the code expected |
That's a good point. MDN has Looks like it should prefer |
Possibly related to #153 |
I found that the code prefers HTMLElement to Element:
smoothscroll/src/smoothscroll.js
Line 18 in 8a19e81
...and causes adding
scrollIntoView()
toHTMLElement
instead ofElement
. What was the reasoning there?The text was updated successfully, but these errors were encountered: