Premium
Selector Polyfill 1: Implement `matchesSimple`
Challenge summary
Match a DOM-like element against a focused subset of tag, identifier, and class selectors.
What you'll practice
- Parse the supported selector forms without accepting unsupported syntax.
- Compare tag names, identifiers, and class membership correctly.
- Return a predictable false result for invalid nodes or selectors.
What Premium unlocks
Premium unlocks the runnable workspace, behavioral checks, implementation walkthrough, and edge-case discussion.
Free related practice
Upgrade to FrontendAtlas Premium to unlock this challenge. Already upgraded? Sign in to continue.