Change the approach for retrieving comment nodes

Created on 30 June 2024, 2 days ago

Problem/Motivation

The current approach is not the most performant (using document.querySelectorAll()). Besides this, the current approach is not covering comments for element html. Its comments are rendered before the first DOM element opening, thus causing it not to be displayed.

Proposed resolution

Change the approach to use document.createTreeWalker(), which should also be more performant.

Remaining tasks

Update the code to use document.createTreeWalker() instead of document.querySelectorAll().

✨ Feature request
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡§πŸ‡·Brazil mabho Rio de Janeiro, RJ

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.69.0 2024