- From: Thomas Broyer <t.broyer@ltgt.net>
- Date: Fri, 9 Jan 2009 10:13:04 +0100
- To: public-html <public-html@w3.org>
On Fri, Jan 9, 2009 at 9:49 AM, Maurice wrote: > > This reminds me of a question I have. > > Why do some browsers interpret both § and &sec (no semicolon) as § ? > > I had a horrible issue recently where I needed to use the url > content.php?cmd=update§=homepage&id=33 > But my server was being sent from the browser (firefox) the string > ?cmd=update§=homepage&id=33 > which of course meant that my application failed miserably. > > Are browsers supposed to interpret named entities even when they don't end > with semicolon? Yes. SGML defines this kind of parsing in some specific cases (and most HTML versions are SGML-based), and browsers have implemented different rules (they've never been SGML-based) that are used for HTML5 (not SGML-based). However, your code is wrong, whichever the HTML version: you should use & in your URI. See http://www.w3.org/TR/html4/appendix/notes.html#h-B.2.2 -- Thomas Broyer
Received on Friday, 9 January 2009 09:13:39 UTC