IE parsing PHP's way of working is not very understanding

Source: Internet
Author: User
IE parsing PHP's way of working is not very understanding
"The way IE works is not very understanding."
There is a paragraph in the index.php file that looks like this:



Include ' list.php '; break;//load index.php When the list.php comes in
?>




The outermost div in the list.php looks like this:

Some content
?>

After entering localhost/index.php in the IE Address bar, the page is rendered. View the page source file, the problem comes out, probably this looks like:
This is the outermost div.
Some Content
The problem is that IE has omitted the div tag in index.php. That's three of these.



The expected result is not what it should look like:




It cannot be solved.

------Solution--------------------
This is related to the browser's rendering. It doesn't really matter to PHP. is already a client.
------Solution--------------------
Include ' list.php '; break;???

The use of break in a non-cyclic structure will inevitably lead to a serious error
Therefore, the program will output something that is not deterministic
------Solution--------------------
That being the case, then the code for the output outer div is probably not executed at all.

------Solution--------------------
This is not the same as IE does not matter. Isn't that the way Firefox is?
------Solution--------------------
If HTML is less than you expect,

Then it's not IE's problem
  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.