Render against a document other than window.document

Open
#3,056 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
30/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Active
Tech stack
typescript
Domain
frontend

Research direction

Start by tracing the renderer entry points used by template() and createElement, then review the linked layering discussion and the rejected reactive-owner approach. Define how the mount root supplies a document-like object for scoped registries and shadow-root-backed documents; done means rendering no longer relies on the global document without leaking DOM state into rxcore.

Written by the indexing model from the issue text.

Description

enhancement

Moved from ryansolid/dom-expressions#253 / the layering discussion on solid#1740.

template() / createElement always hit global document. Scoped custom element registries and shadow-root-backed documents need the mount root’s document-like object instead.

#1740 put a document field on the reactive owner. That was rejected because it puts DOM-specific state into the owner. The gap is still real; the enhancement is a renderer-owned document (or equivalent) that does not leak into rxcore.

Dominant language
TypeScript
Stars
37k
Forks
1.2k
Avg merge
8h 43m
Merged PRs (30d)
365

Getting set up

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 solidjs/solid

All issues in solidjs/solid

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.