Last modified: 2014-02-11 01:26:09 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T26105, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 24105 - Lists in multiple columns have improper HTML
Lists in multiple columns have improper HTML
Status: RESOLVED INVALID
Product: MediaWiki extensions
Classification: Unclassified
Semantic MediaWiki (Other open bugs)
unspecified
All All
: Normal minor (vote)
: ---
Assigned To: Markus Krötzsch
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-06-23 21:20 UTC by Brooks
Modified: 2014-02-11 01:26 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
Proposed fix to extensions/SemanticMediaWiki/includes/SMW_QP_List.php (7.14 KB, application/x-external-editor)
2010-06-23 21:33 UTC, Brooks
Details

Description Brooks 2010-06-23 21:20:30 UTC
When creating an inline query with SMW, if using the "format" of "ul" or "ol", with "columns" set to a number higher than "1", the HTML code breaks. For example:

{{#ask:[[Class::MyClass]]
  |format=ul
  |columns=3
}}

Produces lists that look like:

<ul><div style="float: left; width: 25%">
<li><a href="/wiki/index.php/MyPage" title="MyPage">MyPage</a>&lt;/li&gt;
<li><a href="/wiki/index.php/MyPage" title="MyPage">MyPage</a>&lt;/li&gt;
<li><a href="/wiki/index.php/MyPage" title="MyPage">MyPage</a>&lt;/li&gt;
<li><a href="/wiki/index.php/MyPage" title="MyPage">MyPage</a>&lt;/li&gt;

</div><div style="float: left; width: 25%">
<li><a href="/wiki/index.php/MyPage" title="MyPage">MyPage</a>&lt;/li&gt;
<li><a href="/wiki/index.php/MyPage" title="MyPage">MyPage</a>&lt;/li&gt;
<li><a href="/wiki/index.php/MyPage" title="MyPage">MyPage</a>&lt;/li&gt;
<li><a href="/wiki/index.php/MyPage" title="MyPage">MyPage</a>&lt;/li&gt;

</div><div style="float: left; width: 25%">
<li><a href="/wiki/index.php/MyPage" title="MyPage">MyPage</a>&lt;/li&gt;
<li><a href="/wiki/index.php/MyPage" title="MyPage">MyPage</a>&lt;/li&gt;
<li><a href="/wiki/index.php/MyPage" title="MyPage">MyPage</a>&lt;/li&gt;
<li><a href="/wiki/index.php/MyPage" title="MyPage">MyPage</a>&lt;/li&gt;
</div>
</ul><br style="clear: both" />

As you can see, the closing "</li>" tags are not interpreted as a proper ending of a list element, which may be because the "<ul>" tags are outside the "<div>" tags breaking up the list.
Comment 1 Brooks 2010-06-23 21:33:02 UTC
Created attachment 7504 [details]
Proposed fix to extensions/SemanticMediaWiki/includes/SMW_QP_List.php
Comment 2 MWJames 2014-02-11 01:26:09 UTC
This no longer seems to be an issue with SMW 1.9.1.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links