From 5abe90b8f8933bd419bb8e3d15a467efbb1a69d2 Mon Sep 17 00:00:00 2001 From: Jared Forsyth Date: Thu, 13 Feb 2014 01:06:42 -0700 Subject: [PATCH] set className with setAttribute for SVG compat Fixes SVG bug where changes to the className prop are not changed in the svg element. --- src/browser/dom/DefaultDOMPropertyConfig.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/browser/dom/DefaultDOMPropertyConfig.js b/src/browser/dom/DefaultDOMPropertyConfig.js index 0eba6322a26..2a2b9c97b6b 100644 --- a/src/browser/dom/DefaultDOMPropertyConfig.js +++ b/src/browser/dom/DefaultDOMPropertyConfig.js @@ -187,7 +187,7 @@ var DefaultDOMPropertyConfig = { * @param {*} value */ className: function(node, value) { - node.className = value || ''; + node.setAttribute('class', value || ''); } } };