Correct documentation of interpretSpec
This commit is contained in:
parent
f5e59bfcd8
commit
20d0f5d58d
|
@ -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") {
|
||||||
|
|
Loading…
Reference in New Issue