DOCTYPE in header.php is removed / stripped
-
The DOCTYPE declaration is being stripped out of all page displays.
It is very bizarre. We use an HTML5 template, and the DOCTYPE declaration is in the theme’s header.php:
<!DOCTYPE html> <html lang="en" xmlns:fb="https://ogp.me/ns/fb#"> <meta charset="utf-8"> etc. etc.
This has been working for several years, but some time in the past few weeks the HTML sent to the browser omits the DOCTYPE. As a result, our IE displays look very broken.
I took an HTML source of a sample page and uploaded it as a static HTML file with the <!DOCTYPE html> line inserted , and that works. That makes me believe that it is not a javascript issue (since all JS operations are included in the HTML snapshot).
We have W3 Total Cache, which does do some alterations. I’ve done tests with the cache disabled, but maybe there’s something else related to that plugin?
Anyone else encounter this issue?
- The topic ‘DOCTYPE in header.php is removed / stripped’ is closed to new replies.