4 ms·
> [ "div", { class : "a-class" }, [ "span", "you can use all of your json tools to edit the DOM" ] ] So, that means <div class="a-class"> <span>you can
by saraid216 13y ago
> [ "div", { class : "a-class" }, [ "span", "you can use all of your json tools to edit the DOM" ] ]
So, that means
<div class="a-class">
<span>you can use all of your json tools to edit the DOM</span>
</div>
, right?
- MarkPNeyer 13y agoyes!
- flywheel 13y agoProbably, but that syntax is awful. This syntax makes more sense to me: [{"tagName":"div","class":"a-class","children":[{"tagName":"span","innerHTML":"you can use all of your json tools to edit the DOM"}]}]