Answer the question
In order to leave comments, you need to log in
Fight between Smarty and browser debugger
Good, people.
A question from the category “What am I doing wrong?”.
Yesterday I installed Smarty 3.1.13. Play a little, figure out what's what. Set up. Created 3 templates. I start, out of habit I climb into the debugger and see the following picture:
<html>
<head></head>
<body>
"
"
<title>123</title>
<!--CSS-->
<link rel="stylesheet" href="../templates/templates/manage/css/manage.css">
<!--Javascript-->
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<div id="container">
<section class="main_control">
<li>Пункт 1</li>
<li>Пункт 2</li>
<li>Пункт 3</li>
</section>
<section class="monitor">
<header>
<h1>Заголовок</h1>
</header>
<article></article>
</section>
</div>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title>123</title>
<!--CSS-->
<link rel="stylesheet" href="../templates/templates/manage/css/manage.css" />
<!--Javascript-->
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" ></script>
</head>
<body>
<div id="container">
<section class="main_control">
<li>Пункт 1</li>
<li>Пункт 2</li>
<li>Пункт 3</li>
</section>
<section class="monitor">
<header>
<h1>Заголовок</h1>
</header>
<article></article>
</section>
</div>
</body>
</html>
Answer the question
In order to leave comments, you need to log in
As a result, he spat and continued to write. A couple of days later I got into the debugger and ... everything is fine. I do not know the reasons for the miraculous changes.
The first thing that catches your eye is that li doesn't have ol/ul. And with the html4 version of this file (change doctype, remove section, header) the same trouble, or is everything fine?
I understand that necrophilia, but suddenly someone will help.
There was a similar problem, though with a template for OpenCart.
The problem turned out to be UTF-8 control codes at the beginning of the file, Chrome does not digest them.
In Notepad++ it is solved by switching to "Encode in UTF-8 (without BOM)" mode. Or delete manually.
All good.
ps dpigo Thanks for the validator, he told me where to dig.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question