Bug 5171 - xsp2 and xsp4 not parsing comments correctly
Summary: xsp2 and xsp4 not parsing comments correctly
Status: NEW
Alias: None
Product: Class Libraries
Classification: Mono
Component: System.Web (show other bugs)
Version: 2.10.x
Hardware: PC Linux
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2012-05-18 11:37 UTC by James
Modified: 2012-05-18 11:43 UTC (History)
2 users (show)

See Also:
Tags:
Is this bug a regression?: ---
Last known good build:


Attachments

Description James 2012-05-18 11:37:59 UTC
an aspx file with the following comments does not get parsed correctly in xsp2 or xsp4. When given the following comments I would expect them to be outputted exactly as is to the stream.

<!--[if lt IE 7]><html class="ie ie6 no-js" dir="ltr" lang="en-US">--><!--<![endif]-->
<!--[if IE 7]><html class="ie ie7 no-js" dir="ltr" lang="en-US"> <![endif]-->
<!--[if IE 8]><html class="ie ie8 no-js" dir="ltr" lang="en-US"> <![endif]-->
<!--[if IE]><[if gt IE 8]><![endif]-->   <html lang="en-US"> <!--[if IE]><![endif]><![endif]--> 


Instead the output is
<!DOCTYPE html>
<!--[if lt IE 7]> 7]><html class="ie ie6 no-js" dir="ltr" lang="en---><!--<![endif]-->
<!--[if IE 7]> 7]><html class="ie ie7 no-js" dir="ltr" lang="en- <![endif]-->
<!--[if IE 8]> 8]><html class="ie ie8 no-js" dir="ltr" lang="en- <![endif]-->
<!--[if IE]><[if gt IE 8]><![endif]-->   <html lang="en-US"> <!--[if IE]><![endif]><![endif]--> 



it seems to be reproducing the last 3 characters before the first > after the opening comment and it seems to be stripping the last 4 characters a tag inside the comments.

Note You need to log in before you can comment on or make changes to this bug.