HTML_Tidy.html 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398
  1. <!DOCTYPE html>
  2. <html dir="ltr">
  3. <head>
  4. <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
  5. <title>Diagnostics/HTML Tidy - XOWA</title>
  6. <link rel="shortcut icon" href="https://gnosygnu.github.io/xowa/xowa_logo.png" />
  7. <link rel="stylesheet" href="https://gnosygnu.github.io/xowa/xowa_common.css" type="text/css">
  8. </head>
  9. <body class="mediawiki ltr sitedir-ltr ns-0 ns-subject skin-vector action-submit vector-animateLayout" spellcheck="false">
  10. <div id="mw-page-base" class="noprint"></div>
  11. <div id="mw-head-base" class="noprint"></div>
  12. <div id="content" class="mw-body">
  13. <h1 id="firstHeading" class="firstHeading"><span>Diagnostics/HTML Tidy</span></h1>
  14. <div id="bodyContent" class="mw-body-content">
  15. <div id="siteSub">From XOWA: the free, open-source, offline wiki application</div>
  16. <div id="contentSub"></div>
  17. <div id="mw-content-text" lang="en" dir="ltr" class="mw-content-ltr">
  18. <h2>
  19. <span class="mw-headline" id="Overview">Overview</span>
  20. </h2>
  21. <p>
  22. This page lists various tests showing the effect of HTML Tidy. Each &lt;h2&gt; section header below corresponds to a separate test. Enable / Disable HTML Tidy at <a href="/wiki/Options/HTML_Tidy" id="xolnki_2" title="Options/HTML Tidy">Options/HTML_Tidy</a> to see the difference (or press F7 to toggle on and off).
  23. </p>
  24. <p>
  25. <br>
  26. </p>
  27. <h2>
  28. <span class="mw-headline" id="unclosed_tag_should_not_extend_over_header_(http://en.wikipedia.org/wiki/Wikipedia:Size_comparisons#Size_of_other_information_collections">unclosed tag should not extend over header (<a href="http://en.wikipedia.org/wiki/Wikipedia:Size_comparisons#Size_of_other_information_collections" rel="nofollow" class="external free">http://en.wikipedia.org/wiki/Wikipedia:Size_comparisons#Size_of_other_information_collections</a></span>
  29. </h2>
  30. <p>
  31. <code>fails if "should not be small" is small</code><br>
  32. </p>
  33. <p>
  34. <small>small <small>still small</small></small>
  35. </p>
  36. <h3>
  37. <span class="mw-headline" id="header_(not_small)">header (not small)</span>
  38. </h3>
  39. <p>
  40. should not be small
  41. </p>
  42. <h2>
  43. <span class="mw-headline" id="para_inside_span_causes_horizontal_scroll_(http://fr.wikipedia.org/wiki/Franz_Liszt#Liens_externes">para inside span causes horizontal scroll (<a href="http://fr.wikipedia.org/wiki/Franz_Liszt#Liens_externes" rel="nofollow" class="external free">http://fr.wikipedia.org/wiki/Franz_Liszt#Liens_externes</a></span>
  44. </h2>
  45. <p>
  46. <code>fails if horizontal scroll bar</code><br>
  47. </p>
  48. <p>
  49. <br>
  50. </p>
  51. <table>
  52. <tr>
  53. <td>
  54. <p>
  55. <span style="white-space:nowrap">Diagnostics/HTML Tidy <b>-</b></span> <span style="white-space:nowrap">Diagnostics/HTML Tidy <b>-</b></span> <span style="white-space:nowrap">Diagnostics/HTML Tidy <b>-</b></span> <span style="white-space:nowrap">Diagnostics/HTML Tidy <b>-</b></span> <span style="white-space:nowrap">Diagnostics/HTML Tidy <b>-</b></span> <span style="white-space:nowrap">Diagnostics/HTML Tidy <b>-</b></span> <span style="white-space:nowrap">Diagnostics/HTML Tidy <b>-</b></span> <span style="white-space:nowrap">Diagnostics/HTML Tidy <b>-</b></span> <span style="white-space:nowrap">Diagnostics/HTML Tidy <b>-</b></span> <span style="white-space:nowrap">Diagnostics/HTML Tidy <b>-</b></span> <span style="white-space:nowrap">Diagnostics/HTML Tidy <b>-</b></span> <span style="white-space:nowrap">Diagnostics/HTML Tidy <b>-</b></span> <span style="white-space:nowrap">Diagnostics/HTML Tidy <b>-</b></span> <span style="white-space:nowrap">Diagnostics/HTML Tidy <b>-</b></span>
  56. </p>
  57. </td>
  58. </tr>
  59. </table>
  60. <h2>
  61. <span class="mw-headline" id="consecutive_.3Cdl.3Es_should_be_separated_by_a_.3Cdd.3E_(http://en.wikipedia.org/wiki/Palenque#References">consecutive &lt;dl&gt;s should be separated by a &lt;dd&gt; (<a href="http://en.wikipedia.org/wiki/Palenque#References" rel="nofollow" class="external free">http://en.wikipedia.org/wiki/Palenque#References</a></span>
  62. </h2>
  63. <p>
  64. <code>fails if "text should line up directly header" does not line up with "consecutive..."</code><br>
  65. </p>
  66. <div class="refbegin">
  67. <dl style="text-indent: -3.2em;">
  68. <dd>
  69. <dl>
  70. <dd>
  71. text should line up directly underneath header
  72. </dd>
  73. </dl>
  74. </dd>
  75. </dl>
  76. </div>
  77. <p>
  78. <br>
  79. </p>
  80. <h2>
  81. <span class="mw-headline" id="empty_list_items_should_be_removed_(_http://sv.wikiquote.org/wiki/Winston_Churchill_)">empty list items should be removed ( <a href="http://sv.wikiquote.org/wiki/Winston_Churchill" rel="nofollow" class="external free">http://sv.wikiquote.org/wiki/Winston_Churchill</a> )</span>
  82. </h2>
  83. <p>
  84. <code>fails if more than one list item</code><br>
  85. </p>
  86. <ul>
  87. <li>
  88. only one list item should appear
  89. </li>
  90. </ul>
  91. <p>
  92. <br>
  93. </p>
  94. <h2>
  95. <span class="mw-headline" id="empty_.3Cdd.3E_should_be_removed_(http://hu.wikipedia.org/wiki/Japan_--_portál|Földrajz)">empty &lt;dd&gt; should be removed (<a href="http://hu.wikipedia.org/wiki/Japan" rel="nofollow" class="external free">http://hu.wikipedia.org/wiki/Japan</a> -- portál|Földrajz)</span>
  96. </h2>
  97. <p>
  98. <code>fails if more than one line</code><br>
  99. </p>
  100. <ul>
  101. <li>
  102. should be on line 1 should also be on line 1
  103. </li>
  104. </ul>
  105. <p>
  106. <br>
  107. </p>
  108. <h2>
  109. <span class="mw-headline" id="bold_and_DT_/_DD_(http://en.wikipedia.org/wiki/Enron#Former_management_and_corporate_governance">bold and DT / DD (<a href="http://en.wikipedia.org/wiki/Enron#Former_management_and_corporate_governance" rel="nofollow" class="external free">http://en.wikipedia.org/wiki/Enron#Former_management_and_corporate_governance</a></span>
  110. </h2>
  111. <p>
  112. <code>fails if "should not be bold" is bold</code><br>
  113. </p>
  114. <dl>
  115. <dt>
  116. <b>bold</b>
  117. </dt>
  118. <dd>
  119. <ul>
  120. <li>
  121. should not be bold
  122. </li>
  123. </ul>
  124. </dd>
  125. </dl>
  126. <p>
  127. <br>
  128. </p>
  129. <h2>
  130. <span class="mw-headline" id="div_inside_span_should_be_reparented_correctly_(http://it.wikipedia.org/wiki/Portale:Astronomia#Il_cielo_nel_mese_di_maggio">div inside span should be reparented correctly (<a href="http://it.wikipedia.org/wiki/Portale:Astronomia#Il_cielo_nel_mese_di_maggio" rel="nofollow" class="external free">http://it.wikipedia.org/wiki/Portale:Astronomia#Il_cielo_nel_mese_di_maggio</a></span>
  131. </h2>
  132. <p>
  133. <code>fails if "should be on right" is not right of "should not be left"</code><br>
  134. </p>
  135. <div>
  136. <div>
  137. <div>
  138. <span style="float:right;">should be on right</span>
  139. <p>
  140. should be on left
  141. </p>
  142. </div>
  143. </div>
  144. </div>
  145. <p>
  146. <br>
  147. </p>
  148. <h2>
  149. <span class="mw-headline" id=".3Csmall.3E_should_be_reparented_out_of_.3Ctr.3E.3Ctd.3E_correctly_(http://en.wikipedia.org/wiki/France_--_Infobox_footnotes)_(no_longer_an_issue)">&lt;small&gt; should be reparented out of &lt;tr&gt;&lt;td&gt; correctly (<a href="http://en.wikipedia.org/wiki/France" rel="nofollow" class="external free">http://en.wikipedia.org/wiki/France</a> -- Infobox footnotes) (no longer an issue)</span>
  150. </h2>
  151. <p>
  152. <code>fails if "should be small" is not small</code><br>
  153. </p>
  154. <p>
  155. <br>
  156. </p>
  157. <table>
  158. <tr>
  159. <td>
  160. <small>should be small</small>
  161. </td>
  162. </tr>
  163. </table>
  164. <p>
  165. <br>
  166. </p>
  167. <h2>
  168. <span class="mw-headline" id="add_.3Ctd.3E_between_.3Ctr.3E_and_.3Ctable.3E_(http://en.wikipedia.org/wiki/Paris#Twin_towns_and_sister_cities">add &lt;td&gt; between &lt;tr&gt; and &lt;table&gt; (<a href="http://en.wikipedia.org/wiki/Paris#Twin_towns_and_sister_cities" rel="nofollow" class="external free">http://en.wikipedia.org/wiki/Paris#Twin_towns_and_sister_cities</a></span>
  169. </h2>
  170. <p>
  171. <code>fails if "text should be inside gray wikitable" is not actually in table</code><br>
  172. </p>
  173. <table class="wikitable">
  174. <tr>
  175. <td>
  176. </td>
  177. </tr>
  178. <tr>
  179. <td>
  180. <ul>
  181. <li>
  182. text should be inside gray wikitable
  183. </li>
  184. </ul>
  185. </td>
  186. </tr>
  187. </table>
  188. <p>
  189. <br>
  190. </p>
  191. <h2>
  192. <span class="mw-headline" id="merge_nested_tables_and_take_1st_table's_attributes_(http://en.wiktionary.org/wiki/Kazakhstan#Declension">merge nested tables and take 1st table's attributes (<a href="http://en.wiktionary.org/wiki/Kazakhstan#Declension" rel="nofollow" class="external free">http://en.wiktionary.org/wiki/Kazakhstan#Declension</a></span>
  193. </h2>
  194. <p>
  195. <code>fails if "text does not line up on left"</code><br>
  196. </p>
  197. <table width="40%" class="wikitable">
  198. <tr>
  199. <td>
  200. <table>
  201. <tr>
  202. <td>
  203. </td>
  204. </tr>
  205. <tr>
  206. <td>
  207. </td>
  208. </tr>
  209. <tr>
  210. <td>
  211. text should line up on left
  212. </td>
  213. </tr>
  214. </table>
  215. </td>
  216. </tr>
  217. </table>
  218. <h2>
  219. <span class="mw-headline" id="reparent_nested_table_not_inside_a_.3Ctd.3E_(http://it.wikipedia.org/wiki/Portale:Animali_--_Main_Body_)">reparent nested table not inside a &lt;td&gt; (<a href="http://it.wikipedia.org/wiki/Portale:Animali" rel="nofollow" class="external free">http://it.wikipedia.org/wiki/Portale:Animali</a> -- Main Body )</span>
  220. </h2>
  221. <p>
  222. <code>fails if "text 2" is not directly underneath "text 1"</code><br>
  223. </p>
  224. <table>
  225. <tr>
  226. <td>
  227. </td>
  228. </tr>
  229. <tr>
  230. <td>
  231. text 1
  232. </td>
  233. </tr>
  234. </table>
  235. <table>
  236. <tr>
  237. <td>
  238. <p>
  239. text 2: should line up directly underneath text 1
  240. </p>
  241. </td>
  242. </tr>
  243. </table>
  244. <p>
  245. <br>
  246. </p>
  247. <h2>
  248. <span class="mw-headline" id="table_inside_span_should_be_reparented_correctly_(http://ca.wikipedia.org/wiki/Evolució_--_Infobox)">table inside span should be reparented correctly (<a href="http://ca.wikipedia.org/wiki/Evolució" rel="nofollow" class="external free">http://ca.wikipedia.org/wiki/Evolució</a> -- Infobox)</span>
  249. </h2>
  250. <p>
  251. <code>fails if "text should be visible" is missing</code><br>
  252. </p>
  253. <table>
  254. <tr>
  255. <td>
  256. text should be visible
  257. </td>
  258. </tr>
  259. </table>
  260. <p>
  261. <br>
  262. </p>
  263. <h2>
  264. <span class="mw-headline" id="div_not_inside_td_should_be_reparented_correctly_(http://fr.wikivoyage.org/wiki/Marrakech_--_Infobox)">div not inside td should be reparented correctly (<a href="http://fr.wikivoyage.org/wiki/Marrakech" rel="nofollow" class="external free">http://fr.wikivoyage.org/wiki/Marrakech</a> -- Infobox)</span>
  265. </h2>
  266. <p>
  267. <code>fails if "should appear above table" is inside table</code><br>
  268. </p>
  269. <div>
  270. <table>
  271. <tr>
  272. <td>
  273. should appear above table
  274. </td>
  275. </tr>
  276. </table>
  277. </div>
  278. <table class="wikitable">
  279. <tr>
  280. <td>
  281. cell_1
  282. </td>
  283. </tr>
  284. <tr>
  285. <td>
  286. </td>
  287. </tr>
  288. <tr>
  289. <td>
  290. cell_2
  291. </td>
  292. </tr>
  293. </table>
  294. </div>
  295. </div>
  296. </div>
  297. <div id="mw-head" class="noprint">
  298. <div id="left-navigation">
  299. <div id="p-namespaces" class="vectorTabs">
  300. <h3>Namespaces</h3>
  301. <ul>
  302. <li id="ca-nstab-main" class="selected"><span><a id="ca-nstab-main-href" href="index.html">Page</a></span></li>
  303. </ul>
  304. </div>
  305. </div>
  306. </div>
  307. <div id='mw-panel' class='noprint'>
  308. <div id='p-logo'>
  309. <a style="background-image: url(https://gnosygnu.github.io/xowa/xowa_logo.png);" href="http://xowa.org/" title="Visit the main page"></a>
  310. </div>
  311. <div class="portal" id='xowa-portal-home'>
  312. <h3>XOWA</h3>
  313. <div class="body">
  314. <ul>
  315. <li><a href="http://xowa.org/index.html" title='Visit the main page'>Main page</a></li>
  316. <li><a href="http://xowa.org/screenshots.html" title='See screenshots of XOWA'>Screenshots</a></li>
  317. <li><a href="https://www.youtube.com/watch?v=q0qbXYXEH6M" title="See a video of XOWA Desktop in action">Video</a></li>
  318. <li><a href="http://xowa.org/home/wiki/Help/Download_XOWA.html" title='Download the XOWA application'>Download XOWA</a></li>
  319. <li><a href="http://xowa.org/home/wiki/Dashboard/Image_databases.html" title='Download offline wikis and image databases'>Download wikis</a></li>
  320. </ul>
  321. </div>
  322. </div>
  323. <div class="portal" id='xowa-portal-started'>
  324. <h3>Getting started</h3>
  325. <div class="body">
  326. <ul>
  327. <li><a href="http://xowa.org/home/wiki/App/Setup/System_requirements.html" title='Get XOWA&apos;s system requirements'>Requirements</a></li>
  328. <li><a href="http://xowa.org/home/wiki/App/Setup/Installation.html" title='Get instructions for installing XOWA'>Installation</a></li>
  329. <li><a href="http://xowa.org/home/wiki/App/Import/Simple_Wikipedia.html" title='Learn how to set up Simple Wikipedia'>Simple Wikipedia</a></li>
  330. <li><a href="http://xowa.org/home/wiki/App/Import/English_Wikipedia.html" title='Learn how to set up English Wikipedia'>English Wikipedia</a></li>
  331. <li><a href="http://xowa.org/home/wiki/App/Import/Other_wikis.html" title='Learn how to set up other Wikipedias'>Other Wikipedias</a></li>
  332. </ul>
  333. </div>
  334. </div>
  335. <div class="portal" id='xowa-portal-android'>
  336. <h3>Android</h3>
  337. <div class="body">
  338. <ul>
  339. <li><a href="http://xowa.org/home/wiki/Android/Setup.html" title='Setup XOWA on your Android device'>Setup</a></li>
  340. <li><a href="https://www.youtube.com/watch?v=jsMTBxGweUw" title="See a video of XOWA Android in action">Video</a></li>
  341. </ul>
  342. </div>
  343. </div>
  344. <div class="portal" id='xowa-portal-help'>
  345. <h3>Help</h3>
  346. <div class="body">
  347. <ul>
  348. <li><a href="http://xowa.org/home/wiki/Help/About.html" title='Get more information about XOWA'>About</a></li>
  349. <li><a href="http://xowa.org/home/wiki/Help/Contents.html" title='View a list of help topics'>Contents</a></li>
  350. <li><a href="http://xowa.org/home/wiki/Help/Media.html" title='Read what others have written about XOWA'>Media</a></li>
  351. <li><a href="http://xowa.org/home/wiki/Help/Feedback.html" title='Questions? Comments? Leave feedback for XOWA'>Feedback</a></li>
  352. </ul>
  353. </div>
  354. </div>
  355. <div class="portal" id='xowa-portal-blog'>
  356. <h3>Blog</h3>
  357. <div class="body">
  358. <ul>
  359. <li><a href="http://xowa.org/home/wiki/Blog.html" title='Follow XOWA''s development process'>Current</a></li>
  360. </ul>
  361. </div>
  362. </div>
  363. <div class="portal" id='xowa-portal-links'>
  364. <h3>Links</h3>
  365. <div class="body">
  366. <ul>
  367. <li><a href="http://dumps.wikimedia.org/backup-index.html" title="Get wiki datababase dumps directly from Wikimedia">Wikimedia dumps</a></li>
  368. <li><a href="https://archive.org/search.php?query=xowa" title="Search archive.org for XOWA files">XOWA @ archive.org</a></li>
  369. <li><a href="http://en.wikipedia.org" title="Visit Wikipedia (and compare to XOWA!)">English Wikipedia</a></li>
  370. </ul>
  371. </div>
  372. </div>
  373. <div class="portal" id='xowa-portal-donate'>
  374. <h3>Donate</h3>
  375. <div class="body">
  376. <ul>
  377. <li><a href="https://archive.org/donate/index.php" title="Support archive.org!">archive.org</a></li><!-- listed first due to recent fire damages: http://blog.archive.org/2013/11/06/scanning-center-fire-please-help-rebuild/ -->
  378. <li><a href="https://donate.wikimedia.org/wiki/Special:FundraiserRedirector" title="Support Wikipedia!">Wikipedia</a></li>
  379. <li><a href="http://xowa.org/home/wiki/Help/Donate.html" title="Support XOWA!">XOWA</a></li>
  380. </ul>
  381. </div>
  382. </div>
  383. </div>
  384. </body>
  385. </html>