Last modified: 2012-09-22 20:31:53 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 T32557, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 30557 - Treeview of categories breaks in IE9
Treeview of categories breaks in IE9
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
SelectCategory (Other open bugs)
unspecified
All All
: Normal normal with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
: patch, patch-reviewed
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-08-24 20:06 UTC by Brett
Modified: 2012-09-22 20:31 UTC (History)
5 users (show)

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


Attachments
Screenshot of treeview break in IE9 browser (9.74 KB, image/png)
2011-08-24 20:06 UTC, Brett
Details
patch for this and other issues (5.41 KB, patch)
2012-01-19 13:54 UTC, Christian Boltz
Details
updated patch (for latest SVN) (946 bytes, patch)
2012-07-12 22:29 UTC, Christian Boltz
Details

Description Brett 2011-08-24 20:06:16 UTC
Created attachment 8972 [details]
Screenshot of treeview break in IE9 browser

So far only noticed in IE9, the treeview will display a few categories as collapsible nodes, but the remainder will appear as just list items. Attached is an example of the issue. This is not an issue with IE7 or IE8, Chrome, or Firefox.
Comment 1 Brett 2011-08-24 20:09:26 UTC
I should also point out that the categories that do manage to appear in the treeview do not actually expand or collapse. Pressing the [+] has no effect.
Comment 2 Christian Boltz 2012-01-17 19:42:46 UTC
The problem is caused by the fact that the generated HTML is invalid, for example you'll get
    <ul id="SelectCategoryList"></li>  (yes, <___/___li>!)
at the beginning and a wrong order and count of </li> and </ul> tags.

I'm working on a patch, but... (to make it less boring ;-)
a) I'm using an old version from the REL_1_16 branch
b) I have other fixes in the same code section (see my bugreports for SelectCategory), which means I probably won't be able to produce a separate patch

BTW: The interesting thing is that IE is that picky about the invalid HTML here - I'd have expected other browsers to complain about the invalid HTML much more...
Comment 3 Christian Boltz 2012-01-19 13:54:01 UTC
Created attachment 9868 [details]
patch for this and other issues

Patch against
http://svn.wikimedia.org/svnroot/mediawiki/branches/REL1_16/extensions/SelectCategory

This patch includes fixes for the following issues:
- fix nesting and closing of <ul>/<li> (bug 30557 = this bugreport) 
  (if you are only interested in those changes, take all lines 
  containing $fresh_level_started)
- make $wgSelectCategoryMaxLevel working (bug 27795, fixed in trunk)
- $wgSelectCategoryRoot ignored on Special:Upload (bug 24911)
- new config option $wgSelectCategoryToplevelAllowed
Comment 4 Sumana Harihareswara 2012-01-19 17:45:06 UTC
Thanks for the patch!  I've added the "need-review" and "patch" keywords so other developers know to review your patch and get back to you.
Comment 5 Mark A. Hershberger 2012-01-19 18:33:07 UTC
Please update your patch for the current trunk code (not a release branch, and especially not one that old).
Comment 6 Christian Boltz 2012-01-19 19:43:21 UTC
Yes, I know that the 1.16 branch is old ;-)
Unfortunately I don't have a wiki running with 1.18.1 or trunk at the moment, so updating the patch will take some time.

In other words: If someone is faster in updating (and splitting) the patch, I won't object ;-)  (hint: take all lines containing $fresh_level_started, shouldn't be too hard)
Comment 7 Christian Boltz 2012-07-12 22:29:52 UTC
Created attachment 10844 [details]
updated patch (for latest SVN)

This patch fixes (only) the nesting of <ul> and <li> tags and their closing counterparts.

You can find the other parts that were in attachment 9868 [details] in various open bugreports for SelectCategory (see https://bugzilla.wikimedia.org/buglist.cgi?component=SelectCategory&resolution=--- for all open bugreports)
Comment 8 Daniel Kinzler 2012-09-05 18:29:54 UTC
Submitted to SVN
Comment 9 Daniel Kinzler 2012-09-05 18:32:04 UTC
Submitted to SVN https://www.mediawiki.org/wiki/Special:Code/MediaWiki/115705
Comment 10 Christian Boltz 2012-09-22 17:02:47 UTC
(In reply to comment #9)
> Submitted to SVN https://www.mediawiki.org/wiki/Special:Code/MediaWiki/115705

This means this bug is fixed in SVN trunk - so let's close it as fixed ;-)
Comment 11 Daniel Kinzler 2012-09-22 19:28:19 UTC
(In reply to comment #10)
> This means this bug is fixed in SVN trunk - so let's close it as fixed ;-)

Well, I guess someone should review & verify... did you?
Comment 12 Christian Boltz 2012-09-22 19:50:29 UTC
The commit exactly matches my patch (which I'm using in production since months), so I'd call it verified ;-)  - and I'm used to mark bugs as fixed when the fix is in SVN or git.

If my method doesn't match the MediaWiki workflow, pointers to the correct workflow are welcome ;-)
Comment 13 Daniel Kinzler 2012-09-22 20:31:53 UTC
(In reply to comment #12)
> The commit exactly matches my patch 

Sounds like reviewed & verified to me :)

Re workflow: for git we are using a pre-commit review process, so something that is merged there can be considered fixed. With SVN, that is not necessarily the case, and there's no easy way to tell. That's one of the reasons we switched to git/gerrit. 

Anyway, thanks for looking into it!

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


Navigation
Links