This project has moved. For the latest updates, please go here.

Nested <form> tag and InnerText property

Topics: Developer Forum, User Forum
Aug 6, 2007 at 6:31 PM
Edited Aug 6, 2007 at 6:32 PM
I am trying to validate the InnerText property of a <fieldset> tag that has a nested <form> tag within it. The HtmlNode is identified correctly. Problem is the closing </form> tag in the nested form is added to the InnerText property for the parent fieldset tag. I am using a page from W3C schools --

Here is the OuterHtml for the page:

<legend>Health information:</legend>
<form action="">
Height <input type="text" size="3">
Weight <input type="text" size="3">

Here is the InnerText for the same tag:

\r\nHealthInformation:\r\n\r\nHeight \r\nWeight \r\n</form>\r\n

Is this a bug? Is there a way to fix the source to make this start working? Thanks for your help!