Last modified: 2013-10-22 21:08:35 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 T42598, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 40598 - [Regression] jquery.localize tests are failing in IE6-8
[Regression] jquery.localize tests are failing in IE6-8
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
JavaScript (Other open bugs)
1.20.x
All All
: Low normal (vote)
: 1.21.x release
Assigned To: Krinkle
: code-update-regression
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-09-28 17:01 UTC by Krinkle
Modified: 2013-10-22 21:08 UTC (History)
8 users (show)

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


Attachments

Description Krinkle 2012-09-28 17:01:59 UTC
Could be a bug in the test, or a regression. Happened recently.

For all IE6-8:

> module=jquery.localize
> 9 tests of 17 passed, 8 failed.
Comment 1 Mark A. Hershberger 2012-09-30 16:25:16 UTC
I would like to make a snarky comment here about old IE versions, but I'll be satisfied with bumping the milestone.
Comment 2 Krinkle 2012-09-30 17:11:30 UTC
This module powers some of the most visible extensions we use in wmf deployment. This is a regression that affects a large part of our browser support, and the regression was recently introduced in the last couple of weeks. This should definitely block 1.20, as a matter of fact, if we were running javascript tests in the first place, this would've blocked wmf-deployment and master as well.
Comment 3 Mark A. Hershberger 2012-10-01 14:51:04 UTC
(In reply to comment #2)
> This should definitely block 1.20, as a matter of fact, if we were
> running javascript tests in the first place, this would've blocked
> wmf-deployment and master as well.

Great!  You've been great about supplying patches, I hope you'll fix this one this week. :)
Comment 4 Gregor Hagedorn 2013-01-17 01:23:27 UTC
Is this bug still open? It is reported as Known Issue on http://www.mediawiki.org/wiki/MediaWiki_1.20
Comment 5 Krinkle 2013-01-18 04:51:09 UTC
Yes.
Comment 6 Andre Klapper 2013-02-26 04:39:52 UTC
Krinkle: Do you still plan to work on this?
Comment 7 Krinkle 2013-02-26 12:23:14 UTC
No. I'm currently working on other things. Unless given priority over that, this should be done by someone else, likely in Platform.
Comment 8 Greg Grossmeier 2013-04-02 16:15:19 UTC
Lowering importance from blocker to normal, but I'll bring this up with MW Core to see what timeline we can address this in given it is a Grade B browser support issue:
http://www.mediawiki.org/wiki/Compatibility#Browser
Comment 9 Brad Jorsch 2013-04-08 21:46:22 UTC
A quick git bisect turns up gerrit change I77593acf as the first revision where these tests fail.

I see that patch changed "<html:msg blah />" to "<html:msg blah>" in a bunch of these tests. And putting those slashes back makes the tests pass in IE8 here.

So the question is whether $( '<div><html:msg></div>' ) is supposed to work in jQuery, or whether it just happens to work in browsers other than IE6-8 even though that isn't guaranteed.
Comment 10 Andre Klapper 2013-04-15 12:10:03 UTC
(In reply to comment #9)
> A quick git bisect turns up gerrit change I77593acf as the first revision
> where these tests fail.

Trevor / Krinkle: ping, any comments?

(Krinkle did the code review and Trevor wrote that patch.)


> I see that patch changed "<html:msg blah />" to "<html:msg blah>" in a bunch
> of these tests. And putting those slashes back makes the tests pass in IE8
> here. 
> So the question is whether $( '<div><html:msg></div>' ) is supposed to work
> in jQuery, or whether it just happens to work in browsers other than IE6-8 
> even though that isn't guaranteed.
Comment 11 Andre Klapper 2013-05-29 12:34:27 UTC
(In reply to comment #9)
> A quick git bisect turns up gerrit change I77593acf as the first revision
> where these tests fail.

Trevor / Krinkle: ping, any comments?

(Krinkle did the code review and Trevor wrote that patch.)
Comment 12 Andre Klapper 2013-10-18 19:00:00 UTC
(In reply to comment #9)
> A quick git bisect turns up gerrit change I77593acf as the first revision
> where these tests fail.

Trevor / Krinkle: ping, any comments?

(Krinkle did the code review and Trevor wrote that patch.)
Comment 13 Krinkle 2013-10-21 16:07:48 UTC
Afaik this has always been somewhat unstable in IE. The tests may have been incomplete or incorrect.

Anyhow, I don't know what would cause it. And doubt Trevor will either at this point.

Someone'll have to dig in with a debugger and figure out where it goes wrong (last I checked it isn't a faulty unit tests but actually not working).
Comment 14 Krinkle 2013-10-21 16:19:19 UTC
(In reply to comment #9)
> A quick git bisect turns up gerrit change I77593acf as the first revision
> where these tests fail.
> 
> I see that patch changed "<html:msg blah />" to "<html:msg blah>" in a bunch
> of these tests. And putting those slashes back makes the tests pass in IE8
> here.

The commit changed all instances of <span ../></span> to <span ..></span> which was indeed a good change as the former is invalid.

However it also changes some (not all) uses of <html .. /> to <html ..>. That's wrong and invalid html.

> So the question is whether $( '<div><html:msg></div>' ) is supposed to work
> in jQuery, or whether it just happens to work in browsers other than IE6-8
> even though that isn't guaranteed.

jQuery is not supposed to fix this, garbage in, garbage out. This is handled by the browser natively. Modern browsers (HTML5 and up) tend to take this fine and just close it silently and treats it as a would-be void tag.

However IE is notorious for throwing up on these. Especially in cases like <div><input></div> (no closing tag, not even self-closing) and <ul><li><a/></li></ul> (weird use of <a/> that should be <a></a>).
Comment 15 Gerrit Notification Bot 2013-10-21 17:27:18 UTC
Change 90928 had a related patch set uploaded by Krinkle:
jquery.localize: Fix incorrect use of void tag for <html:msg>

https://gerrit.wikimedia.org/r/90928
Comment 16 Gerrit Notification Bot 2013-10-21 17:43:39 UTC
Change 90928 merged by jenkins-bot:
jquery.localize: Fix incorrect use of void tag for <html:msg>

https://gerrit.wikimedia.org/r/90928
Comment 17 James Forrester 2013-10-22 19:57:52 UTC
Is this now closeable, given the merge of Gerrit change #90928?

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


Navigation
Links