Mercurial > hg > webaudioevaluationtool
comparison js/specification.js @ 2620:13a0b65143a6
Merge branch 'master' into vnext
author | Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk> |
---|---|
date | Sun, 20 Nov 2016 10:14:36 +0000 |
parents | ae5e8818eff0 15b42e98b06c |
children | 88b1c15eb202 |
comparison
equal
deleted
inserted
replaced
2619:74e5d7a978ee | 2620:13a0b65143a6 |
---|---|
451 } | 451 } |
452 }; | 452 }; |
453 | 453 |
454 this.encode = function (doc) { | 454 this.encode = function (doc) { |
455 var node = doc.createElement("interface"); | 455 var node = doc.createElement("interface"); |
456 if (typeof name == "string") | 456 if (typeof name == "string" && name.length > 0) |
457 node.setAttribute("name", this.name); | 457 node.setAttribute("name", this.name); |
458 if (typeof this.title == "string") { | 458 if (typeof this.title == "string") { |
459 var titleNode = doc.createElement("title"); | 459 var titleNode = doc.createElement("title"); |
460 titleNode.textContent = this.title; | 460 titleNode.textContent = this.title; |
461 node.appendChild(titleNode); | 461 node.appendChild(titleNode); |