Catrope has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/189529

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(-)


  git pull ssh://gerrit.wikimedia.org:29418/VisualEditor/VisualEditor 
refs/changes/29/189529/1

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: newchange
Gerrit-Change-Id: I0dfdf3cc0abe84d3a4db58f0d17c2a67ffb015f2
Gerrit-PatchSet: 1
Gerrit-Project: VisualEditor/VisualEditor
Gerrit-Branch: master
Gerrit-Owner: Catrope <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to