Last modified: 2012-09-18 11:25:42 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 T42323, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 40323 - align transformation to CSS float changes layout
align transformation to CSS float changes layout
Status: RESOLVED DUPLICATE of bug 40306
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-09-18 09:49 UTC by Malafaya
Modified: 2012-09-18 11:25 UTC (History)
2 users (show)

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


Attachments
Screenshot of page rendered incorrectly (24.42 KB, image/png)
2012-09-18 09:49 UTC, Malafaya
Details

Description Malafaya 2012-09-18 09:49:59 UTC
Created attachment 11123 [details]
Screenshot of page rendered incorrectly

Starting today (17/Sep/2012), pages with a translation table at pt.wiktionary started getting broken (i.e. [[Polinésia]]). Most pages still appear correct as of now but when edited the translations pages gets messed up.

Nor the templates nor common.css or common.js have been touched recently.

An image of what I can see using Firefox 15.0.1 is attached as well as uploaded at [[commons:File:Error on pt.wiktionary (tables).png]].

With IE9, I get the same display and a jQuery error: "Object doesn't support this property or method" related to code "pagetitle=jQuery('h1').first().text().trim();". I'm not sure whether it's related or not. I don't seem to get this error on Firefox.

I verified the same problem at vo.wiktionary (i.e. "Tradutods" table in page [[flor]]).

I'm issuing this as "critical" as slowly all the pages are getting broken at pt.wiktionary.
Comment 1 Michael M. 2012-09-18 10:13:42 UTC
Yet another bug caused by the automatic translation of the align attribute into CSS.

To fix this on pt.wiktionary you could change the

<div class="NavHead" align=left>

in [[pt:wikt:Predefinição:tradini]] to

<div class="NavHead" style="text-align: left;">

I didn't test thoroughly, but that should work as expected.


The JS error is unrelated, I don't know why it breaks in IE9 (perhaps you enabled the compatibility mode?), but .trim doesn't work in IE8 and previous, see http://msdn.microsoft.com/en-us/library/ff679971%28v=vs.94%29.aspx, so it should get replaced by pagetitle=jQuery.trim(jQuery('h1').first().text());
Comment 2 Malafaya 2012-09-18 10:41:25 UTC
It worked like a charm. Thanks!
Comment 3 Michael M. 2012-09-18 10:53:34 UTC
Reopening and rephrasing to make sure that the underlying matter is addressed.

A minimal example is

<div align=left>foo</div>
<div>bar</div>

which should display like

foo
bar

but currently does display as

foobar
Comment 4 Derk-Jan Hartman 2012-09-18 11:25:42 UTC

*** This bug has been marked as a duplicate of bug 40306 ***

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


Navigation
Links