continue
I have a publishing site and I am trying to make it XHTML-transitional compliant. I have solved most of the problem except this one.
<div style='display:none' id='hidZone'><menu class="ms-SrvMenuUI">
<ie:menuitem id="MSOMenu_Help" iconsrc="/_layouts/images/HelpIcon.gif" onmenuclick="MSOWebPartPage_SetNewWindowLocation(MenuWebPart.getAttribute('helpLink'), MenuWebPart.getAttribute('helpMode'))" text="Aide" type="option" style="display:none">
</ie:menuitem>
</menu></div>
I have to remove the < menu > tag and his content since they do not pass the w3c validator test.
This seems to be lately injected server-side. I have tried to remove it via javascript with no success.
Anyone could help me with this?
Update
I found a way to remove it by overriding the render method of the masterpage and editing the content before the render. I am still trying to figure a better way to do this.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
All those tags are generated by the Ribbon Menus. If you try to validate your site with an anonymous user (if that's the case) or with a read only account and you have your ribbon in to a SPSecurityTrimmedControl the validation tool (such as HTMLValidator add on for FireFox or Total validator) will never see those tags.