Re: base within HTML content

2007-01-02 Thread Anne van Kesteren
On Tue, 02 Jan 2007 01:21:09 +0100, Henri Sivonen [EMAIL PROTECTED] wrote: I suppose you could raise this on the WHATWG list. Asking what happens if you set innerHTML of a div where the setted value has both a base and an a for instance. Interesting. I hadn't thought that Atom was supposed

Re: base within HTML content

2007-01-02 Thread A. Pagaltzis
* Henri Sivonen [EMAIL PROTECTED] [2007-01-02 01:35]: I hadn't thought that Atom was supposed to use innerHTML parsing. I'd have said that you prepend !DOCTYPE htmltitle/titlediv to what travels in the feed and append /div to it, parse the resulting string and grab the first div in the

Re: base within HTML content

2007-01-02 Thread Anne van Kesteren
On Tue, 02 Jan 2007 02:12:14 +0100, James Holderness [EMAIL PROTECTED] wrote: Well that's not really what I've learnt. I've learnt that there are a lot of broken feeds out there (Atom as well as RSS) and that users are less than impressed when you tell them it's not your fault and they

Re: base within HTML content

2007-01-02 Thread Anne van Kesteren
On Tue, 02 Jan 2007 11:40:53 +0100, A. Pagaltzis [EMAIL PROTECTED] wrote: * Henri Sivonen [EMAIL PROTECTED] [2007-01-02 01:35]: I hadn't thought that Atom was supposed to use innerHTML parsing. I'd have said that you prepend !DOCTYPE htmltitle/titlediv to what travels in the feed and append

Re: base within HTML content

2007-01-02 Thread Henri Sivonen
On Jan 2, 2007, at 12:40, A. Pagaltzis wrote: * Henri Sivonen [EMAIL PROTECTED] [2007-01-02 01:35]: I hadn't thought that Atom was supposed to use innerHTML parsing. I'd have said that you prepend !DOCTYPE htmltitle/titlediv to what travels in the feed and append /div to it, parse the

Re: base within HTML content

2007-01-02 Thread James Holderness
Anne van Kesteren wrote: So if a feed is non-well-formed you should just parse it as well using some tag soup parser for XML? Well that's what I do. The Google Reader blog post I quoted estimated that about seven percent of feeds contained XML errors of some kind. That's a lot of feeds for

Re: base within HTML content

2007-01-01 Thread Asbjørn Ulsberg
On Fri, 22 Dec 2006 18:38:33 +0100, Geoffrey Sneddon [EMAIL PROTECTED] wrote: If we come across something like: description type=html![CDATA [base url=http://example.com/;a href=test.htmlTest Link/a]] /description, Yikes! I assume the link should point to http://example.com/test.html,

Re: base within HTML content

2007-01-01 Thread Geoffrey Sneddon
On 1 Jan 2007, at 16:59, Asbjørn Ulsberg wrote: Like James Holderness wrote, Eek! I should keep up with emails better! the base element has no place in an HTML fragment, so its meaning is (although most browsers wrongfully supports its presence anywhere in an HTML document)

Re: base within HTML content

2007-01-01 Thread Thomas Broyer
2007/1/1, Geoffrey Sneddon: On 1 Jan 2007, at 16:59, Asbjørn Ulsberg wrote: the base element has no place in an HTML fragment, so its meaning is (although most browsers wrongfully supports its presence anywhere in an HTML document) unspecified. Web Applications 1.0 (keeping with the real

Re: base within HTML content

2007-01-01 Thread A. Pagaltzis
* Geoffrey Sneddon [EMAIL PROTECTED] [2007-01-01 19:00]: On 1 Jan 2007, at 16:59, Asbjørn Ulsberg wrote: the base element has no place in an HTML fragment, so its meaning is (although most browsers wrongfully supports its presence anywhere in an HTML document) unspecified. Web Applications

Re: base within HTML content

2007-01-01 Thread Bob Wyman
On 1/1/07, Geoffrey Sneddon [EMAIL PROTECTED] wrote: Why, may I ask, MUST (under the RFC 2119 definition) HTML content be a fragment (HTML markup within SHOULD be such that it could validly appear directly within an HTML DIV element, after unescaping. - note the word SHOULD, not MUST, implying

Re: base within HTML content

2007-01-01 Thread Geoffrey Sneddon
On 1 Jan 2007, at 19:22, Bob Wyman wrote: If you want a local base, then use xml:base. That's what it is for. When the spec says you SHOULD treat html content as if it were in a DIV, it adds a certain amount of unclarity as how such Atom feeds should be parsed. I'm asking merely to see

Re: base within HTML content

2007-01-01 Thread Anne van Kesteren
On Mon, 01 Jan 2007 21:22:33 +0100, Geoffrey Sneddon [EMAIL PROTECTED] wrote: If you want a local base, then use xml:base. That's what it is for. When the spec says you SHOULD treat html content as if it were in a DIV, it adds a certain amount of unclarity as how such Atom feeds should

Re: base within HTML content

2007-01-01 Thread James Holderness
Geoffrey Sneddon wrote: When the spec says you SHOULD treat html content as if it were in a DIV, it adds a certain amount of unclarity as how such Atom feeds should be parsed. I'm asking merely to see if there's any consensus as to how it should be done. I have no control over the vast

Re: base within HTML content

2007-01-01 Thread James M Snell
-1. If there's anything we can learn from the mess that is RSS, at a certain point feed consumers should be allowed to say simply that a buggy feed is a buggy feed and that it falls on the responsibility of the feed publisher to get things right. - James James Holderness wrote: [snip] Do you

Re: base within HTML content

2007-01-01 Thread Henri Sivonen
On Jan 1, 2007, at 22:46, Anne van Kesteren wrote: I suppose you could raise this on the WHATWG list. Asking what happens if you set innerHTML of a div where the setted value has both a base and an a for instance. Interesting. I hadn't thought that Atom was supposed to use innerHTML

Re: base within HTML content

2007-01-01 Thread James Holderness
James M Snell wrote: -1. If there's anything we can learn from the mess that is RSS, at a certain point feed consumers should be allowed to say simply that a buggy feed is a buggy feed and that it falls on the responsibility of the feed publisher to get things right. Well that's not really

Re: base within HTML content

2006-12-22 Thread James Holderness
Geoffrey Sneddon wrote: If we come across something like: description type=html![CDATA [base url=http://example.com/;a href=test.htmlTest Link/a]] /description, I assume the link should point to http:// example.com/test.html, due to the base element? Not necessarily. The base element should