gren-lang / gren-lang/browser

Adding attributes to the <body>

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

Nobody has claimed this yet.

bug help wanted
Dominant language
JavaScript
Stars
3
Forks
5
Avg merge
4d 3h
Merged PRs (30d)
1

Description

When using Browser.application the view function should return a Browser.Document. A document like that lets you set the title and the html content of the <body> tag but not its attributes. And it seems that existing attributes on the <body>, before Gren is started, will be removed by Gren.

Is it possible somehow to have <body class="hello"> when using Browser.application?

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 inspecting the Browser.application flow and the Browser.Document representation described in the issue. Trace how the document body is created and whether existing attributes are removed. Done means Browser.application can express body attributes such as class="hello" without losing the intended document behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend, web-dev
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.