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

Created 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


Viewing all articles
Browse latest Browse all 525

Trending Articles



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