Add filtering to positional expressions

Open
#447 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
javascript
Domain
frontend

Research direction

Start by locating the positional-expression handling in the _hyperscript parser or interpreter and review how array results are selected. Define how an optional "that" clause should filter those results, using the example for a heading containing "ingredients" as the acceptance case. Done means the example parses and selects the intended element without breaking existing positional expressions.

Written by the indexing model from the issue text.

Description

From the HTMX Discord:

on click go to first .wp-block-heading that contains 'ingredients'

It'd be neat if the positional expressions also took an optional "that" clause that basically acts as a filter on an array.

Dominant language
JavaScript
Stars
3.8k
Forks
171
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from bigskysoftware/_hyperscript

All issues in bigskysoftware/_hyperscript

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.