Quantcast
Channel: RazorGenerator Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 525

Commented Unassigned: Tilde Slash Paths Not Working after an html comments with apostrophe [114]

$
0
0
Hi !

I'm french and like many french people i'm very bad at languages, so i apologize for any spelling mistakes.
I think i have found a weird issue with razor generator. When i do this :
```
<!--Fenêtre modal des conditions générales d'utilisation -->
<script src="~/Scripts/Interne/Footer.js"></script>
```
RazorGenerator can't generate correcty :
```
WriteLiteral("\r\n\t</footer>\r\n\t<!--Fenêtre modal des conditions générales d\'utilisation -->\r\n\t<sc" +
"ript src=\"~/Scripts/Interne/Footer.js\"></script>\r\n\t");
```

And when I remove the apostrophe in the html comment :
```
<!--Fenêtre modal des conditions générales dutilisation -->
<script src="~/Scripts/Interne/Footer.js"></script>
```

RazorGenerator generate that :
```
riteLiteral("\r\n\t</footer>\r\n\t<!--Fenêtre modal des conditions générales dutilisation -->\r\n\t<scr" +
"ipt");

WriteAttribute("src", Tuple.Create(" src=\"", 1036), Tuple.Create("\"", 1069)
, Tuple.Create(Tuple.Create("", 1042), Tuple.Create<System.Object, System.Int32>(Href("~/Scripts/Interne/Footer.js")
, 1042), false)
);
```

It's a kind of weird issue I think no ?
RazorGenerator is cool... really, but this issue made me lost some hours... i hope i'll help some one.

Bye

Comments: Strange, that does seem broken. And when you use regular Razor (i.e. no RazorGenerator), you don't get the same issue? In theory, we're using the exact same parser.

Viewing all articles
Browse latest Browse all 525

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>