0

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(&#39;helpLink&#39;), MenuWebPart.getAttribute(&#39;helpMode&#39;))" 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.

4

1 回答 1

1

所有这些标签都是由功能区菜单生成的。如果您尝试使用匿名用户(如果是这种情况)或只读帐户验证您的站点,并且您将功能区放入 SPSecurityTrimmedControl,则验证工具(例如为 FireFox 或 Total 验证器添加的 HTMLValidator)将永远不会看到那些标签。

于 2012-07-27T03:44:01.753 回答