You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gnosygnu_xowa/home/wiki/Diagnostics/HTML_Tidy.html

398 lines
16 KiB

<!DOCTYPE html>
<html dir="ltr">
<head>
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
<title>Diagnostics/HTML Tidy - XOWA</title>
<link rel="shortcut icon" href="https://gnosygnu.github.io/xowa/xowa_logo.png" />
<link rel="stylesheet" href="https://gnosygnu.github.io/xowa/xowa_common.css" type="text/css">
</head>
<body class="mediawiki ltr sitedir-ltr ns-0 ns-subject skin-vector action-submit vector-animateLayout" spellcheck="false">
<div id="mw-page-base" class="noprint"></div>
<div id="mw-head-base" class="noprint"></div>
<div id="content" class="mw-body">
<h1 id="firstHeading" class="firstHeading"><span>Diagnostics/HTML Tidy</span></h1>
<div id="bodyContent" class="mw-body-content">
<div id="siteSub">From XOWA: the free, open-source, offline wiki application</div>
<div id="contentSub"></div>
<div id="mw-content-text" lang="en" dir="ltr" class="mw-content-ltr">
<h2>
<span class="mw-headline" id="Overview">Overview</span>
</h2>
<p>
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).
</p>
<p>
<br>
</p>
<h2>
<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>
</h2>
<p>
<code>fails if "should not be small" is small</code><br>
</p>
<p>
<small>small <small>still small</small></small>
</p>
<h3>
<span class="mw-headline" id="header_(not_small)">header (not small)</span>
</h3>
<p>
should not be small
</p>
<h2>
<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>
</h2>
<p>
<code>fails if horizontal scroll bar</code><br>
</p>
<p>
<br>
</p>
<table>
<tr>
<td>
<p>
<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>
</p>
</td>
</tr>
</table>
<h2>
<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>
</h2>
<p>
<code>fails if "text should line up directly header" does not line up with "consecutive..."</code><br>
</p>
<div class="refbegin">
<dl style="text-indent: -3.2em;">
<dd>
<dl>
<dd>
text should line up directly underneath header
</dd>
</dl>
</dd>
</dl>
</div>
<p>
<br>
</p>
<h2>
<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>
</h2>
<p>
<code>fails if more than one list item</code><br>
</p>
<ul>
<li>
only one list item should appear
</li>
</ul>
<p>
<br>
</p>
<h2>
<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>
</h2>
<p>
<code>fails if more than one line</code><br>
</p>
<ul>
<li>
should be on line 1 should also be on line 1
</li>
</ul>
<p>
<br>
</p>
<h2>
<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>
</h2>
<p>
<code>fails if "should not be bold" is bold</code><br>
</p>
<dl>
<dt>
<b>bold</b>
</dt>
<dd>
<ul>
<li>
should not be bold
</li>
</ul>
</dd>
</dl>
<p>
<br>
</p>
<h2>
<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>
</h2>
<p>
<code>fails if "should be on right" is not right of "should not be left"</code><br>
</p>
<div>
<div>
<div>
<span style="float:right;">should be on right</span>
<p>
should be on left
</p>
</div>
</div>
</div>
<p>
<br>
</p>
<h2>
<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>
</h2>
<p>
<code>fails if "should be small" is not small</code><br>
</p>
<p>
<br>
</p>
<table>
<tr>
<td>
<small>should be small</small>
</td>
</tr>
</table>
<p>
<br>
</p>
<h2>
<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>
</h2>
<p>
<code>fails if "text should be inside gray wikitable" is not actually in table</code><br>
</p>
<table class="wikitable">
<tr>
<td>
</td>
</tr>
<tr>
<td>
<ul>
<li>
text should be inside gray wikitable
</li>
</ul>
</td>
</tr>
</table>
<p>
<br>
</p>
<h2>
<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>
</h2>
<p>
<code>fails if "text does not line up on left"</code><br>
</p>
<table width="40%" class="wikitable">
<tr>
<td>
<table>
<tr>
<td>
</td>
</tr>
<tr>
<td>
</td>
</tr>
<tr>
<td>
text should line up on left
</td>
</tr>
</table>
</td>
</tr>
</table>
<h2>
<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>
</h2>
<p>
<code>fails if "text 2" is not directly underneath "text 1"</code><br>
</p>
<table>
<tr>
<td>
</td>
</tr>
<tr>
<td>
text 1
</td>
</tr>
</table>
<table>
<tr>
<td>
<p>
text 2: should line up directly underneath text 1
</p>
</td>
</tr>
</table>
<p>
<br>
</p>
<h2>
<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>
</h2>
<p>
<code>fails if "text should be visible" is missing</code><br>
</p>
<table>
<tr>
<td>
text should be visible
</td>
</tr>
</table>
<p>
<br>
</p>
<h2>
<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>
</h2>
<p>
<code>fails if "should appear above table" is inside table</code><br>
</p>
<div>
<table>
<tr>
<td>
should appear above table
</td>
</tr>
</table>
</div>
<table class="wikitable">
<tr>
<td>
cell_1
</td>
</tr>
<tr>
<td>
</td>
</tr>
<tr>
<td>
cell_2
</td>
</tr>
</table>
</div>
</div>
</div>
<div id="mw-head" class="noprint">
<div id="left-navigation">
<div id="p-namespaces" class="vectorTabs">
<h3>Namespaces</h3>
<ul>
<li id="ca-nstab-main" class="selected"><span><a id="ca-nstab-main-href" href="index.html">Page</a></span></li>
</ul>
</div>
</div>
</div>
<div id='mw-panel' class='noprint'>
<div id='p-logo'>
<a style="background-image: url(https://gnosygnu.github.io/xowa/xowa_logo.png);" href="http://xowa.org/" title="Visit the main page"></a>
</div>
<div class="portal" id='xowa-portal-home'>
<h3>XOWA</h3>
<div class="body">
<ul>
<li><a href="http://xowa.org/index.html" title='Visit the main page'>Main page</a></li>
<li><a href="http://xowa.org/screenshots.html" title='See screenshots of XOWA'>Screenshots</a></li>
<li><a href="https://www.youtube.com/watch?v=q0qbXYXEH6M" title="See a video of XOWA Desktop in action">Video</a></li>
<li><a href="http://xowa.org/home/wiki/Help/Download_XOWA.html" title='Download the XOWA application'>Download XOWA</a></li>
<li><a href="http://xowa.org/home/wiki/Dashboard/Image_databases.html" title='Download offline wikis and image databases'>Download wikis</a></li>
</ul>
</div>
</div>
<div class="portal" id='xowa-portal-started'>
<h3>Getting started</h3>
<div class="body">
<ul>
<li><a href="http://xowa.org/home/wiki/App/Setup/System_requirements.html" title='Get XOWA&apos;s system requirements'>Requirements</a></li>
<li><a href="http://xowa.org/home/wiki/App/Setup/Installation.html" title='Get instructions for installing XOWA'>Installation</a></li>
<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>
<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>
<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>
</ul>
</div>
</div>
<div class="portal" id='xowa-portal-android'>
<h3>Android</h3>
<div class="body">
<ul>
<li><a href="http://xowa.org/home/wiki/Android/Setup.html" title='Setup XOWA on your Android device'>Setup</a></li>
<li><a href="https://www.youtube.com/watch?v=jsMTBxGweUw" title="See a video of XOWA Android in action">Video</a></li>
</ul>
</div>
</div>
<div class="portal" id='xowa-portal-help'>
<h3>Help</h3>
<div class="body">
<ul>
<li><a href="http://xowa.org/home/wiki/Help/About.html" title='Get more information about XOWA'>About</a></li>
<li><a href="http://xowa.org/home/wiki/Help/Contents.html" title='View a list of help topics'>Contents</a></li>
<li><a href="http://xowa.org/home/wiki/Help/Media.html" title='Read what others have written about XOWA'>Media</a></li>
<li><a href="http://xowa.org/home/wiki/Help/Feedback.html" title='Questions? Comments? Leave feedback for XOWA'>Feedback</a></li>
</ul>
</div>
</div>
<div class="portal" id='xowa-portal-blog'>
<h3>Blog</h3>
<div class="body">
<ul>
<li><a href="http://xowa.org/home/wiki/Blog.html" title='Follow XOWA''s development process'>Current</a></li>
</ul>
</div>
</div>
<div class="portal" id='xowa-portal-links'>
<h3>Links</h3>
<div class="body">
<ul>
<li><a href="http://dumps.wikimedia.org/backup-index.html" title="Get wiki datababase dumps directly from Wikimedia">Wikimedia dumps</a></li>
<li><a href="https://archive.org/search.php?query=xowa" title="Search archive.org for XOWA files">XOWA @ archive.org</a></li>
<li><a href="http://en.wikipedia.org" title="Visit Wikipedia (and compare to XOWA!)">English Wikipedia</a></li>
</ul>
</div>
</div>
<div class="portal" id='xowa-portal-donate'>
<h3>Donate</h3>
<div class="body">
<ul>
<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/ -->
<li><a href="https://donate.wikimedia.org/wiki/Special:FundraiserRedirector" title="Support Wikipedia!">Wikipedia</a></li>
<li><a href="http://xowa.org/home/wiki/Help/Donate.html" title="Support XOWA!">XOWA</a></li>
</ul>
</div>
</div>
</div>
</body>
</html>