Skip to content

Commit 310cfb8

Browse files
committed
fix: ブロック要素隣接を行境界として扱い standalone 判定を修正
nonWhitespaceSibling で空白スキップ後の隣接ノードがブロック要素 (<h1>〜<h6>, <p>, <div> 等)の場合も行境界として扱うことで、 <body> 直下や <p> の外に単独で置かれた <a> を正しく変換対象と する。 <a> タグ同士が空白テキストノード越しに隣接するケースは、 nonWhitespaceSibling がスキップ後に <a>(非ブロック要素)を 返すため引き続き変換されない。
1 parent dd8167b commit 310cfb8

3 files changed

Lines changed: 39 additions & 11 deletions

File tree

0 commit comments

Comments
 (0)