Dialog

Don't create a new div please. What you want is:

  this.setElementText(no, cancel.title);

And then just get rid of the no.appendChild(noText);

There wasn't any reason for the original code to be creating a text node instead of just setting textContent. (And that bad code may actually be my fault from back in early 2012.)