https://bugzilla.wikimedia.org/show_bug.cgi?id=36495

Krinkle <krinklem...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |code-update-regression
           Priority|Normal                      |Low
                 CC|                            |krinklem...@gmail.com
            Summary|wikitable align="right" not |Sanitizer should convert
                   |work                        |align="right" on elements
                   |                            |that are not table-cells to
                   |                            |`style="float: <dir>;"`
           Severity|normal                      |minor

--- Comment #5 from Krinkle <krinklem...@gmail.com> 2012-05-27 12:51:08 UTC ---
* align="left" and align="right" have been deprecated for years. All browsers
around today map this internally to float:left and float:right respectively.

* float: center; doesn't exist and has never existed. This is a common mistake
but not a bug.

* As of MediaWiki 1.19 the Sanitizer class converts these to CSS (but only if
the wiki is in HTML5 mode, which it is by default, but Wikipedia has HTML5 mode
disabled. MediaWiki.org has it enabled and your own install will have it
enabled by default as well)

* Short term solution: Do not use align="", valign="", clear="" etc. Instead
use CSS or inline style="" as these attributes have all been deprecated for a
long time.

* Long term solution: align="" is converted by Sanitizer to only text-align.
For left/right it should also include `float` (depending on the element).

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to