She-Codes

Member since
She-Codes

Recent Docs Activity

View all activity
Page Date Comment

Element.closest()


In the first polyfill, instead of returning el, return null to match the behavior of the original method which returns null when an ancestor is not found. Otherwise el is returned in these scenarios.