• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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;


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.