发布于 2025-01-05 09:51:45 字数 8 浏览 1 评论 0原文

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

掌心的温暖 2025-01-12 09:51:45

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文