Page MenuHomePhabricator

make sure 'empty' sections are also empty on text browsers
Closed, ResolvedPublic

Description

Fine with me if you want to make empty sections (Bug #23026). Go right
ahead. But please please please do it a cleaner way, making sure that
they don't still inadvertently show up visible in text browsers!!

$ w3m -dump http://abj.jidanni.org/index.php?title=Special:Specialpages | grep -C 7 Views

Namespaces

• Special page

Variants

Views

Actions

Search

[ ] [Go] [Search]

$ GET http://abj.jidanni.org/index.php?title=Special:Specialpages | grep -A 1 empty
<div id="p-variants" class="vectorMenu emptyPortlet">

		<h5><span>Variants</span><a href="#"></a></h5>

<div id="p-views" class="vectorTabs emptyPortlet">

<h5>Views</h5>

<div id="p-cactions" class="vectorMenu emptyPortlet">
<h5><span>Actions</span><a href="#"></a></h5>

If you can't do it a cleaner way, then don't do it in the first place.
We never had such a problem with other skins.

If it is not to be shown to the general public, then don't show it to
text browsers users either, please.


Version: 1.17.x
Severity: minor

Details

Reference
bz26035

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 11:15 PM
bzimport set Reference to bz26035.

Use Alt V Y N (View -> Page Style -> No style) to see the bug in Firefox.

giecrilj wrote:

empty lists are not valid per XHTML.

<URL: http://www.mediawiki.org/wiki/MediaWiki >

Line 214, Column 10: end tag for "ul" which is not finished

(at least one list item must be present)

(In reply to comment #2)

empty lists are not valid per XHTML.

<URL: http://www.mediawiki.org/wiki/MediaWiki >

Line 214, Column 10: end tag for "ul" which is not finished

(at least one list item must be present)

We know, and we don't care. This restriction in XHTML is stupid, and was removed in HTML5. See bug 24500 comment 7 for the full argument for keeping these empty lists.

  • This bug has been marked as a duplicate of bug 24500 ***
  • This bug has been marked as a duplicate of bug 23026 ***