diff --git a/src/parsers/micro-rdfa-parser.js b/src/parsers/micro-rdfa-parser.js index 27edbaa..3e1aba3 100644 --- a/src/parsers/micro-rdfa-parser.js +++ b/src/parsers/micro-rdfa-parser.js @@ -52,7 +52,11 @@ const createHandler = function (specName) { if (attribs[PROP] && currentScope) { let newScope = {} currentScope[attribs[PROP]] = currentScope[attribs[PROP]] || [] - currentScope[attribs[PROP]].push(newScope) + if (Array.isArray(currentScope[attribs[PROP]])) { + currentScope[attribs[PROP]].push(value); + } else { + currentScope[attribs[PROP]] = value; + } currentScope = newScope } else { currentScope = {}