jenkins-bot has submitted this change and it was merged. Change subject: Add attribute transformation for color attribute ......................................................................
Add attribute transformation for color attribute It turns out IE also normalizes <font color="Red"> to color="red", see e.g. https://ru.wikipedia.org/?diff=68472600 Change-Id: I0dfdf3cc0abe84d3a4db58f0d17c2a67ffb015f2 --- M src/ve.utils.js 1 file changed, 2 insertions(+), 1 deletion(-) Approvals: Jforrester: Looks good to me, but someone else must approve Esanders: Looks good to me, approved jenkins-bot: Verified diff --git a/src/ve.utils.js b/src/ve.utils.js index 05fa63a..bd7595b 100644 --- a/src/ve.utils.js +++ b/src/ve.utils.js @@ -889,7 +889,8 @@ var xmlDoc, fromAttr, toAttr, i, len, maskAttrs = [ 'style', // IE normalizes 'color:#ffd' to 'color: rgb(255, 255, 221);' - 'bgcolor' // IE normalizes '#FFDEAD' to '#ffdead' + 'bgcolor', // IE normalizes '#FFDEAD' to '#ffdead' + 'color' // IE normalized 'Red' to 'red' ]; // Parse the HTML into an XML DOM -- To view, visit https://gerrit.wikimedia.org/r/189529 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I0dfdf3cc0abe84d3a4db58f0d17c2a67ffb015f2 Gerrit-PatchSet: 1 Gerrit-Project: VisualEditor/VisualEditor Gerrit-Branch: master Gerrit-Owner: Catrope <[email protected]> Gerrit-Reviewer: Esanders <[email protected]> Gerrit-Reviewer: Jforrester <[email protected]> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
