Reporter | Joshua McKinney (joshka) |
---|---|
Created | Jan 6, 2012 3:32:00 AM |
Updated | Jan 6, 2012 10:49:28 PM |
Priority | Critical |
Type | Bug |
Fix versions | Next |
State | Submitted |
Assignee | Dmitry Osinovsky (Dmitry.Osinovsky) |
Subsystem | Inplace Refactorings |
Affected versions | 6.1 |
Fixed in build | No Fixed in build |
In html 5, only void elements should be refactorable to be made empty, as the <script> tag can contain content, it should be left as is (with a start and end element). R# should not suggest making the tag empty.
valid: <script src="@Url.Content("~/Scripts/app.js")"></script>
invalid: <script src="@Url.Content("~/Scripts/app.js")" />
note: visual studio correctly identifies that this syntax is invalid
valid: <span></span>
invalid: <span />
valid: <script src="@Url.Content("~/Scripts/app.js")"></script>
invalid: <script src="@Url.Content("~/Scripts/app.js")" />
note: visual studio correctly identifies that this syntax is invalid
valid: <span></span>
invalid: <span />