Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
HTML フラグメントを別の文字列として生成し、alert()それをエコーするために使用し、結果を W3 バリデーターに貼り付けると、次のエラーが発生します。
alert()
開いていない要素「DIV」の終了タグ
つまり、偽の</div>終了タグが含まれていますvar openSecondary = ...
</div>
var openSecondary = ...
one_0_requiredちなみに、バリデーターは、複数の要素のIDとして再利用していることも吐き出しました
one_0_required