Welcome Guest, Not a member yet? Register   Sign In
html5 doctype error
#1

[eluser]mlakhara[/eluser]
I have a view in which I am using html5 doctype as shown in the code snippet.
This view has worked fine outside CI but when I modified it to work in codeigniter I get the following error in firebug.

Code:
syntax error
http://localhost/msurvey/ci/index.php
Line 1


Code:
<?php ?>
<!DOCTYPE html>
&lt;!--[if lt IE 7 ]>&lt;html class="ie ie6" lang="en"&gt; <![endif]--&gt;
&lt;!--[if IE 7 ]>&lt;html class="ie ie7" lang="en"&gt; <![endif]--&gt;
&lt;!--[if IE 8 ]>&lt;html class="ie ie8" lang="en"&gt; <![endif]--&gt;
&lt;!--[if (gte IE 9)|!(IE)]>&lt;!--&gt;&lt;html lang="en"&gt; &lt;!--<![endif]--&gt;
&lt;head&gt;
#2

[eluser]InsiteFX[/eluser]
Remove:
Code:
&lt;?php ?&gt;

Code:
<!DOCTYPE html>
&lt;!--[if lt IE 7 ]>&lt;html class="ie ie6" lang="en"&gt; <![endif]--&gt;
&lt;!--[if IE 7 ]>&lt;html class="ie ie7" lang="en"&gt; <![endif]--&gt;
&lt;!--[if IE 8 ]>&lt;html class="ie ie8" lang="en"&gt; <![endif]--&gt;
&lt;!--[if (gte IE 9)|!(IE)]>&lt;!--&gt;&lt;html lang="en"&gt; &lt;!--<![endif]--&gt;
&lt;head&gt;




Theme © iAndrew 2016 - Forum software by © MyBB