use innerHTML for numbers additionally to strings with .html()
add html unit tests for special values of numbers, refs #1447

This reverts commit 501712dd30ee30d2baee0ed84ab80efc7273aefe.