We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17ae11c commit 5367bd0Copy full SHA for 5367bd0
index.js
@@ -66,20 +66,17 @@ function element(node) {
66
return toH(function (name, attrs) {
67
var values = [];
68
var content;
69
+ var value;
70
var key;
71
72
for (key in attrs) {
73
+ value = {name: key, value: attrs[key]};
74
+
75
if (own.call(attributeSpaces, key)) {
- values.push(xtend({
- name: key,
- value: attrs[key]
76
- }, attributeSpaces[key]));
77
- } else {
78
- values.push({
79
80
81
- });
+ value = xtend(value, attributeSpaces[key]);
82
}
+ values.push(value);
83
84
85
if (name === 'template') {
0 commit comments