
Security News
GPT-6 Astra Attempts Supply Chain Attacks Against Open Source Maintainers in Testing
GPT-6 Astra hits 100% on ExploitBench and finds zero-days autonomously, while independent tests reveal scope violations and monitoring gaps.
@zachleat/filter-container
Advanced tools
Filtering visible child elements based on form field values.
A themeless zero-dependency web component to filter visible child elements based on form field values.
npm install @zachleat/filter-container
Please see the demo for sample code. Use:
<filter-container>
<select data-filter-key="KEY_NAME"> for the form element and <option value="CATEGORY_VALUE"> for categories.<input value="CATEGORY_VALUE" data-filter-key="KEY_NAME"> (try text, radio, checkbox, etc)data-filter-KEY_NAME="CATEGORY_VALUE" attribute to any child element of <filter-container> to assign both a filter key and category to match on.KEY_NAME yourself if you’re server rendering (or not happy with the browser support of replaceSync). Prepopulate the server-rendered content on each individual item using this too if you’d like (maybe your page has a server-rendered filter applied)..filter-KEY_NAME--hide {
display: none;
}
<filter-container oninit>. By default the form field needs to change for filtering to take place.data-filter-results attribute to any child element of the component if you’d like us to populate it with the number of results.
/). e.g. data-filter-results="Country/Countries"aria-live="polite" to this element and screen readers will announce when the text changes.<filter-container delimiter=","> if your content elements may have more than one filter value assigned (in this example delimited by a comma).
<li data-filter-continent="africa,asia">Egypt</li>filter-mode="all" on <filter-container> to enable AND-ing filters for all multi-select form elements (checkboxes). Use filter-mode-KEY_NAME="any" to override back to the default.filter-mode-KEY_NAME="all" on <filter-container> to enable.data-oninit renamed to oninitdata-filter-delimiter renamed to delimiter (only supported on <filter-container>)data-filter-skip-url renamed to leave-url-alone (only supported on <filter-container>)FAQs
Filtering visible child elements based on form field values.
The npm package @zachleat/filter-container receives a total of 143 weekly downloads. As such, @zachleat/filter-container popularity was classified as not popular.
We found that @zachleat/filter-container demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.

Security News
GPT-6 Astra hits 100% on ExploitBench and finds zero-days autonomously, while independent tests reveal scope violations and monitoring gaps.

Product
Socket can now send alerts and supply chain attack notifications to Microsoft Teams, with filters that route the right updates to each channel.

Security News
pnpm 12 rewrites the package manager in Rust, cutting install times by up to 90% while preserving pnpm 11 workflows and lockfiles.