[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Resources for AtomPub parser validation




On Jun 30, 2008, at 3:23 PM, James Holderness wrote:

In a traditional bad-HTML-on-the-web doc, of which there are billions, you'd quite likely just write it as
<img src="foo?bar=1&baz=2">
and the browser would be forgiving and figure out what you meant.

Unless the url was something like: compare?original=1&copy=2
In which case many browsers would treat the "&copy" as a copyright symbol, and your url would be completely bolloxed. I hope you were not suggesting it was ok for a markup generation tool to deliberately output something like that.

Er, um, James is entirely right and no tool should consider doing such a thing. Experience suggests that some of them, however, do just that. In which case, double-escaping wrapping them in <* type="html"> will Fix The Problem.

 <atom:whatever type="html"> means never having to say you're sorry

-T