Quantcast
Channel: YouTrackReSharper (RSRP) - Bug and Issue Tracker
Viewing all articles
Browse latest Browse all 106942

RSRP-287617: Do not suggest make empty 'element' tag refactorings for non-void html 5 elements

$
0
0
Reporter Joshua McKinney (joshka) 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 />

Viewing all articles
Browse latest Browse all 106942

Trending Articles



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