mirror of
https://github.com/github/semantic.git
synced 2024-11-25 11:04:00 +03:00
Construct keyed nodes as a definition list.
This commit is contained in:
parent
25e9054d06
commit
5347b50ad3
@ -99,6 +99,17 @@
|
||||
return element;
|
||||
}
|
||||
|
||||
if (model.syntax instanceof Keyed) {
|
||||
var element = document.createElement("dl");
|
||||
for (k in model.syntax) {
|
||||
var dt = document.createElement("dt");
|
||||
dt.textContent = k;
|
||||
element.appendChild(dt);
|
||||
element.appendChild(wrap("dd", toDOM(model.syntax[k])));
|
||||
}
|
||||
return element;
|
||||
}
|
||||
|
||||
if (model.syntax instanceof Leaf) {
|
||||
var element = document.createElement("span");
|
||||
// ?
|
||||
|
Loading…
Reference in New Issue
Block a user