Improve selection.isCollapsed
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 35/100
調査の方向性
Start by reviewing the Selection API definition of selection.isCollapsed and selection.type, then reproduce the cursor-at-the-start-of-a-list case with a preceding paragraph in Chrome. Compare the reported start and end containers and determine the specification change needed. Done means the case is consistently reported as a collapsed cursor rather than a range.
索引モデルが issue の本文から書いたものです。
説明
The selection.isCollapsed works by detecting start and end nodes and their offsets. This sometimes leads to inconsistencies because of different implementations by different browsers (especially on mobiles, tested this on chrome). Here is what happens-
- When a cursor is placed at the beginning of a list, the selection.isCollapsed should ideally return true and selection.type as 'cursor'.
- However, if there is text (say a paragraph block previously to the list), then it still gives false because startContainer is then taken as the previous text block (while end container points correctly to the list item, li of the list). So even though nothing is selected and it is just a cursor, selection.isCollapsed returns false and selection.type as 'range'.
- 主要言語
- HTML
- スター
- 49
- フォーク
- 30
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
w3c/selection-api のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
w3c/selection-api#354 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 10/100
w3c/selection-api#362 ·
-
Agenda+
難易度 3/5 1〜2日 初心者へのやさしさ 48/100
w3c/selection-api#361 · コメント 3 件 ·
-
Remove single range restriction for selection interface apis再び着手できるかも @sambandaru が 159 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
w3c/selection-api#358 · コメント 2 件 · 担当者 1 名 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
w3c/selection-api#355 ·
w3c/selection-api の issue をすべて見る
似ている issue
-
Sequências em espanhol: «Atualizado em», a aba «Fila» e o valor 'pause' ainda saem em portuguêsオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
melgarafael/DeskcommCRM#3104 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
bug service: webapp
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
Ocelot-Social-Community/Ocelot-Social#10684 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
motiondivision/motion#3955 ·
メンテナーはふだん 1 日以内に返信