var currentTag = $(this);
if(currentTag.attr('wlxml-tag'))
return;
+
+ var meta = {};
+ for(var i = 0; i < this.attributes.length; i++) {
+ var attr = this.attributes[i];
+ if(attr.name.substr(0, 5) === 'meta-')
+ meta[attr.name.substr(5)] = attr.value;
+ }
+
var element = documentElement.DocumentNodeElement.createDOM({
tag: currentTag.prop('tagName').toLowerCase(),
- klass: currentTag.attr('class')
+ klass: currentTag.attr('class'),
+ meta: meta
});
element.append(currentTag.contents());