ecmarkup
Version:
Custom element definitions and core utilities for markup that specifies ECMAScript and related technologies.
14 lines (11 loc) • 327 B
JavaScript
module.exports = Note;
function Note(spec, algNode) {
this.spec = spec;
this.node = algNode;
}
Note.prototype.build = function() {
var noteSpan = this.spec.doc.createElement('span');
noteSpan.setAttribute('class', 'note');
noteSpan.textContent = 'Note';
this.node.insertBefore(noteSpan, this.node.firstChild);
};