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)

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

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report for Bug 5171 on GitHub or Developer Community if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: GitHub Markdown or Developer Community HTML
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:
Status:
NEW

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.