On Nov 26, 2007, at 8:00 AM, Dusan Smolnikar wrote:
I'm afraid browser don't agree with this, though. I'm not sure
about input but I'm
positive that <div></div> is not the same as <div /> as far as
browser rendering
goes.
Actually as far as XML (and consequently XHTML) is concerned:
<input type="text" name="a" value="a"></input>
Is the same as:
<input type="text" name="a" value="a" />
Depending on the mime type there is a huge difference.
text/html --> sgml parser in use
application/xhtml+xml --> xml parser is in use.
And no, slamming an xhtml doctype at the top of the page has no
effect (doesn't affect the mime-type).
Note: the upcoming Firefox 3 and other browsers using the Gecko 1.9
rendering engine are more strict in handling this.
Philippe
---
Philippe Wittenbergh
<http://emps.l-c-n.com>
*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************