https://bugzilla.wikimedia.org/show_bug.cgi?id=40329
Web browser: ---
Bug #: 40329
Summary: Sanitizer deletes valid align attributes with no
fallback
Product: MediaWiki
Version: 1.20.0beta0
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: Parser
AssignedTo: [email protected]
ReportedBy: [email protected]
Classification: Unclassified
Mobile Platform: ---
Example code, tested in the current 1.20wmf11 in the German Wikipedia which
uses HTML5 mode since yesterday.
{| class="wikitable" width="600"
|- align="center"
| Bug number one, the align attribute is deleted.
|-
| align="center" |
{| class="wikitable" width="300"
| Should be centered.
|}
But number two, the attributes is replaced with the text-align property. This
is '''not''' the same and should not be done.
|-
| align="center" | <center>
{| class="wikitable" width="300"
| Is centered.
|}
I'm sorry but I find this very funny. The center tag is ''not'' deleted but the
align attribute is? WUT?
</center>
|}
Don't tell me the align attribute is deprecated and should not be used. I know
that. That's not the problem. The problem is this change currently creates a
lot of unexpected errors in templates and articles for no reason. Almost no
template author was aware of this. I would like to help fixing all templates
but I need ''time'' to do that.
All web browsers are able to do the right thing when they get these align
attributes. They will do the right thing for years. This will not be dropped.
It can't. There is no need to get rid of the attribute right now. Why? As said,
we should try to avoid it. But we don't need to do this ''today''.
TL;DR: Allow align attributes in HTML5 mode in the same places they were
allowed before.
--
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
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l