microdata-rdf-streaming-parser
Version:
A fast and lightweight streaming Microdata to RDF parser
16 lines • 548 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ItemPropertyHandlerContent = void 0;
/**
* Handler for an item property with the 'content' attribute.
*/
class ItemPropertyHandlerContent {
canHandle(tagName, attributes) {
return 'content' in attributes;
}
getObject(attributes, util, itemScope) {
return util.createLiteral(attributes.content, itemScope);
}
}
exports.ItemPropertyHandlerContent = ItemPropertyHandlerContent;
//# sourceMappingURL=ItemPropertyHandlerContent.js.map