Visual Studio HTML5 Validation: The ‘img’ element can not be nested in the ‘a’

I’ve run into this curious validation error in Visual Studio 2010 with HTML5 validation selected:

Is this a validation error (legitimate or a bug in Visual Studio) or am I missing something obvious and simple?

Edit:added relevant code.

View cshtml :

@model My.Web.ViewModels.ListVideos

@{
    ViewBag.Title = "All Videos";
}

@foreach (var item in Model.Videos) {
    
        
    
}

_Layout.cshtml :


    
    @ViewBag.Title
    
    
    


    

My Web

@Html.Partial("_LogOnPartial")
@RenderBody()
Hello, buddy!稿源:Hello, buddy! (源链) | 关于 | 阅读提示

本站遵循[CC BY-NC-SA 4.0]。如您有版权、意见投诉等问题,请通过eMail联系我们处理。
酷辣虫 » 综合编程 » Visual Studio HTML5 Validation: The ‘img’ element can not be nested in the ‘a’

喜欢 (0)or分享给?

专业 x 专注 x 聚合 x 分享 CC BY-NC-SA 4.0

使用声明 | 英豪名录