arturadib/agility — Issue #62: Data bindings don't seem to work when element attributes are hyphenated
Author: DavidPesta
Created: 2011-12-15 16:08:50+00:00
State: open

I've been testing Agility.js with SVG. Data bindings don't seem to work for element attributes that have a hyphen in them.

The following works for stroke-width, giving the circle a stroke width of 10:

var obj = $$(
{
radius: 200,
centerx: 300,
centery: 300
},
' \
\
'
);
$$.document.append(obj);

But the following does not work for the stroke-width element attribute:

var obj = $$(
{
radius: 200,
centerx: 300,
centery: 300,
strokeWidth: 10
},
' \
\
'
);
$$.document.append(obj);

I hope this is helpful!