Correct documentation of interpretSpec

This commit is contained in:
Tony Garnock-Jones 2014-08-25 13:00:18 -07:00
parent f5e59bfcd8
commit 20d0f5d58d
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ function isAttributes(x) {
DOMFragment.prototype.interpretSpec = function (spec) { DOMFragment.prototype.interpretSpec = function (spec) {
// Fragment specs are roughly JSON-equivalents of SXML. // Fragment specs are roughly JSON-equivalents of SXML.
// spec ::== ["tag", {"attr": "value", ...}, spec, spec, ...] // spec ::== ["tag", [["attr", "value"], ...], spec, spec, ...]
// | ["tag", spec, spec, ...] // | ["tag", spec, spec, ...]
// | "cdata" // | "cdata"
if (typeof(spec) === "string" || typeof(spec) === "number") { if (typeof(spec) === "string" || typeof(spec) === "number") {