Re: External references: how to handle 404?
Boris Zbarsky <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.svg |
|---|---|
| Message-ID | <[email protected]> |
Doug Schepers wrote: > SVG 1.1 says: That's the quote on what to do if the document is in error. I'm not touching that part of the code; the document will just be in error if the referenced element doesn't exist, and we'll do whatever we do for local references in that case. The real question here is this: if an SVG element references http://example.com/example.svg#foo and the returned HTTP response is a 404 with Content-Type image/svg+xml that contains an element with id="foo", should that element be used, or should we pretend that we got no document back at all? Robert suggests the latter, and I'm leaning that way too, but that's not obvious per the spec. For example, a local reference to #foo inside the 404 document should clearly work, right? -Boris