fixing bug #5563 : adding DOCTYPE declaration and removing HTML code placed before it
Merge branch 'ney-bug-5563' into core-5.14.x