Help:Lintエラー/misc-tidy-replacement-issues
カテゴリ misc-tidy-replacement-issues は、独自のカテゴリが必要と判断されるまでの間に見つかる軽微な問題に使用されます。 2018年8月現在、このカテゴリには「div-span-flip」というエラーのみが含まれています。
div-span-flip
問題点
Tidyがdivとspanを入れ替えた(phab:T11737)ため、一部のページの見た目が変更されました。 そうは言っても、そこに列挙されているページの多くは、spanタグにstyle属性やclass属性を持っているにもかかわらず、目に見える程度の描画への影響はないようですが。
解決策
Help:Extension:Linter/html5-misnesting と同じ
なぜ発生するのか
Tidyは、HTML要素のdivとspanを交換し、div要素がspan要素の内部に配置されないようにしました。
<span><div>何らかのテキスト</div></span> は <div><span>何らかのテキスト</span></div> に変更されました。
これは、spanタグがstyle属性かclass属性を持っている場合に限り問題になります。 With Tidy, the style and class attributes had an effect. But, since RemexHtml no longer flips these tags around, the style and class attributes on the span no longer take effect. So, in some cases, this causes visible rendering differences. Linter flags instances only where the span tag had such attributes, but even so, in many cases, there may not be any visible rendering differences.