Last modified: 2014-02-25 12:37:47 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 T21334, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 19334 - Textarea jumps when editing articles unless IE8 compatibility mode is on
Textarea jumps when editing articles unless IE8 compatibility mode is on
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
Page editing (Other open bugs)
unspecified
All Windows Vista
: Normal normal with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
http://en.wikibooks.org/w/index.php?t...
:
: 21595 22983 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-06-22 08:04 UTC by Laurence 'GreenReaper' Parry
Modified: 2014-02-25 12:37 UTC (History)
14 users (show)

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


Attachments
Add X-UA-Compatible meta tag to EditPage::addHeaders() when Trident/4.0 user-agent detected (641 bytes, patch)
2009-06-22 08:57 UTC, Laurence 'GreenReaper' Parry
Details
Detect MSIE 8.0 rather than Trident/4.0 (638 bytes, patch)
2009-06-22 09:22 UTC, Laurence 'GreenReaper' Parry
Details

Description Laurence 'GreenReaper' Parry 2009-06-22 08:04:02 UTC
On IE8, when editing a long article, the text being entered will jump/scroll to the bottom of the textarea as you type. This is very annoying for editors who choose to use IE (yes, there are some), who have to, or who just don't know any better (they both deserve our pity).

The issue appears to be the handing of the editing textarea when its width is set to 100%. This appears to have previously been "fixed" by reducing the width to 96% for IE. IE8 does not change the situation but does prevent this fix from working - unless it is in its "IE7 compatibility mode".

If a website is on this list, it will automatically have IE7 compatibility mode applied:
res://iecompat.dll/iecompatdata.xml (accessible only from within IE8)

This includes all subdomains of wikimedia.org, wikipedia.de, wikipedia.org and wiktionary.org, but not all Wikimedia sites, and obviously not *most* third-party users (wikia.com and wikihow.com got lucky).

If the default cannot be fixed to work in IE8 and everything else, a "solution" might be to add one of: 
The HTTP header: 'X-UA-Compatible: IE=EmulateIE7'
The meta tag: '<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />'

This would force IE7 compatibility mode as described in http://blogs.msdn.com/ie/archive/2008/06/10/introducing-ie-emulateie7.aspx

It should also be possible to detect IE8 by searching the User-Agent for 'Trident/4.0' and only sending the header or meta tag then. User agents - along with other details of compatibility mode - are given at http://blogs.msdn.com/ie/archive/2008/08/27/introducing-compatibility-view.aspx
Comment 1 Laurence 'GreenReaper' Parry 2009-06-22 08:57:29 UTC
Created attachment 6247 [details]
Add X-UA-Compatible meta tag to EditPage::addHeaders() when Trident/4.0 user-agent detected

I tried both the headers route and the http-equiv meta tag, the tag ended up two bytes shorter as it could be gzipped. Should only be output on the edit page, only on IE8.
Comment 2 Laurence 'GreenReaper' Parry 2009-06-22 09:22:18 UTC
Created attachment 6248 [details]
Detect MSIE 8.0 rather than Trident/4.0

On second thought, there's no need to send this header if the page is already being viewed in compatability mode. If it is, the User-Agent will be MSIE 7.0 rather than MSIE 8.0; we should only send it if User-Agent is MSIE 8.0.
Comment 3 Brion Vibber 2009-07-20 04:02:21 UTC
Trevor, can you peek at this?
Comment 4 Jack Phoenix 2010-02-09 19:51:44 UTC
Should be fixed in r62191.
Comment 5 Aryeh Gregor (not reading bugmail, please e-mail directly) 2010-02-10 21:47:46 UTC
I can't reproduce this.  Can you give exact steps to reproduce?  Visit the given URL, then do what?

