RenderIncludes outputs corrupted script


#1

Running under asp.net website, IIS7.5 64 bit, .net 4.0. The script tag generated by RenderIncludes ends up looking like this:

<script data-authorized="true" data-controls="false" data-max-traces="15" data-children="false" data-trivial="false" data-position="left" 4b42ce4c-66d4-4f59-b817-67ce8d31906d","8aee68e8-1e00-4798-a602-d21ae303d156","33361a78-3354-473c-8f52-b457c668610e","3c35b704-17eb-4a24-af4d-24812e831b77","5c31c348-1f58-429a-8306-8ec65a20dc4a","9cc34e08-e2bd-4934-a738-94ac676b1ba0","c35c0b6a-a30d-4ed0-9d0e-c9184b088843","bb2e50aa-6b04-41b7-8c08-fc9c0675face","fba27608-bf56-4bea-b501-99922605ba55","ef90763e-d957-46e1-a908-2bfffcd61c52","dcf5adf3-2a90-4e7a-a0a9-b4def2261a21","2887a407-83cf-4486-a87c-4e3b79864a76","d1dce4fa-9dbd-4ff2-b1d6-5c50a81c5ba5","600fc263-b9e5-446e-9d08-11a6c509a863","0732729b-1fc3-4666-a7d9-028dbb46ef6e","79b58ac7-16d4-4f50-9671-a159b0cc5862","6a8f9e89-e384-4684-9fae-0e23bd7f7495","93a1871d-4aa6-4e49-8018-b9a1fe6bd605","cd4b739a-e473-4ed0-ac03-7301026a63e1","68d661a2-b233-42e2-a1b8-01886608cff4","caedffa8-2d06-4196-9883-e8ed25b8bb6a"]"="" data-ids="[" data-current-id="caedffa8-2d06-4196-9883-e8ed25b8bb6a" data-path="/mini-profiler-resources/" data-version="oc/5m1U7p7oYc874HC65bOJ6At27RLJVpvWgBeHi9eE=" src="/mini-profiler-resources/includes.js?v=oc/5m1U7p7oYc874HC65bOJ6At27RLJVpvWgBeHi9eE=" id="mini-profiler" type="text/javascript" async=""></script>

So, data-ids is incorrect for whatever reason. Looks like incorrect escaping? Either way, id in the ajax request ends up being “[” and 404 is returned.


#2

thanks, we will look into this


#3

2.0.4 renders it as

<script async type="text/javascript" id="mini-profiler ... thus breaking any XHTML. Can you fix `async` please?