Render against a document other than window.document

オープン
#3,056 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
30/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
活発
技術スタック
typescript
領域
frontend

調査の方向性

まず、template() と createElement が使用する renderer のエントリーポイントを追跡し、続いてリンクされているレイヤリングに関する議論と、却下された reactive-owner アプローチを確認します。mount root が scoped registries と shadow root ベースのドキュメント向けに document に似たオブジェクトをどのように提供するかを定義します。グローバルな document に依存せず、DOM の状態を rxcore に漏らさずにレンダリングできれば完了です。

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
TypeScript
スター
36.2k
フォーク
1.1k
平均マージ
11時間 5分
マージ済み PR(30日)
475

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

solidjs/solid のほかの issue

solidjs/solid の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。