Optional second argument to createElement detects namespace

If a contextual element is passed to element creation, detect a namespace