long7181226 / compatibility-detector

Automatically exported from code.google.com/p/compatibility-detector
Apache License 2.0
0 stars 0 forks source link

fix the false expression downlevel-revealed conditional comment bug in documentMode #156

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
some page make add the false expession ownlevel-revealed conditional comment 
before the DTD, like:
http://www.usa.canon.com/cusa/home

<![if false]><!--startView:homePage--><![endif]> 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
"http://www.w3.org/TR/html4/loose.dtd">

<html lang="en">

    <head>

must ignore these conditional comments.

Original issue reported on code.google.com by luyua...@beyondsoft.com on 23 Mar 2011 at 4:17

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
some pages make add the false expession ownlevel-revealed conditional comments 
before the DTD, like:
http://www.usa.canon.com/cusa/home

<![if false]><!--startView:homePage--><![endif]> 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
"http://www.w3.org/TR/html4/loose.dtd">

<html lang="en">

    <head>

must ignore these conditional comments.

Original comment by luyua...@beyondsoft.com on 23 Mar 2011 at 4:19