Biome linter flagged valid selectedcontent CSS as unknown; a missing list entry was the cause
A linter reported that the selectedcontent element used in CSS for customizable dropdowns was an unknown type selector, though the element is valid HTML. The cause was that Biome's built-in list of HTML tag names lacked this entry, and the rule accepts only names found in that list or custom elements containing a hyphen. The fix added selectedcontent to the sorted list, which required updating the array size and keeping alphabetical order because the lookup uses binary search. A test checking the ordering and a new valid-case test were included. The change was merged in November 2026 and shipped in Biome 2.6.8.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in