Fix #11809: Update text without creating DOM nodes. Close gh-1412.