Skip to content

4.3.5: 特定のHTMLタグ(の組み合わせ)でエラーが報告されない #52

@momdo

Description

@momdo

textlint-plugin-htmlとの併用です(ほかのルールチェックでもエラーが無視される場合があるようですが、きちんと確認できてません)。

テストケース1

<!-- すべてNG -->
<head>
<title>テスト"</title>
</head>
<body>

<h1>テスト"</h1>
<h6>テスト"</h6>

<ul>
<li>テスト"
</ul>

<ol>
<li>テスト"
</ol>

<dl>
<dt>テスト"
<dd>テスト"
</dl>

<table>
<tr><th>テスト"</th></tr>
<tr><td>テスト"</td></tr>
</table>

<pre>
テスト"
</pre>

<figure>
<img src="test.gif" alt="">
<figcaption>テスト"</figcaption>
</figure>

<div>
テスト"
</div>

各種要素内のエラーが検知できません。

テストケース2

<p>テスト"<!-- OK -->
<p>テスト"<!-- OK -->
<p>テスト"<!-- NG -->
<ul>
<li>テスト"</li><!-- NG -->
</ul>
<p>テスト"</p><!-- OK -->
<ul>
<li>テスト"</li><!-- NG -->
</ul>

p要素(終了タグ省略)+ul要素という組み合わせだと、なぜかp要素内のエラーが報告されません。

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions