gren-lang / gren-lang/core

Cross-platform HTML module

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

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
48
Forks
14
Avg merge
4h 14m
Merged PRs (30d)
1

Description

Implement an API for representing HTML documents. This API should present HTML nodes as an open (not opaque) data structure. It should be possible to traverse this structure, and there should be a toString function.

It should be possible to use this API for backend rendering of HTML documents.

There should also be an API in gren-lang/browser which can take this structure and use it as the basis for a virtual-dom implementation.

In short, we wish to use the gren-lang/browser HTML module as a general purpose HTML API. The same code should make it possible to backend render HTML, use it in a virtual-dom setting, and make it possible to analyse or modify HTML at runtime.

Contributor guide

Open the contributing guide

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 reading the gren-lang/browser HTML module and determine how its existing structure relates to backend rendering. Define an open HTML-node representation that supports traversal, toString, virtual-DOM use, and runtime analysis or modification. Done means the same API supports all of these stated use cases.

Written by the indexing model from the issue text.

Assessment

Tech stack
html
Domain
backend, 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.