Elchi3 / mdn-doc-tests

:no_entry_sign: UNMAINTAINED :no_entry_sign: This used to check MDN docs against some tests and cleanup tasks while editing, but add-on SDK based add-ons are obsolete. Use https://github.com/mdn/doc-linter-webextension and https://github.com/mdn/doc-linter-rules instead.
Mozilla Public License 2.0
10 stars 8 forks source link

Spurious/unfixable “Empty elements” errors+warnings #223

Closed sideshowbarker closed 7 years ago

sideshowbarker commented 7 years ago

Checking https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button$edit triggers an Empty elements error showing this markup snippet:

<tr></tr>

…but <tr></tr> can’t be found anywhere in the source of the page.

Also it seems most all pages under https://developer.mozilla.org/en-US/docs/Web/HTML/Element cause three Empty elements warnings showing these markup snippets:

<td><br></td>
<td><br></td>
<td><br></td>

…but <td><br></td> can’t be found anywhere in the source of the page.

sideshowbarker commented 7 years ago

Ah I realize now the <td><br></td> warnings are due to empty 3rd columns in the Specifications tables (which are <td>&nbsp;</td> in the source). But now not sure what if anything I should do about those.

sideshowbarker commented 7 years ago

OK, subsequently realized there was an tr with just a line break in it. Yanking that fixed the problem.