When I use chrome and firefox developer tools, it renders the form outside of the paragraph tag, and asking for an xpath returns an xpath that does not include the paragraph tag.
Doing a little digging (I'm not an HTML expert by any means), it appears that a paragraph isn't allowed to have block-level elements inside it, and a form is a block level element. Firefox and chrome seems to auto-close the paragraph before starting the form (and eventually ignoring the following close paragraph tag), but IE does not. This results in slightly different xpaths for the elements in IE versus firefox and chrome.
Since it's technically invalid to have a form inside a paragraph, it would be nice if this page didn't put forms inside of paragraphs.
The checkbutton page seems to have some invalid markup. On the checkbutton page you have this markup:
When I use chrome and firefox developer tools, it renders the form outside of the paragraph tag, and asking for an xpath returns an xpath that does not include the paragraph tag.
Doing a little digging (I'm not an HTML expert by any means), it appears that a paragraph isn't allowed to have block-level elements inside it, and a form is a block level element. Firefox and chrome seems to auto-close the paragraph before starting the form (and eventually ignoring the following close paragraph tag), but IE does not. This results in slightly different xpaths for the elements in IE versus firefox and chrome.
Since it's technically invalid to have a form inside a paragraph, it would be nice if this page didn't put forms inside of paragraphs.
More information: http://stackoverflow.com/questions/1022041/why-doesnt-form-nested-in-p-validate-as-xhtml