Page MenuHomePhabricator

#ask yield defective Html table syntax.
Closed, InvalidPublic

Description

In translatewiki.net, the code

{{#ask: [[Summary:+]] [[Status::!closed]] [[Developer::{{FULLPAGENAME}}]]

limit=1000
mainlabel=-
?Project
?Thread
?Developer
?Status
?Modification date
sort=Modification date
order=desc
default=→ Currently there are no open support requests available for you.

}}

on the page User:Purodha (included from User:Purodha/2do via a template) yields defective HTML with incorrect nextings of table parts:

<table class="sortable wikitable smwtable"><th class="Project"><a href="/wiki/Property:Project" title=Property:Project>Project</a></th><th class="Thread"><a href="/wiki/Property:Thread" title=Property:Thread>Thread</a></th><th class="Developer"><a href="/wiki/Property:Developer" title=Property:Developer>Developer</a></th><th class="Status"><a href="/wiki/Property:Status" title=Property:Status>Status</a></th><th class="Modification-date"><span class="smw-highlighter" data-type="1" data-state="inline" data-title="Property"><span class="smwbuiltin"><a href="/wiki/Property:Modification_date" title="Property:Modification date">Modification date</a></span><span class="smwttcontent">This property is a special property in this wiki.</span></span><tr class="row-odd"><td class="Project smwtype_wpg"><a href="/wiki/Translating:MediaWiki" title=Translating:MediaWiki>MediaWiki</a></td><td class="Thread smwtype_wpg"><a href="/wiki/Thread:Support/Completely_bogus:_%22One_result_found_after_filtering%22_in_translation_page" title="Thread:Support/Completely bogus: &quot;One result found after filtering&quot; in translation page">Support/Completely bogus: "One result found after filtering" in translation page</a></td><td class="Developer smwtype_wpg"><strong class="selflink">Purodha</strong></td><td class="Status smwtype_txt">open</td><td data-sort-value="2456386.4579167" class="Modification-date smwtype_dat">3 April 2013 22:59:24</tr><tr class="row-even"></td><td class="Project smwtype_wpg"><a href="/w/i.php?title=Intuition&amp;action=edit&amp;redlink=1" class=new title="Intuition (page does not exist)">Intuition</a></td><td class="Thread smwtype_wpg"><a href="/wiki/Thread:Support/About_Toolserver:Wlm-show-images-bad-only/ksh" title="Thread:Support/About Toolserver:Wlm-show-images-bad-only/ksh">Support/About Toolserver:Wlm-show-images-bad-only/ksh</a></td><td class="Developer smwtype_wpg"><strong class="selflink">Purodha</strong></td><td class="Status smwtype_txt">open</td><td data-sort-value="2456289.0270255" class="Modification-date smwtype_dat">27 December 2012 12:38:55</table>

Since the result is a partially unreadalble and unusable page, the defective template call is currently disabled using {{X-Template ...
Feel free to amend when debugging!


Version: unspecified
Severity: normal
URL: https://translatewiki.net/w/i.php?title=User:Purodha/2do&action=edit

Details

Reference
bz58875

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 2:20 AM
bzimport set Reference to bz58875.
bzimport added a subscriber: Unknown Object (MLST).
Unknown Object (User) added a comment.Mar 7 2014, 11:33 PM

Using [0] to analyse the above html, the analyser did not uncover any illegal tag constellations and has been passed with "Table passed, see the resulting source code bellow, You have a Simple Table" therefore the generated code from the table queryresult printer is valid.

[0] http://wet-boew.github.io/wet-boew/demos/tableparser/validator-htmltable.html