c# - IE9 is duplicating master page content -


create brand new asp.net webforms project. add master page , webforms page uses master page.

master page

<%@ master language="c#" autoeventwireup="true" codebehind="site1.master.cs" inherits="aspweird.site1" %>  <!doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd">  <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server">     <title></title>     <asp:contentplaceholder id="head" runat="server">     </asp:contentplaceholder> </head> <body>     <form id="form1" runat="server">     <div>         <div id="main_content_container">             <div id="main_content_row">                 <div id="main_content_column">                   <asp:contentplaceholder id="contentplaceholder1" runat="server">          </asp:contentplaceholder>                 </div>                  <div id="side_content_column">                  </div>             </div>         </div>      </div>     </form> </body> </html> 

webforms page

<%@ page title="" language="c#" masterpagefile="~/site1.master" autoeventwireup="true" codebehind="webform1.aspx.cs" inherits="aspweird.webform1" %> <asp:content id="content1" contentplaceholderid="head" runat="server"> </asp:content> <asp:content id="content2" contentplaceholderid="contentplaceholder1" runat="server"> <h2>hello world</h2>  <div>     <form></form> </div>  </asp:content> 

now view page in ie9 , open f12 developer tools

if see part of master page looks in dom twice...examining network capture server looks returning correct html. not have problems firefox or chrome.

screenshot http://dl.dropbox.com/u/1994980/ie9_duplicate_content.png

this happens

<div><form></form></div> 

block in there. if remove normal.

whole project zipped up

nested form tags makes invalid html , rendering see in ie9 result of that. dom see in developer tools rendered not received http response


Comments

Popular posts from this blog

how to build hyperlink for query string in php -

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

queue - mq_receive: message too long -