B
B
Blobster2015-10-11 17:01:26
PHP
Blobster, 2015-10-11 17:01:26

Website misbehavior. Who is guilty?

Hello!
There was a problem: Symbols and tags that should be inside the head are added to the markup and go to the body. What could it possibly be?
The site is assembled dynamically from header.php, body.php and footer.php
Here is the structure of the document:
dc41dde7b678421aa5d8d24ce7a50f9c.PNG
And if you open the element inspector, then it looks like this:
ac004e9b33d04ed983a88d245ba44bee.PNG
wtf?!
UPDATE:
An absolutely(!) empty html document that is not even related to php in any way and contains only three characters: 123
e65512009ddf4568a025d9389fcfa812.PNG
Has the structure in the inspector:
887cf6445d434a42a1b2512d51065eea.PNG
How is this even possible?! Maybe the host "helps"?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Artem Spiridonov, 2015-10-11
@Blobster

UTF without BOM

T
Tlito, 2015-10-11
@tlito

and if you open ctrl + U

A
Alexander, 2015-11-14
Madzhugin @Suntechnic

How can your "absolutely(!) empty html document" have no structure in the inspector? In any case, the browser builds the DOM tree, because Content-Type: text/html;
To see exactly the body that came to you, open it not in the inspector, but by Ctrl + U, as you have already been told.
Well, the same applies to the first question - rewrite the structures so that it is correct and does not look correct.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question