developit / developit/htm

different attribute handling in div/span etc. and svg

オープン
#240 コメント 6 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
9k
フォーク
181
PR マージ指標
30日以内にマージされた PR はありません

説明

I am using "htm" with "preact" binding

When I'm using code like the following

```
render(html`





`, document.body)
```

"htm" handles the ids differently:

* `

` and `` get an `id` with the value `"false"` while
* `` elements behave as expected (the first one gets no `id`, the second one an id with the value `id-4`)

Is that the expected behaviour? I've also tested other attributes, always with the same result...

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

Start by running the issue's htm and Preact reproduction in a browser and compare the generated attributes on div, span, and svg elements. Trace the attribute-handling path for HTML and SVG elements, then verify that falsy conditional values are handled consistently and that the reproduction produces the expected ids.

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

評価

技術スタック
javascript
領域
frontend
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
42/100

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

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