(In reply to comment #0)
> If the default cannot be fixed to work in IE8 and everything else, a "solution"
> might be to add one of: 
> The HTTP header: 'X-UA-Compatible: IE=EmulateIE7'
> The meta tag: '<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />'

We *definitely* do not want IE8 to emulate IE7 here.  We should use the most standards-compliant rendering available, and hack around any minor problems as necessary (as Jack's fix does).
Comment 6 Umherirrender 2010-03-03 11:18:58 UTC
*** Bug 21595 has been marked as a duplicate of this bug. ***
Comment 7 Aryeh Gregor (not reading bugmail, please e-mail directly) 2010-03-29 17:43:22 UTC
*** Bug 22983 has been marked as a duplicate of this bug. ***
Comment 8 shubinator1 2010-06-03 04:57:48 UTC
Looks like it's still an issue; see [[Wikipedia:Requests_for_comment/May_2010_skin_change/Bug_reports#Much_bouncing-about_of_text_during_editing]]
Comment 9 Roan Kattouw 2010-06-06 11:37:48 UTC
Fixed in r67455, fix deployed. Turns out the previous fix (r62191) was right on the money, but there was a CSS rule in wikiEditor.css overriding a critical part of it, so I spent two hours chasing down this bug and ended up removing one line.
Comment 10 Ted Watson 2010-06-13 22:50:21 UTC
Sorry, no. See [http://en.wikipedia.org/w/index.php?title=Wikipedia:Requests+for_comment_/May_2010_skin_change/Bug_reports], specifically the most recent posts to thread 89: Much bouncing-about of text during editing. This thing is NOT fixed, and it's not just me.
Comment 11 Roan Kattouw 2010-06-13 23:09:44 UTC
It turns out I overlooked the fact that a high cols attribute is needed on the textarea. I'll work on fixing that tomorrow; in the meantime, you can try setting the width of the edit area (in your preferences in the Editing section) to a high value like 1000 (it won't go higher than that), that should make the bug go away.
Comment 12 Ted Watson 2010-06-14 21:37:53 UTC
I'll be damned! The "jumping" is gone, I can again put arrows and stuff in my edit summaries, and the "new size" looks just about the same as the previous one, quite usable. Thanks a ton! Unless you've got reason to believe that there are some IE8 users that the above is not working for, I'd guess we should close this, but as I don't know about that I won't do so myself. Again, thanks.
Comment 13 Ted Watson 2010-06-14 21:55:00 UTC
I spoke too soon. Apparently the jumping now comes only after Preview mode is engaged (I might be wrong about that), and when one hits a key (whether Delete, Backspace, Space, or some letter, number or punctuation mark on the keyboard); cursor insertion itself doesn't cause a jump. So it certainly is not the problem it was, but it isn't completely gone either.
Comment 14 Jeandré 2011-05-11 17:30:43 UTC
I'm getting the same problem with Firefox 3.6.17 under Ubuntu 10.04.

Would it be possible to have something like the size parameter for HTML img tags, where space is held for the image even before it's been downloaded? Or are global templates and toolbars added after the page is rendered, with no possibility of knowing how high they'll be?
Comment 15 Aryeh Gregor (not reading bugmail, please e-mail directly) 2011-05-11 22:00:24 UTC
What exact behavior are you seeing in Firefox?  It doesn't sound like the same bug.
Comment 16 Jeandré 2011-05-12 17:00:51 UTC
I've figured out how to replicate it, and I think it's the enhanced editing toolbar.

Edit a longish page e.g. <https://secure.wikimedia.org/wikipedia/en/w/index.php?title=Constitutional_act_of_the_Czech_Republic&action=edit>, click in the edit box, scroll down until you can't see the first lines of the article anymore, and start editing. When the page finishes loading (I have a slow connection), the cursor leaves the edit box [when I continue typing Firefox's search in page comes up (Edit, Preferences, Advanced, General, "Search for text when I start typing" is selected)] and the top of the edit box is shown. The text is now also shown in a wider font.

When I switch off the enhanced editing toolbar and keep the unenhanced toolbar, the page jumps a bit while following the same procedure for the images for the unenhanced toolbar, but the cursor stays in the edit box and the font stays the same.
Comment 17 Aryeh Gregor (not reading bugmail, please e-mail directly) 2011-05-12 17:28:59 UTC
That sounds like a different issue.  I'd suggest you file a new bug.
Comment 18 Jeandré 2011-05-12 20:33:19 UTC
Done: Bug 28947.
Comment 19 Sumana Harihareswara 2012-01-10 22:26:51 UTC
Can people still replicate this problem?

Am removing the "patch" and "need-review" keywords because unfortunately Laurence 'GreenReaper' Parry's patch will no longer apply cleanly to trunk and I am thus marking it obsolete.  Thanks for offering the patch, Laurence; if the problem's still happening and you're interested in updating the fix, please do revise and reattach.  Thanks.
Comment 20 Sumana Harihareswara 2012-01-10 22:27:25 UTC
Comment on attachment 6248 [details]
Detect MSIE 8.0 rather than Trident/4.0

This patch no longer applies cleanly to trunk per Rusty Burchfield's automated testing
https://docs.google.com/spreadsheet/ccc?key=0Ah_71HHl7qa7dGtvSms3TGpHQU9NU2Y1VmNzUEUteWc
.
Comment 21 Bartosz Dziewoński 2014-01-20 15:49:57 UTC
The fix here might have caused bug 60237.
Comment 22 Bartosz Dziewoński 2014-01-27 20:29:57 UTC
The partial fix from here has been reverted per bug 60237, as the original issue can no longer be reproduced – apparently either IE 8 was fixed by some updates, or something else magically causes this to work.

Marking this bug as RESOLVED.
Comment 23 Fomafix 2014-02-24 14:47:10 UTC
This bug occurs in Internet Explorer 8 in extension WikiEditor.


Steps to reproduce:
* Open a long text with WikiEditor for example:
https://de.wikipedia.org/w/index.php?title=Wikipedia:Spielwiese&action=edit&oldid=127895879
* Scroll in the middle of the text.
* Position the cursor with the mouse in the middle of the text.
* Insert a text from the WikiEditor toolbar, for example the signature.
--> The textarea scrolls up.


In WikiEditor the bug 60237 cannot occur because WikiEditor has no marginally space:

.wikiEditor-ui textarea#wpTextbox1 {
	border: none;
	padding: 0;
}

This bug should assigned to extension WikiEditor and the fixed in extension WikiEditor.
Comment 24 Gerrit Notification Bot 2014-02-25 08:54:40 UTC
Change 115349 had a related patch set uploaded by Gerrit Patch Uploader:
Workaround for scrolling bug in IE8

https://gerrit.wikimedia.org/r/115349
Comment 25 Fomafix 2014-02-25 12:37:47 UTC
comment #23 is not the same bug. It is also a scrolling bug in IE8 but enabling the compatibility mode doesn't prevent the problem.

I created a new bug 61908.

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


Navigation
Links