Hello Ian,<br><br><div><span class="gmail_quote">On 12/1/06, <b class="gmail_sendername">Ian Hickson</b> &lt;<a href="mailto:ian@hixie.ch">ian@hixie.ch</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Fri, 1 Dec 2006, Elliotte Harold wrote:<br>&gt;<br>&gt; <a href="http://9.1.2.1">9.1.2.1</a> states:<br>&gt;<br>&gt; Then, if the element is one of the void elements, then there may be a single<br>&gt; U+002F SOLIDUS character. This character has no effect [...]
<br>&gt;<br>&gt; The second sentence is false [...] I suggest rewriting as follows:<br>&gt;<br>&gt; This character has no effect when the document is parsed by an HTML5 parser.<br><br>That's redundant. Parsing a document using this syntax with anything other
<br>than an HTML5 parser would be non-conforming.<br><br><br>&gt; However, if the document when parsed by an XML parser, the trailing<br>&gt; slash converts the tag into an empty-element tag, and thereby makes an<br>&gt; otherwise malformed element well-formed.
<br><br>This section has nothing to do with XML. If the document was parsed by an<br>XML parser, then there are much bigger problems afoot, such as MIME type<br>mislabelling, or a faulty UA.<br></blockquote></div><br>Sometimes web developers parse (non-XML) HTML with an XML parser because it's the tool they have on hand.
<br><br>Consider a PHP developer trying to analyse an HTML page.<br><br>If a PHP developer wants to analyse an HTML page; that developer may try to use SimpleXML &lt;<a href="http://php.net/simplexml">http://php.net/simplexml
</a>&gt; because that's what they have on hand and know how to use.&nbsp; There's no SimpleHTML available in PHP.<br><br>And while none of this is certainly our fault.&nbsp; This is a situation some web developers are going to run into.&nbsp; (What else are they going to use?)
<br><br><br>See ya<br><br>-- <br>&nbsp;&nbsp;&nbsp;&nbsp;Charles Iliya Krempeaux, B.Sc.<br><br>&nbsp;&nbsp;&nbsp;&nbsp;charles @ <a href="http://reptile.ca">reptile.ca</a><br>&nbsp;&nbsp;&nbsp;&nbsp;supercanadian @ <a href="http://gmail.com">gmail.com</a><br><br>&nbsp;&nbsp;&nbsp;&nbsp;developer weblog: 
<a href="http://ChangeLog.ca/">http://ChangeLog.ca/</a><br><br>