diff --git a/avalon.js b/avalon.js index b734bd885..44ee2875f 100644 --- a/avalon.js +++ b/avalon.js @@ -2178,7 +2178,7 @@ var param = match[2] || "" var value = attr.value var name = attr.name - msData[name] = value + msData[name.replace(/(\-[$\w]+)/g,"")] = value if (events[type]) { param = type type = "on" diff --git a/avalon.modern.js b/avalon.modern.js index da9008cf9..a0bf712a1 100644 --- a/avalon.modern.js +++ b/avalon.modern.js @@ -1621,7 +1621,7 @@ var param = match[2] || "" var value = attr.value var name = attr.name - msData[name] = value + msData[name.replace(/(\-[$\w]+)/g,"")] = value if (events[type]) { param = type type = "on" diff --git a/examples/avalon.shim.js b/examples/avalon.shim.js index db45c9aac..1d77dd06e 100644 --- a/examples/avalon.shim.js +++ b/examples/avalon.shim.js @@ -2169,7 +2169,7 @@ var param = match[2] || "" var value = attr.value var name = attr.name - msData[name] = value + msData[name.replace(/(\-[$\w]+)/g,"")] = value if (events[type]) { param = type type = "on"