11ty / 11ty/dev-server

Browser event on domDiff updated node.

Open
#86 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
JavaScript
Stars
109
Forks
20
Avg merge
1m
Merged PRs (30d)
1

Description

Would allow custom behavior to scroll to updated nodes, highlight them in browser, etc etc.

Also related to a syncScroll feature requested by @leaverou:

You could have a syncScroll setting with options:

  • off (default)
  • auto: scroll to first changed node
  • object literal. filter key: a function to filter out non-relevant nodes. Then you just scroll to the first one.

via https://front-end.social/@leaverou/112887390381826031

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.

Research direction

Start by locating the domDiff implementation and the code path that updates browser nodes. Determine the event payload and scope first, including whether syncScroll belongs in this issue. Done means the intended browser event and any scrolling behavior are specified and covered by appropriate tests.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.