Take the prefix from createElementNS into account for HTML elements

Fixes #3139