Using empty string to prevent updating of dangerouslySetInnerHTML?
まだ誰も着手していません。
- 主要言語
- JavaScript
- スター
- 11.8k
- フォーク
- 7.9k
- 平均マージ
- 1日 11時間
- マージ済み PR(30日)
- 11
説明
From @sebmarkbage's comment over in the React repo it sounds like dangerouslySetInnerHTML doesn't update the underlying DOM if it receives an empty string. I could also reproduce this: https://repl.it/repls/MotherlyPuzzlingComma
That's useful behavior for us in a server-rendering context where we don't need to ship the HTML to the client. But before merging that PR, I want to make sure this behavior is intended and not going away silently. And if so, should we maybe document it on the website?
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、リンクされた React issue のコメント、repro、参照されている mozilla/kuma pull request を確認し、空の dangerouslySetInnerHTML が意図された動作かどうかを明らかにします。完了とは、その動作を確認し、React ドキュメントサイトに記載すべきかどうかを判断することです。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- javascript, react
- 領域
- documentation
- issue の種類
- ドキュメント
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 25/100