Author: mr.heat
Description:
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.
Version: 1.20.x
Severity: enhancement
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=66413