1
1
mirror of https://github.com/github/semantic.git synced 2024-11-25 11:04:00 +03:00

Construct DOM for replacements.

This commit is contained in:
Rob Rix 2015-10-21 16:40:02 -04:00
parent 1c6d3c2349
commit f30e7411a1

View File

@ -78,6 +78,14 @@
return element;
}
if (model instanceof Replace) {
var element = document.createElement("div");
element.classList.add("replace");
element.appendChild(toDOM(model.before));
element.appendChild(toDOM(model.after));
return element;
}
if (model instanceof Term) {
var element = document.createElement("div");
element.classList.add("term");