Re: Consider only ignoring newlines for final ?> in a file
| From: | Andreas Treichel | Date: | Thu, 07 Sep 2017 17:02:54 +0000 |
| Subject: | Re: Consider only ignoring newlines for final ?> in a file | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-100451@lists.php.net to get a copy of this message | ||
I always assumed that this is the reason why we do this in the first place.I think the main reason was that old versions of ie go into quirksmode if the doctype is not in the first line of the output e.g.: <?php header('Content-Type: text/html'); ?> <!DOCTYPE html>