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:
parent
1c6d3c2349
commit
f30e7411a1
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user