From ian at hixie.ch Fri Apr 1 01:57:03 2005 From: ian at hixie.ch (Ian Hickson) Date: Fri, 1 Apr 2005 09:57:03 +0000 (UTC) Subject: [whatwg]

to

in In-Reply-To: <424CD1C4.4090607@myrealbox.com> References: <424BCBBE.2040308@cam.ac.uk> <424CAB13.1040709@myrealbox.com> <424CD1C4.4090607@myrealbox.com> Message-ID: On Thu, 31 Mar 2005, dolphinling wrote: > > |
    > |
  1. F

  2. 2.2. F > |
  3. G

  4. 2.3. G > |
  5. H

  6. 2.4. H > |
(part of section started by H) > |

...

(part of section started by H) > > If one were to explicitly include section tags around H here, where > would they go? It can't start before the
    , because then it would > include F and G, but it can't start inside the
      because then it > would break nesting. Oh, sure. You can't (always) use section elements to indicate the sectioning of legacy headers. Is it a requirement that you should be able to? What's the use case? -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From mpt at myrealbox.com Fri Apr 1 02:17:44 2005 From: mpt at myrealbox.com (Matthew Thomas) Date: Fri, 01 Apr 2005 22:17:44 +1200 Subject: [whatwg]

      to

      in In-Reply-To: References: <424BCBBE.2040308@cam.ac.uk> <424BEBFF.1080302@myrealbox.com> <424C177E.5030508@myrealbox.com> Message-ID: <424D1FC7.4000705@myrealbox.com> Ian Hickson wrote: >... > Note that the difference between and <h1> is not that <title> > is expected to include author information or whatever. You personally may not expect it, but that is the inevitable and unsurprising effect of it being used as "a context-free label to be used to describe the page elsewhere", in the absence of simply-specified and -supported markup for author, publisher, parent, and so on. > The example I gave earlier, of a Wikipedia page, shows the difference > I meant: > > <title>Main Page - Wikipedia, the Free Encyclopedia > ... >

      Main Page

      That example shows what I was talking about: being used to contain non-title data -- the publisher in this case -- separated by arbitrary (and therefore difficult-to-parse) punctuation from the title itself. > Another example: > > <title>Introduction to the mating rituals of bees > ... >

      Introduction

      And that's an unrealistic example, because it's treating two definitions of the word "Introduction" as if they were the same. (As a heading by itself, "Introduction" means an introductory section; but "Introduction to X" means a basic presentation of X.) As you collect more realistic examples, you'll find that they follow the pattern I described. > The point is that the has to stand alone and represent the > document when taken out of context, whereas the <h1> is the header of > a document _in the context of the page_, i.e. when people already know > what the basic subject area is. > > Thus the <title> is not in any sense the parent of the <h1> or other > headers. Not in Web pages designed to work with HTML 4 browsers, no. But if you're requiring new browsers to present some rel= values, you could take advantage of that to let <title> really be a title. > > It is a bad idea for the meaning of an element to be markedly > > different from the meaning of its name. That is likely to cause > > confusion, non-conformance, and disrespect for the spec in general. > > While I agree with this in general, and while I am aware of a huge > number of cases where the HTML language faito follow ls this design > principle, I don't see its relevance in this particular case. The relevance is that it is exactly what you were planning to do with <title>. > > Authors have been encouraged to misuse <title> so far for a > > different reason: the lack of a well-defined standard for presenting > > the other information they want shown in document summaries. So a > > better idea would be to explicitly define a very limited number of > > rel= attributes (as you already plan to do) to contain the non-title > > data that authors most often put in <title> -- mainly author and > > publisher -- and perhaps allow the rel= attribute to be placed in > > elements other than <link> and <a>. > > While this sounds like a good idea in principle, I don't see how it > affects my point (in terms of the examples above). The point is that you can do that to avoid entrenching a mismatch between the meaning of the <title> element and the meaning of its name. -- Matthew Thomas http://mpt.net.nz/ From ian at hixie.ch Fri Apr 1 02:58:12 2005 From: ian at hixie.ch (Ian Hickson) Date: Fri, 1 Apr 2005 10:58:12 +0000 (UTC) Subject: [whatwg] <h1> to <h6> in <body> In-Reply-To: <424D1FC7.4000705@myrealbox.com> References: <Pine.LNX.4.61.0503302359150.25644@dhalsim.dreamhost.com> <424BCBBE.2040308@cam.ac.uk> <Pine.LNX.4.61.0503311009300.25644@dhalsim.dreamhost.com> <424BEBFF.1080302@myrealbox.com> <Pine.LNX.4.61.0503311228200.25644@dhalsim.dreamhost.com> <424C177E.5030508@myrealbox.com> <Pine.LNX.4.61.0503311540350.13120@dhalsim.dreamhost.com> <424D1FC7.4000705@myrealbox.com> Message-ID: <Pine.LNX.4.61.0504011028380.32456@dhalsim.dreamhost.com> On Fri, 1 Apr 2005, Matthew Thomas wrote: > > > Another example: > > > > <title>Introduction to the mating rituals of bees > > ... > >

      Introduction

      > > And that's an unrealistic example, because it's treating two definitions > of the word "Introduction" as if they were the same. (As a heading by > itself, "Introduction" means an introductory section; but "Introduction > to X" means a basic presentation of X.) Sorry, that was a bad example indeed. I should have written: Introduction to The Mating Rituals of Bees ...

      Introduction

      ...(as in, the site is "The Mating Rituals of Bees"). Another related example: Dances used during bee mating rituals ...

      The Dances

      The point is the is doing a completely different job than the <h1>. Their jobs are related, naturally, but they one cannot be replaced by the other. > As you collect more realistic examples, you'll find that they follow the > pattern I described. While I agree that many real-world examples include author and publisher metadata in their titles, I do not agree that this is the be all and end all of differences between <h1> and <title>. > > Thus the <title> is not in any sense the parent of the <h1> or other > > headers. > > Not in Web pages designed to work with HTML 4 browsers, no. But if > you're requiring new browsers to present some rel= values, you could > take advantage of that to let <title> really be a title. <title> _is_ a title. I don't understand what is wrong with the situation as it stands now. Why would we want to change the semantics of <title> between HTML4 and HTML5? How is what I describe <title> to be, not a title? Also, note that the backwards-compatibility thing is very relevant here. People aren't going to stop using <title> to include information that is important out-of-context simply because in newer UAs you might be lucky and have the UA generate that information for you. Legacy UAs still need that infotmation in the <title>. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From mpt at myrealbox.com Sat Apr 2 02:34:17 2005 From: mpt at myrealbox.com (Matthew Thomas) Date: Sat, 02 Apr 2005 22:34:17 +1200 Subject: [whatwg] <h1> to <h6> in <body> In-Reply-To: <Pine.LNX.4.61.0504011028380.32456@dhalsim.dreamhost.com> References: <Pine.LNX.4.61.0503302359150.25644@dhalsim.dreamhost.com> <424BCBBE.2040308@cam.ac.uk> <Pine.LNX.4.61.0503311009300.25644@dhalsim.dreamhost.com> <424BEBFF.1080302@myrealbox.com> <Pine.LNX.4.61.0503311228200.25644@dhalsim.dreamhost.com> <424C177E.5030508@myrealbox.com> <Pine.LNX.4.61.0503311540350.13120@dhalsim.dreamhost.com> <424D1FC7.4000705@myrealbox.com> <Pine.LNX.4.61.0504011028380.32456@dhalsim.dreamhost.com> Message-ID: <424E7529.1050802@myrealbox.com> Ian Hickson wrote: >... > Sorry, that was a bad example indeed. I should have written: > > <title>Introduction to The Mating Rituals of Bees > ... >

      Introduction

      > > ....(as in, the site is "The Mating Rituals of Bees"). > > Another related example: > > Dances used during bee mating rituals > ... >

      The Dances

      This requires that the site be small enough for humans to bother assembling the in every page (rather than it being assembled by a CMS that doesn't know whether to use "to" or "used during" or "in" or whatever else), *and* that the author's carefulness and boredom thresholds are such that they will adapt the necessary context in the <title> for every page. That's highly implausible. Much more likely is what I described: the name of the site/subsite (which I too-loosely referred to as the "publisher"), either before or after the title of the page (and a parser can't tell which, making the document less useful), separated by some arbitrary punctuation (and a parser might well get that wrong if there's other punctuation in the components, making the document less useful again). > The point is the <title> is doing a completely different job than the > <h1>. Their jobs are related, naturally, but they one cannot be > replaced by the other. I wasn't suggesting they should be. >... > While I agree that many real-world examples include author and > publisher metadata in their titles, I do not agree that this is the be > all and end all of differences between <h1> and <title>. Good, that's a start. >... > > Not in Web pages designed to work with HTML 4 browsers, no. But if > > you're requiring new browsers to present some rel= values, you could > > take advantage of that to let <title> really be a title. > > <title> _is_ a title. I don't understand what is wrong with the > situation as it stands now. Why would we want to change the semantics > of <title> between HTML4 and HTML5? Because one day, I'd like search engines to be able to show me the title of a page in the same consistent position in a search result, and the name of the site (if available) in the same consistent position in a search result, and the name of the author (if available) in the same consistent position in a search result. They can't do that as long as <title> contains a subset of those components randomly chosen, randomly ordered, and randomly formatted. For that to happen, it would help slightly if the HTML specification stopped SHOULD-ing the current <title> behavior. It would help more if the HTML specification contained clear, straightforward markup for author and site name (and encouraged UAs to present this information when the document is taken out of context). > How is what I describe <title> to be, not a title? It's not not a title. (Awkward answer for an awkward question.) But what you describe <title> to be is only a subset of titles. > Also, note that the backwards-compatibility thing is very relevant > here. People aren't going to stop using <title> to include information > that is important out-of-context simply because in newer UAs you might > be lucky and have the UA generate that information for you. > Legacy UAs still need that infotmation in the <title>. Sure, it'll take a few years. I can wait. -- Matthew Thomas http://mpt.net.nz/ From ian at hixie.ch Sat Apr 2 02:52:42 2005 From: ian at hixie.ch (Ian Hickson) Date: Sat, 2 Apr 2005 10:52:42 +0000 (UTC) Subject: [whatwg] <h1> to <h6> in <body> In-Reply-To: <424E7529.1050802@myrealbox.com> References: <Pine.LNX.4.61.0503302359150.25644@dhalsim.dreamhost.com> <424BCBBE.2040308@cam.ac.uk> <Pine.LNX.4.61.0503311009300.25644@dhalsim.dreamhost.com> <424BEBFF.1080302@myrealbox.com> <Pine.LNX.4.61.0503311228200.25644@dhalsim.dreamhost.com> <424C177E.5030508@myrealbox.com> <Pine.LNX.4.61.0503311540350.13120@dhalsim.dreamhost.com> <424D1FC7.4000705@myrealbox.com> <Pine.LNX.4.61.0504011028380.32456@dhalsim.dreamhost.com> <424E7529.1050802@myrealbox.com> Message-ID: <Pine.LNX.4.61.0504021046080.26585@dhalsim.dreamhost.com> On Sat, 2 Apr 2005, Matthew Thomas wrote: > > > > [titles should include more context than h1s] > > This requires that the site be small enough for humans to bother > assembling the <title> in every page (rather than it being assembled by > a CMS that doesn't know whether to use "to" or "used during" or "in" or > whatever else), *and* that the author's carefulness and boredom > thresholds are such that they will adapt the necessary context in the > <title> for every page. That's highly implausible. Actually it happens all the time. Certainly it is as plausible as the fact that authors are going to be writing, say, valid markup. > I'd like search engines to be able to show me the title of a page in the > same consistent position in a search result, and the name of the site > (if available) in the same consistent position in a search result, and > the name of the author (if available) in the same consistent position in > a search result. > > For that to happen, it would help slightly if the HTML specification > stopped SHOULD-ing the current <title> behavior. It would help more if > the HTML specification contained clear, straightforward markup for > author and site name (and encouraged UAs to present this information > when the document is taken out of context). There are several options here, some of the easiest would be: <title site="" publisher="" author="">Page Title Page Title - <site></site> - <author></author> (<publisher></publisher>) ...or if people want to also provide links: Page Title I've noted your request and these options. Am I right in assuming that this request does not affect the headers discussion? -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From mattraymond at earthlink.net Mon Apr 4 07:11:05 2005 From: mattraymond at earthlink.net (Matthew Raymond) Date: Mon, 04 Apr 2005 10:11:05 -0400 Subject: [whatwg]

      to

      in In-Reply-To: References: Message-ID: <42514AF9.9040606@earthlink.net> Okay, here's my two cents on the heading/section issue... The element

      can be used in HTML4 multiple times. Therefore, it is not by default the title of a document. The most natural thing to assume is that is the title of the document, regardless of how people might abuse it. At best, you could say that when there is only one <h1> element, it might be the title. Even that is not a certainty. There are already <meta> values for much of the stuff that people abusively put in the <title> element. For example, "author" metadata is pretty much a standard already: | <meta name="author" content="Space Dog"> Therefore, why not just standardize it and deprecate the use of such values in <title> while giving <title> more specific semantics? Something like this: | <meta name="author" content="Ian Hickson"> | <meta name="sitename" content="WHATWG"> | <meta name="publisher" content="Hixie Industries"> The <link> element can be used for the stuff that requires a URL or hyperlink of some kind. As for sections, in my opinion there are two types of sections. The first is what we have now, an implied section system that is difficult to define but essentially goes from the beginning of one heading to the beginning of the next. The second type of section is one defined by markup such as <section>. This type should be the only type that can be styled and affect rendering. Generally, implied sections should begin at the beginning of a <h#> element and end at either the end of the document or at the beginning of another <h#> element. Allowing exceptions makes describing implied sections much more complicated. If developers need flexibility with regard to this, we can use language that says developers *should* start and end sections in such a manner rather than *must*. Importance (given by the number of the <h#> element) determines styling, and it implies structure, but the level of importance should not create missing sections within the document outline. If the importance level of a heading implies a missing parent section, the outline tree should first be constructed as if the implied nodes existed, then the children of missing sections should be collapsed into the position of their parents. That said, this is how I would process the sample markup: <body> <p>...</p> <unnamed section> <h1>A</h1> 1 A (importance level 1) <h2>B</h2> 1.1 B (importance level 2) <h3>C</h3> 1.1.1 C (importance level 3) <h2>D</h2> 1.2 D (importance level 2) <h3>E</h3> 1.2.1 E (importance level 3) <p>...</p> E <ol> E <li> E <h3>F</h3> 1.2.2 F (importance level 3) </li> F <li> F <h3>G</h3> 1.2.3 G (importance level 3) </li> G <li> G <h3>H</h3> 1.2.4 H (importance level 3) </li> H </ol> H <p>...</p> H <h4>I</h4> 1.2.4.1 I (importance level 4) <h2>J</h2> 1.3 J (importance level 2) <div> J <p>...</p> J <h2>K</h2> 1.4 K (importance level 2) <p>...</p> K </div> K <p>...</p> K <h3>L</h3> 1.4.1 L (importance level 3) <h2>M</h2> 1.5 M (importance level 2) <h4>N</h4> 1.5.1 N (importance level 4) <h3>O</h3> 1.5.2 O (importance level 3) <h1>P</h1> 2 P (importance level 1) <h1>Q</h1> 3 Q (importance level 1) <h2>R</h2> 3.1 R (importance level 2) </body> This would be the outline: Document | +-- <unnamed section> | +-- 1 A | | | +-- 1.1 B | | | | | +-- 1.1.1 C | | | +-- 1.2 D | | | | | +-- 1.2.1 E | | | | | +-- 1.2.2 F | | | | | +-- 1.2.3 G | | | | | +-- 1.2.4 H | | | | | +-- 1.2.4.1 I | | | +-- 1.3 J | | | +-- 1.4 K | | | | | +-- 1.4.1 L | | | +-- 1.5 M | | | +-- 1.5.1 N | | | +-- 1.5.2 O | +-- 2 P | +-- 3 Q | +-- 3.1 R From ian at hixie.ch Mon Apr 4 07:24:57 2005 From: ian at hixie.ch (Ian Hickson) Date: Mon, 4 Apr 2005 14:24:57 +0000 (UTC) Subject: [whatwg] <h1> to <h6> in <body> In-Reply-To: <42514AF9.9040606@earthlink.net> References: <Pine.LNX.4.61.0503302359150.25644@dhalsim.dreamhost.com> <42514AF9.9040606@earthlink.net> Message-ID: <Pine.LNX.4.61.0504041420020.27693@dhalsim.dreamhost.com> On Mon, 4 Apr 2005, Matthew Raymond wrote: > > That said, this is how I would process the sample markup: > > <body> > <p>...</p> <unnamed section> > <h1>A</h1> 1 A (importance level 1) I agree with most of what you said but the problem I have with the above is that it means almost every document will have an anonymous section at the top, and I don't think that makes sense. Even in the case of: <body> <h1>...</h1> ...there's an anonymous section, because you have a whitespace text node before the element. That doesn't really work for me. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From mattraymond at earthlink.net Mon Apr 4 21:25:40 2005 From: mattraymond at earthlink.net (Matthew Raymond) Date: Tue, 05 Apr 2005 00:25:40 -0400 Subject: [whatwg] <h1> to <h6> in <body> In-Reply-To: <Pine.LNX.4.61.0504041420020.27693@dhalsim.dreamhost.com> References: <Pine.LNX.4.61.0503302359150.25644@dhalsim.dreamhost.com> <42514AF9.9040606@earthlink.net> <Pine.LNX.4.61.0504041420020.27693@dhalsim.dreamhost.com> Message-ID: <42521344.2060304@earthlink.net> Ian Hickson wrote: > On Mon, 4 Apr 2005, Matthew Raymond wrote: > >> That said, this is how I would process the sample markup: >> >> <body> >> <p>...</p> <unnamed section> >> <h1>A</h1> 1 A (importance level 1) > > > I agree with most of what you said but the problem I have with the above > is that it means almost every document will have an anonymous section at > the top, and I don't think that makes sense. If "<p>...</p>" were instead a list of hyperlinks to different sections of the document, should that list be part of the first section? If the paragraph inside the <p> element starts with "I'd like to thank such-and-such for sticking by me while I wrote this...", is that part of the first section? The way I see it, if a heading starts a section, it should always be the start of a section. To do otherwise breaks consistency and may introduce semantics that are not backwards compatible in some situations. Better to use something like "[Top of the document]" that denotes that describes the position of the content without naming it, and also identifies that there is content before the first heading. | <body> | <p>...</p> | <Top> (importance level 1) | <h1>A</h1> | 1 A (importance level 1) > Even in the case of: > > <body> > <h1>...</h1> > > ...there's an anonymous section, because you have a whitespace text node > before the element. That doesn't really work for me. Why do outline generators need to worry about text nodes at the beginning that contain only whitespace? You're talking about content that won't be rendered, so for all intents and purposes, the heading is the first item in the <body>. Such whitespace can simply be ignored by outliners. However, if you are suggesting that such unrendered whitespace be associated with the first section, I have no problem with that. ;) From fora at annevankesteren.nl Tue Apr 5 01:36:55 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Tue, 05 Apr 2005 10:36:55 +0200 Subject: [whatwg] [html5] tags, elements and generated DOM Message-ID: <42524E27.6060006@annevankesteren.nl> I was wondering if HTML5 (WA1, at the moment) is going to define which tags are optional and which elements are implied. (This is of course only for text/html documents.) For example, what is the resulting DOM of this document: <title>Foo ... and this: Foo ..? Are both part of the implied HEAD element or is the SCRIPT element in the first example perhaps part of the BODY element? I believe both are possible. Is there a BODY element in this document (or, is there always a body element?): ... or this: Bar Is HTML5 going to list which start- and endtags are optional and how the resulting DOM tree should look like in situations were there are multiple options? -- Anne van Kesteren From lachlan.hunt at lachy.id.au Tue Apr 5 03:20:54 2005 From: lachlan.hunt at lachy.id.au (Lachlan Hunt) Date: Tue, 05 Apr 2005 20:20:54 +1000 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <42524E27.6060006@annevankesteren.nl> References: <42524E27.6060006@annevankesteren.nl> Message-ID: <42526686.6050001@lachy.id.au> Anne van Kesteren wrote: > I was wondering if HTML5 (WA1, at the moment) is going to define which > tags are optional and which elements are implied. (This is of course > only for text/html documents.) > > For example, what is the resulting DOM of this document: > > Foo > For this, there is no implied body, as there is no element to imply it. SGML rules apply here, as they are expressed in the DTD, and I don't think HTML 5 should change them. The resulting DOM will be the same as that for an HTML 4 document, which is: html | +-head | +-title +-script > > Foo Same as above, with the title and script elements swapped. > ..? Are both part of the implied HEAD element Yes. > or is the SCRIPT element in the first example perhaps part of the BODY element? No. > I believe both are possible. Both are possible, but since script is allowed within the content of the head element, its presence does not imply and . End tags are implied after encountering content which is not allowed within the element. > Is there a BODY element in this document (or, is there always a body > element?): > > > > ... or this: > > Bar No, there is no implied body element in either of those fragments. Run all of your examples through the validator, with the the Show Parse Tree option selected and see for yourself. The rules for an HTML 5 document will be the same as HTML 4. http://validator.w3.org/fragment-upload -- Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox From fora at annevankesteren.nl Tue Apr 5 03:37:27 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Tue, 05 Apr 2005 12:37:27 +0200 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <42526686.6050001@lachy.id.au> References: <42524E27.6060006@annevankesteren.nl> <42526686.6050001@lachy.id.au> Message-ID: <42526A67.9030907@annevankesteren.nl> Lachlan Hunt wrote: > No, there is no implied body element in either of those fragments. I appreciate your comments but I was wondering if you have taken into account what existing user agents do. Since that, not some out-of-date-not-followed SGML standard, should be standardized in my humble opinion. That also means that: body{background:lime}> ... generates: HTML HEAD STYLE #text BODY ... whether you like it or not. Same for the other cases. I do not think it makes sense to say all current UAs are non-compliant as many pages may rely on the kind of DOM they generate. -- Anne van Kesteren From ian at hixie.ch Tue Apr 5 04:12:58 2005 From: ian at hixie.ch (Ian Hickson) Date: Tue, 5 Apr 2005 11:12:58 +0000 (UTC) Subject: [whatwg]

      to

      in In-Reply-To: <42521344.2060304@earthlink.net> References: <42514AF9.9040606@earthlink.net> <42521344.2060304@earthlink.net> Message-ID: On Tue, 5 Apr 2005, Matthew Raymond wrote: > > > > > > That said, this is how I would process the sample markup: > > > > > > > > >

      ...

      > > >

      A

      1 A (importance level 1) > > > > I agree with most of what you said but the problem I have with the > > above is that it means almost every document will have an anonymous > > section at the top, and I don't think that makes sense. > > If "

      ...

      " were instead a list of hyperlinks to different > sections of the document, should that list be part of the first section? > If the paragraph inside the

      element starts with "I'd like to thank > such-and-such for sticking by me while I wrote this...", is that part of > the first section? If you maintain (as I do) that the first

      is the document's title -- the same as the element but without the requirement that it be phrased so that it can be quoted out of context -- then yes. The first section is the <body>, the <body> is the document's content, and the spec currently says: # The first heading in a sectioning element gives the header for that # section. The content at the top of the <body> is part of the <body>, and thus it is associated with the <body>'s heading. Why would you _not_ want the navigation links, or the byline, or the dedication, etc, to be associated with the document's first section? It seems correct to me. > The way I see it, if a heading starts a section, it should always be the > start of a section. To do otherwise breaks consistency and may introduce > semantics that are not backwards compatible in some situations. Do you have any examples? As far as I can tell we always want the first heading of a section (assuming it isn't preceeded by any subsections) to be the heading of the section. > Better to use something like "[Top of the document]" that denotes that > describes the position of the content without naming it, and also > identifies that there is content before the first heading. But this will be happening all over the place. <body> <p>Fox Publications Presents:</p> <h1>The Big Newspaper</h1> <article> <h2>Flood in town</h3> <section> <h2>Geography</h2> ... </section> </article> The first <p> is clearly part of the same section as the first <h1>. The whitespace node before the two <h2> elements are similarly obviously part of their <section>, and the <h2>s clearly don't start a separate section that is independent of the <article> and <section> elements. > > Even in the case of: > > > > <body> > > <h1>...</h1> > > > > ...there's an anonymous section, because you have a whitespace text > > node before the element. That doesn't really work for me. > > Why do outline generators need to worry about text nodes at the > beginning that contain only whitespace? Because the spec is defined in terms of nodes, and introducing special rules for nodes that only contain space characters is a recipe for confusion and lack of interoperability (I'm talking from experience here). > You're talking about content that won't be rendered, so for all intents > and purposes, the heading is the first item in the <body>. It might well be rendered (e.g. due to 'whitespace: pre'). > Such whitespace can simply be ignored by outliners. However, if you are > suggesting that such unrendered whitespace be associated with the first > section, I have no problem with that. ;) I am suggesting that, and by extension, I'm suggesting that the first node (whatever it is) be associated with te first section, and that that be associated with the first heading. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From ian at hixie.ch Tue Apr 5 04:17:04 2005 From: ian at hixie.ch (Ian Hickson) Date: Tue, 5 Apr 2005 11:17:04 +0000 (UTC) Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <42524E27.6060006@annevankesteren.nl> References: <42524E27.6060006@annevankesteren.nl> Message-ID: <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> On Tue, 5 Apr 2005, Anne van Kesteren wrote: > > I was wondering if HTML5 (WA1, at the moment) is going to define which > tags are optional and which elements are implied. (This is of course > only for text/html documents.) Yes. > For example, what is the resulting DOM of this document: > > <title>Foo > > > ... and this: > > > Foo > > ..? If I am not mistaken: > Are both part of the implied HEAD element or is the SCRIPT element in > the first example perhaps part of the BODY element? I believe both are > possible. This is not ambiguous in SGML, which defines this in detail. > Is there a BODY element in this document (or, is there always a body > element?): > > > > ... or this: > > Bar In HTML4 those are invalid ( can't be empty). The will always e implied, though. (For backwards compatibility with legacy parsers, the probably won't be.) > Is HTML5 going to list which start- and endtags are optional and how the > resulting DOM tree should look like in situations were there are > multiple options? In HTML4 there are never multiple options, but the answer to your question is yes. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From ian at hixie.ch Tue Apr 5 05:38:42 2005 From: ian at hixie.ch (Ian Hickson) Date: Tue, 5 Apr 2005 12:38:42 +0000 (UTC) Subject: [whatwg] Web Forms 2.0 Feedback In-Reply-To: <20050324234336.7855.qmail@web50908.mail.yahoo.com> References: <20050324234336.7855.qmail@web50908.mail.yahoo.com> Message-ID: On Thu, 24 Mar 2005, Csaba Gabor wrote: > > > > [simulating img clicks] > > What was your use case for wanting the event handler to trigger? > > 1. I had asked for the ability to simulate a REAL click complete with > simulated coordinates. Ah! You can do that by simply creating an event using the createEvent() method and then dispatching it into the DOM via dispatchEvent(). That will work for any event. > 2. Repetition model. > The Draft has a huge amount of space devoted to this, > but I haven't been able to think of a single compelling > argument for it. Most of the control enhancements such > as validation are conveniences, after all, but what they > have going for them is that they are very compact. This > repetition model is huge and messy and there are simple > javascript programming methods that allow you to do the > same thing. This developer's opinion is that I would > far rather roll my own and not even have the possibility > of using this construct. Yeah, several people have said that. We're thinking about removing it. On the other hand, several people have said that it is a godsend and that they are so happy it is there because they are fed up of rolling their own. At the moment it's about equally matched, in fact. The model is pretty simple and relatively easy to implement, so I'm leaning towards keeping it. > B) But I can't twist my mind about all this stuff with > allowing/not allowing block level contents inside DIVs > unless it's an odd numbered Tuesday of the month. Could > the document maybe provide some argument for this? This is just allowing you to do:
      ...which would otherwise be illegal (it is illegal in HTML4). Currently you have to do:
      > It states: > > The children of a form element must be block-level elements, unless one > of the ancestors of the form element is an element other than div whose > content model includes both block- and inline-level content, in which > case either block-level or inline-level content is allowed (but not > both). input elements of type hidden may be placed anywhere (both in > inline contexts and block contexts). > > But isn't the ancestor of every form (in an html document) > a body element (which is not a div element)? And I'm pretty > sure I've put both inline and block content into body elements. only accepts block-level content in HTML4 Strict. > So now I can only have block or inline elements in my forms, but not > both (like I've gotten accustomed to doing)? What happened to backwards > compatibility and why should spec developers even be concerned about > this one? I just don't get it. In HTML4 Strict you can only have block-level content in
      elements. This is simply relaxing this to allow inline-level content as well in certain cases where that makes semantic sense. > To my mind, a FORM element is a convenient way of saying, "unless > otherwise noted, every control within me will be submitted when I am > submitted." As such, why should it have any interest in the bock/inline > types of its descendents? I agree with you. The way it is defined in WF2 effectively makes transparent to all this, letting the ancestors and descendants figure it out between themselves. > I have two points that are not explicitly adressed: > A) There is mentioned a maximum length of about 1K for this > data type (in the RFC 2397). Couldn't this be extended? This will be extended in the Web Apps spec. > B) Security: Shouldn't it be mentioned that if the > the destination window gets a page like this, it should be > run in the context of the submitter? In general it is best to leave security concerns of this nature out of the normative definitions of the spec, in case new problems arise that were not considered during the development of the spec. However, the concern you raise has indeed been considered and is what UAs implement, I believe. > 5) When I first read the replace attribute of a form I thought good, > that is a useful innovation. Why destroy the document just to > repopulate a small section of it? So section 8 of form submission tells > me I should go see the section on: seeding a form with initial values to > find out how this is done. For a non XML person like me, that is scary > stuff there. Trying to figure out how ultra long strings with seemingly > random digits might be applicable to me (What I'm saying is, the HTML > person is going to be scratching his head upon reading it). Yeah, I expect we will need tutorials to make this understandable. The problem is the processing model as to be detailed, so the spec can't really be both simple for authors and implementors, and the latter take priority generally. :-) > And then my eyes alight on section > 6.2.4, 3rd paragraph, about image controls. > It says: > For image controls, instead of using the name given by the name attribute, the field's name is > checked against two names, the first being the value of the name attribute with the string .x > appended to it, and the second being the same but with .y appended instead. Thus image controls > are handled as if they were two controls. > > So, how does this make sense in a form seeding sense? It's a minor detail to do with keeping track of the controls being filled -- the above does not say that image inputs can be seeded. > Also, in step 4 of form submission, it is mentioned that: > Image buttons, during this step, are handled as if they were two controls, one with the > control's name with .x appended, whose value is the x coordinate selected by the user, and the > other with the control's name with .y appended, whose value is the y coordinate selected by the > user. The indices of these two virtual controls are handled separately and could, depending on > the values of other controls, end up with different values. > > I would say that these coordinates are not selected, but rather clicked They could be selected via some other means, UAs are not required to need a mouse for htis. > and shouldn't it be mentioned that they are relative to the control itself > (as opposed to the window or some other object). That is unchanged from, and therefore covered in, the HTML4 spec. > But more importantly, how could this .x and .y wind up with different > values (I assume you don't mean from each other) depending on the values > of other controls. I must say, I was sitting on the edge of my seat > with excitement upon seeing the 'For example' just below this, which > turned out not to give it away. It's an edge case. Say you have: ...then the image will generate an "i.x" and an "i.y" but not there are two "i.x"s and only one "i.y". This is just taking care of that. > 6) One thing I didn't think of before, but that replace attribute > reminded me... > Wouldn't it make sense to specify a way for a form or output contol, > IF IT REQUESTED, to be updated from the server on a continuing basis > (push technology years ago, if I remember right). I know it's late > in the game for this, but perhaps you will hear me out. This will be covered by the "remote events" part of the Web Apps spec: http://whatwg.org/specs/web-apps/current-work/#server-sent > 7. Finally, a curiosity question. SELECT elements are lacking > in this spec. Now, back in the summer it was pointed out to me > (Ian) that Hierachical menus will be available in Web Apps 1.0 > What I don't understand is why they are not part of this spec. > Isn't this their natural resting place? s can be nested in Web Forms 2. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From ian at hixie.ch Tue Apr 5 05:44:33 2005 From: ian at hixie.ch (Ian Hickson) Date: Tue, 5 Apr 2005 12:44:33 +0000 (UTC) Subject: [whatwg] WhatWG spec addition? Message-ID: UJS Contact US wrote: > > I gave the specs a quick scan - specifically for one element which I have an > interest in... that of the standard "select tag"... > > I believe this list selector should be updated to provide columnar data > formatting and enable properties that include: Greenbar (alternating colors > - odd rows/even rows)... This can be done using CSS and W3C Selector's :nth-child() pseudo-class. As a presentational detail, it should be out of scope of Web Forms. > ...header row, header column. > > I have a very rough "whitepaper" on my website showing an example... Please > take a look - it is a short read. > > http://www.aujsproduction.com/samples/wishlist/revampedselector.asp I agree that something like this is probably needed. We'll be looking at things like this in the Web Apps draft. > I will take a closer look at the entire doc to see what else I might be able > to "suggest". I look forward to it. Cheers, -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From ian at hixie.ch Tue Apr 5 06:45:19 2005 From: ian at hixie.ch (Ian Hickson) Date: Tue, 5 Apr 2005 13:45:19 +0000 (UTC) Subject: [whatwg] [WF2] The element In-Reply-To: <42495D8C.1080007@earthlink.net> References: <420A34FD.5040705@earthlink.net> <423ED662.2070805@earthlink.net> <42495D8C.1080007@earthlink.net> Message-ID: To summarise my position: solves some problems, and introduces others. Just like , it is not perfect. Since I do not consider the problems that it solves to be serious problems, and since I do not consider the problems it introduces to be any less important than the ones it sets out to solve, I do not see the advantage of introducing it. On Tue, 29 Mar 2005, Matthew Raymond wrote: > > > > If it uses scripting, isn't needed. > > Not true. See the jscalendar example. In that situation, it's far and > away easier to use (formerly ) than it is to > modify the script, especially if the author knows little or nothing > about Javascript and is simply using someone else's work. I wouldn't expect people to try to go from jscalendar to jscalendar + icomplex. I would expect them to go from jscalendar1 to jscalendar2, the second of which provides for WF2 UAs. > > > Can you explain exactly why it's so difficult to create server-side > > > scripts to deal with this issue? > > > > It's not, particularly; certainly no harder than supporting multiple > > date formats. The problem is mostly that it involves having multiple > > codepaths, which means more likelihood of errors (authors frequently > > only test in their UA), as well as opportunities for vulnerabilities > > (e.g. if the script doesn't expect to receive both date arguments at > > once). > > Nonsense. Here's the pseudocode: > > | if (exists(WF2_date_string)) { > | date1 = WF2_date_string; > | } else { > | date1 = select_year + "-" + select_month + "-" + select_day; > | } Sure. I've also seen code like: if (exists(WF2_date_string)) date1 = WF2_date_string; if (exists(select_year)) date1 = select_year + "-" + select_month + "-" + select_day; // later in the script if (exists(select_year)) date1 = select_year + "-" + select_month + "-" + select_day; if (exists(WF2_date_string)) date1 = WF2_date_string; > Then you just validate "date1" as if it where coming from a WF2 client. > This is the kind of problem they give programmers at a job interview for > people fresh out of college. Many Web developers are self-employed, or employed by people who hired them based on the fact that the demo Web page they were shown has a cool bit and funky use of . Sure, the professionals won't do this kind of mistake. > > > > It doesn't solve the problem of the default (simplest authoring) > > > > being zero fallback for legacy UAs. > > > > > > The simplest thing to author would be to use , so I don't see > > > your point. > > > > My point is it would be possible (and therefore, by Murphy's law, > > common) for authors to do: > > > > [ ] > > Exactly how would that work? In WF2-compliant HTML, nothing in the page > would show up after the element. Are you saying it's a > problem because XHTML parsers allow the more compact form even when a > closing tag is *required*? Eh? In XML, and are equivalent. > > > The problem here was that supporting is a huge pain in > > > the a$$, especially if you're a hand coder like myself. It involves > > > a massive amount of copying content and it's a pain to test because > > > you need a browser without frames support to check it. So most > > > people just said, "Screw it, let them get a browser that supports > > > frames!" > > > > Frames, scripting, alt text on images, fallback on <object>, > > All of which require additional effort on the part of the author. > > > "best viewed at 800x600", > > Additional effort required for testing on multiple devices and > resolutions. > > > "optimized for IE", > > The page may, in fact, use features that only exist in IE, or it may > have been designed before competing W3C standards were implemented on IE > and other browsers. It also indicates ignorance on the part of the > author regarding other methods. > > > "Your browser is not supported", > > Nonspecific. I have no way of knowing the context of the message above. > > > there are any number of examples of this mentality. > > The mentality you describe is simply a matter of laziness. To drop > <font>, an author has to learn CSS. To make a page work with multiple > screen sizes requires additional testing. If an author sees a sample > script that uses MS-proprietary stuff, they just stick it in and you get > "This site only works with IE". Lazyness and ignorance, and copy-and-pasting from other sites, yes. > The use of <dataentry> over <input> represents more than laziness. It > represents a conscious choice to avoid providing fallback. Even if you > were to assume that people believed <input type="unknown"> had no > fallback (<input type="text">), it would be trivial, a simple cut and > paste job, to add textbox fallback: > > | <dataentry type="unknown" [attributes to copy/paste]> > | <input type="text" [attributes to copy/paste]> > | </dataentry> > > Can you come up with even one scenario that excludes all malicious > intent on that part of all parties involved? One of my mottos is: don't blame on malice what can be blamed on incompetence. People who understand the specs will do the right thing, of course. But the majority won't and we have to at least reduce the chances of them screwing things up. This isn't a huge point -- see the first paragaph of this e-mail. But if the main concern of <dataentry> is to allow for decent fallback for legacy UAs, then it should most definitely _not_ allow _no_ fallback, IMHO. It should make things better in all cases, not potentially better and also potentially a lot worse. > > Murphy's law strongly applies to Web authoring. If there are two ways > > to do something, people _will_ pick the bad one. It is our > > responsibility, as designers of Web standards, to make it as hard as > > possible for authors to do the wrong thing. > > You aren't arguing for sound architecture. You're arguing for an end to > freedom of choice. If we're going to put limitations on people, we have > to have minimal justification. Can you suggest any criteria for that > threshold? Um, let's keep things in proportion. Arguing that not having a feature is a limitation on people and is an end to freedom of choice is a slippery slope to including everything in the spec. Let's please not go _there_. > > Ah! I see your mistake. You are assuming that WF2 will only be used by > > serious professionals. > > No, I assume that people who intentionally make a**es of themselves will > find themselves without an audience. The markup of most of the Web would tend to disagree with you. (Look at the source of Yahoo, MSN, and Google, the three most popular sites.) > > HTML (including WF2, we can hope) is used by millions of people, only > > a small fraction of which can be called "professionals". (And even > > many of those would probably pick the example 1 versions of our > > examples above.) > > If you honestly believe that, then you're screwed, because the people > you describe would willingly use Microsoft-proprietary solutions instead > of WF2. They would also willingly use WF2 instead of Microsoft-proprietary solutions -- the source is irrelevant. We have to make the standards-based solutions more appealing, that's all. (That and marketing.) > By the way, if you don't recommend WF2 UA detection, how are people > supposed to add those wonderful scripting enhancements on legacy clients > that are supposed to make up for the fallback shortcomings of <input>? I recommend feature detection, not WF2 UA detection. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From ian at hixie.ch Tue Apr 5 07:53:46 2005 From: ian at hixie.ch (Ian Hickson) Date: Tue, 5 Apr 2005 14:53:46 +0000 (UTC) Subject: [whatwg] Re: <section> and headings and other threads In-Reply-To: <424C9E03.9030107@inkedblade.net> References: <Pine.LNX.4.61.0503302359150.25644@dhalsim.dreamhost.com> <424BCBBE.2040308@cam.ac.uk> <424C9E03.9030107@inkedblade.net> Message-ID: <Pine.LNX.4.61.0504051411220.2016@dhalsim.dreamhost.com> Ok, the spec has been updated to define headings and sections: http://whatwg.org/specs/web-apps/current-work/#sectioning (Only section 2.4 and its subsections; ignore sections from 2.5 onwards.) Comments? Below is my response to all the header-related feedback received so far. On Sat, 13 Nov 2004, Laurens Holst wrote: > > > > Well, <h> wouldn't be backwards compatible at all. At least <h1> would > > look like a heading of sorts. > > I give you one abbreviation: CSS. Lynx doesn't support CSS. > > > <h1>Foo</h1> > > > <section> > > > <h3>Bar</h3> > > > <h6>Quuz</h6> > > > </section> > > > > > > Would be the same as H1, H2, H2, right? > > > > Yes. Actually in the model now in the spec that would be equivalent to three nested sections with H1, H2, H3 headers. > Arbitrary heading elements (1 out of 6) are incredibly verbose to express in > CSS, and you'd have to place h1|h2|h3|h4|h5|h6 in any XPath expression as > well. So in practice, I don't think this is a good option. > > section h1, section h2, section h3, section h4, section h5, section h6 { > font-size: xx-large; > } > section section h1, section section h2, section section h3, section section > h4, section section h5, section section h6 { > font-size: xx-large; > } > > etc. > > This should visually be the same as h1, h3, h6 and semantically the same as > sections with weird headings inside. I haven't looked into the styling solution yet but it is definitely by opinion that CSS should adapt to fit the markup and not the other way around. Since I'm on the CSSWG and an editor of the Selectors spec, I can work directly with the CSSWG on this. :-) > > And if we don't redefine <h1> (and <h2> to <h6>), then you end up with > > the weird situation of having six elements which could easily be used > > but end up with meaningless semantics. (And they would be inline > > elements in legacy UAs, which is even worse.) > > XHTML 2.0 does this. I disagree with many of XHTML2's design decisions. > > e.g. at the moment, this: > > > > <body> > > <h1>A</h1> > > <section> > > <h2>A.1</h2> > > <section> > > <h3>A.1.1</h3> > > </section> > > </section> > > </body> > > > > ...makes sense, but if we say you have to use a new element for > > headers, then the above is now meaningless and trying to make an > > outline from it would not do anything useful. > > That's just not true, or I'm missing your point. > > Try making a tree view of a document based on h1...h6 headings. > CSS: euh... > XSLT: euh... I can't speak for XSLT, but for CSS it would be something like: section { padding: 2em; border-left: 2px solid red; } ...which is in fact exactly what you wrote for the <h> version: > Now try making a tree view based on h headings. > CSS: section { padding: 2em; border-left: 2px solid red; } I'm not sure what the problem is. > > 3. It shouldn't be too easy to end up with meaningless markup when > > doing either of the above. So a random <h4> in the middle of an > > <h2> and an <h3> has to be defined as meaning _something_. Note that the current definitions do indeed define every possible use of <hx> headers, I think. > This is no different than the existing spec. The existing spec is silent on this. > This would mean a 4th level heading between a second- and a third-level > heading. Inside sections one could let the section level determine the > heading level and treat all headings the same, or use the highest level > of either the section or the heading. I don't see a need to define this > more specificly, as h1...h6 just don't go very well with sections. > That's the way it is, and it won't really harm anyone. Except those trying to create outliners that interoperate. For example for documents contents pages, for jumping between sections (like PDF viewers), etc etc. > I think [the spec proposals from back then are] needlessly complicated. > > Note that for navigation XHTML 2.0 has <nl> Navigation Lists, which would > correspond to your <navigation> tag. A sidebar (which side? how is it > different from navigation and why is navigation not a sidebar?) usually > consists out of links, and on places where it doesn't it is conte. And > <article> (content) is implied (everything not navigation). All in all this > set of tags you proposed sounds too specific to me. Please look at the current spec draft and let me know if you still have those concerns. Note that the tags in the spec come directly from research I did into what markup people use for typical sites (especially looking into <div> abuse). > > The other advantage of using the existing <hX> elements is that > > Assistive Technologies will continue working, reporting the section > > headers, instead of saying there are no headers on the page. > > Assistive Technologies don't work on pages using headers created with > font tags or styled divs either. Those pages are broken. > Assistive technologies can be updated. For technologies such as those, > section tags actually make much more sense than headings as they're > currently used. I think the current definition (as of a few days ago) should take core of this. On Thu, 18 Nov 2004, Henri Sivonen wrote: > > <h> and <section> allow na?ve inclusions, so that the content author or > the CMS does not need to deal with heading level shifting. > > IMO <h> and <section> are better than <h1> through <h6>, but I'm not > convince that they are better enough to warrant the incompatibility. > Besides, when you have both, the required CMS code gets even uglier than > what is needed with only <h1> through <h6>. <h1> through <h6> in <section> are equivalent to <h> in XHTML2 (mostly -- they are better defined than in XHTML2). They only imply relative header relations, not fixed ones. <h3> doesn't always mean "third level header", what it means depends on context, in the way described in the spec, just like <h> does. On Wed, 17 Nov 2004, James Graham wrote: > > > > This is also why I feel that <section> should define headings such > > that there is no way to end up with a "missing level". Not by making > > such constructs non-conforming, but by simply defining them so that it > > isn't a problem and the headings are automatically nested > > appropriately. Note that this is now done. > > I do like this idea, but it isn't really workable. We need authors to > > be able to use HTML5 markup and yet still have it render correctly in > > HTML4 UAs, which basically means that we need <h2>-<h6> to mean > > exactly what they do in HTML4, or at least mean that as much as > > anything else. So we couldn't say that <h3> meant a minor heading, > > since otherwise the following: > > > > <h1>...</h1> > > <section> > > <h2>...</h2> > > <section> > > <h3>...</h3> > > > > ...would not be exactly equivalent to: > > > > <h1>...</h1> > > <h2>...</h2> > > <h3>...</h3> > > > > ...which we want. > > Why are those two inequivalent under my definition? Under the current proposed spec, as under your definition, they are in fact equivalent now. > As far as I can tell, the differences come when one looks at fragments > like: > > <section> > <h1>..</h1> > <section> > <h1>..</h1> > <section> > <h1>..</h1> > > Unless I have missed something, in the current webapps spec, this is (in > HTML5) exactly equivalent to the two examples that you gave, Correct. > and indeed authors are encouraged to use this form. The spec now says "Sections may contain headers of any rank, but authors are strongly encouraged to either use only h1 elements, or to use elements of the appropriate rank for the section's nesting level". > Clearly this is not equivalent to the HTML4ised version: > > <h1>..</h1> > <h1>..</h1> > <h1>..</h1> > > My proposal would make this example semantically different to your > examples in both HTML4 and HTML5, and would retain the letter of the > HTML4 spec (and, indeed, the sense in which many people have interpreted > it). It therefore makes authors more likely to use markup that will > behave as expected in HTML4 UAs. I don't see any way we can have nested <section> elements _not_ mean nested sections. That strikes at the very core of what nesting a <section> element would mean, IMHO. On Sat, 20 Nov 2004, fantasai wrote: > > I would define things as follows: > > - The first header in a <section> is that section's top-level header > - Depth of section increases: > - when heading number increases > - when <section> nesting increases--but this increments from > the last top-level <section> header rather than the last header > - Depth of section does not decrease with a header number that is higher > than the section's top-level header's number. (This means all > subsequent header number increments increment based on this header's > number instead of the top-level header's number.) That's roughly what the spec says now (albeit in more detail and coping with nested sections better). > - Section header immediately following a section header of the same level > is considered a subtitle. That's what <header> is for. I see no reason to disallow empty sections, and I have problems defining anything of this nature because of the differences between: <h1/><h1/> <h1/> <h1/> <div><h1/></div><div><h1/></div> <h1/>x<h1/> <h1/><p/><h1/> Those should IMHO all be exactly identical as far as the outline goes. > Example of double header: > http://www.alistapart.com/ > (ISSN bit is <h6>, but is semantically a top-level header for the whole > section) Perfect example of the use case for <header>. On Mon, 15 Nov 2004, Matthew Raymond wrote: > > The following steps COMBINED should solve all problems related to > section headers: > > 1) The <h#> elements should be [deprecated]. > 4) The <h> element will be the only way to create a semantically valid header > for a section. I strongly disagree with this. I don't see the point. Introducing a new element just to replace an old one with near-identical semantics seems silly, especially in light of the fact that we want an easy migration path with a good backwards compatibility story. > 2) The <h#> elements will have no SEMANTIC meaning when inside a <section> > header. Their presentation, however, will remain the same. The spec defines their semantics now. > 3) Within an <h> element, <h#> elements (but not their contents) will be > ignored entirely. > > 5) There should only be one <h> element for each section. Any <h> element > after the first <h> element will have no semantic meaning, but can still have > the same presentation as the first <h> element. > > 6) The only way to create semantically valid subsections within a <section> > element is to create child <section> elements within the <section> element. That seems overly strict given that people will be doing these bad things anyway. I don't see the point in making it illegal (or saying an element "has no semantics", which I guess is the same thing) when we can just define what it means and make it ok. > I still feel that, structurally speaking, there should be a <section> > element for every section and subsection, even for sections that are > both leaves and immediate siblings. I agree, but I don't see that we can enforce it. > Therefore, I'm amending my previous > position with the following: > > 1) Nested headers are ignored. Therefore, this markup... > > <h1><h2>Header</h2></h1> > > ...Is the same as... > > <h1>Header</h1> No, it's the same as <h1></h1><h2>Header</h2> > 2) <h1>-<h6> have the same semantic value as in HTML 4.01, but are > additionally defined as not having any semantic meaning related to > document _structure_. Not sure what this means. HTML4 doesn't define them really, and I don't see what the second half of your sentence means. > 3) The <h> element is defined as being the same as <h1>-<h6>, except that the > importance level is obtained by the parent <section>, and <h> can only be used > within a <section>. Therefore, the following to example... Counter proposal: Just define <h1>-<h6> that way. This is what the current spec does. On Sun, 21 Nov 2004, fantasai wrote: > James Graham wrote: > > Backwards compatibility must be maintained. <h1> to <h6> must represent > > headings. Given the abuse of headings-as-structure on the existing web there > > may be some leeway in (re)defining the way that the headings interact to > > give e.g. an outline/toc. > > ... > > Multiple headings per section will probably happen anyway. So we may as well > > allow them. > > ... > > Many documents on the web do not have a formal structure of the sort that > > would be edxpected in a legal report. The heading model should be able to > > cope with that. > > ... > > It has to be possible to get an unambigous structure from the headings of a > > document. This means having an algorithm in the spec that UAs can implement > > that will give a 'tree view' of the document structure. Agreed. The spec has been updated to match this. Comments welcome! On Thu, 25 Nov 2004, dolphinling wrote: > > With respect to <section>, <h>, and <hn>, I would suggest the following: > > For any <hn>, if n is less than or equal to the number of sections it is > nested inside, it is semantically equivelant to <h>; > > <section> > <h1>1st level header</h1> > <p>content</p> > </section> > > <section> > <h>1st level header</h> > <p>content</p> > <section> > <h2>2nd level header</h2> > <p>content</p> > </section> > <section> > <h1>_Also_ 2nd level header</h1> > <p>content</p> > </section> > </section> > > Around any hn with n greater than the number of sections, there are implied > semantic sections. These implied sections end at the end of the containing > explicit section (or other containing block) or at the start of the next hn > with an equal or lower value of n; > > <section> > <h1>1st level header</h1> > <p>content</p> > <!-- section --> > <h2>2nd level header</h2> > <p>content</p> > <!-- /section --> > </section> Agreed. > <section> > <h1>1st level header</h1> > <p>content</p> > <!-- section --> > <!-- section --> > <h3>3rd level header</h3> > <p>content</p> > <!-- /section --> > <!-- /section --> > </section> Disagreed; the <h3> simply gets treated as an <h2> in this case, IMHO. I don't see the advantage of having deeper sections here. > For a legacy document: > > <!-- section --> > <h1>1st level header</h1> > <p>content</p> > <!-- section --> > <h2>2nd level header</h2> > <p>content</p> > <!-- section --> > <h3>3rd level header</h3> > <p>content</p> > <!-- end section --> > <!-- end section --> > <!-- /section --> Agreed. > A more complex example, with h and hn chosen off the top of my head: > > <section> > <h>1st level header</h> > <p>content</p> > <section> > <h1>2nd level header</h1> > <p>content</p> > <!-- /section --> > <!-- section --> <!-- This implied split I'm not sure about, but > it seems to be best [1] [2] --> > <h2>2nd level header</h2> > <p>content</p> > <section> > <h>3rd level header</h> > <p>content</p> > <section> > ... > > [1] This also answers the question of what happens if you have two headers in > a section. The possibilities are assume the second one is a subsection, assume > they're both subsections, or assume they're both normal sections, with an > implied split. I think the implied split is best... > > [2] ...Or it could just be declared invalid, and there could be a limit of one > header per section. Can you have content before the header, though? How about > subsections before the header? And what about implied subsections? Hmm... have > to think about it, but it might work. (Too lazy to revise my big long example, > though) The current spec takes care of these cases too. On Thu, 25 Nov 2004, Matthew Raymond wrote: > > If there is any difference in presentation or the level of importance, > then this contradicts the HTML 4.01 specification when the header > element is a child of a <section>. If you assume your <h> elements are > set up the way mine are, then this is the case, since in my model, <h> > elements on level "n" are semantically and presentationally identical to > <hn>. It looks to me like you're using <section> to enforce a minimum > importance level, and possibly to alter presentation. If so, I oppose > this. Why? > > Around any hn with n greater than the number of sections, there are implied > > semantic sections. These implied sections end at the end of the containing > > explicit section (or other containing block) or at the start of the next hn > > with an equal or lower value of n; > > > > <section> > > <h1>1st level header</h1> > > <p>content</p> > > <!-- section --> > > <h2>2nd level header</h2> > > <p>content</p> > > <!-- /section --> > > </section> > > Let's add a <section>, then: > > | <section> > | <section> > | <h1>2nd level header</h1> > | <p>content</p> > | <!-- /section --> > | <!-- section --> > | <h2>2nd level header</h2> > | <p>content</p> > | </section> > | </section> Indeed. The spec takes care of the above (the two examples above are semantically equivalent to the first, not the second). > The more complicated we make the rules with regards to implied sections, > the more likely we'll have the following problems: > > a) Webmasters will get confused and create markup that doesn't have the > structure or presentation they desire. Hopefully the rules are based on something simple enough to avoid that. (Someone should probably write a five line summary for the intro to the spec which can actually be understood by authors. My current summary is terse and to the point but probably hard to understand.) > b) The UA programmers will overlook certain cases, resulting in the > creation of outlines that violate the specification. Hopefully the way it is defined, in terms of an algorithm, should sidestep that issue. It is easy to test each point in the algorithm. > c) There will be specific cases where it may be impossible for > webmasters and vendors to determine how an outline should be generated, > resulting in intentional differences in the way markup is written for > these cases and how UAs handle it. In theory the algorithm covers every possible case. (Including odd cases like the element not being in the DOM.) On Thu, 31 Mar 2005, fantasai wrote: > James Graham wrote: > > Ian Hickson wrote: > > > > > There are two big issues here: > > > > > > 1. What do <h1> to <h6> mean in a <body>? > > > > > > 2. What do <h1> to <h6> mean in a <section>? > > > > Incidentially, unless I was convinced otherwise in some way that I've > > now forgotten, I believe that question 1 and 2 should be the same i.e. > > I second this. As Anne noted once on IRC, it should be possible to > copy-paste the article-text of an existing HTML document into a > <section> element and have all the elements inside retain the same > relative semantics. The spec has taken that into account and (with a few exceptions that are the entire point of <section>) the two are defined equivalently. In fact the spec only has one definition, which is shared by the two. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From lachlan.hunt at lachy.id.au Tue Apr 5 09:01:07 2005 From: lachlan.hunt at lachy.id.au (Lachlan Hunt) Date: Wed, 06 Apr 2005 02:01:07 +1000 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> Message-ID: <4252B643.6030308@lachy.id.au> Ian Hickson wrote: > On Tue, 5 Apr 2005, Anne van Kesteren wrote: >> <script type="text/javascript" src="bar"></script> >> <title>Foo</title> >> >>..? > > If I am not mistaken: > > <html><head><script.../> > <title.../></head><body></body></html> I believe you are mistaken. A conforming SGML parser will not imply the body element without any content to make it do so. >>Is there a BODY element in this document (or, is there always a body >>element?): >> >> <style type="text/css"> >> body{ background:lime } >> </style> >> >>... or this: >> >> <title>Bar</title> > > The <body> will always be implied, though. Not in a conforming SGML parser, though it seems to be in Mozilla, Opera and IE, as I checked using your DOM viewer [1]. Although Opera seems to have a bug in standards comliant mode (at least, according to the DOM viewer script) because neither the head or body elements appeared in the DOM using this markup: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <title>Foo</title> <script type="text/javascript" src="bar"></script> However, if the <body> element were to be automatically implied regardless, then the same would be true of the <tbody> element since both are required elements of <html> and <table>, respectively, and both have optional start- and end-tags,the rules for both must be the same. Neither Mozilla or Opera implies the missing tbody element within <table></table>, although IE does. However, OpenSP does not imply the missing elements in either case. The only documentation I could find that supports this, given the short amount of time I have to look, is this paragraph from section 9.2.3 of Martin Bryan's SGML and HTML Explained [2] that was explaining how the associated example should be parsed. | The start-tag can be omitted because the absence of this compulsory | first embedded subelement could be implied by the parser from the | content model... As soon as it sees a character other than a | start-tag delimiter (<) it will recognize that the character should be | preceded by [the start tag]. > (For backwards compatibility with legacy parsers, the <head> probably won't be.) The head element seems to be implied by Mozilla and IE. Opera and OpenSP correctly don't imply the missing head element. [1] http://www.hixie.ch/tests/adhoc/html/parsing/compat/viewer.html [2] http://www.is-thought.co.uk/book/sgml-9.htm#Omitting -- Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox From ian at hixie.ch Tue Apr 5 10:12:00 2005 From: ian at hixie.ch (Ian Hickson) Date: Tue, 5 Apr 2005 17:12:00 +0000 (UTC) Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <4252B643.6030308@lachy.id.au> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> <4252B643.6030308@lachy.id.au> Message-ID: <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> On Wed, 6 Apr 2005, Lachlan Hunt wrote: > > > > > > <script type="text/javascript" src="bar"></script> > > > <title>Foo</title> > > > > > > ..? > > > > If I am not mistaken: > > > > <html><head><script.../> > > <title.../></head><body></body></html> > > I believe you are mistaken. A conforming SGML parser will not imply the > body element without any content to make it do so. I meant in existing UAs, not in the spec. According to the HTML spec, the handling of the above is completely undefined since it is invalid. (Note that something being invalid or non-conformant does _not_ make the rendering undefined in most cases in Web Apps 1 / HTML5. That's one of the main things I'm making sure of.) > > > Is there a BODY element in this document (or, is there always a body > > > element?): > > > > > > <style type="text/css"> > > > body{ background:lime } > > > </style> > > > > > > ... or this: > > > > > > <title>Bar</title> > > > > The <body> will always be implied, though. > > Not in a conforming SGML parser, though it seems to be in Mozilla, Opera and > IE, as I checked using your DOM viewer [1]. Yeah, I meant in browsers, not per SGML. > However, if the <body> element were to be automatically implied > regardless, then the same would be true of the <tbody> element since > both are required elements of <html> and <table>, respectively, and both > have optional start- and end-tags,the rules for both must be the same. > Neither Mozilla or Opera implies the missing tbody element within > <table></table>, although IE does. However, OpenSP does not imply the > missing elements in either case. <tbody> is implied if there is a <tr> there. The history behind all these quirks is long and confused. <body> in particular has had an especially colourful past. > > (For backwards compatibility with legacy parsers, the <head> probably > > won't be.) > > The head element seems to be implied by Mozilla and IE. Even when there are no elements that imply a <head>? I meant, e.g., when parsing the empty string as HTML. My understanding was that no <head> element was generated in that case. > Opera and OpenSP correctly don't imply the missing head element. I'm not sure what you mean by "correctly" here since an HTML4 document without a <title> is invalid and thus parsing is undefined in HTML4. If there is a <title> then the <head> must be implied per SGML. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From fora at annevankesteren.nl Tue Apr 5 12:15:44 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Tue, 05 Apr 2005 21:15:44 +0200 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> <4252B643.6030308@lachy.id.au> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> Message-ID: <4252E3E0.6040705@annevankesteren.nl> Ian Hickson wrote: >> The head element seems to be implied by Mozilla and IE. > > Even when there are no elements that imply a <head>? I meant, e.g., > when parsing the empty string as HTML. My understanding was that no > <head> element was generated in that case. <data:text/html,> ... generates both in Firefox 1.0 and in recent nightlies: HTML HEAD BODY ... I haven't tested in other browsers. -- Anne van Kesteren <http://annevankesteren.nl/> From ian at hixie.ch Tue Apr 5 12:19:41 2005 From: ian at hixie.ch (Ian Hickson) Date: Tue, 5 Apr 2005 19:19:41 +0000 (UTC) Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <4252E3E0.6040705@annevankesteren.nl> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> <4252B643.6030308@lachy.id.au> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <4252E3E0.6040705@annevankesteren.nl> Message-ID: <Pine.LNX.4.61.0504051919320.27724@dhalsim.dreamhost.com> On Tue, 5 Apr 2005, Anne van Kesteren wrote: > Ian Hickson wrote: > > > The head element seems to be implied by Mozilla and IE. > > > > Even when there are no elements that imply a <head>? I meant, e.g., > > when parsing the empty string as HTML. My understanding was that no > > <head> element was generated in that case. > > <data:text/html,> > > ... generates both in Firefox 1.0 and in recent nightlies: > > HTML > HEAD > BODY I stand corrected. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From ian at hixie.ch Tue Apr 5 15:50:17 2005 From: ian at hixie.ch (Ian Hickson) Date: Tue, 5 Apr 2005 22:50:17 +0000 (UTC) Subject: [whatwg] Web Forms 2.0 In-Reply-To: <3f1451f505032521032e169afc@mail.gmail.com> References: <3f1451f505032521032e169afc@mail.gmail.com> Message-ID: <Pine.LNX.4.61.0504052249410.27724@dhalsim.dreamhost.com> On Sat, 26 Mar 2005, Joe Gregorio wrote: > In the Web Forms 2.0 Working Draft dated 16 March 2005 > > 5.6. Submitting the encoded form data set > > "If the specified method is not one of get, post, > put, or delete then it is treated as get in the tables below." > > It would be much better if just one word of that sentence was changed: > > "If the specified method is not one of get, post, > put, or delete then it is treated as *post* in the tables below." I agree. Sadly, doing this would break compatibility with existing implementations, which all treat unknown values as "get". -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From dean at edwards.name Tue Apr 5 15:55:38 2005 From: dean at edwards.name (Dean Edwards) Date: Tue, 05 Apr 2005 23:55:38 +0100 Subject: [whatwg] Web Forms 2.0 Feedback In-Reply-To: <Pine.LNX.4.61.0504051224350.20461@dhalsim.dreamhost.com> References: <20050324234336.7855.qmail@web50908.mail.yahoo.com> <Pine.LNX.4.61.0504051224350.20461@dhalsim.dreamhost.com> Message-ID: <4253176A.7090300@edwards.name> Ian Hickson wrote: > On Thu, 24 Mar 2005, Csaba Gabor wrote: >>2. Repetition model. >>The Draft has a huge amount of space devoted to this, >>but I haven't been able to think of a single compelling >>argument for it. Most of the control enhancements such >>as validation are conveniences, after all, but what they >>have going for them is that they are very compact. This >>repetition model is huge and messy and there are simple >>javascript programming methods that allow you to do the >>same thing. This developer's opinion is that I would >>far rather roll my own and not even have the possibility >>of using this construct. > I'd be interested to know what your home-rolled solution would look like. If we can cater for your requirements then we have a flexible model. Yes, there are already JavaScript alternatives but they are difficult to produce and become even more complex when trying for a cross-browser solution. What I like about the WF2 Repetition Model is that caters for 99% of cases. There will always be edge cases but existing DOM methods, as you say, provide a means for building particular models already. In other words, if you feel that the Repetition Model is inadequate, please specify... > > Yeah, several people have said that. We're thinking about removing it. On > the other hand, several people have said that it is a godsend and that > they are so happy it is there because they are fed up of rolling their > own. At the moment it's about equally matched, in fact. > > The model is pretty simple and relatively easy to implement, so I'm > leaning towards keeping it. > Ian, I thought we'd sorted this out. We had exactly the same discussion a few weeks back and nobody came up with any objections to the current model. I quite like Olav's idea to separate the Repetition Model from the existing WF2 spec. This would give us time to discuss it a bit more without impacting the rest of WF2. Maybe the Repetition Model should be separate anyway? Personally, if I was considering using it on a site, I'd prefer to print off a separate spec to read. But that's just me. I /do/ recognise that this is a bit of an editorial headache however... ;-) -dean From ian at hixie.ch Tue Apr 5 16:15:14 2005 From: ian at hixie.ch (Ian Hickson) Date: Tue, 5 Apr 2005 23:15:14 +0000 (UTC) Subject: [whatwg] Web Forms 2.0 Feedback In-Reply-To: <4253176A.7090300@edwards.name> References: <20050324234336.7855.qmail@web50908.mail.yahoo.com> <Pine.LNX.4.61.0504051224350.20461@dhalsim.dreamhost.com> <4253176A.7090300@edwards.name> Message-ID: <Pine.LNX.4.61.0504052307560.27724@dhalsim.dreamhost.com> On Tue, 5 Apr 2005, Dean Edwards wrote: > > > > Yeah, several people have said that. We're thinking about removing it. > > On the other hand, several people have said that it is a godsend and > > that they are so happy it is there because they are fed up of rolling > > their own. At the moment it's about equally matched, in fact. > > > > The model is pretty simple and relatively easy to implement, so I'm > > leaning towards keeping it. > > Ian, I thought we'd sorted this out. We had exactly the same discussion > a few weeks back and nobody came up with any objections to the current > model. Someone just did - Csaba. :-) > I quite like Olav's idea to separate the Repetition Model from > the existing WF2 spec. This would give us time to discuss it a bit more > without impacting the rest of WF2. Maybe the Repetition Model should be > separate anyway? Personally, if I was considering using it on a site, > I'd prefer to print off a separate spec to read. But that's just me. I > /do/ recognise that this is a bit of an editorial headache however... > ;-) There are basically three reasons for which I'd rather not split that bit out. First, as you say, it would be a pain to do. Second, it wouldn't be very clean. While the spec _looks_ like it's neatly organised and cutting it out would just mean cutting out section 3, it really isn't that simple. The repetition model is deeply embedded in the DOM sections and the form submission and seeding sections. (And rightfully so -- the repetition model integrates with those sections so as to provide the features that can't be easily provided if people implement it by hand.) The third reason is that I don't see why we need "more time" to discuss it. We've had the last two months to discuss it and there's been nothing really said. If it was really being discussed and some deadline was coming up, then I would agree -- but unless that actually happens, then I don't see how a delay would help. Anyway, I've removed the "open issue" in the status section about whether the repetition model should be kept. As you pointed out, the views in favour of keeping it are stronger than the views suggesting it be removed. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From joe.gregorio at gmail.com Tue Apr 5 17:27:13 2005 From: joe.gregorio at gmail.com (Joe Gregorio) Date: Tue, 5 Apr 2005 20:27:13 -0400 Subject: [whatwg] Web Forms 2.0 In-Reply-To: <Pine.LNX.4.61.0504052249410.27724@dhalsim.dreamhost.com> References: <3f1451f505032521032e169afc@mail.gmail.com> <Pine.LNX.4.61.0504052249410.27724@dhalsim.dreamhost.com> Message-ID: <3f1451f505040517273e0e6c1f@mail.gmail.com> On Apr 5, 2005 6:50 PM, Ian Hickson <ian at hixie.ch> wrote: > On Sat, 26 Mar 2005, Joe Gregorio wrote: > > > In the Web Forms 2.0 Working Draft dated 16 March 2005 > > > > 5.6. Submitting the encoded form data set > > > > "If the specified method is not one of get, post, > > put, or delete then it is treated as get in the tables below." > > > > It would be much better if just one word of that sentence was changed: > > > > "If the specified method is not one of get, post, > > put, or delete then it is treated as *post* in the tables below." > > I agree. Sadly, doing this would break compatibility with existing > implementations, which all treat unknown values as "get". Would that really 'break' anything? If that is the default behaviour today then clients would expect not to be able to send a request body with a method outside POST and PUT. Adding that capability won't break their code, will it? Thanks, -joe -- Joe Gregorio http://bitworking.org From ian at hixie.ch Tue Apr 5 17:36:53 2005 From: ian at hixie.ch (Ian Hickson) Date: Wed, 6 Apr 2005 00:36:53 +0000 (UTC) Subject: [whatwg] Web Forms 2.0 In-Reply-To: <3f1451f505040517273e0e6c1f@mail.gmail.com> References: <3f1451f505032521032e169afc@mail.gmail.com> <Pine.LNX.4.61.0504052249410.27724@dhalsim.dreamhost.com> <3f1451f505040517273e0e6c1f@mail.gmail.com> Message-ID: <Pine.LNX.4.61.0504060033350.27724@dhalsim.dreamhost.com> On Tue, 5 Apr 2005, Joe Gregorio wrote: > > > > > > "If the specified method is not one of get, post, > > > put, or delete then it is treated as *post* in the tables > > > below." > > > > I agree. Sadly, doing this would break compatibility with existing > > implementations, which all treat unknown values as "get". > > Would that really 'break' anything? If that is the default behaviour > today then clients would expect not to be able to send a request body > with a method outside POST and PUT. Adding that capability won't break > their code, will it? If anyone has a form that says: <form method="ge"> ...then at the moment it'll be treated as GET. If you change the default to "post", it'll no longer be treated as GET. I really don't feel comfortable changing things that all browsers do. If all the browsers interoperate on something, we should celebrate that thing and leave it well alone... It's so rare... -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From joe.gregorio at gmail.com Tue Apr 5 18:21:12 2005 From: joe.gregorio at gmail.com (Joe Gregorio) Date: Tue, 5 Apr 2005 21:21:12 -0400 Subject: [whatwg] Web Forms 2.0 In-Reply-To: <Pine.LNX.4.61.0504060033350.27724@dhalsim.dreamhost.com> References: <3f1451f505032521032e169afc@mail.gmail.com> <Pine.LNX.4.61.0504052249410.27724@dhalsim.dreamhost.com> <3f1451f505040517273e0e6c1f@mail.gmail.com> <Pine.LNX.4.61.0504060033350.27724@dhalsim.dreamhost.com> Message-ID: <3f1451f505040518216a5702c3@mail.gmail.com> On Apr 5, 2005 8:36 PM, Ian Hickson <ian at hixie.ch> wrote: > On Tue, 5 Apr 2005, Joe Gregorio wrote: > > > > > > > > "If the specified method is not one of get, post, > > > > put, or delete then it is treated as *post* in the tables > > > > below." > > > > > > I agree. Sadly, doing this would break compatibility with existing > > > implementations, which all treat unknown values as "get". > > > > Would that really 'break' anything? If that is the default behaviour > > today then clients would expect not to be able to send a request body > > with a method outside POST and PUT. Adding that capability won't break > > their code, will it? > > If anyone has a form that says: > > <form method="ge"> > > ...then at the moment it'll be treated as GET. If you change the default > to "post", it'll no longer be treated as GET. I knew there must be a case that I was over-looking. That makes sense. > I really don't feel comfortable changing things that all browsers do. If > all the browsers interoperate on something, we should celebrate that thing > and leave it well alone... It's so rare... I can't argue with that :) Thanks, -joe -- Joe Gregorio http://bitworking.org From lachlan.hunt at lachy.id.au Tue Apr 5 19:49:40 2005 From: lachlan.hunt at lachy.id.au (Lachlan Hunt) Date: Wed, 06 Apr 2005 12:49:40 +1000 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> <4252B643.6030308@lachy.id.au> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> Message-ID: <42534E44.8080101@lachy.id.au> Ian Hickson wrote: > On Wed, 6 Apr 2005, Lachlan Hunt wrote: >>>The <body> will always be implied, though. >> >>Not in a conforming SGML parser... > > Yeah, I meant in browsers, not per SGML. Ok, fair enough. But can you explain why Opera doesn't when in standards-compliant mode, as I explained in my previous e-mail. Is it a bug or intentional? > According to the HTML spec, the > handling of the above is completely undefined since it is invalid. (Note > that something being invalid or non-conformant does _not_ make the > rendering undefined in most cases in Web Apps 1 / HTML5. That's one of the > main things I'm making sure of.) Ok, if the spec is going to address this, then I think it should say something like: "If a required element with an optional start-tag is entirely missing from the document, a user agent *may* imply it and include it within the DOM. Missing elements with required start-tags *must not* be automatically implied. "Note: It is common for existing user agents to automatically imply both the head and body elements, even when those sections are omitted entirely from the document markup." I used "may", because if "must" or "should" were used instead, it may conflict with anything the SGML spec says on the matter and it would make OpenSP, and thus the validator, non-conformant. I would stick with "may" because, as I showed previously, existing UAs don't do the same for <tbody>. I included the part about start-tags because elements like <li> (which require a start-tag) do not be implied by existing UAs when they are missing. Also, while on the topic of handling invalid documents, is this spec going to attempt to address the <x><y></x></y> problem? >>However, if the <body> element were to be automatically implied >>regardless, then the same would be true of the <tbody> element... >>Neither Mozilla or Opera implies the missing tbody element within >><table></table>, although IE does. However, OpenSP does not imply the >>missing elements in either case. > > <tbody> is implied if there is a <tr> there. Yes, exactly, just like <body> is implied if there is a <p>, <div>, or other element/content there; but not if there isn't. >>Opera and OpenSP correctly don't imply the missing head element. > > I'm not sure what you mean by "correctly" here Well, I read somewhere that OpenSP is "the reference implementation" of SGML, so I assumed that means what it does is correct. In this case, Opera showed the same behaviour so I called it correct as well. However, if this behaviour is not defined in SGML at all, then I should not have said "correctly" either. > since an HTML4 document without a <title> is invalid and thus parsing > is undefined in HTML4. Is it not defined by SGML either? I really must get a copy of Goldfarb's SGML Handbook later and check for sure. > If there is a <title> then the <head> must be implied per SGML. Agreed. -- Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox From ian at hixie.ch Tue Apr 5 20:07:51 2005 From: ian at hixie.ch (Ian Hickson) Date: Wed, 6 Apr 2005 03:07:51 +0000 (UTC) Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <42534E44.8080101@lachy.id.au> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> <4252B643.6030308@lachy.id.au> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> Message-ID: <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> On Wed, 6 Apr 2005, Lachlan Hunt wrote: > > > > > > > > The <body> will always be implied, though. > > > > > > Not in a conforming SGML parser... > > > > Yeah, I meant in browsers, not per SGML. > > Ok, fair enough. But can you explain why Opera doesn't when in > standards- compliant mode, as I explained in my previous e-mail. Is it > a bug or intentional? Bug. > Ok, if the spec is going to address this, then I think it should say > something like: > > "If a required element with an optional start-tag is entirely missing > from the document, a user agent *may* imply it and include it within > the DOM. Missing elements with required start-tags *must not* be > automatically implied. > > "Note: It is common for existing user agents to automatically imply > both the head and body elements, even when those sections are omitted > entirely from the document markup." I'll investigate this in more detail when I write the section on how to parse HTML. Backwards-compatibility with the common subset of what is actually implemented is my top priority though. > I used "may", because if "must" or "should" were used instead, it may > conflict with anything the SGML spec says on the matter and it would > make OpenSP, and thus the validator, non-conformant. I would stick with > "may" because, as I showed previously, existing UAs don't do the same > for <tbody>. OpenSP is already non-conformant to HTML5. See: http://whatwg.org/specs/web-apps/current-work/#conformance In any case, assuming I'm still the editor when the parsing section gets written, HTML5 will most likely stop the pretense of HTML being an SGML application. > Also, while on the topic of handling invalid documents, is this spec > going to attempt to address the <x><y></x></y> problem? Probably not, as there is no generally accepted solution. In fact there is no known solution (to my knowledge) that is entirely satisfactory. > > since an HTML4 document without a <title> is invalid and thus parsing > > is undefined in HTML4. > > Is it not defined by SGML either? I really must get a copy of > Goldfarb's SGML Handbook later and check for sure. SGML doesn't define error handling rules either as far as I recall from the last time I read Goldfarb. But either way, HTML4 overrides SGML in several places and explicitly states that handling of invalid HTML documents is undefined and UA-dependent. (Well, actually, it's about as vague about this as about everything else. But relative to how explicit it is about everything else, it's pretty clear about this.) -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From lachlan.hunt at lachy.id.au Wed Apr 6 03:22:57 2005 From: lachlan.hunt at lachy.id.au (Lachlan Hunt) Date: Wed, 06 Apr 2005 20:22:57 +1000 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> <4252B643.6030308@lachy.id.au> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> Message-ID: <4253B881.3090206@lachy.id.au> Ian Hickson wrote: > OpenSP is already non-conformant to HTML5. See: > > http://whatwg.org/specs/web-apps/current-work/#conformance Actually I believe OpenSP is just the parser, and the validator is the conformance checker which uses OpenSP. Thus, OpenSP is not non-conformant according to that, but the validator is. However, I disagree with that statement anyway. Validators should not be non-conformant simply because they only do their job to validate a document and nothing else. I don't see any reason why such a statement needs to be included at all. If OpenSP was non-conformant, then any current or future UA that is built with OpenSP as the parser would be non-conformant also, which should not be the case. Since HTML is, and IMHO should remain, an application of SGML, the use of a conformant SGML parser should not make the user agent non-conformant. > In any case, assuming I'm still the editor when the parsing section gets > written, Why wouldn't you be? > HTML5 will most likely stop the pretense of HTML being an SGML application. What the? I disagree with that. HTML should remain an application of SGML, and browser's should be built to conform properly. Aside from the unimplemented SHORTTAG features (which can be turned off in the DTD anyway) and the mostly undefined error handling, what about HTML 5 will be so incompatible with SGML to warrant such a decision? >>Also, while on the topic of handling invalid documents, is this spec >>going to attempt to address the <x><y></x></y> problem? > > Probably not, as there is no generally accepted solution. In fact there is > no known solution (to my knowledge) that is entirely satisfactory. Agreed, since no existing browser I know of handles it in the most logical and, IMHO, the most correct way (ie. when a parent element is closed, all unclosed children elements should be closed and not reopened after); and no two browsers that I know of create completely compatible DOMs with any other method. -- Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox From fora at annevankesteren.nl Wed Apr 6 03:41:14 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Wed, 06 Apr 2005 12:41:14 +0200 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <4253B881.3090206@lachy.id.au> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> <4252B643.6030308@lachy.id.au> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> Message-ID: <4253BCCA.6090405@annevankesteren.nl> Lachlan Hunt wrote: >> HTML5 will most likely stop the pretense of HTML being an SGML >> application. +1. > and the mostly undefined error handling, what about HTML 5 will > be so incompatible with SGML to warrant such a decision? One example: <http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2005-January/002993.html> <http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2005-January/002999.html> <http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2005-January/003001.html> ... there are more I believe. -- Anne van Kesteren <http://annevankesteren.nl/> From jim.ley at gmail.com Wed Apr 6 03:48:16 2005 From: jim.ley at gmail.com (Jim Ley) Date: Wed, 6 Apr 2005 11:48:16 +0100 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <4253B881.3090206@lachy.id.au> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> <4252B643.6030308@lachy.id.au> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> Message-ID: <851c8d31050406034866ff215c@mail.gmail.com> On Apr 6, 2005 11:22 AM, Lachlan Hunt <lachlan.hunt at lachy.id.au> wrote: > However, I > disagree with that statement anyway. Validators should not be > non-conformant simply because they only do their job to validate a > document and nothing else. Absolutely, if there is a continued use of a doctype, then a validator is absolutely correct to validate to it, so either the validator should remain conformant, or the doctype should be dropped. (or explicitly marked as this is not an SGML or XML doctype it is simply some cargo cult you should include as your first line) > I don't see any reason why such a statement > needs to be included at all. Neither do I, it's completely unreasonable to say that an incredibly useful QA tool is non-conformant, simply because the editor doesn't consider those benefits in the same way. > > In any case, assuming I'm still the editor when the parsing section gets > > written, > > Why wouldn't you be? Because they might present the work to a standards body who gets a new editor? or some disgruntled reader may ... hmm, no, let's not go there... > > HTML5 will most likely stop the pretense of HTML being an SGML application. > > What the? I disagree with that. HTML should remain an application of > SGML, and browser's should be built to conform properly. Fully agree. Jim. From jim.ley at gmail.com Wed Apr 6 03:51:48 2005 From: jim.ley at gmail.com (Jim Ley) Date: Wed, 6 Apr 2005 11:51:48 +0100 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <4253BCCA.6090405@annevankesteren.nl> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> <4252B643.6030308@lachy.id.au> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> <4253BCCA.6090405@annevankesteren.nl> Message-ID: <851c8d310504060351c1cfe5@mail.gmail.com> On Apr 6, 2005 11:41 AM, Anne van Kesteren <fora at annevankesteren.nl> wrote: > Lachlan Hunt wrote: > > and the mostly undefined error handling, what about HTML 5 will > > be so incompatible with SGML to warrant such a decision? > > One example: > > <http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2005-January/002993.html> the specication has not currently taken this into the specification, and there has been no other support in the mailing list for doing this? This is clearly an example of how existing browsers are non-conformant, and simply making it conformant just blesses browsers in the future to continue violating specs safe in the knowledge that the spec will get changed to suit them, rather than the reverse. Exactly what's happened with CSS, do we really want to do it with HTML too? Cheers, Jim. From fora at annevankesteren.nl Wed Apr 6 03:52:02 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Wed, 06 Apr 2005 12:52:02 +0200 Subject: Issues (was: Re: [whatwg] Web Forms 2.0 Feedback) In-Reply-To: <Pine.LNX.4.61.0504052307560.27724@dhalsim.dreamhost.com> References: <20050324234336.7855.qmail@web50908.mail.yahoo.com> <Pine.LNX.4.61.0504051224350.20461@dhalsim.dreamhost.com> <4253176A.7090300@edwards.name> <Pine.LNX.4.61.0504052307560.27724@dhalsim.dreamhost.com> Message-ID: <4253BF52.4080309@annevankesteren.nl> Ian Hickson wrote: > Anyway, I've removed the "open issue" in the status section about whether > the repetition model should be kept. As you pointed out, the views in > favour of keeping it are stronger than the views suggesting it be removed. The other issue - about the form content model - has been solved as well IMHO. (And I personally think the first mentioned issue - about fallback - isn't really one either.) -- Anne van Kesteren <http://annevankesteren.nl/> From fora at annevankesteren.nl Wed Apr 6 03:58:35 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Wed, 06 Apr 2005 12:58:35 +0200 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <851c8d310504060351c1cfe5@mail.gmail.com> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> <4252B643.6030308@lachy.id.au> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> <4253BCCA.6090405@annevankesteren.nl> <851c8d310504060351c1cfe5@mail.gmail.com> Message-ID: <4253C0DB.2010808@annevankesteren.nl> Jim Ley wrote: > This is clearly an example of how existing browsers are > non-conformant, Doing otherwise would result in a lot of broken pagges and probably less market share for the browser. > and simply making it conformant just blesses browsers in the future > to continue violating specs safe in the knowledge that the spec will > get changed to suit them, rather than the reverse. I don't think that is true. Although specifications will evolve when they get feedback that particular sections just don't work. > Exactly what's happened with CSS, do we really want to do it with > HTML too? I guess. As we can't really change the behavior of HTML anymore on todays web. We can standardize it though so that the results you get are not "huh", but explainable. -- Anne van Kesteren <http://annevankesteren.nl/> From lachlan.hunt at lachy.id.au Wed Apr 6 03:58:47 2005 From: lachlan.hunt at lachy.id.au (Lachlan Hunt) Date: Wed, 06 Apr 2005 20:58:47 +1000 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <4253BCCA.6090405@annevankesteren.nl> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> <4252B643.6030308@lachy.id.au> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> <4253BCCA.6090405@annevankesteren.nl> Message-ID: <4253C0E7.30902@lachy.id.au> Anne van Kesteren wrote: > Lachlan Hunt wrote: > >>> HTML5 will most likely stop the pretense of HTML being an SGML >>> application. > > +1. -1 >> and the mostly undefined error handling, what about HTML 5 will be so >> incompatible with SGML to warrant such a decision? > > One example: > > <http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2005-January/002993.html> > <http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2005-January/002999.html> > <http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2005-January/003001.html> Documents that contain </ within script and style elements, that are not </script> and </style> respectively (or the SHORTTAG version </>) are broken. I see no problem with defining error handling for broken documents, but no need to break conformance with SGML in the process. HTML is an application of SGML, regardless of all the broken implementations and documents we currently have, and I don't want to see that changed. -- Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox From olav at olav.dk Wed Apr 6 04:02:06 2005 From: olav at olav.dk (=?UTF-8?B?T2xhdiBKdW5rZXIgS2rDpnI=?=) Date: Wed, 06 Apr 2005 13:02:06 +0200 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <4253C0E7.30902@lachy.id.au> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> <4252B643.6030308@lachy.id.au> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> <4253BCCA.6090405@annevankesteren.nl> <4253C0E7.30902@lachy.id.au> Message-ID: <4253C1AE.7050407@olav.dk> Lachlan Hunt wrote: > see no problem with defining error handling for broken > documents, but no need to break conformance with SGML in the process. > HTML is an application of SGML, regardless of all the broken > implementations and documents we currently have, and I don't want to see > that changed. An innocent question (no flamewar intended): What is the benefit of having HTML defined as an application of SGML ? regards Olav Junker Kj?r From olav at olav.dk Wed Apr 6 04:39:54 2005 From: olav at olav.dk (=?UTF-8?B?T2xhdiBKdW5rZXIgS2rDpnI=?=) Date: Wed, 06 Apr 2005 13:39:54 +0200 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <4253B881.3090206@lachy.id.au> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> <4252B643.6030308@lachy.id.au> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> Message-ID: <4253CA8A.1070608@olav.dk> Lachlan Hunt wrote: > Validators should not be > non-conformant simply because they only do their job to validate a > document and nothing else. I don't see any reason why such a statement > needs to be included at all. I like the requirement! The intention is (I assume) to prevent validators to claim "this document is valid HTML5" while the document might very well be invalid according to the spec. The problem is that validators use the term "valid" in a very limited sense, but web authors without a through understanding of DTD-validation would naturally assume that "valid" would mean "valid according to the spec". regards Olav Junker Kj?r From lachlan.hunt at lachy.id.au Wed Apr 6 05:07:40 2005 From: lachlan.hunt at lachy.id.au (Lachlan Hunt) Date: Wed, 06 Apr 2005 22:07:40 +1000 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <4253CA8A.1070608@olav.dk> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> <4252B643.6030308@lachy.id.au> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> <4253CA8A.1070608@olav.dk> Message-ID: <4253D10C.5000700@lachy.id.au> Olav Junker Kj?r wrote: > Lachlan Hunt wrote: > >> Validators should not be non-conformant simply because they only do >> their job to validate a document and nothing else. I don't see any >> reason why such a statement needs to be included at all. > > I like the requirement! > The intention is (I assume) to prevent validators to claim "this > document is valid HTML5" while the document might very well be invalid > according to the spec. No, you are using the term "invalid" incorrectly in this case. Validity has a fairly strict definition as it applies to SGML document validation, meaning something like "valid according to the formal definition expressed in the DTD". However, you are correct in that "valid" HTML 5 document may be *non-coformant* (not invalid) according to HTML5, as is the case for all other versions of (X)HTML. > The problem is that validators use the term "valid" in a very limited > sense, but web authors without a through understanding of DTD-validation > would naturally assume that "valid" would mean "valid according to the > spec". Lack of understanding by document authors about the terminology used is no reason to make a validator non-conformant. A validator is not lying by saying that a document is "valid", even if it's non-conformant. It is simply doing its job correctly, and the spec should allow it to do so without being non-coformant itself. -- Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox From lachlan.hunt at lachy.id.au Wed Apr 6 05:10:44 2005 From: lachlan.hunt at lachy.id.au (Lachlan Hunt) Date: Wed, 06 Apr 2005 22:10:44 +1000 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <4253C1AE.7050407@olav.dk> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> <4252B643.6030308@lachy.id.au> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> <4253BCCA.6090405@annevankesteren.nl> <4253C0E7.30902@lachy.id.au> <4253C1AE.7050407@olav.dk> Message-ID: <4253D1C4.3080507@lachy.id.au> Olav Junker Kj?r wrote: > Lachlan Hunt wrote: >> see no problem with defining error handling for broken documents, but >> no need to break conformance with SGML in the process. HTML is an >> application of SGML, regardless of all the broken implementations and >> documents we currently have, and I don't want to see that changed. > > An innocent question (no flamewar intended): Of course not, I try not to flame. :-) > What is the benefit of having HTML defined as an application of SGML ? So that it may be processed with SGML tools, and validated with an SGML based validator, and possibly even generated using XSLT. (I know XSLT can generate HTML4, but I don't know if it would be able to do HTML5 or not, even if it did remain an SGML application). Even if it is decided that HTML 5 is not formally an application of SGML, it must at least remain fully compatible with SGML, and thus a conformant HTML 5 document must be a conformant SGML document. XHTML variants of HTML 5 must be a conformant XML document instead, though I noticed that is not the case with square brackets in ID attributes in section 3.7.2 of WF2 (are there no other character(s) than can be used instead?). So, I guess, there's already no hope of HTML 5 conforming to anything. However, I would like to request that any defined error handling behaviour designed to cope with malformed documents that directly violates SGML, be made optional (but recommended) so that a user agent with a conforming SGML parser may still be conform to HTML 5. -- Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox From lachlan.hunt at lachy.id.au Wed Apr 6 05:10:52 2005 From: lachlan.hunt at lachy.id.au (Lachlan Hunt) Date: Wed, 06 Apr 2005 22:10:52 +1000 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <4253C0DB.2010808@annevankesteren.nl> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> <4252B643.6030308@lachy.id.au> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> <4253BCCA.6090405@annevankesteren.nl> <851c8d310504060351c1cfe5@mail.gmail.com> <4253C0DB.2010808@annevankesteren.nl> Message-ID: <4253D1CC.2000402@lachy.id.au> Anne van Kesteren wrote: > Jim Ley wrote: > >> This is clearly an example of how existing browsers are non-conformant, > > Doing otherwise would result in a lot of broken pagges Those pages are already broken. Authors just don't know it because the browsers are even more broken by being forced to deal with them. > and probably less market share for the browser. I thought this was about standardisation, not some marketing gimmick for brower vendors! -- Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox From fora at annevankesteren.nl Wed Apr 6 05:12:58 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Wed, 06 Apr 2005 14:12:58 +0200 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <4253D10C.5000700@lachy.id.au> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> <4252B643.6030308@lachy.id.au> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> <4253CA8A.1070608@olav.dk> <4253D10C.5000700@lachy.id.au> Message-ID: <4253D24A.8050308@annevankesteren.nl> Lachlan Hunt wrote: > Olav Junker Kj?r wrote: > >> Lachlan Hunt wrote: >> >>> Validators should not be non-conformant simply because they only do >>> their job to validate a document and nothing else. I don't see any >>> reason why such a statement needs to be included at all. I don't see anything about validators. I only read about "Conformance checkers". -- Anne van Kesteren <http://annevankesteren.nl/> From fora at annevankesteren.nl Wed Apr 6 05:15:13 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Wed, 06 Apr 2005 14:15:13 +0200 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <4253D1C4.3080507@lachy.id.au> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> <4252B643.6030308@lachy.id.au> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> <4253BCCA.6090405@annevankesteren.nl> <4253C0E7.30902@lachy.id.au> <4253C1AE.7050407@olav.dk> <4253D1C4.3080507@lachy.id.au> Message-ID: <4253D2D1.2010808@annevankesteren.nl> Lachlan Hunt wrote: > Even if it is decided that HTML 5 is not formally an application of > SGML, it must at least remain fully compatible with SGML, and thus a > conformant HTML 5 document must be a conformant SGML document. XHTML > variants of HTML 5 must be a conformant XML document instead, though I > noticed that is not the case with square brackets in ID attributes in > section 3.7.2 of WF2 (are there no other character(s) than can be used > instead?). So, I guess, there's already no hope of HTML 5 conforming to > anything. That is conforming to the XML syntax. It is just not valid. -- Anne van Kesteren <http://annevankesteren.nl/> From fora at annevankesteren.nl Wed Apr 6 05:20:27 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Wed, 06 Apr 2005 14:20:27 +0200 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <4253D1CC.2000402@lachy.id.au> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> <4252B643.6030308@lachy.id.au> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> <4253BCCA.6090405@annevankesteren.nl> <851c8d310504060351c1cfe5@mail.gmail.com> <4253C0DB.2010808@annevankesteren.nl> <4253D1CC.2000402@lachy.id.au> Message-ID: <4253D40B.4010303@annevankesteren.nl> Lachlan Hunt wrote: >>> This is clearly an example of how existing browsers are >>> non-conformant, >> >> Doing otherwise would result in a lot of broken pagges > > Those pages are already broken. Authors just don't know it because > the browsers are even more broken by being forced to deal with them. You could also argue that they interoparate pretty well. And that it would be nonsense to break that. (Especially since no browser does it the other way around.) >> and probably less market share for the browser. > > I thought this was about standardisation, not some marketing gimmick > for brower vendors! O common. I just meant that nobody would win anything if a browser became conformant here. It would be a lot better to fix the specification for these instances and make HTML a more logical language. -- Anne van Kesteren <http://annevankesteren.nl/> From lachlan.hunt at lachy.id.au Wed Apr 6 05:36:26 2005 From: lachlan.hunt at lachy.id.au (Lachlan Hunt) Date: Wed, 06 Apr 2005 22:36:26 +1000 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <4253D24A.8050308@annevankesteren.nl> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> <4252B643.6030308@lachy.id.au> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> <4253CA8A.1070608@olav.dk> <4253D10C.5000700@lachy.id.au> <4253D24A.8050308@annevankesteren.nl> Message-ID: <4253D7CA.2010807@lachy.id.au> Anne van Kesteren wrote: > Lachlan Hunt wrote: > >> Olav Junker Kj?r wrote: >> >>> Lachlan Hunt wrote: >>> >>>> Validators should not be non-conformant simply because they only do >>>> their job to validate a document and nothing else. I don't see any >>>> reason why such a statement needs to be included at all. > > I don't see anything about validators. I only read about "Conformance > checkers". In the note in that section [1]: | Conformance checkers that only perform validation are non-conformant, In fact, now that I've read it again, it seems rather contradictory. Just before the note, it states: | Conformance checkers are exempt from detecting errors that require | interpretation of the author's intent (for example, while a document | is non-conformant if the content of a blockquote element is not a | quote, conformance checkers do not have to check that blockquote | elements only contain quoted material). I would argue that conformance requirements that cannot be expressed by a DTD *are* constraints that require interpretation by the author. Therefore, that section seems to be saying that validators are exempt from checking some things, but are non-conformant for not checking them anyway. -- Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox From ian at hixie.ch Wed Apr 6 05:45:07 2005 From: ian at hixie.ch (Ian Hickson) Date: Wed, 6 Apr 2005 12:45:07 +0000 (UTC) Subject: [whatwg] Re: <section> and headings and other threads In-Reply-To: <op.sos4l6jk602458@localhost> References: <Pine.LNX.4.61.0503302359150.25644@dhalsim.dreamhost.com> <424BCBBE.2040308@cam.ac.uk> <424C9E03.9030107@inkedblade.net> <Pine.LNX.4.61.0504051411220.2016@dhalsim.dreamhost.com> <op.sos4l6jk602458@localhost> Message-ID: <Pine.LNX.4.61.0504061236230.28334@dhalsim.dreamhost.com> [Redirected to whatwg at whatwg.org. According to the mail headers in the message I received, you sent it to www-style at w3.org. I can't find it in the archives of either www-style nor whatwg, though.] On Wed, 6 Apr 2005, Kornel Lesinski wrote: > > If <address> applies only to the element it's in, > some duplication may be needed: > > My articles on my page: > <body> > <article> > <address>me!</address> > </article> > <article> > <address>me!</address> > </article> > <address>me!</address> > </body> > > I think best would be <address for=IDREFS> I don't really understand. Why would you want to give the contact information for the inner articles if it is the same as for the section that contains them? The inner <article>s are part of the <body>. Contact information for the <body> applies to the whole <body>. > Is text in <header> part of an article? Sure, any element that is a descendant of an <article> is part of that <article>, even if it is also part of something else (such as a <header>). > Is the following correct use of <header>? > > <article class="breakingNews"> > <header> > <h1>Something!</h1> > <p>Introduction to the news, usually in bold</p> > </header> > <p>More info on the subject goes here</p> > </article> Seems reasonable to me. > How about inline <aside>? > For inline comments, explanations, translators notes, etc. > > <p>Put the disc in the cd drive <aside>(that cup holder thingie)</aside></p> <aside> is for what are typically rendered in printed media as floating sidebars. Short inline comments are catered for by the "title" attribute: <p>Put the disc in the <span title="that cup holder thingie">cd drive</span></p> ...or, more typically, simply by marking the comment with parentheses, as you did in your example: <p>Put the disc in the cd drive (that cup holder thingie)</p> -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From fora at annevankesteren.nl Wed Apr 6 05:48:19 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Wed, 06 Apr 2005 14:48:19 +0200 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <4253D7CA.2010807@lachy.id.au> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> <4252B643.6030308@lachy.id.au> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> <4253CA8A.1070608@olav.dk> <4253D10C.5000700@lachy.id.au> <4253D24A.8050308@annevankesteren.nl> <4253D7CA.2010807@lachy.id.au> Message-ID: <4253DA93.8030606@annevankesteren.nl> Lachlan Hunt wrote: >>>>> Validators should not be non-conformant simply because they >>>>> only do their job to validate a document and nothing else. I >>>>> don't see any reason why such a statement needs to be >>>>> included at all. >> >> I don't see anything about validators. I only read about >> "Conformance checkers". > > In the note in that section [1]: > > | Conformance checkers that only perform validation are > non-conformant, So? That doesn't make it a validator. A conformance checker might do things validators do too, but that doesn't make it one. > In fact, now that I've read it again, it seems rather contradictory. How? > I would argue that conformance requirements that cannot be expressed > by a DTD *are* constraints that require interpretation by the author. Not really. Think about: <http://annevankesteren.nl/archives/2003/09/invalid-after-validated> > Therefore, that section seems to be saying that validators are exempt > from checking some things, but are non-conformant for not checking > them anyway. Note that this is about more than just validating and isn't about validators. -- Anne van Kesteren <http://annevankesteren.nl/> From kornel at ldreams.net Wed Apr 6 06:24:22 2005 From: kornel at ldreams.net (Kornel Lesinski) Date: Wed, 06 Apr 2005 14:24:22 +0100 Subject: [whatwg] Re: <section> and headings and other threads In-Reply-To: <Pine.LNX.4.61.0504061236230.28334@dhalsim.dreamhost.com> References: <Pine.LNX.4.61.0503302359150.25644@dhalsim.dreamhost.com> <424BCBBE.2040308@cam.ac.uk> <424C9E03.9030107@inkedblade.net> <Pine.LNX.4.61.0504051411220.2016@dhalsim.dreamhost.com> <op.sos4l6jk602458@localhost> <Pine.LNX.4.61.0504061236230.28334@dhalsim.dreamhost.com> Message-ID: <op.sotbiwty602458@idlaptop02.ideadesigners.local> On Wed, 06 Apr 2005 13:45:07 +0100, Ian Hickson <ian at hixie.ch> wrote: > [Redirected to whatwg at whatwg.org. According to the mail headers in the > message I received, you sent it to www-style at w3.org. I can't find it in > the archives of either www-style nor whatwg, though.] Oops :) >> If <address> applies only to the element it's in, >> some duplication may be needed: >> >> My articles on my page: >> <body> >> <article> >> <address>me!</address> >> </article> >> <article> >> <address>me!</address> >> </article> >> <address>me!</address> >> </body> >> >> I think best would be <address for=IDREFS> > > I don't really understand. Why would you want to give the contact > information for the inner articles if it is the same as for the section > that contains them? The inner <article>s are part of the <body>. Contact > information for the <body> applies to the whole <body>. "The article element represents a section of a page that consists of a composition that forms an independent part of a document" I assumed that because of this independence it needs its own <address> element. >> How about inline <aside>? >> For inline comments, explanations, translators notes, etc. >> >> <p>Put the disc in the cd drive <aside>(that cup holder >> thingie)</aside></p> > > <aside> is for what are typically rendered in printed media as floating > sidebars. Short inline comments are catered for by the "title" attribute: > > <p>Put the disc in the <span title="that cup holder thingie">cd > drive</span></p> Title attribute is not immediately visible on page and requires reader to pause and wait for it to appear. > ...or, more typically, simply by marking the comment with parentheses, as > you did in your example: > > <p>Put the disc in the cd drive (that cup holder thingie)</p> I think good use of aside element is possiblity to 'clean up' articles from comments: article aside {display: none;} This also may be useful for search engines - they could omit <aside> in quoted page fragments. That element could play role as opposite of <em> and <strong>. -- regards, Kornel Lesinski From lachlan.hunt at lachy.id.au Wed Apr 6 06:32:47 2005 From: lachlan.hunt at lachy.id.au (Lachlan Hunt) Date: Wed, 06 Apr 2005 23:32:47 +1000 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <4253DA93.8030606@annevankesteren.nl> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> <4252B643.6030308@lachy.id.au> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> <4253CA8A.1070608@olav.dk> <4253D10C.5000700@lachy.id.au> <4253D24A.8050308@annevankesteren.nl> <4253D7CA.2010807@lachy.id.au> <4253DA93.8030606@annevankesteren.nl> Message-ID: <4253E4FF.2090306@lachy.id.au> Anne van Kesteren wrote: > Lachlan Hunt wrote: >> | Conformance checkers that only perform validation are non-conformant, > > So? That doesn't make it a validator. What is a validator, if it is not a form of "conformance checker that only peforms validation" then? Or, the other way around, what is a "conformance checker that only performs validation" if it is not a validator? > A conformance checker might do things validators do too, but that > doesn't make it one. I belive such conformance checkers are often called lints and they are usually not true validators, despite what many claim, so you are correct in that a conformance checker may not be a validator. But, from what I understand of the wording in the spec, a validator is a form of conformance checker. Basically, metaphorically speaking, it's like a square is a rectangle, but a rectangle is not always a square. >> In fact, now that I've read it again, it seems rather contradictory. > > How? Did I not explain it well enough before? See below. >> I would argue that conformance requirements that cannot be expressed >> by a DTD *are* constraints that require interpretation by the author. > > Not really. Yes, really. > Think about: > <http://annevankesteren.nl/archives/2003/09/invalid-after-validated> Exactly, the conformance constraints violated in those examples cannot be expressed in an XML DTD (some can, and are, by the HTML4 DTD though), and require interpretation by the author. This merely illustrates the difference between "valid" and "conformant". >> Therefore, that section seems to be saying that validators are exempt >> from checking some things, but are non-conformant for not checking >> them anyway. That is how the spec is contradictory, except s/validators/conformance checkers/ and with "some things" meaning "errors that require interpretation of the author's intent" Because, if I am understanding correctly and a validator is a form of conformance checker, a validator cannot check constraints that are not expressed in the DTD and require them to be interpreted by the author. Therefore, validators are exempt from checking such constraints, but are non-conformant for not checking them anyway, as stated in the note. (well done if you are not totally confused by that, I tried to make it as clear as possible :-)) > Note that this is about more than just validating and isn't about > validators. Yes, but "Conformance checkers that only perform validation" are, unless I am mistaken, validators. Hixie, can you please clarify what that means, if I am mistaken? -- Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox From ian at hixie.ch Wed Apr 6 07:33:14 2005 From: ian at hixie.ch (Ian Hickson) Date: Wed, 6 Apr 2005 14:33:14 +0000 (UTC) Subject: [whatwg] Re: <section> and headings and other threads In-Reply-To: <op.sotbiwty602458@idlaptop02.ideadesigners.local> References: <Pine.LNX.4.61.0503302359150.25644@dhalsim.dreamhost.com> <424BCBBE.2040308@cam.ac.uk> <424C9E03.9030107@inkedblade.net> <Pine.LNX.4.61.0504051411220.2016@dhalsim.dreamhost.com> <op.sos4l6jk602458@localhost> <Pine.LNX.4.61.0504061236230.28334@dhalsim.dreamhost.com> <op.sotbiwty602458@idlaptop02.ideadesigners.local> Message-ID: <Pine.LNX.4.61.0504061423510.28334@dhalsim.dreamhost.com> On Wed, 6 Apr 2005, Kornel Lesinski wrote: > > > > I don't really understand. Why would you want to give the contact > > information for the inner articles if it is the same as for the > > section that contains them? The inner <article>s are part of the > > <body>. Contact information for the <body> applies to the whole > > <body>. > > "The article element represents a section of a page that consists of a > composition that forms an independent part of a document" > > I assumed that because of this independence it needs its own <address> > element. Ah, hmm. Ok, added: Note: An article element is "independent" in that its contents could stand alone, for example in syndication. However, the element is still associated with its ancestors; for instance, contact information that applies to a parent body element still covers the article as well. > > <aside> is for what are typically rendered in printed media as > > floating sidebars. Short inline comments are catered for by the > > "title" attribute: > > > > <p>Put the disc in the <span title="that cup holder thingie">cd > > drive</span></p> > > Title attribute is not immediately visible on page and requires reader > to pause and wait for it to appear. Where does the spec say that? There is nothing in the spec that requires that "title" attributes be rendered as tooltips. It is entirely up to the UA and the author's styling hints what it looks like. For instance with CSS an author could do: [title]:after { content: '(' attr(title) ')'; } > > ...or, more typically, simply by marking the comment with parentheses, > > as you did in your example: > > > > <p>Put the disc in the cd drive (that cup holder thingie)</p> > > I think good use of aside element is possiblity to 'clean up' articles > from comments: > > article aside {display: none;} > > This also may be useful for search engines - they could omit <aside> in > quoted page fragments. > > That element could play role as opposite of <em> and <strong>. I imagine we'll be using <small> for this purpose in due course. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From olav at olav.dk Wed Apr 6 07:41:27 2005 From: olav at olav.dk (=?UTF-8?B?T2xhdiBKdW5rZXIgS2rDpnI=?=) Date: Wed, 06 Apr 2005 16:41:27 +0200 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <4253E4FF.2090306@lachy.id.au> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> <4252B643.6030308@lachy.id.au> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> <4253CA8A.1070608@olav.dk> <4253D10C.5000700@lachy.id.au> <4253D24A.8050308@annevankesteren.nl> <4253D7CA.2010807@lachy.id.au> <4253DA93.8030606@annevankesteren.nl> <4253E4FF.2090306@lachy.id.au> Message-ID: <4253F517.3040409@olav.dk> Lachlan Hunt wrote: > Because, if I am understanding correctly and a validator is a form of > conformance checker, a validator cannot check constraints that are not > expressed in the DTD and require them to be interpreted by the author. > Therefore, validators are exempt from checking such constraints, but are > non-conformant for not checking them anyway, as stated in the note. > (well done if you are not totally confused by that, I tried to make it > as clear as possible :-)) I dont think that is correct. There are three types of conformance criteria: (1) Criteria that can be expressed in a DTD (2) Criteria that cannot be expressed by a DTD, but can still be checked by a machine. (3) Criteria that can only be checked by a human. A conformance checker must check (1) and (2). A simple validator which only checks (1) is therefore not conformant. regards From jim.ley at gmail.com Wed Apr 6 08:20:40 2005 From: jim.ley at gmail.com (Jim Ley) Date: Wed, 6 Apr 2005 16:20:40 +0100 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <4253F517.3040409@olav.dk> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> <4253CA8A.1070608@olav.dk> <4253D10C.5000700@lachy.id.au> <4253D24A.8050308@annevankesteren.nl> <4253D7CA.2010807@lachy.id.au> <4253DA93.8030606@annevankesteren.nl> <4253E4FF.2090306@lachy.id.au> <4253F517.3040409@olav.dk> Message-ID: <851c8d3105040608202cdc0819@mail.gmail.com> On Apr 6, 2005 3:41 PM, Olav Junker Kj?r <olav at olav.dk> wrote: > Lachlan Hunt wrote: > There are three types of conformance criteria: > (1) Criteria that can be expressed in a DTD > (2) Criteria that cannot be expressed by a DTD, but can still be checked > by a machine. > (3) Criteria that can only be checked by a human. > > A conformance checker must check (1) and (2). A simple validator which > only checks (1) is therefore not conformant. One of the motivations of the WHAT-WG stuff, is that existing users don't have to change their existing tools, processes and understanding, now all of sudden we're removing one of the most valuable QA tools available today, based on some spurious notion that all these existing users don't understand the QA tools limitations. Firstly I think the conclusions that the audience for WHAT-WG stuff doesn't understand the limitations of the validator is sustainable - where's the evidence? And secondly, there won't be any QA tools at all if the validator isn't one of them, so we'll be getting even more crap published, and far from cleaning up the correctness, we'll just have a whole new load of crud to rubber stamp as valid in WF2, now I realise it's to the advantage of existing browser manufacturers to rubber stamp complicated heuristic behaviour they've already solved into a spec (it prevents new entrants from coming along) but how is it to the advantage to the rest of us - understanding specifications becomes harder and harder and relies on the fact that we knew what happened before... I simply cannot see the point in removing one of the few QA tools that actually exists for HTML, and would like to hear the actual argument for doing so. (as this is a seperate issue to if application of SGML is something that it would be) Jim. From lachlan.hunt at lachy.id.au Wed Apr 6 08:35:12 2005 From: lachlan.hunt at lachy.id.au (Lachlan Hunt) Date: Thu, 07 Apr 2005 01:35:12 +1000 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <4253F517.3040409@olav.dk> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> <4252B643.6030308@lachy.id.au> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> <4253CA8A.1070608@olav.dk> <4253D10C.5000700@lachy.id.au> <4253D24A.8050308@annevankesteren.nl> <4253D7CA.2010807@lachy.id.au> <4253DA93.8030606@annevankesteren.nl> <4253E4FF.2090306@lachy.id.au> <4253F517.3040409@olav.dk> Message-ID: <425401B0.3040205@lachy.id.au> Olav Junker Kj?r wrote: > There are three types of conformance criteria: > (1) Criteria that can be expressed in a DTD > (2) Criteria that cannot be expressed by a DTD, but can still be checked > by a machine. Such as...? > (3) Criteria that can only be checked by a human. > > A conformance checker must check (1) and (2). A simple validator which > only checks (1) is therefore not conformant. Which is exactly what I'm complaining about. A user agent *must not* be automatically non-conformant for doing it's job correctly!!! -- Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox From fora at annevankesteren.nl Wed Apr 6 08:37:53 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Wed, 06 Apr 2005 17:37:53 +0200 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <425401B0.3040205@lachy.id.au> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> <4252B643.6030308@lachy.id.au> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> <4253CA8A.1070608@olav.dk> <4253D10C.5000700@lachy.id.au> <4253D24A.8050308@annevankesteren.nl> <4253D7CA.2010807@lachy.id.au> <4253DA93.8030606@annevankesteren.nl> <4253E4FF.2090306@lachy.id.au> <4253F517.3040409@olav.dk> <425401B0.3040205@lachy.id.au> Message-ID: <42540251.4080405@annevankesteren.nl> Lachlan Hunt wrote: >> (2) Criteria that cannot be expressed by a DTD, but can still be >> checked by a machine. > > Such as...? <a><em><a/></em></a> (Can also be expressed using RelaxNG or XML Schema.) You did read my entry, didn't you? -- Anne van Kesteren <http://annevankesteren.nl/> From olav at olav.dk Wed Apr 6 11:53:30 2005 From: olav at olav.dk (=?UTF-8?B?T2xhdiBKdW5rZXIgS2rDpnI=?=) Date: Wed, 06 Apr 2005 20:53:30 +0200 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <425401B0.3040205@lachy.id.au> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> <4252B643.6030308@lachy.id.au> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> <4253CA8A.1070608@olav.dk> <4253D10C.5000700@lachy.id.au> <4253D24A.8050308@annevankesteren.nl> <4253D7CA.2010807@lachy.id.au> <4253DA93.8030606@annevankesteren.nl> <4253E4FF.2090306@lachy.id.au> <4253F517.3040409@olav.dk> <425401B0.3040205@lachy.id.au> Message-ID: <4254302A.7040806@olav.dk> Lachlan Hunt wrote: >> (2) Criteria that cannot be expressed by a DTD, but can still be >> checked by a machine. > > Such as...? Some examples: The syntax of the numeric and date/time-values or the pattern attribute. The constraint that values of the min and max attributes must be valid according to the type of the control. The constraint that the for-attribute of a label must point to the id of an existing element. It's much more important for the functionality of a WF2 page that the values are valid according to type of the control, than that the page is valid according to the DTD. > A user agent *must not* be automatically non-conformant for doing it's > job correctly!!! A user agent which only supports some small parts of the spec should not claim to be compliant with the spec. regards Olav Junker Kj?r From hsivonen at iki.fi Wed Apr 6 13:53:53 2005 From: hsivonen at iki.fi (Henri Sivonen) Date: Wed, 6 Apr 2005 23:53:53 +0300 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <851c8d31050406034866ff215c@mail.gmail.com> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> <4252B643.6030308@lachy.id.au> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> <851c8d31050406034866ff215c@mail.gmail.com> Message-ID: <7b69ebc7357b4ca00fcca34d51135519@iki.fi> On Apr 6, 2005, at 13:48, Jim Ley wrote: > (or explicitly marked as this is not an SGML or XML doctype it is > simply > some cargo cult you should include as your first line) +1 -- Henri Sivonen hsivonen at iki.fi http://hsivonen.iki.fi/ From hsivonen at iki.fi Wed Apr 6 13:55:05 2005 From: hsivonen at iki.fi (Henri Sivonen) Date: Wed, 6 Apr 2005 23:55:05 +0300 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <4253B881.3090206@lachy.id.au> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> <4252B643.6030308@lachy.id.au> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> Message-ID: <78f32994657502e0c7098780f8e6476b@iki.fi> On Apr 6, 2005, at 13:22, Lachlan Hunt wrote: > If OpenSP was non-conformant, then any current or future UA that is > built with OpenSP as the parser would be non-conformant also, which > should not be the case. What OpenSP-based UAs are there besides validators? -- Henri Sivonen hsivonen at iki.fi http://hsivonen.iki.fi/ From hsivonen at iki.fi Wed Apr 6 14:05:42 2005 From: hsivonen at iki.fi (Henri Sivonen) Date: Thu, 7 Apr 2005 00:05:42 +0300 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <4253D1C4.3080507@lachy.id.au> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> <4252B643.6030308@lachy.id.au> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> <4253BCCA.6090405@annevankesteren.nl> <4253C0E7.30902@lachy.id.au> <4253C1AE.7050407@olav.dk> <4253D1C4.3080507@lachy.id.au> Message-ID: <804fb1fad3de4e31de31e1991dc3aaf4@iki.fi> On Apr 6, 2005, at 15:10, Lachlan Hunt wrote: > Olav Junker Kj?r wrote: >> What is the benefit of having HTML defined as an application of SGML ? > > So that it may be processed with SGML tools, Can we focus on real use cases, please? Who would anyone want to use SGML tools (except perhaps for feel-good validation pending proper conformance checkers) now that tag soup tools and XML tools exist? > and possibly even generated using XSLT. An XSLT transformer is an XML tool--not an SGML tool. You can generate HTML 4 or What WG HTML using XSLT by writing your transformation to produce XHTML, taking SAX output from the transformer and using an HTML serializer at the end of the SAX pipeline. > Even if it is decided that HTML 5 is not formally an application of > SGML, it must at least remain fully compatible with SGML, and thus a > conformant HTML 5 document must be a conformant SGML document. At least I am still unconvinced about your "must". > XHTML variants of HTML 5 must be a conformant XML document instead, > though I noticed that is not the case with square brackets in ID > attributes in section 3.7.2 of WF2 That's not a problem if you don't claim they are ID attributes but attributes that happen to be named id. -- Henri Sivonen hsivonen at iki.fi http://hsivonen.iki.fi/ From jim.ley at gmail.com Wed Apr 6 14:50:18 2005 From: jim.ley at gmail.com (Jim Ley) Date: Wed, 6 Apr 2005 22:50:18 +0100 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <804fb1fad3de4e31de31e1991dc3aaf4@iki.fi> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> <4253BCCA.6090405@annevankesteren.nl> <4253C0E7.30902@lachy.id.au> <4253C1AE.7050407@olav.dk> <4253D1C4.3080507@lachy.id.au> <804fb1fad3de4e31de31e1991dc3aaf4@iki.fi> Message-ID: <851c8d31050406145017ec4373@mail.gmail.com> On Apr 6, 2005 10:05 PM, Henri Sivonen <hsivonen at iki.fi> wrote: > On Apr 6, 2005, at 15:10, Lachlan Hunt wrote: > > XHTML variants of HTML 5 must be a conformant XML document instead, > > though I noticed that is not the case with square brackets in ID > > attributes in section 3.7.2 of WF2 > > That's not a problem if you don't claim they are ID attributes but > attributes that happen to be named id. Which would mean we also have to start redfining DOM, so document.getElementById(...) is defined to work against things that happen to be named id and not just things that are ID's. Is it really worth going down this road? Jim. From lachlan.hunt at lachy.id.au Wed Apr 6 16:25:02 2005 From: lachlan.hunt at lachy.id.au (Lachlan Hunt) Date: Thu, 07 Apr 2005 09:25:02 +1000 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <42540251.4080405@annevankesteren.nl> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> <4252B643.6030308@lachy.id.au> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> <4253CA8A.1070608@olav.dk> <4253D10C.5000700@lachy.id.au> <4253D24A.8050308@annevankesteren.nl> <4253D7CA.2010807@lachy.id.au> <4253DA93.8030606@annevankesteren.nl> <4253E4FF.2090306@lachy.id.au> <4253F517.3040409@olav.dk> <425401B0.3040205@lachy.id.au> <42540251.4080405@annevankesteren.nl> Message-ID: <42546FCE.5070900@lachy.id.au> Anne van Kesteren wrote: > Lachlan Hunt wrote: > >>> (2) Criteria that cannot be expressed by a DTD, but can still be >>> checked by a machine. >> >> Such as...? > > <a><em><a/></em></a> That can be, and is expressed in the HTML4 DTD with: <!ELEMENT A - - (%inline;)* -(A) -- anchor --> Though, I don't beleive it can be expressed with an XML DTD. > (Can also be expressed using RelaxNG or XML Schema.) Of course, schema's are also included within my use of DTD above when talking about XML versions (though I was originally only referring to SGML), so the above would be something that can be checked by a machine. -- Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox From ian at hixie.ch Wed Apr 6 17:01:13 2005 From: ian at hixie.ch (Ian Hickson) Date: Thu, 7 Apr 2005 00:01:13 +0000 (UTC) Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <42546FCE.5070900@lachy.id.au> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> <4252B643.6030308@lachy.id.au> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> <4253CA8A.1070608@olav.dk> <4253D10C.5000700@lachy.id.au> <4253D24A.8050308@annevankesteren.nl> <4253D7CA.2010807@lachy.id.au> <4253DA93.8030606@annevankesteren.nl> <4253E4FF.2090306@lachy.id.au> <4253F517.3040409@olav.dk> <425401B0.3040205@lachy.id.au> <42540251.4080405@annevankesteren.nl> <42546FCE.5070900@lachy.id.au> Message-ID: <Pine.LNX.4.61.0504062335130.20461@dhalsim.dreamhost.com> I'll be replying to the other parts of this thread in due course, but just to jump in here: On Thu, 7 Apr 2005, Lachlan Hunt wrote: > Olav Junker Kj?r wrote: > > > > Criteria that cannot be expressed by a DTD, but can still be checked > > by a machine. > > Such as...? [...] > > Of course, schema's are also included within my use of DTD above when > talking about XML versions (though I was originally only referring to > SGML), so the above would be something that can be checked by a machine. Here is something that could easily be checked by a machine but could not be checked by any of the above, to my knowledge: "The <foo> element must have three attributes, a, b, and c. The attributes must have integer values. The total of the values given by a+b must equal c plus the number of <foo> elements in the document." Ok, it's a contrived case. Here's a less contrived one: <input> elements with a "type" attribute set to "radio" are part of radio button groups that consist of all those <input type="radio"> elements that are associated with a particular form (either via the form="" attribute or by being descendants of a <form>) and that have the same value for their "name" attribute. Only one such <input> element per radio button group may have the "checked" attribute set. The point is that while DTDs, schemas, and so forth, might be getting more expressive, at the end of the day they still can't express everything that the language might require. A conformance checker that doesn't check for all the machine-checkable things is not compliant, just like a browser that doesn't support everything in the spec is not compliant. Existing DTD and schema languages can't express enough to be conformant conformance chckers on their own. That doesn't mean they can't be used as one part of a complete conformance checking solution, of course. But it does mean that as it stands now, validator.w3.org (or a version suitably altered to support HTML5 elements) could not be called a conformance checker for HTML5. This is not a bad thing. One hopes that HTML5's more detailed conformance requirements will encourage the development of truly useful conformance checkers that don't mislead people into thinking they have written correct documents when in fact they have just fixed the small subset of errors that the limited validator catches. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From ian at hixie.ch Wed Apr 6 18:07:07 2005 From: ian at hixie.ch (Ian Hickson) Date: Thu, 7 Apr 2005 01:07:07 +0000 (UTC) Subject: [whatwg] <p> elements containing other block-level elements Message-ID: <Pine.LNX.4.61.0504051557200.2016@dhalsim.dreamhost.com> One thing that XHTML2 does which makes a lot of sense to me is allow nesting of certain elements within <p> elements, as in: <p> For this recipe you need <ul> <li>an egg,</li> <li>flour, and</li> <li>butter.</li> </ul> Mix it all together and so forth. </p> Other elements that I could see being nested inside a paragraph are: * <ol> * <ul> * <dl> * <menu> * <table> * <pre> Now, one question is how exactly should this work with respect to nesting. I think the following should be allowed: <p> ... <table> <tr> <td> <p>...</p> </td> </tr> </table> </p> <p> ... <ol> <li>...</li> </ol> </p> <ol> <li> <p> ... <ol> <li> ... <pre> <p>...</p> <p>...</p> </pre> <p> ... <pre>...</pre> </p> I think the following should not: <p> ... <p>...</p> </p> <p> ... <ol> <li> ... <p>...</p> </li> </ol> </p> <pre> ... <pre>...</pre> </pre> <p> ... <table> <tr> <td> <section> ... <p> ... <ol> <li> <h4> ... I'm trying to work out exactly what the rules that describe the above actually are, but I'm interested in hearing whether people agree or disagree with my "good" and "bad" examples above. I'm especially interested in what use cases I may have missed (please don't say "I think this should be allowed" without giving a real-world example), and whether anyone thinks any of the cases I think should be allowed should not. Note that all of this would only be relevant to XHTML content (i.e. in an XML context), since in text/html HTML we are pretty much stuck with the existing parsing models which do things like close <p> elements upon hitting another block-level element. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From lachlan.hunt at lachy.id.au Wed Apr 6 18:36:55 2005 From: lachlan.hunt at lachy.id.au (Lachlan Hunt) Date: Thu, 07 Apr 2005 11:36:55 +1000 Subject: [whatwg] <p> elements containing other block-level elements In-Reply-To: <Pine.LNX.4.61.0504051557200.2016@dhalsim.dreamhost.com> References: <Pine.LNX.4.61.0504051557200.2016@dhalsim.dreamhost.com> Message-ID: <42548EB7.8080209@lachy.id.au> Ian Hickson wrote: > One thing that XHTML2 does which makes a lot of sense to me is allow > nesting of certain elements within <p> elements, as in: > ... > I think the following should be allowed: > > <p> > ... > <table> > <tr> > <td> > <p>...</p> > </td> > </tr> > </table> > </p> As you said below... ?I'm especially interested in what use cases I may have missed (please don't say "I think this should be allowed" without giving a real-world example), and whether anyone thinks any of the cases I think should be allowed should not.? however, you did not provide a use case. What is the use case for this? I can't think of any reason to allow tables to be nested inside <p>? > I'm trying to work out exactly what the rules that describe the above > actually are, but I'm interested in hearing whether people agree or > disagree with my "good" and "bad" examples above. I'm especially > interested in what use cases I may have missed (please don't say "I think > this should be allowed" without giving a real-world example), and whether > anyone thinks any of the cases I think should be allowed should not. You missed <p><blockquote/></p>. Do I really have to give a real world example for this? Well, ok... <p>As you said below: <blockquote>I'm especially interested in what use cases I may have missed (please don't say "I think this should be allowed" without giving a real-world example), and whether anyone thinks any of the cases I think should be allowed should not." </blockquote> however, you did not provide a use case. What is the use case for this? I can't think of any reason to allow tables to be nested inside &lt;p&gt;?</p> :-) <blockcode> should probably be allowed too, though it doesn't seem to be included in web apps. Oh well, that's probably a discussion for another thread anyway, if it hasn't already been discussed (I'll search the archives later). > Note that all of this would only be relevant to XHTML content (i.e. in an > XML context), since in text/html HTML we are pretty much stuck with the > existing parsing models which do things like close <p> elements upon > hitting another block-level element. It's a shame no browser actually reads the DTD, this wouldn't be a problem if they did :-(. This is one reason why HTML should be a true SGML application, and why browsers should have been built to conform. -- Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox From lachlan.hunt at lachy.id.au Wed Apr 6 23:09:23 2005 From: lachlan.hunt at lachy.id.au (Lachlan Hunt) Date: Thu, 07 Apr 2005 16:09:23 +1000 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <Pine.LNX.4.61.0504062335130.20461@dhalsim.dreamhost.com> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> <4252B643.6030308@lachy.id.au> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> <4253CA8A.1070608@olav.dk> <4253D10C.5000700@lachy.id.au> <4253D24A.8050308@annevankesteren.nl> <4253D7CA.2010807@lachy.id.au> <4253DA93.8030606@annevankesteren.nl> <4253E4FF.2090306@lachy.id.au> <4253F517.3040409@olav.dk> <425401B0.3040205@lachy.id.au> <42540251.4080405@annevankesteren.nl> <42546FCE.5070900@lachy.id.au> <Pine.LNX.4.61.0504062335130.20461@dhalsim.dreamhost.com> Message-ID: <4254CE93.4000403@lachy.id.au> Ian Hickson wrote: > Ok, it's a contrived case. Here's a less contrived one: <input> elements > with a "type" attribute set to "radio" are part of radio button groups > that consist of all those <input type="radio"> elements that are > associated with a particular form (either via the form="" attribute or by > being descendants of a <form>) and that have the same value for their > "name" attribute. Only one such <input> element per radio button group may > have the "checked" attribute set. Yes, that probably could be checked by a program. So, just for the fun of it (and to /prove my earlier comments wrong/), I quickly wrote a script that actually does (partially) check that. It's not perfect, it's quick and dirty and doesn't work in IE, but it's a good proof of concept and anyone actually writing a conformance checker can steal it if they like. :-D function checkRadio() { var radio, i; var radioButtons = getRadioButtons(); for (radio in radioButtons) { var checked = 0, buttons = radioButtons[radio]; for (i = 0; i < buttons.length; i++) { if (buttons[i].hasAttribute("checked")) { checked++; } } if (checked > 1) { alert("Warning: " + checked + " input elements in the radio " + "button group: \"" + radio + "\" have a checked attribute. " + "Only 1 is allowed per radio button group"); } } } function getRadioButtons(inputs) { inputs = inputs || document.getElementsByTagName("input"); var radio = new Array(); for (i = 0; i < inputs.length; i++) { if (inputs.item(i).getAttribute("type").toLowerCase() == "radio" && inputs.item(i).hasAttribute("name") && (name = inputs.item(i).getAttribute("name")) != "") { /* Checks for radio buttons with a valid name, non-empty name */ if (!radio[name]) radio[name] = new Array(); radio[name].push(inputs.item(i)); } } return radio; } window.onload = checkRadio; > A conformance checker that doesn't check for all the machine-checkable > things is not compliant, just like a browser that doesn't support > everything in the spec is not compliant. Fair enough, but is the spec going to specify exactly which conformance criteria fits into which of the 3 categories you've now added, or is expected that implementors will be able to make an educated guess to decide for themselves? > Existing DTD and schema languages > can't express enough to be conformant conformance chckers on their own. > That doesn't mean they can't be used as one part of a complete conformance > checking solution, of course. But it does mean that as it stands now, > validator.w3.org [...] could not be called a conformance checker for HTML5. I guess so, since validators don't claim document conformance anyway, only validity. > (or a version suitably altered to support HTML5 elements) It doesn't need to be altered, it only needs to be pointed to an HTML 5 DTD, with the system identifier (the URI) in the DOCTYPE. > This is not a bad thing. One hopes that HTML5's more detailed conformance > requirements will encourage the development of truly useful conformance > checkers that don't mislead people into thinking they have written correct > documents when in fact they have just fixed the small subset of errors > that the limited validator catches. I hope so, cause existing conformance checkers (often called "lints" [1]) for HTML aren't really useful cause they're often only subjective and issue bogus errors or don't catch all errors. [1] http://arealvalidator.com/real-validation.html -- Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox From hsivonen at iki.fi Wed Apr 6 23:22:25 2005 From: hsivonen at iki.fi (Henri Sivonen) Date: Thu, 7 Apr 2005 09:22:25 +0300 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <851c8d31050406145017ec4373@mail.gmail.com> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> <4253BCCA.6090405@annevankesteren.nl> <4253C0E7.30902@lachy.id.au> <4253C1AE.7050407@olav.dk> <4253D1C4.3080507@lachy.id.au> <804fb1fad3de4e31de31e1991dc3aaf4@iki.fi> <851c8d31050406145017ec4373@mail.gmail.com> Message-ID: <9482a0e1fe7bf39b23ffa528cb600825@iki.fi> On Apr 7, 2005, at 00:50, Jim Ley wrote: > Which would mean we also have to start redfining DOM, so > document.getElementById(...) is defined to work against things that > happen to be named id and not just things that are ID's. > > Is it really worth going down this road? If you mean: Is it worth going down the road of requiring getElementById to support arbitrary characters in ids? Perhaps not. Depends on what is implemented. If you mean: Is it worth going down the road of requiring getElementById to consider idness based on factors other that the ID type in a DTD? Definitely yes. Browsers don't process DTDs and the W3C already allows the DOM impl to use info other than the DTD to figure out which attributes count as ids. -- Henri Sivonen hsivonen at iki.fi http://hsivonen.iki.fi/ From lachlan.hunt at lachy.id.au Wed Apr 6 23:58:59 2005 From: lachlan.hunt at lachy.id.au (Lachlan Hunt) Date: Thu, 07 Apr 2005 16:58:59 +1000 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <78f32994657502e0c7098780f8e6476b@iki.fi> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> <4252B643.6030308@lachy.id.au> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> <78f32994657502e0c7098780f8e6476b@iki.fi> Message-ID: <4254DA33.3020409@lachy.id.au> Henri Sivonen wrote: > On Apr 6, 2005, at 13:22, Lachlan Hunt wrote: > >> If OpenSP was non-conformant, then any current or future UA that is >> built with OpenSP as the parser would be non-conformant also, which >> should not be the case. > > What OpenSP-based UAs are there besides validators? None that I know of yet, which is why I said current *or future* UAs. There's no reason why a full conformance checker couldn't be based on OpenSP. Infact, it would probably be a good idea for them to do so, since then they'll also be real validators too, which is part of the conformance requirements. -- Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox From fora at annevankesteren.nl Thu Apr 7 00:13:11 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Thu, 07 Apr 2005 09:13:11 +0200 Subject: [whatwg] <p> elements containing other block-level elements In-Reply-To: <Pine.LNX.4.61.0504051557200.2016@dhalsim.dreamhost.com> References: <Pine.LNX.4.61.0504051557200.2016@dhalsim.dreamhost.com> Message-ID: <4254DD87.7010604@annevankesteren.nl> Ian Hickson wrote: > One thing that XHTML2 does which makes a lot of sense to me is allow > nesting of certain elements within <p> elements, as in: > > <p> > For this recipe you need > <ul> > <li>an egg,</li> > <li>flour, and</li> > <li>butter.</li> > </ul> > Mix it all together and so forth. > </p> The problem is that you mix inline with block-level. Unless UL is redefined to be inline level within P I don't think this is a good idea. I like the idea of having either inline or block-level content. > Other elements that I could see being nested inside a paragraph are: > > * <ol> > * <ul> > * <dl> > * <menu> > * <table> I can agree with these, although I wonder about MENU. > * <pre> We have CODE and other nice inline elements for this. > I think the following should be allowed: > > <p> > ... > <table> > <tr> > <td> > <p>...</p> > </td> > </tr> > </table> > </p> That is indirectly nesting P elements, a bit ugly IMHO. It also doesn't make sense. > <p> > ... > <ol> > <li>...</li> > </ol> > </p> If OL is an inline element here, sure. > <ol> > <li> > <p> > ... > <ol> > <li> > ... Why would you want a P element there? > <pre> > <p>...</p> > <p>...</p> > </pre> Ouch! Forbid this. > <p> > ... > <pre>...</pre> > </p> Use case? > I think the following should not: Agreed with all examples. -- Anne van Kesteren <http://annevankesteren.nl/> From olav at olav.dk Thu Apr 7 02:24:55 2005 From: olav at olav.dk (=?ISO-8859-1?Q?Olav_Junker_Kj=E6r?=) Date: Thu, 07 Apr 2005 11:24:55 +0200 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <851c8d3105040608202cdc0819@mail.gmail.com> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> <4253CA8A.1070608@olav.dk> <4253D10C.5000700@lachy.id.au> <4253D24A.8050308@annevankesteren.nl> <4253D7CA.2010807@lachy.id.au> <4253DA93.8030606@annevankesteren.nl> <4253E4FF.2090306@lachy.id.au> <4253F517.3040409@olav.dk> <851c8d3105040608202cdc0819@mail.gmail.com> Message-ID: <4254FC67.9060606@olav.dk> Jim Ley wrote: > Firstly I think the conclusions that the audience for WHAT-WG stuff > doesn't understand the limitations of the validator is sustainable - > where's the evidence? People putting small icons on their pages to indicate that the page is valid. Also, lots of articles on the web about jumping through hoops to e.g. make a flash embed validate. > And secondly, there won't be any QA tools at all if the validator > isn't one of them, so we'll be getting even more crap published, and > far from cleaning up the correctness, we'll just have a whole new load > of crud to rubber stamp as valid in WF2, A conformance checker is a rubber stamp. Therefore its quite important that a conformance checker actually checks conformance to the spec, otherwise it is snake oil. As HTML applications becomes more complex it becomes more important that the markup and code is correct, but DTD-validation becomes even less sufficient to catch errors. A basic validity error like forgetting to close an <b>-tag will not cause the page to stop working. However, a syntax error in the initial value of a date control *will* cause the page to stop working as intended. > now I realise it's to the > advantage of existing browser manufacturers to rubber stamp > complicated heuristic behaviour they've already solved into a spec (it > prevents new entrants from coming along) but how is it to the > advantage to the rest of us - understanding specifications becomes > harder and harder and relies on the fact that we knew what happened > before... If you are referring to the paragraph about parse errors in <http://whatwg.org/specs/web-forms/current-work/#handling> I tend to agree with you. However, I dont think the requirement that conformance checkers should check conformance makes this worse. The reason comparatively few authors validate their pages, is that the immediate practical benefit is quite small. A conformance checker would be much more valuable since it might catch real errors which might cause the page to stop working. Presumably, this added benefit will cause more authors to check their pages. regards Olav Junker Kj?r From jim.ley at gmail.com Thu Apr 7 02:59:15 2005 From: jim.ley at gmail.com (Jim Ley) Date: Thu, 7 Apr 2005 10:59:15 +0100 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <4254FC67.9060606@olav.dk> References: <42524E27.6060006@annevankesteren.nl> <4253CA8A.1070608@olav.dk> <4253D10C.5000700@lachy.id.au> <4253D24A.8050308@annevankesteren.nl> <4253D7CA.2010807@lachy.id.au> <4253DA93.8030606@annevankesteren.nl> <4253E4FF.2090306@lachy.id.au> <4253F517.3040409@olav.dk> <851c8d3105040608202cdc0819@mail.gmail.com> <4254FC67.9060606@olav.dk> Message-ID: <851c8d310504070259217d5477@mail.gmail.com> On Apr 7, 2005 10:24 AM, Olav Junker Kj?r <olav at olav.dk> wrote: > Jim Ley wrote: > > Firstly I think the conclusions that the audience for WHAT-WG stuff > > doesn't understand the limitations of the validator is sustainable - > > where's the evidence? > > People putting small icons on their pages to indicate that the page is > valid. Also, lots of articles on the web about jumping through hoops to > e.g. make a flash embed validate. Which doesn't say anything that these users believe anything more of HTML validation than it is, it's a very important _part_ of QA. Given that there are no complete HTML conformance checkers in existence today for existing HTML technologies. It seems very strange to remove one of the few parts of QA available so what have we then got. Or are the WHAT-WG members going to step up and implement one? > As HTML applications becomes more complex I thought the whole point of the WHAT work was to make HTML applications simpler, not more complex, are you suggesting the current specs are failing in this area? > However, a > syntax error in the initial value of a date control *will* cause the > page to stop working as intended. Could you describe how? My reading of the error handling defined in the spec for that situation does not lead to the failure you describe. However the unclosed <B> element does exactly that. (in the XHTML dialect) > The reason comparatively few authors validate their pages, is that the > immediate practical benefit is quite small. Certainly, but the point is that it is valuable as part of a larger automated QA process, most people rely on non-automated QA methods, that's fine, if you can find and afford the testers. > A conformance checker would > be much more valuable since it might catch real errors which might cause > the page to stop working. But who's going to write it? There's no point talking about perfect tools when no-one's writing it... Jim. From ian at hixie.ch Thu Apr 7 03:44:24 2005 From: ian at hixie.ch (Ian Hickson) Date: Thu, 7 Apr 2005 10:44:24 +0000 (UTC) Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <4254CE93.4000403@lachy.id.au> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> <4252B643.6030308@lachy.id.au> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> <4253CA8A.1070608@olav.dk> <4253D10C.5000700@lachy.id.au> <4253D24A.8050308@annevankesteren.nl> <4253D7CA.2010807@lachy.id.au> <4253DA93.8030606@annevankesteren.nl> <4253E4FF.2090306@lachy.id.au> <4253F517.3040409@olav.dk> <425401B0.3040205@lachy.id.au> <42540251.4080405@annevankesteren.nl> <42546FCE.5070900@lachy.id.au> <Pine.LNX.4.61.0504062335130.20461@dhalsim.dreamhost.com> <4254CE93.4000403@lachy.id.au> Message-ID: <Pine.LNX.4.61.0504071037490.20461@dhalsim.dreamhost.com> On Thu, 7 Apr 2005, Lachlan Hunt wrote: > > > > A conformance checker that doesn't check for all the machine-checkable > > things is not compliant, just like a browser that doesn't support > > everything in the spec is not compliant. > > Fair enough, but is the spec going to specify exactly which conformance > criteria fits into which of the 3 categories you've now added, or is > expected that implementors will be able to make an educated guess to > decide for themselves? This is something I've been pondering myself, actually. I've been trying to think of a way to label the conformance requirements that conformence checkers are exempt from checking. In fact I'd quite like to label every conformance requirements with flags to indicate who it applies to. That's a lot of work though and may get quick messy, so I haven't done it yet. > It doesn't need to be altered, it only needs to be pointed to an HTML 5 > DTD, with the system identifier (the URI) in the DOCTYPE. At the moment I have no intention of personally writing a DTD, schema or similar for WHATWG specs. Fantasai once volunteered to do so, but I don't know the status of this. I am very reluctant to put a particular DTD in the DOCTYPE, though. Given that DTDs are highly inadequate for catching errors, it feels very wrong to me to be giving a particulr DTD any kind of legitimacy at that level. This doesn't stop conformance checker implements from writing DTDs of their own and then placing them in their SGML catalog so that the HTML5 DOCTYPE triggers that DTD, though. The point is that different conformance checker vendors should be able to write their own DTD for HTML5 to complement the rest of the conformance checking process. As the mix between DTD-based and other checking will probably be vendor-dependent, I don't see why we'd want to elevate any particular DTD to official status. > > This is not a bad thing. One hopes that HTML5's more detailed > > conformance requirements will encourage the development of truly > > useful conformance checkers that don't mislead people into thinking > > they have written correct documents when in fact they have just fixed > > the small subset of errors that the limited validator catches. > > I hope so, cause existing conformance checkers (often called "lints" > [1]) for HTML aren't really useful cause they're often only subjective > and issue bogus errors or don't catch all errors. Exactly. By being more precise about what conformance checkers must check, we should sidestep that problem. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From fora at annevankesteren.nl Thu Apr 7 03:48:29 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Thu, 07 Apr 2005 12:48:29 +0200 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <Pine.LNX.4.61.0504071037490.20461@dhalsim.dreamhost.com> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> <4252B643.6030308@lachy.id.au> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> <4253CA8A.1070608@olav.dk> <4253D10C.5000700@lachy.id.au> <4253D24A.8050308@annevankesteren.nl> <4253D7CA.2010807@lachy.id.au> <4253DA93.8030606@annevankesteren.nl> <4253E4FF.2090306@lachy.id.au> <4253F517.3040409@olav.dk> <425401B0.3040205@lachy.id.au> <42540251.4080405@annevankesteren.nl> <42546FCE.5070900@lachy.id.au> <Pine.LNX.4.61.0504062335130.20461@dhalsim.dreamhost.com> <4254CE93.4000403@lachy.id.au> <Pine.LNX.4.61.0504071037490.20461@dhalsim.dreamhost.com> Message-ID: <42550FFD.20201@annevankesteren.nl> Ian Hickson wrote: > This doesn't stop conformance checker implements from writing DTDs of > their own and then placing them in their SGML catalog so that the HTML5 > DOCTYPE triggers that DTD, though. The point is that different conformance > checker vendors should be able to write their own DTD for HTML5 to > complement the rest of the conformance checking process. As the mix > between DTD-based and other checking will probably be vendor-dependent, I > don't see why we'd want to elevate any particular DTD to official status. Entities. Or is that problem going to be solved by: "use UTF-8"? (Which would be something I wouldn't disagree with, although for mathematical symbols it might be a pain to enter them.) -- Anne van Kesteren <http://annevankesteren.nl/> From ian at hixie.ch Thu Apr 7 03:51:45 2005 From: ian at hixie.ch (Ian Hickson) Date: Thu, 7 Apr 2005 10:51:45 +0000 (UTC) Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <42550FFD.20201@annevankesteren.nl> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> <4252B643.6030308@lachy.id.au> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> <4253CA8A.1070608@olav.dk> <4253D10C.5000700@lachy.id.au> <4253D24A.8050308@annevankesteren.nl> <4253D7CA.2010807@lachy.id.au> <4253DA93.8030606@annevankesteren.nl> <4253E4FF.2090306@lachy.id.au> <4253F517.3040409@olav.dk> <425401B0.3040205@lachy.id.au> <42540251.4080405@annevankesteren.nl> <42546FCE.5070900@lachy.id.au> <Pine.LNX.4.61.0504062335130.20461@dhalsim.dreamhost.com> <4254CE93.4000403@lachy.id.au> <Pine.LNX.4.61.0504071037490.20461@dhalsim.dreamhost.com> <42550FFD.20201@annevankesteren.nl> Message-ID: <Pine.LNX.4.61.0504071050580.20461@dhalsim.dreamhost.com> On Thu, 7 Apr 2005, Anne van Kesteren wrote: > > Entities. Or is that problem going to be solved by: "use UTF-8"? (Which > would be something I wouldn't disagree with, although for mathematical > symbols it might be a pain to enter them.) In my world that is solved by no longer claiming that HTML is an SGML application. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From fora at annevankesteren.nl Thu Apr 7 03:54:05 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Thu, 07 Apr 2005 12:54:05 +0200 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <Pine.LNX.4.61.0504071050580.20461@dhalsim.dreamhost.com> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> <4252B643.6030308@lachy.id.au> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> <4253CA8A.1070608@olav.dk> <4253D10C.5000700@lachy.id.au> <4253D24A.8050308@annevankesteren.nl> <4253D7CA.2010807@lachy.id.au> <4253DA93.8030606@annevankesteren.nl> <4253E4FF.2090306@lachy.id.au> <4253F517.3040409@olav.dk> <425401B0.3040205@lachy.id.au> <42540251.4080405@annevankesteren.nl> <42546FCE.5070900@lachy.id.au> <Pine.LNX.4.61.0504062335130.20461@dhalsim.dreamhost.com> <4254CE93.4000403@lachy.id.au> <Pine.LNX.4.61.0504071037490.20461@dhalsim.dreamhost.com> <42550FFD.20201@annevankesteren.nl> <Pine.LNX.4.61.0504071050580.20461@dhalsim.dreamhost.com> Message-ID: <4255114D.10108@annevankesteren.nl> Ian Hickson wrote: > On Thu, 7 Apr 2005, Anne van Kesteren wrote: > >> Entities. Or is that problem going to be solved by: "use UTF-8"? >> (Which would be something I wouldn't disagree with, although for >> mathematical symbols it might be a pain to enter them.) > > In my world that is solved by no longer claiming that HTML is an SGML > application. And how does the XML part of your world feel about that? (I like the idea for HTML.) -- Anne van Kesteren <http://annevankesteren.nl/> From jim.ley at gmail.com Thu Apr 7 03:56:41 2005 From: jim.ley at gmail.com (Jim Ley) Date: Thu, 7 Apr 2005 11:56:41 +0100 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <Pine.LNX.4.61.0504071050580.20461@dhalsim.dreamhost.com> References: <42524E27.6060006@annevankesteren.nl> <4253F517.3040409@olav.dk> <425401B0.3040205@lachy.id.au> <42540251.4080405@annevankesteren.nl> <42546FCE.5070900@lachy.id.au> <Pine.LNX.4.61.0504062335130.20461@dhalsim.dreamhost.com> <4254CE93.4000403@lachy.id.au> <Pine.LNX.4.61.0504071037490.20461@dhalsim.dreamhost.com> <42550FFD.20201@annevankesteren.nl> <Pine.LNX.4.61.0504071050580.20461@dhalsim.dreamhost.com> Message-ID: <851c8d310504070356287eb4b1@mail.gmail.com> On Apr 7, 2005 11:51 AM, Ian Hickson <ian at hixie.ch> wrote: > On Thu, 7 Apr 2005, Anne van Kesteren wrote: > > > > Entities. Or is that problem going to be solved by: "use UTF-8"? (Which > > would be something I wouldn't disagree with, although for mathematical > > symbols it might be a pain to enter them.) > > In my world that is solved by no longer claiming that HTML is an SGML > application. So please state that clearly in the specification. Can you also explain the point of the <!DOCTYPE ... gibberish that the specs require at the top of documents? What are they doing, please remove them, they serve no purpose whatsoever. Or if they do serve a purpose, document what the purpose is. Jim. From ian at hixie.ch Thu Apr 7 03:58:07 2005 From: ian at hixie.ch (Ian Hickson) Date: Thu, 7 Apr 2005 10:58:07 +0000 (UTC) Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <4255114D.10108@annevankesteren.nl> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> <4252B643.6030308@lachy.id.au> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> <4253CA8A.1070608@olav.dk> <4253D10C.5000700@lachy.id.au> <4253D24A.8050308@annevankesteren.nl> <4253D7CA.2010807@lachy.id.au> <4253DA93.8030606@annevankesteren.nl> <4253E4FF.2090306@lachy.id.au> <4253F517.3040409@olav.dk> <425401B0.3040205@lachy.id.au> <42540251.4080405@annevankesteren.nl> <42546FCE.5070900@lachy.id.au> <Pine.LNX.4.61.0504062335130.20461@dhalsim.dreamhost.com> <4254CE93.4000403@lachy.id.au> <Pine.LNX.4.61.0504071037490.20461@dhalsim.dreamhost.com> <42550FFD.20201@annevankesteren.nl> <Pine.LNX.4.61.0504071050580.20461@dhalsim.dreamhost.com> <4255114D.10108@annevankesteren.nl> Message-ID: <Pine.LNX.4.61.0504071056170.20461@dhalsim.dreamhost.com> On Thu, 7 Apr 2005, Anne van Kesteren wrote: > > And how does the XML part of your world feel about [not having a DTD > meaning they can't use entities]? (I like the idea for HTML.) The current draft says that there is no particular DTD for XHTML5. It doesn't stop anyone from using one if they want to use entities. I suppose we could include one that just had the entities and had a known FPI so that UAs could permanently cache it. *shrug* -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From fora at annevankesteren.nl Thu Apr 7 04:01:02 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Thu, 07 Apr 2005 13:01:02 +0200 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <851c8d310504070356287eb4b1@mail.gmail.com> References: <42524E27.6060006@annevankesteren.nl> <4253F517.3040409@olav.dk> <425401B0.3040205@lachy.id.au> <42540251.4080405@annevankesteren.nl> <42546FCE.5070900@lachy.id.au> <Pine.LNX.4.61.0504062335130.20461@dhalsim.dreamhost.com> <4254CE93.4000403@lachy.id.au> <Pine.LNX.4.61.0504071037490.20461@dhalsim.dreamhost.com> <42550FFD.20201@annevankesteren.nl> <Pine.LNX.4.61.0504071050580.20461@dhalsim.dreamhost.com> <851c8d310504070356287eb4b1@mail.gmail.com> Message-ID: <425512EE.9060205@annevankesteren.nl> Jim Ley wrote: >>> Entities. Or is that problem going to be solved by: "use UTF-8"? >>> (Which would be something I wouldn't disagree with, although for >>> mathematical symbols it might be a pain to enter them.) >> >> In my world that is solved by no longer claiming that HTML is an >> SGML application. > > So please state that clearly in the specification. > > Can you also explain the point of the <!DOCTYPE ... gibberish that > the specs require at the top of documents? What are they doing, > please remove them, they serve no purpose whatsoever. Or if they do > serve a purpose, document what the purpose is. You should know the purpose I guess. (Standards mode.) I agree that it should be documentated. -- Anne van Kesteren <http://annevankesteren.nl/> From ian at hixie.ch Thu Apr 7 04:03:01 2005 From: ian at hixie.ch (Ian Hickson) Date: Thu, 7 Apr 2005 11:03:01 +0000 (UTC) Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <851c8d310504070356287eb4b1@mail.gmail.com> References: <42524E27.6060006@annevankesteren.nl> <4253F517.3040409@olav.dk> <425401B0.3040205@lachy.id.au> <42540251.4080405@annevankesteren.nl> <42546FCE.5070900@lachy.id.au> <Pine.LNX.4.61.0504062335130.20461@dhalsim.dreamhost.com> <4254CE93.4000403@lachy.id.au> <Pine.LNX.4.61.0504071037490.20461@dhalsim.dreamhost.com> <42550FFD.20201@annevankesteren.nl> <Pine.LNX.4.61.0504071050580.20461@dhalsim.dreamhost.com> <851c8d310504070356287eb4b1@mail.gmail.com> Message-ID: <Pine.LNX.4.61.0504071058300.20461@dhalsim.dreamhost.com> On Thu, 7 Apr 2005, Jim Ley wrote: > > > > In my world that is solved by no longer claiming that HTML is an SGML > > application. > > So please state that clearly in the specification. Yes, patience boy. All in due course. Like I said earlier in this thread, I haven't gotten that far in the editing yet, which is why I don't have detailed well-thought-through answers to all these questions. When I get around to actually speccing out how this part of things work (probably around the same time I work on a section about how to parse the non-XML serialisation), I'll take a close look at all the e-mails in this thread and reply to them all. > Can you also explain the point of the <!DOCTYPE ... gibberish that the > specs require at the top of documents? What are they doing, please > remove them, they serve no purpose whatsoever. Or if they do serve a > purpose, document what the purpose is. They trigger standards mode in modern browsers. The current one for WHATWG specs is: <!DOCTYPE html PUBLIC "-//WHATWG//NONSGML HTML5//EN"> ...as described in 1.8 of the WA1 spec and also somewhere in the WF2 spec. This will hopefully be explained in more detail in the future. At the moment I'm concentrating on defining all the elements and attributes of the language. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From ian at hixie.ch Thu Apr 7 04:04:21 2005 From: ian at hixie.ch (Ian Hickson) Date: Thu, 7 Apr 2005 11:04:21 +0000 (UTC) Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <425512EE.9060205@annevankesteren.nl> References: <42524E27.6060006@annevankesteren.nl> <4253F517.3040409@olav.dk> <425401B0.3040205@lachy.id.au> <42540251.4080405@annevankesteren.nl> <42546FCE.5070900@lachy.id.au> <Pine.LNX.4.61.0504062335130.20461@dhalsim.dreamhost.com> <4254CE93.4000403@lachy.id.au> <Pine.LNX.4.61.0504071037490.20461@dhalsim.dreamhost.com> <42550FFD.20201@annevankesteren.nl> <Pine.LNX.4.61.0504071050580.20461@dhalsim.dreamhost.com> <851c8d310504070356287eb4b1@mail.gmail.com> <425512EE.9060205@annevankesteren.nl> Message-ID: <Pine.LNX.4.61.0504071103310.20461@dhalsim.dreamhost.com> On Thu, 7 Apr 2005, Anne van Kesteren wrote: > > > > Can you also explain the point of the <!DOCTYPE ... gibberish that > > the specs require at the top of documents? What are they doing, > > please remove them, they serve no purpose whatsoever. Or if they do > > serve a purpose, document what the purpose is. > > You should know the purpose I guess. (Standards mode.) I agree that it > should be documentated. Actually come to think of it there is also a second purpose, namely, telling conformance checkers what version of the specification to check against. (Which I guess is basically the original purpose of the DOCTYPE.) -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From jim.ley at gmail.com Thu Apr 7 04:09:57 2005 From: jim.ley at gmail.com (Jim Ley) Date: Thu, 7 Apr 2005 12:09:57 +0100 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <Pine.LNX.4.61.0504071058300.20461@dhalsim.dreamhost.com> References: <42524E27.6060006@annevankesteren.nl> <42540251.4080405@annevankesteren.nl> <42546FCE.5070900@lachy.id.au> <Pine.LNX.4.61.0504062335130.20461@dhalsim.dreamhost.com> <4254CE93.4000403@lachy.id.au> <Pine.LNX.4.61.0504071037490.20461@dhalsim.dreamhost.com> <42550FFD.20201@annevankesteren.nl> <Pine.LNX.4.61.0504071050580.20461@dhalsim.dreamhost.com> <851c8d310504070356287eb4b1@mail.gmail.com> <Pine.LNX.4.61.0504071058300.20461@dhalsim.dreamhost.com> Message-ID: <851c8d3105040704092d099949@mail.gmail.com> On Apr 7, 2005 12:03 PM, Ian Hickson <ian at hixie.ch> wrote: > They trigger standards mode in modern browsers. The > current one for WHATWG specs is: Will the spec explain this some more, in particular could you document what "standards mode" is, and exactly how user agents should use this doctype to trigger it? Would it not be better to just require WF2/WA user agents to render it in this "standards mode" you talk of? Or at the very least use something that would not confuse people into thinking that it is an application of SGML or XML. Jim. From jim.ley at gmail.com Thu Apr 7 04:11:41 2005 From: jim.ley at gmail.com (Jim Ley) Date: Thu, 7 Apr 2005 12:11:41 +0100 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <Pine.LNX.4.61.0504071103310.20461@dhalsim.dreamhost.com> References: <42524E27.6060006@annevankesteren.nl> <42546FCE.5070900@lachy.id.au> <Pine.LNX.4.61.0504062335130.20461@dhalsim.dreamhost.com> <4254CE93.4000403@lachy.id.au> <Pine.LNX.4.61.0504071037490.20461@dhalsim.dreamhost.com> <42550FFD.20201@annevankesteren.nl> <Pine.LNX.4.61.0504071050580.20461@dhalsim.dreamhost.com> <851c8d310504070356287eb4b1@mail.gmail.com> <425512EE.9060205@annevankesteren.nl> <Pine.LNX.4.61.0504071103310.20461@dhalsim.dreamhost.com> Message-ID: <851c8d31050407041135d65f31@mail.gmail.com> On Apr 7, 2005 12:04 PM, Ian Hickson <ian at hixie.ch> wrote: > On Thu, 7 Apr 2005, Anne van Kesteren wrote: > > You should know the purpose I guess. (Standards mode.) I agree that it > > should be documentated. > > Actually come to think of it there is also a second purpose, namely, > telling conformance checkers what version of the specification to check > against. (Which I guess is basically the original purpose of the DOCTYPE.) Would a version parameter not be more appropriate, simpler, less confusing to users, easier to parse, easier to understand, doesn't confuse users into thinking that it's really an application of SGML. Doesn't cause problems for legacy user agents like the HTML Validator etc. etc. It seems a very poor and odd choice for versioning a document. Jim. From olav at olav.dk Thu Apr 7 04:18:33 2005 From: olav at olav.dk (=?ISO-8859-1?Q?Olav_Junker_Kj=E6r?=) Date: Thu, 07 Apr 2005 13:18:33 +0200 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <Pine.LNX.4.61.0504071037490.20461@dhalsim.dreamhost.com> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> <4252B643.6030308@lachy.id.au> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> <4253CA8A.1070608@olav.dk> <4253D10C.5000700@lachy.id.au> <4253D24A.8050308@annevankesteren.nl> <4253D7CA.2010807@lachy.id.au> <4253DA93.8030606@annevankesteren.nl> <4253E4FF.2090306@lachy.id.au> <4253F517.3040409@olav.dk> <425401B0.3040205@lachy.id.au> <42540251.4080405@annevankesteren.nl> <42546FCE.5070900@lachy.id.au> <Pine.LNX.4.61.0504062335130.20461@dhalsim.dreamhost.com> <4254CE93.4000403@lachy.id.au> <Pine.LNX.4.61.0504071037490.20461@dhalsim.dreamhost.com> Message-ID: <42551709.2060208@olav.dk> Ian Hickson wrote: > I am very reluctant to put a particular DTD in the DOCTYPE, though. Given > that DTDs are highly inadequate for catching errors, it feels very wrong > to me to be giving a particulr DTD any kind of legitimacy at that level. A DTD or schema in the spec would be redundant anyway, since it would only echo what is described in prose. DTD validation would be almost useless in the case of WF2, except perhaps for catching spelling errors in attribute names. A schema in a sufficiently expressive language would go along way, though. There are lots of interdependencies between attributes in WF2, e.g. the value of the type attribute on a input element defines which other attributes may apply and what their syntax and semantics are. I'm not sure what schema languages support this, since they are usually based on the premise that the element name defines what attributes applies. I notice that <input type="text" src="some url" checked="true"> is valid according to the schema for XHTML. > This doesn't stop conformance checker implements from writing DTDs of > their own and then placing them in their SGML catalog so that the HTML5 > DOCTYPE triggers that DTD, though. The point is that different conformance > checker vendors should be able to write their own DTD for HTML5 to > complement the rest of the conformance checking process. As the mix > between DTD-based and other checking will probably be vendor-dependent, I > don't see why we'd want to elevate any particular DTD to official status. Actually I think it would be beneficial for interoperability and perhaps discovery of weaknesses in the spec, if several schemas were developed by independent parties during the call for implementation. regards Olav Junker Kj?r From lachlan.hunt at lachy.id.au Thu Apr 7 04:24:16 2005 From: lachlan.hunt at lachy.id.au (Lachlan Hunt) Date: Thu, 07 Apr 2005 21:24:16 +1000 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <42550FFD.20201@annevankesteren.nl> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> <4252B643.6030308@lachy.id.au> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> <4253CA8A.1070608@olav.dk> <4253D10C.5000700@lachy.id.au> <4253D24A.8050308@annevankesteren.nl> <4253D7CA.2010807@lachy.id.au> <4253DA93.8030606@annevankesteren.nl> <4253E4FF.2090306@lachy.id.au> <4253F517.3040409@olav.dk> <425401B0.3040205@lachy.id.au> <42540251.4080405@annevankesteren.nl> <42546FCE.5070900@lachy.id.au> <Pine.LNX.4.61.0504062335130.20461@dhalsim.dreamhost.com> <4254CE93.4000403@lachy.id.au> <Pine.LNX.4.61.0504071037490.20461@dhalsim.dreamhost.com> <42550FFD.20201@annevankesteren.nl> Message-ID: <42551860.5030409@lachy.id.au> Anne van Kesteren wrote: > Ian Hickson wrote: > >> This doesn't stop conformance checker implements from writing DTDs of >> their own and then placing them in their SGML catalog so that the >> HTML5 DOCTYPE triggers that DTD, though. The point is that different >> conformance checker vendors should be able to write their own DTD for >> HTML5 to complement the rest of the conformance checking process. As >> the mix between DTD-based and other checking will probably be >> vendor-dependent, I don't see why we'd want to elevate any particular >> DTD to official status. If every conformance checker has to implement their own, there's more chance they some of them will make mistakes, and each end up with differing DOCTYPES. If that happens, then chances are each validator would give differing results, which is even more confusing and would result in no-one validating at all! If there is only one official DOCTYPE, then at least all validators would have a chance of giving identical results, and mistakes can be managed from one place by filing errata for it, and updating it as necessary. I realise how difficult DTDs can be to write, especially given the size and complexity of these HTML5 specs, and I doubt I could do one by myself, but if I had time, I would certainly contribute to writing one in any way I could. > Entities. Or is that problem going to be solved by: "use UTF-8"? I wouldn't bother including character entity references in HTML 5, their use should be deprecated, although UAs should be advised to support the HTML4 entities for bugwards compatibility. Numeric character references is all that is needed. However, unicode should be strongly recommended, in which case only &#160; or &#xA0; (no-break space) would ever be useful (though rarely used anyway), simply to distinguish it from a regular space in the source code. Ian Hickson wrote: > In my world that is solved by no longer claiming that HTML is an SGML > application. There is no need to make HTML 5 no longer an SGML application. The only reason one might consider it to not be is due to broken documents, which should be fixed and for which their handling can be mostly defined, and broken UAs which should be fixed also. A fully conformant HTML 5 document will still be a fully conformant SGML document, so I see no need for this change at all. -- Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox From olav at olav.dk Thu Apr 7 04:46:33 2005 From: olav at olav.dk (=?ISO-8859-1?Q?Olav_Junker_Kj=E6r?=) Date: Thu, 07 Apr 2005 13:46:33 +0200 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <851c8d31050407041135d65f31@mail.gmail.com> References: <42524E27.6060006@annevankesteren.nl> <42546FCE.5070900@lachy.id.au> <Pine.LNX.4.61.0504062335130.20461@dhalsim.dreamhost.com> <4254CE93.4000403@lachy.id.au> <Pine.LNX.4.61.0504071037490.20461@dhalsim.dreamhost.com> <42550FFD.20201@annevankesteren.nl> <Pine.LNX.4.61.0504071050580.20461@dhalsim.dreamhost.com> <851c8d310504070356287eb4b1@mail.gmail.com> <425512EE.9060205@annevankesteren.nl> <Pine.LNX.4.61.0504071103310.20461@dhalsim.dreamhost.com> <851c8d31050407041135d65f31@mail.gmail.com> Message-ID: <42551D99.5010903@olav.dk> Jim Ley wrote: > Would a version parameter not be more appropriate, simpler, less > confusing to users, easier to parse, easier to understand, doesn't > confuse users into thinking that it's really an application of SGML. > Doesn't cause problems for legacy user agents like the HTML Validator > etc. etc. Actually, the HTML element has a (deprecated!) version attribute, which could be used for this purpose. I agree it feels cleaner than using the doctype syntax. OTOH authors are going to use doctypes for the forseeable future anyway, since they want to trigger standards compliant mode in browsers, so we might as well put the doctype to some use. regards Olav Junker Kj?r From olav at olav.dk Thu Apr 7 04:54:31 2005 From: olav at olav.dk (=?UTF-8?B?T2xhdiBKdW5rZXIgS2rDpnI=?=) Date: Thu, 07 Apr 2005 13:54:31 +0200 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <42551860.5030409@lachy.id.au> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> <4252B643.6030308@lachy.id.au> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> <4253CA8A.1070608@olav.dk> <4253D10C.5000700@lachy.id.au> <4253D24A.8050308@annevankesteren.nl> <4253D7CA.2010807@lachy.id.au> <4253DA93.8030606@annevankesteren.nl> <4253E4FF.2090306@lachy.id.au> <4253F517.3040409@olav.dk> <425401B0.3040205@lachy.id.au> <42540251.4080405@annevankesteren.nl> <42546FCE.5070900@lachy.id.au> <Pine.LNX.4.61.0504062335130.20461@dhalsim.dreamhost.com> <4254CE93.4000403@lachy.id.au> <Pine.LNX.4.61.0504071037490.20461@dhalsim.dreamhost.com> <42550FFD.20201@annevankesteren.nl> <42551860.5030409@lachy.id.au> Message-ID: <42551F77.8080604@olav.dk> Lachlan Hunt wrote: > If every conformance checker has to implement their own, there's more > chance they some of them will make mistakes, and each end up with > differing DOCTYPES. If that happens, then chances are each validator > would give differing results, which is even more confusing and would > result in no-one validating at all! If there is only one official > DOCTYPE, then at least all validators would have a chance of giving > identical results, and mistakes can be managed from one place by filing > errata for it, and updating it as necessary. The problem with doctypes is they tie the document to one particular type of validation and one particular implementation of the validation constraints. Experience shows that different, competing implementations of a spec has a higher probability of uncovering bugs and weaknesses in the spec and in each other, than a single canonical implementation. Since current browsers dont use DTD validation, the adherence to a single canonical DTD does not guarantee that the document will be parsed correctly by the intended audience anyway. I believe that a document should only declare its adherence to a spec, and then different tools should be allowed to check this adherence using various methods, the same way that different browsers (presumably) uses different parsers to parse the document. Olav Junker Kj?r From fora at annevankesteren.nl Thu Apr 7 05:38:42 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Thu, 07 Apr 2005 14:38:42 +0200 Subject: [whatwg] [wf2] Default submit button determination and autofocus Message-ID: <425529D2.9070104@annevankesteren.nl> Current WF2 defines a way to determinate the default submit button[1]. While it is quite useful it would be even more useful if you could decide which is the default submit button in WF2 compliant UAs: # woo_ who really programs like that though.. "well, the first button # is ALWAYS going to be the button I want to have executed" # woo_ they apparently never had "customers" ASP.NET2 provides quite a useful way[2] to point to the default submit button and the button that should get autofocus. Personally I think declaring them on the FORM element might make more sense. (Not that WF2 currently provides a way to set a default submit button.) That way 'autofocus' wouldn't be an attribute with the name of its value, but an attribute with an ID as value. On page load the first FORM element with an 'autofocus' attribute set would be selected and when someone clicks inside a FORM element with an 'autofocus' attribute set the form control with an ID attribute that has a value the attribute points to would get focus. The other attribute could be called 'defaultsubmit' or so and would work on a per form basis. I know this would require quite some changes to the specification but I think it is worth it and since the specification would get another call for comments... [1]<http://whatwg.org/specs/web-forms/current-work/#enter-submit> [2]<http://weblogs.asp.net/skoganti/archive/2004/11/01/250482.aspx> -- Anne van Kesteren <http://annevankesteren.nl/> From olav at olav.dk Thu Apr 7 05:59:02 2005 From: olav at olav.dk (=?ISO-8859-1?Q?Olav_Junker_Kj=E6r?=) Date: Thu, 07 Apr 2005 14:59:02 +0200 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <851c8d310504070259217d5477@mail.gmail.com> References: <42524E27.6060006@annevankesteren.nl> <4253CA8A.1070608@olav.dk> <4253D10C.5000700@lachy.id.au> <4253D24A.8050308@annevankesteren.nl> <4253D7CA.2010807@lachy.id.au> <4253DA93.8030606@annevankesteren.nl> <4253E4FF.2090306@lachy.id.au> <4253F517.3040409@olav.dk> <851c8d3105040608202cdc0819@mail.gmail.com> <4254FC67.9060606@olav.dk> <851c8d310504070259217d5477@mail.gmail.com> Message-ID: <42552E96.3020203@olav.dk> Jim Ley wrote: >>However, a >>syntax error in the initial value of a date control *will* cause the >>page to stop working as intended. > > Could you describe how? My reading of the error handling defined in > the spec for that situation does not lead to the failure you describe. > However the unclosed <B> element does exactly that. (in the XHTML > dialect) The intention is that the control should show the default value. If the value contains a syntax error (e.g. a missing colon) the value will be ignored and the control will be empty (according to http://whatwg.org/specs/web-forms/current-work/#handling). More subtle errors will result if min or max attributes contain a syntax error. Depending on the type of application, the wrong or missing date might have serious consequences. (It wont prevent the page from showing up, though, it just wont work as intended - which in some circumstances might be worse). The problem might be even more subtle if the date is syntactically correct but invalid, e.g. the 29. of February in a year that is not a leap year. Schema validation using regular expressions wont catch this. A conformance checker should be able to flag these kinds of errors. OTOH a missing </b> might be annoying but wont usually have serious consequences in HTML (XHTML is different, of course). Still, this is the only type of error DTD validation will catch. regards Olav Junker Kj?r From michael at quuxo.com Thu Apr 7 06:04:17 2005 From: michael at quuxo.com (Michael Gratton) Date: Thu, 07 Apr 2005 22:34:17 +0930 Subject: [whatwg] [wf2] Default submit button determination and autofocus In-Reply-To: <425529D2.9070104@annevankesteren.nl> References: <425529D2.9070104@annevankesteren.nl> Message-ID: <1112879058.14764.5.camel@localhost.localdomain> On Thu, 2005-04-07 at 14:38 +0200, Anne van Kesteren wrote: > Current WF2 defines a way to determinate the default submit button[1]. > While it is quite useful it would be even more useful if you could > decide which is the default submit button in WF2 compliant UAs: Yes, I agree. I think Hixie put it on some TODO for the spec. > ASP.NET2 provides quite a useful way[2] to point to the default submit > button and the button that should get autofocus. How does that work? Does it automatically generate and install an onsubmit handler to make sure the correct button is submit-ed? Or does it use an IE extension? > Personally I think declaring them on the FORM element might make more > sense. "+1" -- Michael Gratton, Software Architect. Quuxo Software <http://web.quuxo.com/> -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20050407/bd3cb69d/attachment.pgp> From ian at hixie.ch Thu Apr 7 08:38:04 2005 From: ian at hixie.ch (Ian Hickson) Date: Thu, 7 Apr 2005 15:38:04 +0000 (UTC) Subject: [whatwg] [wf2] Default submit button determination and autofocus In-Reply-To: <425529D2.9070104@annevankesteren.nl> References: <425529D2.9070104@annevankesteren.nl> Message-ID: <Pine.LNX.4.61.0504071532040.6497@dhalsim.dreamhost.com> On Thu, 7 Apr 2005, Anne van Kesteren wrote: > > Current WF2 defines a way to determinate the default submit button[1]. > While it is quite useful it would be even more useful if you could > decide which is the default submit button in WF2 compliant UAs: > > # woo_ who really programs like that though.. "well, the first button > # is ALWAYS going to be the button I want to have executed" > # woo_ they apparently never had "customers" > > ASP.NET2 provides quite a useful way[2] to point to the default submit button I agree, but I think we should wait for WF3 before adding more features. WF2 is a quite big enough spec as it is, we don't want to require too big a jump for implementors to go from WF1 (HTML4+DOM2 HTML) to WF2. Consider CSS2: it introduced too much compared to CSS1, and so implementors never fully implemented it. There is a real danger in overreaching here. Before we add more, we have to work out what parts of WF2 are not actually used enough to warrant their inclusion, IMHO. > Personally I think declaring them on the FORM element might make more sense. There is not always a <form> element. For example, in simple cases that are just use an input field for interaction with some scripted code. > I know this would require quite some changes to the specification but I > think it is worth it and since the specification would get another call > for comments... The idea is to have a call for comments with _no_ comments, not to keep changing the spec. :-) Every time we change the spec, people have to re-check the changes to make sure they agree with them, and if they don't, they comment. So every change increases the likelihood that someone will send a comment. And if they do, and that results in changes, we have to have another call for comments, etc. So just because we're going to have a call for comments doesn't mean it's open season for changes. :-) -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From lachlan.hunt at lachy.id.au Thu Apr 7 09:07:12 2005 From: lachlan.hunt at lachy.id.au (Lachlan Hunt) Date: Fri, 08 Apr 2005 02:07:12 +1000 Subject: [whatwg] <p> elements containing other block-level elements In-Reply-To: <4254DD87.7010604@annevankesteren.nl> References: <Pine.LNX.4.61.0504051557200.2016@dhalsim.dreamhost.com> <4254DD87.7010604@annevankesteren.nl> Message-ID: <42555AB0.5070904@lachy.id.au> Anne van Kesteren wrote: > Ian Hickson wrote: >> <p> >> ... >> <ol> >> <li>...</li> >> </ol> >> </p> > > If OL is an inline element here, sure. Whether or not it is rendered as block or inline within paragraphs can be quite easily handled with CSS. Lists should not be classified as block level or inline level elements within the spec. ol, ul { display: block } li { display: list-item; } p ol, p ul, p li { display: inline } -- Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox From fora at annevankesteren.nl Thu Apr 7 09:13:24 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Thu, 07 Apr 2005 18:13:24 +0200 Subject: [whatwg] <p> elements containing other block-level elements In-Reply-To: <42555AB0.5070904@lachy.id.au> References: <Pine.LNX.4.61.0504051557200.2016@dhalsim.dreamhost.com> <4254DD87.7010604@annevankesteren.nl> <42555AB0.5070904@lachy.id.au> Message-ID: <42555C24.1010800@annevankesteren.nl> Lachlan Hunt wrote: >> If OL is an inline element here, sure. > > Whether or not it is rendered as block or inline within paragraphs > can be quite easily handled with CSS. I am aware of that. > Lists should not be classified as block level or inline level > elements within the spec. I think they should. (Note that block and inline are different here from the definition CSS applies to them.) That way they get another content model that might be more suited for inline situations. -- Anne van Kesteren <http://annevankesteren.nl/> From hsivonen at iki.fi Thu Apr 7 09:51:13 2005 From: hsivonen at iki.fi (Henri Sivonen) Date: Thu, 7 Apr 2005 19:51:13 +0300 Subject: [whatwg] <p> elements containing other block-level elements In-Reply-To: <Pine.LNX.4.61.0504051557200.2016@dhalsim.dreamhost.com> References: <Pine.LNX.4.61.0504051557200.2016@dhalsim.dreamhost.com> Message-ID: <44b7186c56b20eae7e619cbd3cc3c1f8@iki.fi> On Apr 7, 2005, at 04:07, Ian Hickson wrote: > One thing that XHTML2 does which makes a lot of sense to me is allow > nesting of certain elements within <p> elements, as in: I'd agree that would be nice to allow if there was no HTML legacy. > I'm trying to work out exactly what the rules that describe the above > actually are, but I'm interested in hearing whether people agree or > disagree with my "good" and "bad" examples above. I'm especially > interested in what use cases I may have missed (please don't say "I > think > this should be allowed" without giving a real-world example), and > whether > anyone thinks any of the cases I think should be allowed should not. The problem with allowing the HTML flavor and XHTML flavor diverge is that one could no longer use HTML and XHTML serializations interchangeably in apps that do not suffer from the HTML DOM legacy and otherwise could treat the HTML-XHTML distinction as something you deal with on the IO boundary. I use Java XML tools for producing HTML. I use XHTML internally and serialize as HTML. This works great with XHTML 1.0 and HTML 4.01. If the HTML flavor of What WG HTML and the XHTML flavor diverge, I'd need to spec that only an HTML-compatible subset of What WG XHTML that doesn't nest elements in ways prohibited on the text/html side may be put into an app that outputs text/html. I don't know whether this is a reason enough not to allow the XHTML flavor diverge, but I think there is a need to at least specifically flag anything that is not text/html-compatible. -- Henri Sivonen hsivonen at iki.fi http://hsivonen.iki.fi/ From hsivonen at iki.fi Thu Apr 7 10:11:23 2005 From: hsivonen at iki.fi (Henri Sivonen) Date: Thu, 7 Apr 2005 20:11:23 +0300 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <Pine.LNX.4.61.0504071056170.20461@dhalsim.dreamhost.com> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> <4252B643.6030308@lachy.id.au> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> <4253CA8A.1070608@olav.dk> <4253D10C.5000700@lachy.id.au> <4253D24A.8050308@annevankesteren.nl> <4253D7CA.2010807@lachy.id.au> <4253DA93.8030606@annevankesteren.nl> <4253E4FF.2090306@lachy.id.au> <4253F517.3040409@olav.dk> <425401B0.3040205@lachy.id.au> <42540251.4080405@annevankesteren.nl> <42546FCE.5070900@lachy.id.au> <Pine.LNX.4.61.0504062335130.20461@dhalsim.dreamhost.com> <4254CE93.4000403@lachy.id.au> <Pine.LNX.4.61.0504071037490.20461@dhalsim.dreamhost.com> <42550FFD.20201@annevankesteren.nl> <Pine.LNX.4.61.0504071050580.20461@dhalsim.dreamhost.com> <4255114D.10108@annevankesteren.nl> <Pine.LNX.4.61.0504071056170.20461@dhalsim.dreamhost.com> Message-ID: <fb7f3319eb599acbe7429f972d21672c@iki.fi> On Apr 7, 2005, at 13:58, Ian Hickson wrote: > On Thu, 7 Apr 2005, Anne van Kesteren wrote: >> >> And how does the XML part of your world feel about [not having a DTD >> meaning they can't use entities]? (I like the idea for HTML.) > > The current draft says that there is no particular DTD for XHTML5. It > doesn't stop anyone from using one if they want to use entities. I > suppose > we could include one that just had the entities and had a known FPI so > that UAs could permanently cache it. *shrug* I am very hostile towards the idea of requiring UAs to implement any XML parsing features that are in the realm of the XML 1.0 spec but that the XML 1.0 spec does not require. This means processing the DTD beyond checking the internal subset for well-formedness. I would rather suggest that What WG specs explicitly discourage people from using a doctype on the XHTML side and point out that authors should not expect UAs to process the DTD. Those who want to use entities for input, should parse and reserialize as UTF-8 in their own lair and not expose their entity references (or parochial legacy encodings) to the public network. -- Henri Sivonen hsivonen at iki.fi http://hsivonen.iki.fi/ From hsivonen at iki.fi Thu Apr 7 10:27:03 2005 From: hsivonen at iki.fi (Henri Sivonen) Date: Thu, 7 Apr 2005 20:27:03 +0300 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <851c8d3105040704092d099949@mail.gmail.com> References: <42524E27.6060006@annevankesteren.nl> <42540251.4080405@annevankesteren.nl> <42546FCE.5070900@lachy.id.au> <Pine.LNX.4.61.0504062335130.20461@dhalsim.dreamhost.com> <4254CE93.4000403@lachy.id.au> <Pine.LNX.4.61.0504071037490.20461@dhalsim.dreamhost.com> <42550FFD.20201@annevankesteren.nl> <Pine.LNX.4.61.0504071050580.20461@dhalsim.dreamhost.com> <851c8d310504070356287eb4b1@mail.gmail.com> <Pine.LNX.4.61.0504071058300.20461@dhalsim.dreamhost.com> <851c8d3105040704092d099949@mail.gmail.com> Message-ID: <4d793a4ca44b70508a082e60c1264388@iki.fi> On Apr 7, 2005, at 14:09, Jim Ley wrote: > Will the spec explain this some more, in particular could you document > what "standards mode" is, and exactly how user agents should use this > doctype to trigger it? Ideally, UAs would know nothing of that particular doctype and would trigger the standards mode because there is a doctype that is not on the list of doctypes that triggers the quirks mode or the almost standards mode. > Would it not be better to just require WF2/WA user agents to render it > in this "standards mode" you talk of? Yes, in principle, but you can't trigger the layout mode when you hit the first What WG feature. UAs already have code for triggering on doctype. It's not pretty, but it's the reality. > Or at the very least use something that would not confuse people into > thinking that it is an > application of SGML or XML. Do you want to replace "NONSGML" with "THIS-IS-NOT-SGML"? -- Henri Sivonen hsivonen at iki.fi http://hsivonen.iki.fi/ From hsivonen at iki.fi Thu Apr 7 10:59:19 2005 From: hsivonen at iki.fi (Henri Sivonen) Date: Thu, 7 Apr 2005 20:59:19 +0300 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <4254DA33.3020409@lachy.id.au> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> <4252B643.6030308@lachy.id.au> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> <78f32994657502e0c7098780f8e6476b@iki.fi> <4254DA33.3020409@lachy.id.au> Message-ID: <521492f8273c953e36ca9b0957172b6c@iki.fi> On Apr 7, 2005, at 09:58, Lachlan Hunt wrote: > Henri Sivonen wrote: >> On Apr 6, 2005, at 13:22, Lachlan Hunt wrote: >>> If OpenSP was non-conformant, then any current or future UA that is >>> built with OpenSP as the parser would be non-conformant also, which >>> should not be the case. >> What OpenSP-based UAs are there besides validators? > > None that I know of yet, which is why I said current *or future* UAs. Can we, please, focus on real use cases, then? If it wasn't for that kind of SGML theorizing, perhaps HTML spec writers would never have been bothered to even pretend SGML is really involved. > There's no reason why a full conformance checker couldn't be based on > OpenSP. It would be prudent not to use OpenSP in order to avoid accidentally allowing SGMLisms that are alien to real-world tag soup. > Infact, it would probably be a good idea for them to do so, since then > they'll also be real validators too, which is part of the conformance > requirements. I don't think SGML validation is part of What WG conformance requirements. I thought Hixie has specifically said he doesn't bother with DTDs. -- Henri Sivonen hsivonen at iki.fi http://hsivonen.iki.fi/ From jim.ley at gmail.com Thu Apr 7 11:47:56 2005 From: jim.ley at gmail.com (Jim Ley) Date: Thu, 7 Apr 2005 19:47:56 +0100 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <4d793a4ca44b70508a082e60c1264388@iki.fi> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504062335130.20461@dhalsim.dreamhost.com> <4254CE93.4000403@lachy.id.au> <Pine.LNX.4.61.0504071037490.20461@dhalsim.dreamhost.com> <42550FFD.20201@annevankesteren.nl> <Pine.LNX.4.61.0504071050580.20461@dhalsim.dreamhost.com> <851c8d310504070356287eb4b1@mail.gmail.com> <Pine.LNX.4.61.0504071058300.20461@dhalsim.dreamhost.com> <851c8d3105040704092d099949@mail.gmail.com> <4d793a4ca44b70508a082e60c1264388@iki.fi> Message-ID: <851c8d3105040711474e8b3f0@mail.gmail.com> > > Or at the very least use something that would not confuse people into > > thinking that it is an > > application of SGML or XML. > > Do you want to replace "NONSGML" with "THIS-IS-NOT-SGML"? No, I want to replace <!DOCTYPE - with something completely different, the whole point that anything that looks like an SGML (or XHTML) doctype will confuse users into thinking that it is an application of SGML. I see no reason to continue only the odd model of rendering mode switching - especially without what this is exactly being defined in the spec. when as only new implementations will be written supporting WF2 a simple <html WHATversion="2"> like mechanism can be used, this will leave it in a much stronger position for going forward. Jim. From jim.ley at gmail.com Thu Apr 7 11:49:41 2005 From: jim.ley at gmail.com (Jim Ley) Date: Thu, 7 Apr 2005 19:49:41 +0100 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <521492f8273c953e36ca9b0957172b6c@iki.fi> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> <4252B643.6030308@lachy.id.au> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> <78f32994657502e0c7098780f8e6476b@iki.fi> <4254DA33.3020409@lachy.id.au> <521492f8273c953e36ca9b0957172b6c@iki.fi> Message-ID: <851c8d31050407114910d3eb35@mail.gmail.com> On Apr 7, 2005 6:59 PM, Henri Sivonen <hsivonen at iki.fi> wrote: > On Apr 7, 2005, at 09:58, Lachlan Hunt wrote: > I don't think SGML validation is part of What WG conformance > requirements. I thought Hixie has specifically said he doesn't bother > with DTDs. Hixie is simply the editor of the spec, this thread has shown clearly that many people contributing to the WHAT-WG work do use DTD's, indeed we already have a volunteer for creating a doctype, in fact it's only at this (supposedly) late stage that we've suddenly been told there's not one. Jim. From hsivonen at iki.fi Thu Apr 7 12:30:18 2005 From: hsivonen at iki.fi (Henri Sivonen) Date: Thu, 7 Apr 2005 22:30:18 +0300 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <851c8d31050407114910d3eb35@mail.gmail.com> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> <4252B643.6030308@lachy.id.au> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> <78f32994657502e0c7098780f8e6476b@iki.fi> <4254DA33.3020409@lachy.id.au> <521492f8273c953e36ca9b0957172b6c@iki.fi> <851c8d31050407114910d3eb35@mail.gmail.com> Message-ID: <1af9a4478fb947cc0098c0d011abb29a@iki.fi> On Apr 7, 2005, at 21:49, Jim Ley wrote: > this thread has shown clearly that many people contributing to the > WHAT-WG work do use DTD's To me it seemed that you argued that DTD validation is more useful than other conformance checks as long as the other checks are vaporware and Lachlan Hunt was theorizing that maybe someone might want to use OpenSP and that should be catered for. -- Henri Sivonen hsivonen at iki.fi http://hsivonen.iki.fi/ From jim.ley at gmail.com Thu Apr 7 12:52:44 2005 From: jim.ley at gmail.com (Jim Ley) Date: Thu, 7 Apr 2005 20:52:44 +0100 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <1af9a4478fb947cc0098c0d011abb29a@iki.fi> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> <78f32994657502e0c7098780f8e6476b@iki.fi> <4254DA33.3020409@lachy.id.au> <521492f8273c953e36ca9b0957172b6c@iki.fi> <851c8d31050407114910d3eb35@mail.gmail.com> <1af9a4478fb947cc0098c0d011abb29a@iki.fi> Message-ID: <851c8d31050407125264b3598e@mail.gmail.com> On Apr 7, 2005 8:30 PM, Henri Sivonen <hsivonen at iki.fi> wrote: > On Apr 7, 2005, at 21:49, Jim Ley wrote: > > > this thread has shown clearly that many people contributing to the > > WHAT-WG work do use DTD's > > To me it seemed that you argued that DTD validation is more useful than > other conformance checks as long as the other checks are vaporware >From which you can clearly conclude I do use DTD validation as part of my QA process. All the people who have said that DTD validation is absolutely useless haven't bothered to describe their QA processes at all. Maybe we could hear about these QA techniques rather than just saying how crap the existing tools are, rather than the sudden proposal to seriously reduce the amount of automated QA available to WHAT-WG adopters. If there was a different proposal on how WHAT-WG documents be QA'd then I'd certainly be happy to see DTD validation disappear. Jim. From ian at hixie.ch Thu Apr 7 13:22:50 2005 From: ian at hixie.ch (Ian Hickson) Date: Thu, 7 Apr 2005 20:22:50 +0000 (UTC) Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <851c8d31050407125264b3598e@mail.gmail.com> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> <78f32994657502e0c7098780f8e6476b@iki.fi> <4254DA33.3020409@lachy.id.au> <521492f8273c953e36ca9b0957172b6c@iki.fi> <851c8d31050407114910d3eb35@mail.gmail.com> <1af9a4478fb947cc0098c0d011abb29a@iki.fi> <851c8d31050407125264b3598e@mail.gmail.com> Message-ID: <Pine.LNX.4.61.0504072022250.20461@dhalsim.dreamhost.com> On Thu, 7 Apr 2005, Jim Ley wrote: > > From which you can clearly conclude I do use DTD validation as part of > my QA process. All the people who have said that DTD validation is > absolutely useless haven't bothered to describe their QA processes at > all. Nobody is stopping anyone from using DTDs. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From jim.ley at gmail.com Thu Apr 7 13:48:34 2005 From: jim.ley at gmail.com (Jim Ley) Date: Thu, 7 Apr 2005 21:48:34 +0100 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <Pine.LNX.4.61.0504072022250.20461@dhalsim.dreamhost.com> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> <78f32994657502e0c7098780f8e6476b@iki.fi> <4254DA33.3020409@lachy.id.au> <521492f8273c953e36ca9b0957172b6c@iki.fi> <851c8d31050407114910d3eb35@mail.gmail.com> <1af9a4478fb947cc0098c0d011abb29a@iki.fi> <851c8d31050407125264b3598e@mail.gmail.com> <Pine.LNX.4.61.0504072022250.20461@dhalsim.dreamhost.com> Message-ID: <851c8d3105040713487249a063@mail.gmail.com> On Apr 7, 2005 9:22 PM, Ian Hickson <ian at hixie.ch> wrote: > On Thu, 7 Apr 2005, Jim Ley wrote: > > > > From which you can clearly conclude I do use DTD validation as part of > > my QA process. All the people who have said that DTD validation is > > absolutely useless haven't bothered to describe their QA processes at > > all. > > Nobody is stopping anyone from using DTDs. If it's not an SGML applicaiton, you most certainly are. However, the main issue, is How are people going to ensure they're producing valid WHAT-WG documents? Your proposal is to throw away all the existing QA resources and leave a user with none, unless they happen to have the time and the resources to understand a lot of dense prose and author a DTD from it. Something which very few people are going to be able to do. So I'll ask once again, how do the WHAT-WG believe authors of WHAT-WG documents will produce conformant ones? Jim. From dolphinling at myrealbox.com Thu Apr 7 15:32:52 2005 From: dolphinling at myrealbox.com (dolphinling) Date: Thu, 07 Apr 2005 17:32:52 -0500 Subject: [whatwg] Re: <section> and headings and other threads In-Reply-To: <Pine.LNX.4.61.0504051411220.2016@dhalsim.dreamhost.com> References: <Pine.LNX.4.61.0503302359150.25644@dhalsim.dreamhost.com> <424BCBBE.2040308@cam.ac.uk> <424C9E03.9030107@inkedblade.net> <Pine.LNX.4.61.0504051411220.2016@dhalsim.dreamhost.com> Message-ID: <4255B514.8060506@myrealbox.com> Ian Hickson wrote: > On Thu, 25 Nov 2004, dolphinling wrote: > >><section> >> <h1>1st level header</h1> >> <p>content</p> >> <!-- section --> >> <!-- section --> >> <h3>3rd level header</h3> >> <p>content</p> >> <!-- /section --> >> <!-- /section --> >></section> > > > Disagreed; the <h3> simply gets treated as an <h2> in this case, IMHO. I > don't see the advantage of having deeper sections here. Suppose you have an outline like this: Section | +--A | | | +--B | | | | | +--C | | | | | +--D | | | +--E | | | +--F | | | +--G | +--H | +-----I | +-----J ...where I and J are the same level as C, D, F, and G. If there's no way to skip a heading level, then there's no way to convey the fact that they're of the same importance. One real-world example of this that I know of is http://www.mozilla.org/projects/nspr/reference/html/, take a look at chapter 3. Another example would be in taxonomy, where there are lots and lots of sub- and supercategories, but all species should obviously be the same heading level. In the absence of sub/superheadings (which IMO would be a much better solution, but possibly wouldn't be able to be backwards-compatible (or maybe they would, I haven't thought about it quite enough...)) there needs to be some way to skip levels. -- dolphinling <http://dolphinling.net/> From ian at hixie.ch Thu Apr 7 16:11:32 2005 From: ian at hixie.ch (Ian Hickson) Date: Thu, 7 Apr 2005 23:11:32 +0000 (UTC) Subject: [whatwg] Re: <section> and headings and other threads In-Reply-To: <4255B514.8060506@myrealbox.com> References: <Pine.LNX.4.61.0503302359150.25644@dhalsim.dreamhost.com> <424BCBBE.2040308@cam.ac.uk> <424C9E03.9030107@inkedblade.net> <Pine.LNX.4.61.0504051411220.2016@dhalsim.dreamhost.com> <4255B514.8060506@myrealbox.com> Message-ID: <Pine.LNX.4.61.0504072305410.20461@dhalsim.dreamhost.com> On Thu, 7 Apr 2005, dolphinling wrote: > > Suppose you have an outline like this: > > Section > | > +--A [...] > | | > | +--E > | | > | +--F > | | > | +--G > | > +--H > | > +-----I > | > +-----J > > ...where I and J are the same level as C, D, F, and G. Same level in what sense? > If there's no way to skip a heading level, then there's no way to convey > the fact that they're of the same importance. Well, there is one way: nesting <section>s. > One real-world example of this that I know of is > http://www.mozilla.org/projects/nspr/reference/html/, take a look at > chapter 3. Another example would be in taxonomy, where there are lots > and lots of sub- and supercategories, but all species should obviously > be the same heading level. I don't think it's "obvious". Indeed I don't think it's true -- while I could see an argument for consistent styling of the species, I don't consider them to be the same level. In the outline above, I consider I and J to be different levels from F and G. > In the absence of sub/superheadings (which IMO would be a much better > solution, but possibly wouldn't be able to be backwards-compatible (or > maybe they would, I haven't thought about it quite enough...)) there > needs to be some way to skip levels. There are subheadings in HTML5. See the <header> element. And there is a way to skip levels; the <section> element. Are those solutions satisfactory, or do you still want the rank of <h1>-<h6> to imply missing sections? -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From mpt at myrealbox.com Thu Apr 7 16:17:56 2005 From: mpt at myrealbox.com (Matthew Thomas) Date: Fri, 08 Apr 2005 11:17:56 +1200 Subject: [whatwg] <p> elements containing other block-level elements In-Reply-To: <42555C24.1010800@annevankesteren.nl> References: <Pine.LNX.4.61.0504051557200.2016@dhalsim.dreamhost.com> <4254DD87.7010604@annevankesteren.nl> <42555AB0.5070904@lachy.id.au> <42555C24.1010800@annevankesteren.nl> Message-ID: <4255BFA4.4010901@myrealbox.com> Anne van Kesteren wrote: >... >> Lists should not be classified as block level or inline level >> elements within the spec. > > I think they should. (Note that block and inline are different here from > the definition CSS applies to them.) That way they get another content > model that might be more suited for inline situations. You mean perhaps a content model like this? <p>For this recipe you need <ul><li>an egg</li>, <li>flour</li>, and <li>butter</li></ul>. Mix it all together and so forth.</p> I think such a content model would have exactly the same problem as Ian's semantically inferior example (<ul><li>an egg,</li> <li>flour, and</li> <li>butter.</li></ul>): no-one[1] would use it, because they wouldn't get any benefit. Most authors use <ul> and <ol> only because it's an easy way of achieving bulleted and numbered lists -- as shown by their willingness to run to <div> (or worse, <br>) for any list that they don't want bulleted. <p>It makes sense to allow bulleted/numbered lists inside paragraphs, for two reasons:<ul> <li>such lists are already used in typography</li> <li>they would have acceptable presentation in UAs that claim HTML4 support.</li> </ul>But as for inline lists, I think creating markup for them would be a waste of time.</p> Agreed with the rest of what you said, though. The content model for any block element allowed inside paragraphs should be tweaked to not allow paragraphs when it's inside a paragraph, because nested paragraphs don't make sense. [1] By which of course I mean "no-one except the sort of people who write about markup in their Weblogs". :-) -- Matthew Thomas http://mpt.net.nz/ From petrazi at sympatico.ca Thu Apr 7 17:21:10 2005 From: petrazi at sympatico.ca (Petrazickis) Date: Thu, 07 Apr 2005 20:21:10 -0400 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <42551D99.5010903@olav.dk> References: <42524E27.6060006@annevankesteren.nl> <42546FCE.5070900@lachy.id.au> <Pine.LNX.4.61.0504062335130.20461@dhalsim.dreamhost.com> <4254CE93.4000403@lachy.id.au> <Pine.LNX.4.61.0504071037490.20461@dhalsim.dreamhost.com> <42550FFD.20201@annevankesteren.nl> <Pine.LNX.4.61.0504071050580.20461@dhalsim.dreamhost.com> <851c8d310504070356287eb4b1@mail.gmail.com> <425512EE.9060205@annevankesteren.nl> <Pine.LNX.4.61.0504071103310.20461@dhalsim.dreamhost.com> <851c8d31050407041135d65f31@mail.gmail.com> <42551D99.5010903@olav.dk> Message-ID: <4255CE76.3000702@sympatico.ca> Olav Junker Kj?r wrote: > Jim Ley wrote: > >> Would a version parameter not be more appropriate, simpler, less >> confusing to users, easier to parse, easier to understand, doesn't >> confuse users into thinking that it's really an application of SGML. >> Doesn't cause problems for legacy user agents like the HTML Validator >> etc. etc. > > > Actually, the HTML element has a (deprecated!) version attribute, > which could be used for this purpose. I agree it feels cleaner than > using the doctype syntax. > > OTOH authors are going to use doctypes for the forseeable future > anyway, since they want to trigger standards compliant mode in > browsers, so we might as well put the doctype to some use. Wouldn't authors need to use an HTML4 or an XHTML doctype specifically to trigger the standards mode in IE6? In that case, specifying a doctype of our own would be counter-productive to the goal of compatibility with IE6. Perhaps we need to specify that any DOCTYPE will be ignored when there is an <html version="5.0"> present. -- Leons Petrazickis From ian at hixie.ch Thu Apr 7 18:00:41 2005 From: ian at hixie.ch (Ian Hickson) Date: Fri, 8 Apr 2005 01:00:41 +0000 (UTC) Subject: [whatwg] <p> elements containing other block-level elements In-Reply-To: <44b7186c56b20eae7e619cbd3cc3c1f8@iki.fi> References: <Pine.LNX.4.61.0504051557200.2016@dhalsim.dreamhost.com> <44b7186c56b20eae7e619cbd3cc3c1f8@iki.fi> Message-ID: <Pine.LNX.4.61.0504072329390.20461@dhalsim.dreamhost.com> On Thu, 7 Apr 2005, Henri Sivonen wrote: > > The problem with allowing the HTML flavor and XHTML flavor diverge is > that one could no longer use HTML and XHTML serializations > interchangeably in apps that do not suffer from the HTML DOM legacy and > otherwise could treat the HTML-XHTML distinction as something you deal > with on the IO boundary. > > I use Java XML tools for producing HTML. I use XHTML internally and > serialize as HTML. This works great with XHTML 1.0 and HTML 4.01. If the > HTML flavor of What WG HTML and the XHTML flavor diverge, I'd need to > spec that only an HTML-compatible subset of What WG XHTML that doesn't > nest elements in ways prohibited on the text/html side may be put into > an app that outputs text/html. This is a very interesting point. One possible hack is to say that when you serialise this kind of stuff to HTML, you have to wrap the problematic elements in <object> tags, so that for example this XML: <p> <ol>...</ol> </p> ...is serialised to HTML as: <p> <object><ol>...</ol></object> </p> ...or some such. That's rather ugly though, and would make serialising a more costly process. Or we could just say that people should pretend that browsers will parse it as intended: <p> <ol>...</ol> ...but that seems unclean at best (and won't style right either). I don't know what the good solution is. On the other hand, there already are other big differences between HTML5 and XHTML5 (or whatever we end up calling them). For instance, in the XHTML variant you can use embedded MathML. Is this just a case like that? > I don't know whether this is a reason enough not to allow the XHTML > flavor diverge, but I think there is a need to at least specifically > flag anything that is not text/html-compatible. Yeah, there will definitely need to be summaries of this kind of information somewhere in the spec. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From michael at quuxo.com Thu Apr 7 18:33:32 2005 From: michael at quuxo.com (Michael Gratton) Date: Fri, 8 Apr 2005 11:03:32 +0930 Subject: [whatwg] <p> elements containing other block-level elements In-Reply-To: <4255BFA4.4010901@myrealbox.com> References: <Pine.LNX.4.61.0504051557200.2016@dhalsim.dreamhost.com> <4254DD87.7010604@annevankesteren.nl> <42555AB0.5070904@lachy.id.au> <42555C24.1010800@annevankesteren.nl> <4255BFA4.4010901@myrealbox.com> Message-ID: <293809e7622b45b201d5fc8abff2a14e@quuxo.com> On 08/04/2005, at 8:47, Matthew Thomas wrote: > <p>It makes sense to allow bulleted/numbered lists inside paragraphs, > for two reasons:<ul> > <li>such lists are already used in typography</li> > <li>they would have acceptable presentation in UAs that claim HTML4 > support.</li> > </ul>But as for inline lists, I think creating markup for them would > be a waste of time.</p> I wonder if having nested block elements could make CSS author's life harder? As was pointed out elsewhere on this thread (list?), existing UAs would implicitly close any outer block elements upon encountering a nested block element. So the example above would be treated as: <p>...</p> <ul>...</ul> <p>...</p> Or similar. WF2/HTML5 UAs wouldn't do this, of course. If a CSS author for example specified padding for both the P and the UL elements, then wouldn't the results would be different depending on the UA's support for WF2/HTML5? Depending on how the legacy browser works, it might not be possible to work around this problem using child/descendent selectors. Mike. -- Michael Gratton, Software Architect. Quuxo Software <http://web.quuxo.com/> -------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 186 bytes Desc: This is a digitally signed message part URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20050408/ffb7f2c9/attachment.pgp> From lachlan.hunt at lachy.id.au Thu Apr 7 19:28:11 2005 From: lachlan.hunt at lachy.id.au (Lachlan Hunt) Date: Fri, 08 Apr 2005 12:28:11 +1000 Subject: [whatwg] <p> elements containing other block-level elements In-Reply-To: <Pine.LNX.4.61.0504072329390.20461@dhalsim.dreamhost.com> References: <Pine.LNX.4.61.0504051557200.2016@dhalsim.dreamhost.com> <44b7186c56b20eae7e619cbd3cc3c1f8@iki.fi> <Pine.LNX.4.61.0504072329390.20461@dhalsim.dreamhost.com> Message-ID: <4255EC3B.9030705@lachy.id.au> Ian Hickson wrote: > On Thu, 7 Apr 2005, Henri Sivonen wrote: > >>The problem with allowing the HTML flavor and XHTML flavor diverge is >>that one could no longer use HTML and XHTML serializations >>interchangeably in apps that do not suffer from the HTML DOM legacy and >>otherwise could treat the HTML-XHTML distinction as something you deal >>with on the IO boundary. >> >>I use Java XML tools for producing HTML. I use XHTML internally and >>serialize as HTML. This works great with XHTML 1.0 and HTML 4.01. If the >>HTML flavor of What WG HTML and the XHTML flavor diverge, I'd need to >>spec that only an HTML-compatible subset of What WG XHTML that doesn't >>nest elements in ways prohibited on the text/html side may be put into >>an app that outputs text/html. I don't think it's necessary to make HTML and XHTML diverge with relation to the element content models. I think the spec should just provide notes about backwards compatibility for older UAs that won't support such constructs properly; however, they will degrade gracefully. New UAs could be updated to handle <p><ol>...</ol></p> correctly (when an HTML5 doctype is used) as text/html. So, this would produce the following DOM for a current UA: * (any parent element) +-P +-OL But for a new UA, it would produce (just like an XHTML UA will) * +-P +-OL However, I realise that may cause issues with supporting existing HTML4 documents, as it would require further DOCTYPE sniffing (or a proper SGML implementation that reads the DOCTYPE) to produce the correct DOMs in each case, but it might be a solution worth considering. > One possible hack is to say that when you serialise this kind of stuff to > HTML, you have to wrap the problematic elements in <object> tags, so that > for example this XML: > ... > <p> > <object><ol>...</ol></object> > </p> Isn't that just abuse of somewhat semantic element (representing external content that should be embedded within the document), for a completely non-semantic hack? If it were this, it would be more acceptable <p>... <object type="image/png" data="list.png"><ol>...</ol></object> <p> > On the other hand, there already are other big differences between HTML5 > and XHTML5 (or whatever we end up calling them). Calling it XHTML5 would be very confusing, as people won't understand that this version is on a track and for a purpose that is different from XHTML2. I'd call it something like (X)HTML Applications 1.0 (maybe it could be shortened to XHTML Apps and HTML Apps 1, or (even shorter) HAppy 1.0). That name would, of course, include web-apps, web-forms and web-controls. > For instance, in the XHTML variant you can use embedded MathML. > Is this just a case like that? I don't think so. MathML can't be used in HTML because there are no namespaces. Whereas, the only reason <p><ol/></p> can't be used in HTML is for bugwards compatibility. -- Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox From lachlan.hunt at lachy.id.au Thu Apr 7 23:23:31 2005 From: lachlan.hunt at lachy.id.au (Lachlan Hunt) Date: Fri, 08 Apr 2005 16:23:31 +1000 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <521492f8273c953e36ca9b0957172b6c@iki.fi> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> <4252B643.6030308@lachy.id.au> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> <78f32994657502e0c7098780f8e6476b@iki.fi> <4254DA33.3020409@lachy.id.au> <521492f8273c953e36ca9b0957172b6c@iki.fi> Message-ID: <42562363.8050400@lachy.id.au> Henri Sivonen wrote: > On Apr 7, 2005, at 09:58, Lachlan Hunt wrote: >> There's no reason why a full conformance checker couldn't be based on >> OpenSP. > > It would be prudent not to use OpenSP in order to avoid accidentally > allowing SGMLisms that are alien to real-world tag soup. If I ever get around to writing any form of conformance checker, true SGML validation (most likely using OpenSP) or XML validation (probably using Xerces or other XML parser) is at the top of my list. Personally, I probably wouldn't make use of a full conformance checker too often during my normal publishing process, as I understand semantic documents and most likely wouldn't end up writing non-conformant documents in that regard anyway. However, I do make mistakes and forget to close elements, misspell attributes and tag-names or whatever, in which case an SGML validator catches most of those mistakes for me. Yes, I know there are some things like conditionally required attributes that cannot be expressed by a DTD, but that doesn't make _true SGML or XML_ validation any less of a *very useful conformance tool*. >> Infact, it would probably be a good idea for them to do so, since then >> they'll also be real validators too, which is part of the conformance >> requirements. > > I don't think SGML validation is part of What WG conformance > requirements. Considering it seems to be part of the conformance criteria, | Conformance checkers *must* verify that a document conforms to the | applicable conformance criteria described in this specification... | | The term "validation" specifically refers to a subset of conformance | checking... | | 1. Criteria that can be expressed in a DTD. validation is a critical part of conformance checking. > I thought Hixie has specifically said he doesn't bother with DTDs. Just because his authoring practices may not involve their use, doesn't mean many other authors don't make use of them. As real usecase for DTD validation, consider this. There are increasing calls for CMSs to produce strictly conformant markup. There have been many complaints that such conformance is not enforced, which results in many invalid and non-conformant websites. Users should not be required to check all of these conformance criteria manually before submitting content through a CMS, as experience shows that simply doesn't happen. If CMSs are ever going to enforce strinctly conformant code, then DTD validation will be a core component of that process. Why re-invent the wheel when it comes to that, when a perfectly suitable and proven method already exists? Experience has shown, with all the lints available, that validation/conformance checking without a DTD is often incorrect, which makes them very useless conformance tools. This is why HTML must remain an application of SGML, the XHTML version *must* be a *valid* application of XML, and why DTDs are so important. The only thing we are waiting for in this field is CMSs that actually do enforce conformance, which we won't have a chance with if DTDs (or Schemas for XML) are not retained. -- Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox From hsivonen at iki.fi Fri Apr 8 00:18:54 2005 From: hsivonen at iki.fi (Henri Sivonen) Date: Fri, 8 Apr 2005 10:18:54 +0300 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <4255CE76.3000702@sympatico.ca> References: <42524E27.6060006@annevankesteren.nl> <42546FCE.5070900@lachy.id.au> <Pine.LNX.4.61.0504062335130.20461@dhalsim.dreamhost.com> <4254CE93.4000403@lachy.id.au> <Pine.LNX.4.61.0504071037490.20461@dhalsim.dreamhost.com> <42550FFD.20201@annevankesteren.nl> <Pine.LNX.4.61.0504071050580.20461@dhalsim.dreamhost.com> <851c8d310504070356287eb4b1@mail.gmail.com> <425512EE.9060205@annevankesteren.nl> <Pine.LNX.4.61.0504071103310.20461@dhalsim.dreamhost.com> <851c8d31050407041135d65f31@mail.gmail.com> <42551D99.5010903@olav.dk> <4255CE76.3000702@sympatico.ca> Message-ID: <4a00dff456500be7f31696555e2f0da8@iki.fi> On Apr 8, 2005, at 03:21, Petrazickis wrote: > Wouldn't authors need to use an HTML4 or an XHTML doctype specifically > to trigger the standards mode in IE6? No. The proposed doctype <!DOCTYPE html PUBLIC "-//WHATWG//NONSGML HTML5//EN"> activates the standards mode in IE6. http://www.macsanomat.com/%7Ehsivonen/test-quirks.php? doctype=%3C%21DOCTYPE+html+PUBLIC+%22- %2F%2FWHATWG%2F%2FNONSGML+HTML5%2F%2FEN%22%3E -- Henri Sivonen hsivonen at iki.fi http://hsivonen.iki.fi/ From hsivonen at iki.fi Fri Apr 8 00:29:52 2005 From: hsivonen at iki.fi (Henri Sivonen) Date: Fri, 8 Apr 2005 10:29:52 +0300 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <42562363.8050400@lachy.id.au> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> <4252B643.6030308@lachy.id.au> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> <78f32994657502e0c7098780f8e6476b@iki.fi> <4254DA33.3020409@lachy.id.au> <521492f8273c953e36ca9b0957172b6c@iki.fi> <42562363.8050400@lachy.id.au> Message-ID: <32130a61ba34c8ada9f4a431d879bdef@iki.fi> On Apr 8, 2005, at 09:23, Lachlan Hunt wrote: > If I ever get around to writing any form of conformance checker, true > SGML validation (most likely using OpenSP) or XML validation (probably > using Xerces or other XML parser) is at the top of my list. If I ever got around to it, DTD validation wouldn't be my approach. I'd use Jing with Relax NG and a hand-written SAX filter for checking what Jing cannot check. (text/html could be handled by substituting a parser that inferred optional tags and appeared to the app as a parser parsing XHTML--like TagSoup without error recovery.) > | 1. Criteria that can be expressed in a DTD. > > validation is a critical part of conformance checking. You could check the same criteria either manually or using Relax NG. Using DTDs is not required. > If CMSs are ever going to enforce strinctly conformant code, then DTD > validation will be a core component of that process. Why bother with DTDs now that Relax NG exists? -- Henri Sivonen hsivonen at iki.fi http://hsivonen.iki.fi/ From jim.ley at gmail.com Fri Apr 8 01:05:01 2005 From: jim.ley at gmail.com (Jim Ley) Date: Fri, 8 Apr 2005 09:05:01 +0100 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <4a00dff456500be7f31696555e2f0da8@iki.fi> References: <42524E27.6060006@annevankesteren.nl> <42550FFD.20201@annevankesteren.nl> <Pine.LNX.4.61.0504071050580.20461@dhalsim.dreamhost.com> <851c8d310504070356287eb4b1@mail.gmail.com> <425512EE.9060205@annevankesteren.nl> <Pine.LNX.4.61.0504071103310.20461@dhalsim.dreamhost.com> <851c8d31050407041135d65f31@mail.gmail.com> <42551D99.5010903@olav.dk> <4255CE76.3000702@sympatico.ca> <4a00dff456500be7f31696555e2f0da8@iki.fi> Message-ID: <851c8d3105040801051334945e@mail.gmail.com> On Apr 8, 2005 8:18 AM, Henri Sivonen <hsivonen at iki.fi> wrote: > No. The proposed doctype <!DOCTYPE html PUBLIC "-//WHATWG//NONSGML > HTML5//EN"> activates the standards mode in IE6. The proposed string that MUST appear as the first line of a WHAT-WG document is... please do not call it a doctype unless it is a doctype, see even people on the list are confused by using this! Jim. From hsivonen at iki.fi Fri Apr 8 01:18:00 2005 From: hsivonen at iki.fi (Henri Sivonen) Date: Fri, 8 Apr 2005 11:18:00 +0300 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <851c8d3105040801051334945e@mail.gmail.com> References: <42524E27.6060006@annevankesteren.nl> <42550FFD.20201@annevankesteren.nl> <Pine.LNX.4.61.0504071050580.20461@dhalsim.dreamhost.com> <851c8d310504070356287eb4b1@mail.gmail.com> <425512EE.9060205@annevankesteren.nl> <Pine.LNX.4.61.0504071103310.20461@dhalsim.dreamhost.com> <851c8d31050407041135d65f31@mail.gmail.com> <42551D99.5010903@olav.dk> <4255CE76.3000702@sympatico.ca> <4a00dff456500be7f31696555e2f0da8@iki.fi> <851c8d3105040801051334945e@mail.gmail.com> Message-ID: <b8aee879bcbe9c114a4641f86c50e8f9@iki.fi> On Apr 8, 2005, at 11:05, Jim Ley wrote: > The proposed string that MUST appear as the first line of a WHAT-WG > document is... please do not call it a doctype unless it is a doctype, > see even people on the list are confused by using this! Well, it could be defined as a tag soup construct called "doctype", which is neither an SGML doctype nor an XML doctype. :-) -- Henri Sivonen hsivonen at iki.fi http://hsivonen.iki.fi/ From fora at annevankesteren.nl Fri Apr 8 01:44:44 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Fri, 08 Apr 2005 10:44:44 +0200 Subject: [whatwg] <p> elements containing other block-level elements In-Reply-To: <293809e7622b45b201d5fc8abff2a14e@quuxo.com> References: <Pine.LNX.4.61.0504051557200.2016@dhalsim.dreamhost.com> <4254DD87.7010604@annevankesteren.nl> <42555AB0.5070904@lachy.id.au> <42555C24.1010800@annevankesteren.nl> <4255BFA4.4010901@myrealbox.com> <293809e7622b45b201d5fc8abff2a14e@quuxo.com> Message-ID: <4256447C.3010706@annevankesteren.nl> Michael Gratton wrote: > I wonder if having nested block elements could make CSS author's life > harder? No. > As was pointed out elsewhere on this thread (list?), existing UAs would > implicitly close any outer block elements upon encountering a nested > block element. So the example above would be treated as: > > <p>...</p> > <ul>...</ul> > <p>...</p> > > Or similar. WF2/HTML5 UAs wouldn't do this, of course. No, that is not true. We are talking about the XML situation here. Not about the tag soup situation. In XML your markup is treated as you write it. -- Anne van Kesteren <http://annevankesteren.nl/> From fora at annevankesteren.nl Fri Apr 8 01:49:55 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Fri, 08 Apr 2005 10:49:55 +0200 Subject: [whatwg] <p> elements containing other block-level elements In-Reply-To: <4255EC3B.9030705@lachy.id.au> References: <Pine.LNX.4.61.0504051557200.2016@dhalsim.dreamhost.com> <44b7186c56b20eae7e619cbd3cc3c1f8@iki.fi> <Pine.LNX.4.61.0504072329390.20461@dhalsim.dreamhost.com> <4255EC3B.9030705@lachy.id.au> Message-ID: <425645B3.6030009@annevankesteren.nl> Lachlan Hunt wrote: > New UAs could be updated to handle <p><ol>...</ol></p> correctly (when > an HTML5 doctype is used) as text/html. Ouch, that would break everything and no UA would agree with such a descision. Making even more tag soup hacks would be very bad for the real world. > <p>... > <object type="image/png" data="list.png"><ol>...</ol></object> > <p> Why would you replace text with an image here? >> For instance, in the XHTML variant you can use embedded MathML. >> Is this just a case like that? > > I don't think so. MathML can't be used in HTML because there are no > namespaces. Whereas, the only reason <p><ol/></p> can't be used in HTML > is for bugwards compatibility. I assume you mean backwards compatibility as the HTML4 specification states how this should work. I think MathML is an excellent example of something that is easy to introduce in XHTML documents but near impossible in HTML documents (although you could use the OBJECT element with the data URI scheme). -- Anne van Kesteren <http://annevankesteren.nl/> From fora at annevankesteren.nl Fri Apr 8 01:51:20 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Fri, 08 Apr 2005 10:51:20 +0200 Subject: [whatwg] <p> elements containing other block-level elements In-Reply-To: <Pine.LNX.4.61.0504072329390.20461@dhalsim.dreamhost.com> References: <Pine.LNX.4.61.0504051557200.2016@dhalsim.dreamhost.com> <44b7186c56b20eae7e619cbd3cc3c1f8@iki.fi> <Pine.LNX.4.61.0504072329390.20461@dhalsim.dreamhost.com> Message-ID: <42564608.1060901@annevankesteren.nl> Ian Hickson wrote: >>I don't know whether this is a reason enough not to allow the XHTML >>flavor diverge, but I think there is a need to at least specifically >>flag anything that is not text/html-compatible. > > Yeah, there will definitely need to be summaries of this kind of > information somewhere in the spec. You removed it now but I think that the 'XML content model' approach made it quite obvious that is not the HTML content model. -- Anne van Kesteren <http://annevankesteren.nl/> From fora at annevankesteren.nl Fri Apr 8 01:53:29 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Fri, 08 Apr 2005 10:53:29 +0200 Subject: [whatwg] <p> elements containing other block-level elements In-Reply-To: <4255BFA4.4010901@myrealbox.com> References: <Pine.LNX.4.61.0504051557200.2016@dhalsim.dreamhost.com> <4254DD87.7010604@annevankesteren.nl> <42555AB0.5070904@lachy.id.au> <42555C24.1010800@annevankesteren.nl> <4255BFA4.4010901@myrealbox.com> Message-ID: <42564689.9030808@annevankesteren.nl> Matthew Thomas wrote: >>> Lists should not be classified as block level or inline level >>> elements within the spec. >> >> I think they should. (Note that block and inline are different here from >> the definition CSS applies to them.) That way they get another content >> model that might be more suited for inline situations. > > You mean perhaps a content model like this? <p>For this recipe you need > <ul><li>an egg</li>, <li>flour</li>, and <li>butter</li></ul>. Mix it > all together and so forth.</p> 'an' should be outside the LI element I guess and I'm not sure if this is the right approach but it looks cool. (Agreed that only a few would use it.) -- Anne van Kesteren <http://annevankesteren.nl/> From ian at hixie.ch Fri Apr 8 03:14:07 2005 From: ian at hixie.ch (Ian Hickson) Date: Fri, 8 Apr 2005 10:14:07 +0000 (UTC) Subject: [whatwg] <p> elements containing other block-level elements In-Reply-To: <4255EC3B.9030705@lachy.id.au> References: <Pine.LNX.4.61.0504051557200.2016@dhalsim.dreamhost.com> <44b7186c56b20eae7e619cbd3cc3c1f8@iki.fi> <Pine.LNX.4.61.0504072329390.20461@dhalsim.dreamhost.com> <4255EC3B.9030705@lachy.id.au> Message-ID: <Pine.LNX.4.61.0504081005310.20461@dhalsim.dreamhost.com> On Fri, 8 Apr 2005, Lachlan Hunt wrote: > > New UAs could be updated to handle <p><ol>...</ol></p> correctly (when an > HTML5 doctype is used) as text/html. They could, but unfortunately the reality is they won't. Just introducing new elements in their HTML parsers gives implementors headaches; I wouldn't dare suggest they should introduce yet another parsing mode. > > One possible hack is to say that when you serialise this kind of stuff > > to HTML, you have to wrap the problematic elements in <object> tags, > > so that for example this XML: > > > > <p> <object><ol>...</ol></object> </p> > > Isn't that just abuse of somewhat semantic element (representing > external content that should be embedded within the document), for a > completely non-semantic hack? Yeah; like I said, it's a hack. > > For instance, in the XHTML variant you can use embedded MathML. Is > > this just a case like that? > > I don't think so. MathML can't be used in HTML because there are no > namespaces. Whereas, the only reason <p><ol/></p> can't be used in HTML > is for bugwards compatibility. Effectively, yes, if you consider HTML to be an SGML application. (Note that HTML1 was not an SGML application; HTML2 was retrofitted into the SGML world for theoretical reasons, but the real world never really caught up with that theory.) In practice, though, the reason is the same as for MathML: The XML parser is a generic parser, the HTML parser is not. We can change content models and add concepts like namespaces to the XML parser easily; we can at best add new elements when it comes to the HTML parser. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From ian at hixie.ch Fri Apr 8 03:27:33 2005 From: ian at hixie.ch (Ian Hickson) Date: Fri, 8 Apr 2005 10:27:33 +0000 (UTC) Subject: [whatwg] <p> elements containing other block-level elements In-Reply-To: <4255BFA4.4010901@myrealbox.com> References: <Pine.LNX.4.61.0504051557200.2016@dhalsim.dreamhost.com> <4254DD87.7010604@annevankesteren.nl> <42555AB0.5070904@lachy.id.au> <42555C24.1010800@annevankesteren.nl> <4255BFA4.4010901@myrealbox.com> Message-ID: <Pine.LNX.4.61.0504081015180.20461@dhalsim.dreamhost.com> On Fri, 8 Apr 2005, Matthew Thomas wrote: > > <p>It makes sense to allow bulleted/numbered lists inside paragraphs, for two > reasons:<ul> > <li>such lists are already used in typography</li> > [see below] > </ul>But as for inline lists, I think creating markup for them would be a > waste of time.</p> Agreed. > <li>they would have acceptable presentation in UAs that claim HTML4 > support.</li> Even in HTML5 UAs, in the HTML parser this: <p><ul><li></li></ul></p> ...will become this: <p></p><ul><li></li></ul> That's part of the problems. To get truly nested elements, only the XML parser would be an option. (Well, that or a scripted solution that poked the elements into the DOM in the right place.) The question is whether: a) We don't allow any of this. b) We allow it in XML and the DOM but disallow it in the HTML serialisation c) We allow it in XML and the DOM and say that authors may do it in HTML but that parsers must (effectively) misunderstand them d) We allow it in XML and the DOM and say that authors may use the <object> hack to us it in HTML I don't see any other realistic options. I don't like c. I'm reluctant to do a. For me, that leaves b and d. Of b and d I prefer b. That, along with embedding MathML and other XML vocabularies, would be a reason to migrate to XML, if we consider that a good thing. At the end of the day this would just be saying "in XML you can also do this". Avoiding those options for people who serialise to both XML and HTML is relatively easy, just like avoiding xml:base and MathML. > The content model for any block element allowed inside paragraphs should > be tweaked to not allow paragraphs when it's inside a paragraph, because > nested paragraphs don't make sense. Agreed. (Including inside nested <tables> and <li>s, I assume? But obviously excluding inside nested <blockquote>s.) -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From lachlan.hunt at lachy.id.au Fri Apr 8 04:05:21 2005 From: lachlan.hunt at lachy.id.au (Lachlan Hunt) Date: Fri, 08 Apr 2005 21:05:21 +1000 Subject: [whatwg] <p> elements containing other block-level elements In-Reply-To: <Pine.LNX.4.61.0504081005310.20461@dhalsim.dreamhost.com> References: <Pine.LNX.4.61.0504051557200.2016@dhalsim.dreamhost.com> <44b7186c56b20eae7e619cbd3cc3c1f8@iki.fi> <Pine.LNX.4.61.0504072329390.20461@dhalsim.dreamhost.com> <4255EC3B.9030705@lachy.id.au> <Pine.LNX.4.61.0504081005310.20461@dhalsim.dreamhost.com> Message-ID: <42566571.9020300@lachy.id.au> Ian Hickson wrote: > (Note that HTML1 was not an SGML application; HTML2 was retrofitted into the > SGML world for theoretical reasons, but the real world never really caught > up with that theory.) Yes, I'm aware of what HTML 1 was (Martin Bryan explains it well [1], for anyone that doesn't know) and, IMO, it was a very good decision to formalise it as SGML. However, as you say, the real world never caught on, and, sadly, probably never will (at least not in any mainstream browser). :-( > In practice, though, the reason is the same as for MathML: The XML parser > is a generic parser, the HTML parser is not. I assume you mean tag-soup parser? :-) Yes, I understand the problem. > We can change content models and add concepts like namespaces to the XML > parser easily; we can at best add new elements when it comes to the HTML > parser. Fair enough. I guess this is one reason why XHTML is so good ? the mistakes of the past with SGML/HTML won't be repeated, and progress won't be held up so much by buggy browsers. it's just a pity it's not yet supported in IE. I'm also starting to understand why you don't consider HTML an application of SGML, although I still don't like it. :-| [1] http://www.is-thought.co.uk/book/home.htm -- Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox From lachlan.hunt at lachy.id.au Fri Apr 8 04:10:04 2005 From: lachlan.hunt at lachy.id.au (Lachlan Hunt) Date: Fri, 08 Apr 2005 21:10:04 +1000 Subject: [whatwg] <p> elements containing other block-level elements In-Reply-To: <425645B3.6030009@annevankesteren.nl> References: <Pine.LNX.4.61.0504051557200.2016@dhalsim.dreamhost.com> <44b7186c56b20eae7e619cbd3cc3c1f8@iki.fi> <Pine.LNX.4.61.0504072329390.20461@dhalsim.dreamhost.com> <4255EC3B.9030705@lachy.id.au> <425645B3.6030009@annevankesteren.nl> Message-ID: <4256668C.7030201@lachy.id.au> Anne van Kesteren wrote: > Lachlan Hunt wrote: >> <p>... >> <object type="image/png" data="list.png"><ol>...</ol></object> >> <p> > > Why would you replace text with an image here? It was an example of how the markup Ian provided would not be an abuse of the object element. However, there is a perfectly valid reason for it. The image could be a scanned in image of a handwritten shopping list (or whatever), and the list within is just the alternate content. -- Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox From lachlan.hunt at lachy.id.au Fri Apr 8 04:54:09 2005 From: lachlan.hunt at lachy.id.au (Lachlan Hunt) Date: Fri, 08 Apr 2005 21:54:09 +1000 Subject: [whatwg] <p> elements containing other block-level elements In-Reply-To: <Pine.LNX.4.61.0504081015180.20461@dhalsim.dreamhost.com> References: <Pine.LNX.4.61.0504051557200.2016@dhalsim.dreamhost.com> <4254DD87.7010604@annevankesteren.nl> <42555AB0.5070904@lachy.id.au> <42555C24.1010800@annevankesteren.nl> <4255BFA4.4010901@myrealbox.com> <Pine.LNX.4.61.0504081015180.20461@dhalsim.dreamhost.com> Message-ID: <425670E1.20107@lachy.id.au> Ian Hickson wrote: > To get truly nested elements, only the XML parser would be an option. > > The question is whether: > > a) We don't allow any of this. I don't think progress should be held up any more than it already is by broken browsers, so let's not let a limitation with HTML affect an XHTML implementation. > b) We allow it in XML and the DOM but disallow it in the HTML > serialisation Yes, this makes the most sense to me. > c) We allow it in XML and the DOM and say that authors may do it in HTML > but that parsers must (effectively) misunderstand them It makes no sense to allow authors to do something and then force all implementations to remain intentionally broken. > d) We allow it in XML and the DOM and say that authors may use the > <object> hack to us it in HTML This is exactly the same as b, except it's encouraging the use of non-semantic hacks. > I don't see any other realistic options. I don't like c. I'm reluctant to > do a. For me, that leaves b and d. That leaves b as the only valid choice, IMHO. > Of b and d I prefer b. That, along with embedding MathML and other XML > vocabularies, would be a reason to migrate to XML, if we consider that a > good thing. Absolutely! Given the incredibly broken SGML/HTML implementations that will never get any better, Migrating to XML is certainly the best way to actually progress into the future. I'm sure no-one wants to be stuck with HTML forever, which is really more of a lost-cause when it comes to any real enhancements. >>The content model for any block element allowed inside paragraphs should >>be tweaked to not allow paragraphs when it's inside a paragraph, because >>nested paragraphs don't make sense. > > Agreed. (Including inside nested <tables> and <li>s, I assume? But > obviously excluding inside nested <blockquote>s.) I don't think the spec should limit nested content too much because, as is shown by the <p><blockquote><p/></blockquote></p> example, there are valid reasons to nest paragraphs, and possibly others we haven't thought of. Also, as history has shown, HTML4 never thought lists within paragraphs would be needed, though they are now allowed. By placing too much restriction on the content models, we risk locking out legitimate use-cases which we haven't thought of, but which authors may find in the future. I'm not saying we should just allow anything within anything, but we should be careful about being too restrictive. -- Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox From mpt at myrealbox.com Fri Apr 8 05:28:52 2005 From: mpt at myrealbox.com (Matthew Thomas) Date: Sat, 09 Apr 2005 00:28:52 +1200 Subject: [whatwg] <p> elements containing other block-level elements In-Reply-To: <Pine.LNX.4.61.0504081015180.20461@dhalsim.dreamhost.com> References: <Pine.LNX.4.61.0504051557200.2016@dhalsim.dreamhost.com> <4254DD87.7010604@annevankesteren.nl> <42555AB0.5070904@lachy.id.au> <42555C24.1010800@annevankesteren.nl> <4255BFA4.4010901@myrealbox.com> <Pine.LNX.4.61.0504081015180.20461@dhalsim.dreamhost.com> Message-ID: <42567904.8010808@myrealbox.com> Ian Hickson wrote: >... > > <li>they would have acceptable presentation in UAs that claim HTML4 > > support.</li> > > Even in HTML5 UAs, in the HTML parser this: > > <p><ul><li></li></ul></p> > > ....will become this: > > <p></p><ul><li></li></ul> That's why I said "acceptable", rather than "perfect". (Others misunderstood what I meant too, so I should have used "readable". Access via the DOM is something I personally care less about.) >... > Of b and d I prefer b. That, along with embedding MathML and other XML > vocabularies, would be a reason to migrate to XML, if we consider that a > good thing. It will perhaps be a good thing once a future version of XML gives authors the option of more graceful error-handling. >... > > The content model for any block element allowed inside paragraphs should > > be tweaked to not allow paragraphs when it's inside a paragraph, because > > nested paragraphs don't make sense. > > Agreed. (Including inside nested <tables> and <li>s, I assume? Yes. (<li>s were the main element I was thinking of. There are lists where each item is one or more paragraphs, lists that are completely inside paragraphs, and lists that have nothing to do with paragraphs. Those sets don't intersect.) > But obviously excluding inside nested <blockquote>s.) What? I can't think of any legitimate use case for that exception. -- Matthew Thomas http://mpt.net.nz/ From hsivonen at iki.fi Fri Apr 8 05:34:38 2005 From: hsivonen at iki.fi (Henri Sivonen) Date: Fri, 08 Apr 2005 15:34:38 +0300 Subject: [whatwg] <p> elements containing other block-level elements In-Reply-To: <Pine.LNX.4.61.0504081015180.20461@dhalsim.dreamhost.com> References: <Pine.LNX.4.61.0504051557200.2016@dhalsim.dreamhost.com> <4254DD87.7010604@annevankesteren.nl> <42555AB0.5070904@lachy.id.au> <42555C24.1010800@annevankesteren.nl> <4255BFA4.4010901@myrealbox.com> <Pine.LNX.4.61.0504081015180.20461@dhalsim.dreamhost.com> Message-ID: <42567A5E.50307@iki.fi> Ian Hickson wrote: > At the end of the day this would just be saying "in XML you can also do > this". Avoiding those options for people who serialise to both XML and > HTML is relatively easy, just like avoiding xml:base and MathML. Detecting stuff in non-XHTML namespaces is significantly easier than detecting incompatible use of XHTML elements. -- Henri Sivonen hsivonen at iki.fi http://hsivonen.iki.fi/ From lachlan.hunt at lachy.id.au Fri Apr 8 07:01:35 2005 From: lachlan.hunt at lachy.id.au (Lachlan Hunt) Date: Sat, 09 Apr 2005 00:01:35 +1000 Subject: [whatwg] [WF2] Fixing Repetition Template Degradation in IE without Scripting Message-ID: <42568EBF.6060003@lachy.id.au> Hi, I've just done some experements with the repetition templates, and tried to devise a way to help IE end up with usable submit buttons, rather than useless push buttons. The solution I came up with involves a little (read: extremely evil and dirty) hack with IE's proprietary conditional comments. However, it doesn't quite work as expected, and I thought someone may be able to figure out a way to extend this idea a little more to make it work. For the remove button, this displays the correct button for IE 5 and 6. <!--[if IE 1]>--><button type="remove" name="remove" value="[player]"> Remove</button><!--<![endif]--> <!--[if IE]><button name="remove" value="[player]" type="submit"> Remove</button><![endif]--> Note: This: <!--[if IE 1]>-->...<!--<![endif]--> is a validating version of the so-called "downlevel-revealed" conditional comment: <![if expression]> HTML <![endif]> (which should probaby be nick-named "uplevel-revealed" :-)). For the add button, this code works as intended, but still buggy like remove is (as I will explain later): <!--[if IE 1]>--><button type="add" name="add" value="add"> Add Player</button><!--<![endif]--> <!--[if IE]><button type="submit" name="add" value="add"> Add Player</button><![endif]--> Ok, the problem with the solution is that IE still sends the name/value pair for both the add and remove button regardless of which one was clicked (ie. "successful") and sends the button label as the value, rather than the value attribute. This can be seen by looking at the resultant query string from the submission: ...&remove=Remove+IE&add=Add+Player+%28IE%29 This seems to works as intended for the add button because the add name/value pair must be detected and used in the server-side script, before the remove. So, it ends up adding a field regardless of which button was pressed. The only solution I could think of was to change the <button>s to <input>s, however the buttons would then be labeled with the text from the value attribute (ie. "[player]" and "add" for remove and add buttons, respectively). And changing that value attribute, at least for the remove button, would stop server-side script form working correctly to remove the correct fields. Lastly, for anyone wondering how this solution would work after IE7 is released, and if IE fixes their <button> implementation, then the conditonal comments can be altered as follows: Change: <!--[if IE 1]>--> To: <!--[if IE 7]><!-- -- --> Change: <!--[if IE]> To: <!--[if lt IE 7]> However, even without these alterations the IE 5/6 version of the buttons should still work in IE7 anyway. Without the special <!-- -- --> pseudo-comment [1], IE7 would end up outputting the "-->" from the original "if IE 1" version. The 3 double-hyphens "--" ensures that the enitire comment remains valid in SGML. [1] I called it a pseudo comment because it's not really a full comment in SGML terms, it only looks like one. The real SGML comment is the full thing including: <!-- ... -- -- --> -- Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox From ian at hixie.ch Fri Apr 8 07:11:27 2005 From: ian at hixie.ch (Ian Hickson) Date: Fri, 8 Apr 2005 14:11:27 +0000 (UTC) Subject: [whatwg] <p> elements containing other block-level elements In-Reply-To: <42567A5E.50307@iki.fi> References: <Pine.LNX.4.61.0504051557200.2016@dhalsim.dreamhost.com> <4254DD87.7010604@annevankesteren.nl> <42555AB0.5070904@lachy.id.au> <42555C24.1010800@annevankesteren.nl> <4255BFA4.4010901@myrealbox.com> <Pine.LNX.4.61.0504081015180.20461@dhalsim.dreamhost.com> <42567A5E.50307@iki.fi> Message-ID: <Pine.LNX.4.61.0504081351400.25142@dhalsim.dreamhost.com> On Fri, 8 Apr 2005, Henri Sivonen wrote: > Ian Hickson wrote: > > At the end of the day this would just be saying "in XML you can also > > do this". Avoiding those options for people who serialise to both XML > > and HTML is relatively easy, just like avoiding xml:base and MathML. > > Detecting stuff in non-XHTML namespaces is significantly easier than > detecting incompatible use of XHTML elements. Very true. But you have to do the checking anyway. Say someone wrote this (non-conforming) markup: ... <p> <input> Test </input> </p> ... You wouldn't be able to serialise it to HTML. Or this: <style> <em> { color: red; } </style> Again, you need special serialisation code for that. (In fact you need special code for <style> in general, since it's PCDATA in XHTML and CDATA in HTML.) Come to think of it, you also need special processing for <script> -- processing that actually changes the script, since for legacy UAs you need the non-namespaced methods but in XML you have to use the namespaced ones. So I don't think the situation is as clear cut as all that. Is catching <ul>s inside <p>s something that crosses the line? -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From ian at hixie.ch Fri Apr 8 08:12:59 2005 From: ian at hixie.ch (Ian Hickson) Date: Fri, 8 Apr 2005 15:12:59 +0000 (UTC) Subject: [whatwg] <p> elements containing other block-level elements In-Reply-To: <42567904.8010808@myrealbox.com> References: <Pine.LNX.4.61.0504051557200.2016@dhalsim.dreamhost.com> <4254DD87.7010604@annevankesteren.nl> <42555AB0.5070904@lachy.id.au> <42555C24.1010800@annevankesteren.nl> <4255BFA4.4010901@myrealbox.com> <Pine.LNX.4.61.0504081015180.20461@dhalsim.dreamhost.com> <42567904.8010808@myrealbox.com> Message-ID: <Pine.LNX.4.61.0504081440250.25142@dhalsim.dreamhost.com> On Sat, 9 Apr 2005, Matthew Thomas wrote: > > That's why I said "acceptable", rather than "perfect". (Others > misunderstood what I meant too, so I should have used "readable". Access > via the DOM is something I personally care less about.) Access via the DOM also affects styling. Also, if UAs have to parse it in the old way, what's the point? It's not increasing the semantics, since the UAs have to parse it the old way. > > Of b and d I prefer b. That, along with embedding MathML and other XML > > vocabularies, would be a reason to migrate to XML, if we consider that > > a good thing. > > It will perhaps be a good thing once a future version of XML gives > authors the option of more graceful error-handling. Quite. > > > The content model for any block element allowed inside paragraphs > > > should be tweaked to not allow paragraphs when it's inside a > > > paragraph, because nested paragraphs don't make sense. > > > > Agreed. (Including inside nested <tables> and <li>s, I assume? > > Yes. (<li>s were the main element I was thinking of. There are lists > where each item is one or more paragraphs, lists that are completely > inside paragraphs, and lists that have nothing to do with paragraphs. > Those sets don't intersect.) I agree. > > But obviously excluding inside nested <blockquote>s.) > > What? I can't think of any legitimate use case for that exception. The whole point of a <_block_ quote> (as opposed to an inline <q>uote) is that it contains block-level elements, not inline content. If I want to quote someone who said: Hello in one paragraph. World in the next. ...then I'm obviously going to need two paragraphs. Indeed these last eight lines are an example of this. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From olav at olav.dk Fri Apr 8 08:38:54 2005 From: olav at olav.dk (=?ISO-8859-1?Q?Olav_Junker_Kj=E6r?=) Date: Fri, 08 Apr 2005 17:38:54 +0200 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <4255CE76.3000702@sympatico.ca> References: <42524E27.6060006@annevankesteren.nl> <42546FCE.5070900@lachy.id.au> <Pine.LNX.4.61.0504062335130.20461@dhalsim.dreamhost.com> <4254CE93.4000403@lachy.id.au> <Pine.LNX.4.61.0504071037490.20461@dhalsim.dreamhost.com> <42550FFD.20201@annevankesteren.nl> <Pine.LNX.4.61.0504071050580.20461@dhalsim.dreamhost.com> <851c8d310504070356287eb4b1@mail.gmail.com> <425512EE.9060205@annevankesteren.nl> <Pine.LNX.4.61.0504071103310.20461@dhalsim.dreamhost.com> <851c8d31050407041135d65f31@mail.gmail.com> <42551D99.5010903@olav.dk> <4255CE76.3000702@sympatico.ca> Message-ID: <4256A58E.2020106@olav.dk> Petrazickis wrote: > Wouldn't authors need to use an HTML4 or an XHTML doctype specifically > to trigger the standards mode in IE6? In that case, specifying a doctype > of our own would be counter-productive to the goal of compatibility with > IE6. Standards mode is triggered by any doctype tag, except some specific doctypes which is defined as triggering quirks mode. More specificly, it seems that standards mode is triggered by the string <!DOCTYPE in the beginning of the document. It doesn't even have to be closed :-) If the <!DOCTYPE is preceded by anything other than whitespace, quirks mode is used. (That way, quirks mode can be forced on any document by preceding the doctype with a comment.) regards Olav Junker Kj?r From hsivonen at iki.fi Fri Apr 8 09:26:33 2005 From: hsivonen at iki.fi (Henri Sivonen) Date: Fri, 8 Apr 2005 19:26:33 +0300 Subject: [whatwg] <p> elements containing other block-level elements In-Reply-To: <Pine.LNX.4.61.0504081351400.25142@dhalsim.dreamhost.com> References: <Pine.LNX.4.61.0504051557200.2016@dhalsim.dreamhost.com> <4254DD87.7010604@annevankesteren.nl> <42555AB0.5070904@lachy.id.au> <42555C24.1010800@annevankesteren.nl> <4255BFA4.4010901@myrealbox.com> <Pine.LNX.4.61.0504081015180.20461@dhalsim.dreamhost.com> <42567A5E.50307@iki.fi> <Pine.LNX.4.61.0504081351400.25142@dhalsim.dreamhost.com> Message-ID: <31627ca7224496bef9b832bae071a7b1@iki.fi> On Apr 8, 2005, at 17:11, Ian Hickson wrote: > On Fri, 8 Apr 2005, Henri Sivonen wrote: >> Ian Hickson wrote: >>> At the end of the day this would just be saying "in XML you can also >>> do this". Avoiding those options for people who serialise to both XML >>> and HTML is relatively easy, just like avoiding xml:base and MathML. >> >> Detecting stuff in non-XHTML namespaces is significantly easier than >> detecting incompatible use of XHTML elements. > > Very true. But you have to do the checking anyway. The issue is how and at what time. > Say someone wrote this > (non-conforming) markup: > > ... > <p> > <input> Test </input> > </p> > ... > > You wouldn't be able to serialise it to HTML. No, but that wouldn't be conforming as the XHTML flavor, either. Therefore, that kind of content should not enter a CMS regardless of serialization. > Or this: > > <style> > <em> { color: red; } > </style> > > Again, you need special serialisation code for that. Again, that does not make sense in either flavor. > (In fact you need special code for <style> in general, since it's > PCDATA in XHTML and CDATA > in HTML.) I know. I intend to deal with <style> and <script> later--just for completeness. Currently, I am dodging the issue by avoiding embedded styles and scripts. > Come to think of it, you also need special processing for <script> -- > processing that actually changes the script, since for legacy UAs you > need > the non-namespaced methods but in XML you have to use the namespaced > ones. I would prefer to say that scripts ought to be external and their writers more aware of HTML vs. XHTML issues that casual content writers. > So I don't think the situation is as clear cut as all that. > > Is catching <ul>s inside <p>s something that crosses the line? It changes assumptions rather significantly if you need to know at the input stage what output flavor is going to be used. I see the option are: a) Banning XHTML divergence for everyone. b) Behaving as if a) was the case and barfing at XHTML that cannot be serialized as HTML. c) Bending over backwards in order to track whether a given piece of data can be serialized as HTML and whether there is a future need for a given piece of data to be serialized as HTML. Option a) doesn't seem popular and implementing c) would be a pain, which seems to leave b) for those who serialize as HTML. Of course, the reason why one would want to serialize as HTML is IE (and Lynx). -- Henri Sivonen hsivonen at iki.fi http://hsivonen.iki.fi/ From hsivonen at iki.fi Fri Apr 8 09:53:00 2005 From: hsivonen at iki.fi (Henri Sivonen) Date: Fri, 8 Apr 2005 19:53:00 +0300 Subject: [whatwg] text/html conformance checkers and optional tag inference Message-ID: <fe9d57b0be138e4b025b4719f5f6140c@iki.fi> Does any What WG document specify what optional tag inference features a conformance checker for the text/html flavor is required to implement and what elements are required to be considered empty? Should What WG require tags that were optional in HTML 4 to be mandatory? -- Henri Sivonen hsivonen at iki.fi http://hsivonen.iki.fi/ From lachlan.hunt at lachy.id.au Fri Apr 8 20:42:04 2005 From: lachlan.hunt at lachy.id.au (Lachlan Hunt) Date: Sat, 09 Apr 2005 13:42:04 +1000 Subject: [whatwg] [WA1] Title Element Content Model Message-ID: <42574F0C.4010106@lachy.id.au> Hi, The current draft states [1]: | In HTML (as opposed to XHTML), the title element must not contain | content other than text and entities; user agents must parse the | element so that entities are recognised and processed, but all other | markup is interpreted as literal text. I think that should be changed to state: "... but, for backwards compatibility, all other markup (such as elements and comments) should be interpreted as literal text." I don't think intentionally broken behaviour should ever be a strict requirement, only a strong recommendation for backwards compatibility. Although, are there any valid reasons as to why this requirement must be retained, even in standards compliant mode? Would many sites break if it were fixed in standards mode? | In XHTML, the title element must not contain any elements. I disagree with this. XHTML 2 has been updated to allow markup within the title element and I think this XHTML should too. Since we can change the content models for XHTML, I see no reason not too. Here are some use cases I can think of: <title><span xml:lang="pt-BR">Brasil Futebol</span>: Brazil - Football World Champions</title> (Real example I found [2], though I added the language markup, and the primary language appeared to be "en"). <title> Eric's Archived Thoughts: <em>Really</em> Undoing html.css </title> (Note: Was a real example from meyerweb, but the WP bug that initally allowed it seems to have been fixed. This was also an example of why the requirement for HTML parsers to treat the element as plain text (at least in standards mode) is bad [2]) <title><abbr title="Hypertext Markup Language">HTML</abbr> Tutorial</title> Although current visual browsers may not be able to show things like emphasis or abbr expansions (eg. tooltips) visually in the window's title bar (though, that would probably depend on the OS), non-visual UAs (eg. aural) may still be able to indicate emphsis, expand abbr, etc. (eg. when speaking it).0 [1] http://www.whatwg.org/specs/web-apps/current-work/#the-title [2] http://www.the-football.com/brasil_2.html [3] http://meyerweb.com/eric/thoughts/2004/09/15/when-blog-software-attacks/ -- Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox From lachlan.hunt at lachy.id.au Fri Apr 8 23:29:49 2005 From: lachlan.hunt at lachy.id.au (Lachlan Hunt) Date: Sat, 09 Apr 2005 16:29:49 +1000 Subject: [whatwg] [WA1] Specifying Character Encoding Message-ID: <4257765D.1080009@lachy.id.au> In the current draft, for specifying the character encoding [1], it is stated: | In XHTML, the XML declaration should be used for inline character | encoding information. | | Authors should avoid including inline character encoding information. | Character encoding information should instead be included at the | transport level (e.g. using the HTTP Content-Type header). The second paragraph should only apply to HTML using the meta element, not XHTML using the XML declaration. For X(HT)ML, according to the Architecture of the World Wide Web, Volume One - Media types for XML [2]: | In general, a representation provider SHOULD NOT specify the character | encoding for XML data in protocol headers since the data is | self-describing. I think it should also be noted that authors who omit the XML declaration (or include it but don't specify the encoding attribute) *must* use UTF-8 or UTF-16, as described in the XML recommendation. [1] http://www.whatwg.org/specs/web-apps/current-work/#charset [2] http://www.w3.org/TR/2004/REC-webarch-20041215/#xml-media-types -- Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox From fora at annevankesteren.nl Fri Apr 8 23:55:45 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Sat, 09 Apr 2005 08:55:45 +0200 Subject: [whatwg] [WA1] Specifying Character Encoding In-Reply-To: <4257765D.1080009@lachy.id.au> References: <4257765D.1080009@lachy.id.au> Message-ID: <42577C71.7050807@annevankesteren.nl> Lachlan Hunt wrote: > | In XHTML, the XML declaration should be used for inline character > | encoding information. > | > | Authors should avoid including inline character encoding information. > | Character encoding information should instead be included at the > | transport level (e.g. using the HTTP Content-Type header). > > The second paragraph should only apply to HTML using the meta element, > not XHTML using the XML declaration. Why? If people are still using text/xml for example you really want them to use the HTTP Content-Type header. Otherwise its US-ASCII. > I think it should also be noted that authors who omit the XML > declaration (or include it but don't specify the encoding attribute) > *must* use UTF-8 or UTF-16, as described in the XML recommendation. Where did you read that in the XML specification? You can always specify encoding using the 'charset' parameter. That it is not recommended because "webarch" things documents should be self-describing doesn't matter. Also note that when the document is served using text/xml they could use UTF-8 but it wouldn't work. -- Anne van Kesteren <http://annevankesteren.nl/> From fora at annevankesteren.nl Sat Apr 9 00:06:01 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Sat, 09 Apr 2005 09:06:01 +0200 Subject: [whatwg] [WA1] Title Element Content Model In-Reply-To: <42574F0C.4010106@lachy.id.au> References: <42574F0C.4010106@lachy.id.au> Message-ID: <42577ED9.4060207@annevankesteren.nl> Lachlan Hunt wrote: > | In HTML (as opposed to XHTML), the title element must not contain > | content other than text and entities; user agents must parse the > | element so that entities are recognised and processed, but all other > | markup is interpreted as literal text. > > I think that should be changed to state: > > "... but, for backwards compatibility, all other markup (such as > elements and comments) should be interpreted as literal text." Why? Its content model is #PCDATA: <http://www.w3.org/TR/html401/struct/global.html#h-7.4.2> You also don't want to introduce this in standards mode or so as you don't want to make parsing documents harder. You do not want to introduce more quirks. > | In XHTML, the title element must not contain any elements. > > I disagree with this. XHTML 2 has been updated to allow markup within > the title element and I think this XHTML should too. Since we can > change the content models for XHTML, I see no reason not too. It would work as current UAs (I tested in Mozilla) ignore elements inside TITLE. -- Anne van Kesteren <http://annevankesteren.nl/> From lachlan.hunt at lachy.id.au Sat Apr 9 00:23:55 2005 From: lachlan.hunt at lachy.id.au (Lachlan Hunt) Date: Sat, 09 Apr 2005 17:23:55 +1000 Subject: [whatwg] [WA1] Title Element Content Model In-Reply-To: <42577ED9.4060207@annevankesteren.nl> References: <42574F0C.4010106@lachy.id.au> <42577ED9.4060207@annevankesteren.nl> Message-ID: <4257830B.5000305@lachy.id.au> Anne van Kesteren wrote: > Lachlan Hunt wrote: > >> | In HTML (as opposed to XHTML), the title element must not contain >> | content other than text and entities; user agents must parse the >> | element so that entities are recognised and processed, but all other >> | markup is interpreted as literal text. >> >> I think that should be changed to state: >> >> "... but, for backwards compatibility, all other markup (such as >> elements and comments) should be interpreted as literal text." > > Why? Its content model is #PCDATA: I know, so for HTML 4, current browsers shouldn't interpret markup as plain text and display it in the title bar, but they do. eg. <title><em>Hello</em> World!</title> Will be displayed by current UAs in the title as "<em>Hello</em> World!", instead of just "Hello World!". As you can see in the quote above, the current draft makes this incorrect behaviour a requirement by stating that: "user agents must parse the element so that [...] all other markup is interpreted as literal text." I am only requesting that that requirement be changed from a *must* to a *should* for backwards compatibility, because that's what current UAs do now, but not what strictly conforming SGML/HTML 4 UAs are supposed do. -- Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox From hsivonen at iki.fi Sat Apr 9 01:18:11 2005 From: hsivonen at iki.fi (Henri Sivonen) Date: Sat, 9 Apr 2005 11:18:11 +0300 Subject: [whatwg] [WA1] Specifying Character Encoding In-Reply-To: <4257765D.1080009@lachy.id.au> References: <4257765D.1080009@lachy.id.au> Message-ID: <27564017cc36afcbdf21eca341ddf5cd@iki.fi> On Apr 9, 2005, at 09:29, Lachlan Hunt wrote: > In the current draft, for specifying the character encoding [1], it is > stated: ... > | Authors should avoid including inline character encoding information. Since many current UAs do not reserialize docs with inline character encoding information when saving to disk, I think it is appropriate and mostly harmless to specify UTF-8 both in the HTTP header and inline. > For X(HT)ML, according to the Architecture of the World Wide Web, > Volume One - Media types for XML [2]: > > | In general, a representation provider SHOULD NOT specify the > character > | encoding for XML data in protocol headers since the data is > | self-describing. Too bad RFC 3023 gives bad advice and insists on harmful defaults for text/*. -- Henri Sivonen hsivonen at iki.fi http://hsivonen.iki.fi/ From lachlan.hunt at lachy.id.au Sat Apr 9 01:29:26 2005 From: lachlan.hunt at lachy.id.au (Lachlan Hunt) Date: Sat, 09 Apr 2005 18:29:26 +1000 Subject: [whatwg] [WA1] Specifying Character Encoding In-Reply-To: <42577C71.7050807@annevankesteren.nl> References: <4257765D.1080009@lachy.id.au> <42577C71.7050807@annevankesteren.nl> Message-ID: <42579266.6080901@lachy.id.au> Anne van Kesteren wrote: > Lachlan Hunt wrote: > >> | In XHTML, the XML declaration should be used for inline character >> | encoding information. >> | >> | Authors should avoid including inline character encoding information. >> | Character encoding information should instead be included at the >> | transport level (e.g. using the HTTP Content-Type header). >> >> The second paragraph should only apply to HTML using the meta element, >> not XHTML using the XML declaration. > > Why? If people are still using text/xml for example you really want them > to use the HTTP Content-Type header. Otherwise its US-ASCII. I didn't consider text/xml because the current draft states in the conformance requirements. | XML documents [...] that are served over the wire (e.g. by HTTP) must | be sent using an XML MIME type such as application/xml or | application/xhtml+xml... I had initially interpreted that as meaning authors must use application/*+xml and must not use text/xml; however, that interpretation may be incorrect. Perhaps it should be explicitly stated that text/xml should not be used, with a reference to the webarch recommendation. In any case, my statement about the second paragraph still stands for XML served as application/*+xml, though it should probably apply to XML served as text/xml too. It is unclear whether or not a document served as text/xml;charset=whatever, should include the XML encoding declaration or not, but probably not because: "Transcoding may make the self-description false..." (as described in webarch). >> I think it should also be noted that authors who omit the XML >> declaration (or include it but don't specify the encoding attribute) >> *must* use UTF-8 or UTF-16, as described in the XML recommendation. > > Where did you read that in the XML specification? Appendix F.1. states [1]: | Because each XML entity not accompanied by external encoding | information and not in UTF-8 or UTF-16 encoding must begin with an XML | encoding declaration > You can always specify encoding using the 'charset' parameter. ...although I had forgotten it was acceptable to use an encoding other than UTF-8 or UTF-16 without the xml declaration when "accompanied by external encoding information", as well as being somewhat misinformed by the statement in XHTML 1.0 Appendix C [2]: | Remember, however, that when the XML declaration is not included in a | document, the document can only use the default character encodings | UTF-8 or UTF-16. Which fails to mention the condition of extenal encoding information. [1] http://www.w3.org/TR/REC-xml/#sec-guessing [2] http://www.w3.org/TR/xhtml1/#C_1 -- Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox From fora at annevankesteren.nl Sat Apr 9 02:28:54 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Sat, 09 Apr 2005 11:28:54 +0200 Subject: [whatwg] [WA1] Specifying Character Encoding In-Reply-To: <42579266.6080901@lachy.id.au> References: <4257765D.1080009@lachy.id.au> <42577C71.7050807@annevankesteren.nl> <42579266.6080901@lachy.id.au> Message-ID: <4257A056.50000@annevankesteren.nl> Lachlan Hunt wrote: > Perhaps it should be explicitly stated that text/xml should not be > used, with a reference to the webarch recommendation. Should not does not forbid it. Also, WHATWG shouldn't say anything about the MIME type you MUST use for XML IMHO. An update for RFC 3023 is in process which deprecates text/xml, but still not forbids it. So WHATWG shouldn't make assumptions about that IMHO. >>> I think it should also be noted that authors who omit the XML >>> declaration (or include it but don't specify the encoding >>> attribute) *must* use UTF-8 or UTF-16, as described in the XML >>> recommendation. >> >> Where did you read that in the XML specification? > > Appendix F.1. states [1]: Appendix F, as a whole, is non-normative. -- Anne van Kesteren <http://annevankesteren.nl/> From lachlan.hunt at lachy.id.au Sat Apr 9 03:04:53 2005 From: lachlan.hunt at lachy.id.au (Lachlan Hunt) Date: Sat, 09 Apr 2005 20:04:53 +1000 Subject: [whatwg] [WA1] Specifying Character Encoding In-Reply-To: <4257A056.50000@annevankesteren.nl> References: <4257765D.1080009@lachy.id.au> <42577C71.7050807@annevankesteren.nl> <42579266.6080901@lachy.id.au> <4257A056.50000@annevankesteren.nl> Message-ID: <4257A8C5.4000105@lachy.id.au> Anne van Kesteren wrote: > Also, WHATWG shouldn't say anything about the MIME type you MUST use for XML IMHO. Agreed, but there's nothing wrong with stating that this version of XHTML must not be served as text/html and that an XML MIME type must be used instead, without specifying exactly which one. The current wording provides application/xhtml+xml and application/xml as examples only, which I think is acceptable. -- Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox From olav at olav.dk Sun Apr 10 10:32:18 2005 From: olav at olav.dk (=?ISO-8859-1?Q?Olav_Junker_Kj=E6r?=) Date: Sun, 10 Apr 2005 19:32:18 +0200 Subject: [whatwg] multiple forms submit Message-ID: <42596322.5060603@olav.dk> A submit button may be associated with multiple forms through the form attribute. Theoretically, this should allow the button to submit several forms at the same time when pressed. This could get really messy, so I propose that a submit button should only be allowed to be associated with one form at a time. (Along the same line, hitting enter when focus is in a text field should only submit one form.) regards Olav Junker Kj?r From ian at hixie.ch Sun Apr 10 16:44:46 2005 From: ian at hixie.ch (Ian Hickson) Date: Sun, 10 Apr 2005 23:44:46 +0000 (UTC) Subject: [whatwg] multiple forms submit In-Reply-To: <42596322.5060603@olav.dk> References: <42596322.5060603@olav.dk> Message-ID: <Pine.LNX.4.61.0504102310200.20461@dhalsim.dreamhost.com> On Sun, 10 Apr 2005, Olav Junker Kj?r wrote: > > A submit button may be associated with multiple forms through the form > attribute. Theoretically, this should allow the button to submit several > forms at the same time when pressed. This could get really messy, so I > propose that a submit button should only be allowed to be associated > with one form at a time. (Along the same line, hitting enter when focus > is in a text field should only submit one form.) I have tweaked the spec to hopefully fix this. Please let me know if it is still broken. :-) Thanks, -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From olav at olav.dk Mon Apr 11 00:50:59 2005 From: olav at olav.dk (=?ISO-8859-1?Q?Olav_Junker_Kj=E6r?=) Date: Mon, 11 Apr 2005 09:50:59 +0200 Subject: [whatwg] multiple forms submit In-Reply-To: <Pine.LNX.4.61.0504102310200.20461@dhalsim.dreamhost.com> References: <42596322.5060603@olav.dk> <Pine.LNX.4.61.0504102310200.20461@dhalsim.dreamhost.com> Message-ID: <425A2C63.20203@olav.dk> Ian Hickson wrote: > I have tweaked the spec to hopefully fix this. Please let me know if it is > still broken. :-) "Submission buttons only submit the first form they are associated with. Reset buttons must submit all the forms they are associated with." You probably meant "Reset buttons must *reset* all the forms they are associated with." :-) Olav Junker Kj?r From ian at hixie.ch Mon Apr 11 02:11:28 2005 From: ian at hixie.ch (Ian Hickson) Date: Mon, 11 Apr 2005 09:11:28 +0000 (UTC) Subject: [whatwg] multiple forms submit In-Reply-To: <425A2C63.20203@olav.dk> References: <42596322.5060603@olav.dk> <Pine.LNX.4.61.0504102310200.20461@dhalsim.dreamhost.com> <425A2C63.20203@olav.dk> Message-ID: <Pine.LNX.4.61.0504110911170.20461@dhalsim.dreamhost.com> On Mon, 11 Apr 2005, Olav Junker Kj?r wrote: > > "Submission buttons only submit the first form they are associated with. > Reset buttons must submit all the forms they are associated with." > > You probably meant "Reset buttons must *reset* all the forms they are > associated with." :-) Oops, fixed. Thanks. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From ian at hixie.ch Mon Apr 11 09:25:00 2005 From: ian at hixie.ch (Ian Hickson) Date: Mon, 11 Apr 2005 16:25:00 +0000 (UTC) Subject: [whatwg] Image maps: should we drop <a coords="">? Message-ID: <Pine.LNX.4.61.0504111531560.172@dhalsim.dreamhost.com> There are fours ways of doing image maps in HTML4: Server-side with form submit: <form ...> <input type="image" ...> </form> Server-side with hyperlink: <a ...> <img ismap ...> </a> Client-side with <area>: <img usemap="#foo"> (or <object usemap="#foo"></object>) <map id="foo"> ... <area coords="..." ...> </map> Client-side with <a> (doesn't work in WinIE6, works in Moz, Opera): <img usemap="#foo"> (or <object usemap="#foo"></object>) <map id="foo"> ... <a coords="..." ...></a> </map> It seems type="image" is used a lot. ismap="" is also used quite a bit -- roughly 2% of Web sites seem to use it. <area> is used a lot -- almost all image maps use it. I couldn't find any uses of <a coords="">. (Data based on a sample of over 600,000 randomly chosen sites.) I propose we drop <a coords=""> from HTML5. While it is definitely a better design than <area>, it isn't a substantially better design, and having both is confusing. Since here we have a case where one of the options is rarely used (if at all), I believe we can take the opportunity to prune the spec without ill effect. (In contrast, in the <button> vs <input type="submit"> case, we couldn't drop either because they were both heavily used.) Anyone want us to keep <a coords="">? -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From ian at hixie.ch Mon Apr 11 09:50:17 2005 From: ian at hixie.ch (Ian Hickson) Date: Mon, 11 Apr 2005 16:50:17 +0000 (UTC) Subject: [whatwg] <p> elements containing other block-level elements In-Reply-To: <31627ca7224496bef9b832bae071a7b1@iki.fi> References: <Pine.LNX.4.61.0504051557200.2016@dhalsim.dreamhost.com> <4254DD87.7010604@annevankesteren.nl> <42555AB0.5070904@lachy.id.au> <42555C24.1010800@annevankesteren.nl> <4255BFA4.4010901@myrealbox.com> <Pine.LNX.4.61.0504081015180.20461@dhalsim.dreamhost.com> <42567A5E.50307@iki.fi> <Pine.LNX.4.61.0504081351400.25142@dhalsim.dreamhost.com> <31627ca7224496bef9b832bae071a7b1@iki.fi> Message-ID: <Pine.LNX.4.61.0504111627190.172@dhalsim.dreamhost.com> On Thu, 7 Apr 2005, Lachlan Hunt wrote: > > What is the use case for [allowing] tables to be nested inside <p>? For instance: When you look at x | 1 | 2 | ---+---+---+ 1 | 1 | 2 | ---+---+---+ 2 | 2 | 4 | ---+---+---+ ...it is clear that [bla bla bla]. I agree that it doesn't seem to make much sense to nest paragraphs inside those tables though. > > I'm trying to work out exactly what the rules that describe the above > > actually are, but I'm interested in hearing whether people agree or > > disagree with my "good" and "bad" examples above. I'm especially > > interested in what use cases I may have missed (please don't say "I > > think this should be allowed" without giving a real-world example), > > and whether anyone thinks any of the cases I think should be allowed > > should not. > > You missed <p><blockquote/></p>. Oops, yep. Added. > <blockcode> should probably be allowed too, though it doesn't seem to be > included in web apps. Oh well, that's probably a discussion for another > thread anyway, if it hasn't already been discussed (I'll search the > archives later). We haven't discussed it yet. I hadn't really thought about it but given: <pre><code> ... </code></pre> <blockcode> ... </blockcode> ...and given that the former would work in all existing UAs and the second wouldn't, and the former has the same semantics as the second, I don't see much of an advantage to the second. > > Note that all of this would only be relevant to XHTML content (i.e. in > > an XML context), since in text/html HTML we are pretty much stuck with > > the existing parsing models which do things like close <p> elements > > upon hitting another block-level element. > > It's a shame no browser actually reads the DTD, this wouldn't be a > problem if they did :-(. This is one reason why HTML should be a true > SGML application, and why browsers should have been built to conform. Yeah, well. In the words of Syndrome: "Too late. 15 years too late." On Thu, 7 Apr 2005, Anne van Kesteren wrote: > > Ian Hickson wrote: > > One thing that XHTML2 does which makes a lot of sense to me is allow nesting > > of certain elements within <p> elements, as in: > > > > <p> > > For this recipe you need > > <ul> > > <li>an egg,</li> > > <li>flour, and</li> > > <li>butter.</li> > > </ul> > > Mix it all together and so forth. > > </p> > > The problem is that you mix inline with block-level. Unless UL is > redefined to be inline level within P I don't think this is a good idea. > I like the idea of having either inline or block-level content. The spec now has block-level, structured inline-level, and strictly inline-level concepts. I'm not overly fond of the names (better suggestions welcome), but I hope it addresses your concerns. > > * <pre> > > We have CODE and other nice inline elements for this. I'll look at <pre> again when it comes to specifying it. I'm not really happy with its semantics myself either. There is a difference between <pre> (or <pre><code>) and <code>, though; the former is much more block- like than the latter. I feel that's somewhat important. > That is indirectly nesting P elements, a bit ugly IMHO. It also doesn't > make sense. Agreed. > > <ol> > > <li> > > <p> > > ... > > <ol> > > <li> > > ... > > Why would you want a P element there? It would probably be part of something bigger, as in: <ol> <li> <p>...</p> <p>...</p> <p>...</p> <p> ... <ol> <li>... > > <pre> > > <p>...</p> > > <p>...</p> > > </pre> > > Ouch! Forbid this. I probably agree with this, but I'm not 100% sure. What about <pre> blocks around e-mails: <pre> <p>Access via the DOM also affects styling.</p> <p>Also, if UAs have to parse it in the old way, what's the point? It's not increasing the semantics, since the UAs have to parse it the old way.</p> </pre> ...or something. Then again, that does look pretty bad. > > <p> > > ... > > <pre>...</pre> > > </p> > > Use case? An inline example, as in: <p> An inline example, as in: <pre> &lt;p&gt;An inline example.&lt;/p&gt; </pre> ...is one use case. </p> ...is one use case. (Sorry.) On Fri, 8 Apr 2005, Michael Gratton wrote: > > As was pointed out elsewhere on this thread (list?), existing UAs would > implicitly close any outer block elements upon encountering a nested > block element. In text/html, yeah. I propose we don't change that for HTML5 UAs. It would only be in XHTML documents that you could use these new features (that and by direct DOM manipulation). On Fri, 8 Apr 2005, Anne van Kesteren wrote: > > You removed it now but I think that the 'XML content model' approach > made it quite obvious that is not the HTML content model. I'll be putting that back in due course. I want to first get the basic language done before starting to add the HTML vs XML exceptions. :-) On Fri, 8 Apr 2005, Lachlan Hunt wrote: > > > > The question is whether: > > > > a) We don't allow any of this. > > I don't think progress should be held up any more than it already is by > broken browsers, so let's not let a limitation with HTML affect an XHTML > implementation. Agreed. > > b) We allow it in XML and the DOM but disallow it in the HTML > > serialisation > > Yes, this makes the most sense to me. Cool, it seems we are in agreement then. > Absolutely! Given the incredibly broken SGML/HTML implementations that > will never get any better, Migrating to XML is certainly the best way to > actually progress into the future. I'm sure no-one wants to be stuck > with HTML forever, which is really more of a lost-cause when it comes to > any real enhancements. I think we'll probably be "stuck" with HTML for a very long time -- at least as long as it takes for XML to have a variant created that has well-defined error handling rules other than the author-hostile "abort processing immediately". > I don't think the spec should limit nested content too much because, as > is shown by the <p><blockquote><p/></blockquote></p> example, there are > valid reasons to nest paragraphs, and possibly others we haven't thought > of. Agreed. I've made the spec not restrict the content models per se, just say "this element can contain this category of elements" and made sure the elements are in the right categories. > Also, as history has shown, HTML4 never thought lists within paragraphs > would be needed, though they are now allowed. By placing too much > restriction on the content models, we risk locking out legitimate > use-cases which we haven't thought of, but which authors may find in the > future. I'm not saying we should just allow anything within anything, > but we should be careful about being too restrictive. I agree. We should be careful not to allow too much too, though -- it's easier to allow new things previously disallowed than remove old things previously allowed. On Fri, 8 Apr 2005, Henri Sivonen wrote: > > > > (In fact you need special code for <style> in general, since it's > > PCDATA in XHTML and CDATA in HTML.) > > I know. I intend to deal with <style> and <script> later--just for > completeness. Currently, I am dodging the issue by avoiding embedded > styles and scripts. I would suggest that in that case the solution would be to avoid nesting elements in this way as well. > > Is catching <ul>s inside <p>s something that crosses the line? > > It changes assumptions rather significantly if you need to know at the > input stage what output flavor is going to be used. > > I see the option are: > a) Banning XHTML divergence for everyone. > b) Behaving as if a) was the case and barfing at XHTML that cannot be > serialized as HTML. > c) Bending over backwards in order to track whether a given piece of > data can be serialized as HTML and whether there is a future need for a > given piece of data to be serialized as HTML. > > Option a) doesn't seem popular and implementing c) would be a pain, > which seems to leave b) for those who serialize as HTML. Of course, the > reason why one would want to serialize as HTML is IE (and Lynx). Agreed. Is option b acceptable to you? -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From fora at annevankesteren.nl Mon Apr 11 12:36:20 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Mon, 11 Apr 2005 21:36:20 +0200 Subject: [whatwg] Image maps: should we drop <a coords="">? In-Reply-To: <Pine.LNX.4.61.0504111531560.172@dhalsim.dreamhost.com> References: <Pine.LNX.4.61.0504111531560.172@dhalsim.dreamhost.com> Message-ID: <425AD1B4.8060803@annevankesteren.nl> Ian Hickson wrote: > Anyone want us to keep <a coords="">? The reason I especially liked it was: <object data="foo" usemap="#foo"> <map id="foo"> <ul> <li><a coords="...">...</a> ... ... but I never really used it for something as it wasn't supported by IE... By the way, will it be deprecated, not mentioned or forbidden? Will Mozilla and Opera drop support for it? -- Anne van Kesteren <http://annevankesteren.nl/> From ian at hixie.ch Mon Apr 11 13:16:58 2005 From: ian at hixie.ch (Ian Hickson) Date: Mon, 11 Apr 2005 20:16:58 +0000 (UTC) Subject: [whatwg] Web Forms 2.0 submission to W3C Message-ID: <Pine.LNX.4.61.0504112004530.20461@dhalsim.dreamhost.com> FYI, the W3C has just acknowledged receipt of the Web Forms 2.0 draft that Mozilla and Opera submitted (on behalf of the WHATWG). Web Forms 2 draft http://www.w3.org/Submission/web-forms2/ W3C Team Comment http://www.w3.org/Submission/2005/02/Comment We'll be publishing another call for comments that takes into account the technical comments that W3C staff sent to us privately as very soon. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From fantasai.lists at inkedblade.net Mon Apr 11 13:46:05 2005 From: fantasai.lists at inkedblade.net (fantasai) Date: Mon, 11 Apr 2005 16:46:05 -0400 Subject: [whatwg] <p> elements containing other block-level elements In-Reply-To: <Pine.LNX.4.61.0504111627190.172@dhalsim.dreamhost.com> References: <Pine.LNX.4.61.0504051557200.2016@dhalsim.dreamhost.com> <4254DD87.7010604@annevankesteren.nl> <42555AB0.5070904@lachy.id.au> <42555C24.1010800@annevankesteren.nl> <4255BFA4.4010901@myrealbox.com> <Pine.LNX.4.61.0504081015180.20461@dhalsim.dreamhost.com> <42567A5E.50307@iki.fi> <Pine.LNX.4.61.0504081351400.25142@dhalsim.dreamhost.com> <31627ca7224496bef9b832bae071a7b1@iki.fi> <Pine.LNX.4.61.0504111627190.172@dhalsim.dreamhost.com> Message-ID: <425AE20D.10605@inkedblade.net> Ian Hickson wrote: > I agree that it doesn't seem to make much sense to nest paragraphs inside > those tables though. Agreed. > <pre><code> ... </code></pre> > <blockcode> ... </blockcode> > > ...and given that the former would work in all existing UAs and the second > wouldn't, and the former has the same semantics as the second, I don't see > much of an advantage to the second. It's similar to the distinction between <div><q> ... </q></div> and <blockquote> ... </blockquote> >>That is indirectly nesting P elements, a bit ugly IMHO. It also doesn't >>make sense. > > Agreed. > >>> <ol> >>> <li> >>> <p> >> >>Why would you want a P element there? > > It would probably be part of something bigger, as in: > > <ol> > <li> > <p>...</p> > <p>...</p> > <p>...</p> > <p> > ... > <ol> > <li>... You're still indirectly nesting paragraphs here. Although I agree that you get nested paragraphs with blockquote, I don't think that the author's own text would have a paragraph within a paragraph, list markers notwithstanding. >>> <pre> >>> <p>...</p> >>> <p>...</p> >>> </pre> >> >>Ouch! Forbid this. > > I probably agree with this, but I'm not 100% sure. What about <pre> > blocks around e-mails: <pre> means <preformatted> not <preserve whitespace>. You should not have block-level markup within <pre>; block-level distinctions within <preformatted> text (such as plaintext emails) are given by the previous formatting (e.g. whitespace). (Yes, I meant 'e.g.'; C code is preformatted, too, but its block level distinctions are given by braces and the like.) ~fantasai From fantasai.lists at inkedblade.net Mon Apr 11 13:59:20 2005 From: fantasai.lists at inkedblade.net (fantasai) Date: Mon, 11 Apr 2005 16:59:20 -0400 Subject: [whatwg] Image maps: should we drop <a coords="">? In-Reply-To: <Pine.LNX.4.61.0504111531560.172@dhalsim.dreamhost.com> References: <Pine.LNX.4.61.0504111531560.172@dhalsim.dreamhost.com> Message-ID: <425AE528.2070809@inkedblade.net> Ian Hickson wrote: > Client-side with <a> (doesn't work in WinIE6, works in Moz, Opera): > > <img usemap="#foo"> (or <object usemap="#foo"></object>) > <map id="foo"> > ... > <a coords="..." ...></a> > </map> > > I couldn't find any uses of <a coords="">. (Data based > on a sample of over 600,000 randomly chosen sites.) I'd guess that's because of the WinIE6 holdup. Hardly anyone designs a site that won't work in WinIE6. > I propose we drop <a coords=""> from HTML5. While it is definitely a > better design than <area>, it isn't a substantially better design, and > having both is confusing. Since here we have a case where one of the > options is rarely used (if at all), I believe we can take the opportunity > to prune the spec without ill effect. (In contrast, in the <button> vs > <input type="submit"> case, we couldn't drop either because they were > both heavily used.) > > Anyone want us to keep <a coords="">? If Moz and Opera support it, then it already passes CR criteria. Besides, you shouldn't be obsoleting things without letting them go through the deprecation stage. No? ~fantasai From ian at hixie.ch Mon Apr 11 15:26:21 2005 From: ian at hixie.ch (Ian Hickson) Date: Mon, 11 Apr 2005 22:26:21 +0000 (UTC) Subject: [whatwg] Image maps: should we drop <a coords="">? In-Reply-To: <425AD1B4.8060803@annevankesteren.nl> References: <Pine.LNX.4.61.0504111531560.172@dhalsim.dreamhost.com> <425AD1B4.8060803@annevankesteren.nl> Message-ID: <Pine.LNX.4.61.0504112221170.20461@dhalsim.dreamhost.com> On Mon, 11 Apr 2005, Anne van Kesteren wrote: > Ian Hickson wrote: > > Anyone want us to keep <a coords="">? > > The reason I especially liked it was: > > <object data="foo" usemap="#foo"> > <map id="foo"> > <ul> > <li><a coords="...">...</a> > ... Yup, it is indeed nice; if image maps had been designed that way from the start it would make sense. But it's not _that_ much nicer than <area>, which we could define as allowing: <object data="foo" usemap="#foo"> <map id="foo"> <ul> <li><area coords="..." href="..."><a href="...">...</a> ... ...which isn't much worse, and has the very important benefit of actually working in IE6. > By the way, will it be deprecated, not mentioned or forbidden? Will > Mozilla and Opera drop support for it? My proposal is to not mention it (and thus make its use non-conforming in HTML5 documents). UAs would be within their rights to keep on supporting it, though. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From ian at hixie.ch Mon Apr 11 15:40:27 2005 From: ian at hixie.ch (Ian Hickson) Date: Mon, 11 Apr 2005 22:40:27 +0000 (UTC) Subject: [whatwg] <p> elements containing other block-level elements In-Reply-To: <425AE20D.10605@inkedblade.net> References: <Pine.LNX.4.61.0504051557200.2016@dhalsim.dreamhost.com> <4254DD87.7010604@annevankesteren.nl> <42555AB0.5070904@lachy.id.au> <42555C24.1010800@annevankesteren.nl> <4255BFA4.4010901@myrealbox.com> <Pine.LNX.4.61.0504081015180.20461@dhalsim.dreamhost.com> <42567A5E.50307@iki.fi> <Pine.LNX.4.61.0504081351400.25142@dhalsim.dreamhost.com> <31627ca7224496bef9b832bae071a7b1@iki.fi> <Pine.LNX.4.61.0504111627190.172@dhalsim.dreamhost.com> <425AE20D.10605@inkedblade.net> Message-ID: <Pine.LNX.4.61.0504112226280.20461@dhalsim.dreamhost.com> On Mon, 11 Apr 2005, fantasai wrote: > > > > <pre><code> ... </code></pre> > > <blockcode> ... </blockcode> > > > > ...and given that the former would work in all existing UAs and the > > second wouldn't, and the former has the same semantics as the second, > > I don't see much of an advantage to the second. > > It's similar to the distinction between > <div><q> ... </q></div> > and > <blockquote> ... </blockquote> Yes, except that <blockquote> works, and <blockcode> doesn't. Also, <blockquote>'s content model is further block-level elements, whereas <q>s isn't; whereas <pre>'s content model is inline content, the same as <code>. So <pre><code> is actually closer to <p><q> than <div><q>, from a syntax point of view. > > <ol> > > <li> > > <p>...</p> > > <p>...</p> > > <p>...</p> > > <p> > > ... > > <ol> > > <li>... > > You're still indirectly nesting paragraphs here. Could you explain? I don't see any nested paragraphs there, nor in the definition in the spec (which is more important I guess). > Although I agree that you get nested paragraphs with blockquote, I don't > think that the author's own text would have a paragraph within a > paragraph, list markers notwithstanding. I agree. > <pre> means <preformatted> not <preserve whitespace>. You should not > have block-level markup within <pre>; block-level distinctions within > <preformatted> text (such as plaintext emails) are given by the previous > formatting (e.g. whitespace). > > (Yes, I meant 'e.g.'; C code is preformatted, too, but its block level > distinctions are given by braces and the like.) Fair enough. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From ian at hixie.ch Mon Apr 11 15:53:37 2005 From: ian at hixie.ch (Ian Hickson) Date: Mon, 11 Apr 2005 22:53:37 +0000 (UTC) Subject: [whatwg] Image maps: should we drop <a coords="">? In-Reply-To: <425AE528.2070809@inkedblade.net> References: <Pine.LNX.4.61.0504111531560.172@dhalsim.dreamhost.com> <425AE528.2070809@inkedblade.net> Message-ID: <Pine.LNX.4.61.0504112240410.20461@dhalsim.dreamhost.com> On Mon, 11 Apr 2005, fantasai wrote: > > > > Anyone want us to keep <a coords="">? > > If Moz and Opera support it, then it already passes CR criteria. Yeah, but so what? It's not used, it's redundant with another (more widely implemented, not must worse) feature, and it makes the spec more complicated. Would you mind if it was dropped? > Besides, you shouldn't be obsoleting things without letting them go > through the deprecation stage. No? What's the point of the deprecation stage? All it seems to do is legitimise things that we don't want people using. ("Well, I'm only using it temporarily until the spec obsoletes it." "It's only deprecated." "It's deprecated but you can still use it.") Browsers will continue supporting features WELL after the spec obsoletes the feature, let alone deprecates it. People still support <plaintext>... -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From lachlan.hunt at lachy.id.au Mon Apr 11 19:02:06 2005 From: lachlan.hunt at lachy.id.au (Lachlan Hunt) Date: Tue, 12 Apr 2005 12:02:06 +1000 Subject: [whatwg] <p> elements containing other block-level elements In-Reply-To: <Pine.LNX.4.61.0504111627190.172@dhalsim.dreamhost.com> References: <Pine.LNX.4.61.0504051557200.2016@dhalsim.dreamhost.com> <4254DD87.7010604@annevankesteren.nl> <42555AB0.5070904@lachy.id.au> <42555C24.1010800@annevankesteren.nl> <4255BFA4.4010901@myrealbox.com> <Pine.LNX.4.61.0504081015180.20461@dhalsim.dreamhost.com> <42567A5E.50307@iki.fi> <Pine.LNX.4.61.0504081351400.25142@dhalsim.dreamhost.com> <31627ca7224496bef9b832bae071a7b1@iki.fi> <Pine.LNX.4.61.0504111627190.172@dhalsim.dreamhost.com> Message-ID: <425B2C1E.8080008@lachy.id.au> Ian Hickson wrote: >><blockcode> should probably be allowed too, though it doesn't seem to be >>included in web apps. Oh well, that's probably a discussion for another >>thread anyway, if it hasn't already been discussed (I'll search the >>archives later). > > We haven't discussed it yet. I hadn't really thought about it but given: > > <pre><code> ... </code></pre> > <blockcode> ... </blockcode> To use <pre><code> like <blockcode>, one would have to style it with pre>code:only-child { display: block; } Although, there is a very small use case that would make <pre><code> unusable for that purpose. eg. in a marked up e-mail (or other plain text document), one may use <code> to marup code samples. But when there is only one occurance of code in the whole document surrounded only by plain text and no other elements then :only-child would still match it, causing a potentially undesired effect. Though, the chances of that happening are slim and probably not worth worrying about. > ...and given that the former would work in all existing UAs and the second > wouldn't, and the former has the same semantics as the second, I don't see > much of an advantage to the second. You could introduce <blockcode> as an XML only element, but then I guess there's not much stopping me from using <xhtml2:blockcode> instead. >>It's a shame no browser actually reads the DTD, this wouldn't be a >>problem if they did :-(. This is one reason why HTML should be a true >>SGML application, and why browsers should have been built to conform. > > Yeah, well. In the words of Syndrome: "Too late. 15 years too late." hehe. :-) That's one reason why I now consider HTML to be a dying langauge and only being retained for backwards compatibility where XHTML support is unavailable. >>> b) We allow it in XML and the DOM but disallow it in the HTML >>>serialisation >> >>Yes, this makes the most sense to me. > > Cool, it seems we are in agreement then. Wow, really!? This must be a first. :-) > I think we'll probably be "stuck" with HTML for a very long time -- at > least as long as it takes for XML to have a variant created that has > well-defined error handling rules other than the author-hostile "abort > processing immediately". I don't understand what's wrong with the XML error handling. I think it's great because errors should be caught and handled during the authoring process and by the CMS, which XML essentially forces. I don't think user agents should have to gracefully handle errors when it's trivial for authors to fix them. Hopefully, one day CMSs will be built as real XML tools, and people will stop complaining about accidental errors causing a catastrophy. The history of HTML has shown us that unobvious errors simply don't get fixed because many authors are too lazy to even bother checking, and many are even lazier to fix things when they do. I've lost count of the number of posts to www-validator stating something like: "I think the validator should ignore X... I don't know how/want to fix it... It works, so it is not invalid... The validator is wrong/broken." If XML were to allow more graceful error handling, I see nothing but the possibility of history repeating all over again. >>I don't think the spec should limit nested content too much because... > > Agreed. OMG! Twice in the same e-mail! What are the odds of that? :-) > I've made the spec not restrict the content models per se, just > say "this element can contain this category of elements" and made sure the > elements are in the right categories. That seems like the most appropriate way to handle it. -- Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox From lachlan.hunt at lachy.id.au Mon Apr 11 19:02:33 2005 From: lachlan.hunt at lachy.id.au (Lachlan Hunt) Date: Tue, 12 Apr 2005 12:02:33 +1000 Subject: [whatwg] Image maps: should we drop <a coords="">? In-Reply-To: <Pine.LNX.4.61.0504111531560.172@dhalsim.dreamhost.com> References: <Pine.LNX.4.61.0504111531560.172@dhalsim.dreamhost.com> Message-ID: <425B2C39.7010405@lachy.id.au> Ian Hickson wrote: > Client-side with <a> (doesn't work in WinIE6, works in Moz, Opera): > > <img usemap="#foo"> (or <object usemap="#foo"></object>) > <map id="foo"> > ... > <a coords="..." ...></a> > </map> I've never seen that used at all either, most likely because it doesn't work in IE and because every single tutorial I've ever seen only teaches area. > While it is definitely a better design than <area>,it isn't a > substantially better design, How so? Although <a> might have a slightly less presentational name than <area>, the semantics of both are identical when used for an image map. > I believe we can take the opportunity to prune the spec without ill effect. I don't see any harm in either keeping it or removing, but there's not much point to having it either. > Anyone want us to keep <a coords="">? No. One request though. When this section of the spec gets written, can you provide an example with less presentational abuse than HTML 4 does. Using it just to provide a navigational toolbar is innappropriate, because the same can be, and has been, achieved with CSS. Image maps should be used to describe the structure of an image and to indicate significant areas within it. The simplest and most often used non-presentational example I've seen is a world map, but perhaps something like highlighting sections of a photo, for which there are close-up pictures available. eg. <img src="/images/park" usemap="park" alt="..."> <map id="park"> <area coords="..." shape="rect" href="swings" alt="Swing Set" title="Close up photo of the swing set"> <area coords="..." shape="poly" href="tree" alt="Old Willow Tree" title="Close up photo of the old, gnarled willow tree"> </map> -- Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox From fora at annevankesteren.nl Tue Apr 12 01:20:51 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Tue, 12 Apr 2005 10:20:51 +0200 Subject: [whatwg] <p> elements containing other block-level elements In-Reply-To: <Pine.LNX.4.61.0504111627190.172@dhalsim.dreamhost.com> References: <Pine.LNX.4.61.0504051557200.2016@dhalsim.dreamhost.com> <4254DD87.7010604@annevankesteren.nl> <42555AB0.5070904@lachy.id.au> <42555C24.1010800@annevankesteren.nl> <4255BFA4.4010901@myrealbox.com> <Pine.LNX.4.61.0504081015180.20461@dhalsim.dreamhost.com> <42567A5E.50307@iki.fi> <Pine.LNX.4.61.0504081351400.25142@dhalsim.dreamhost.com> <31627ca7224496bef9b832bae071a7b1@iki.fi> <Pine.LNX.4.61.0504111627190.172@dhalsim.dreamhost.com> Message-ID: <425B84E3.2060602@annevankesteren.nl> Ian Hickson wrote: >> You missed <p><blockquote/></p>. > > Oops, yep. Added. I could see the point with CODE versus PRE versus CODE as only child of PRE as they have different kind of semantics. But what is the reason for BLOCKQUOTE? Clearly, Q is for inline and you don't really need BLOCKQUOTE for that. (If you want to quote a table from some other source, perhaps, but then again, you could just alter the Q element its content model.) >> The problem is that you mix inline with block-level. Unless UL is >> redefined to be inline level within P I don't think this is a good >> idea. I like the idea of having either inline or block-level >> content. > > The spec now has block-level, structured inline-level, and strictly > inline-level concepts. I'm not overly fond of the names (better > suggestions welcome), but I hope it addresses your concerns. Mostly, except that they are underdefined at the moment. I assume that section is still being worked on? -- Anne van Kesteren <http://annevankesteren.nl/> From ian at hixie.ch Tue Apr 12 02:31:56 2005 From: ian at hixie.ch (Ian Hickson) Date: Tue, 12 Apr 2005 09:31:56 +0000 (UTC) Subject: [whatwg] <p> elements containing other block-level elements In-Reply-To: <425B2C1E.8080008@lachy.id.au> References: <Pine.LNX.4.61.0504051557200.2016@dhalsim.dreamhost.com> <4254DD87.7010604@annevankesteren.nl> <42555AB0.5070904@lachy.id.au> <42555C24.1010800@annevankesteren.nl> <4255BFA4.4010901@myrealbox.com> <Pine.LNX.4.61.0504081015180.20461@dhalsim.dreamhost.com> <42567A5E.50307@iki.fi> <Pine.LNX.4.61.0504081351400.25142@dhalsim.dreamhost.com> <31627ca7224496bef9b832bae071a7b1@iki.fi> <Pine.LNX.4.61.0504111627190.172@dhalsim.dreamhost.com> <425B2C1E.8080008@lachy.id.au> Message-ID: <Pine.LNX.4.61.0504120926550.20461@dhalsim.dreamhost.com> On Tue, 12 Apr 2005, Lachlan Hunt wrote: > > > > We haven't discussed it yet. I hadn't really thought about it but given: > > > > <pre><code> ... </code></pre> > > <blockcode> ... </blockcode> > > To use <pre><code> like <blockcode>, one would have to style it with > > pre>code:only-child { display: block; } Hm? Why? > > I think we'll probably be "stuck" with HTML for a very long time -- at > > least as long as it takes for XML to have a variant created that has > > well-defined error handling rules other than the author-hostile "abort > > processing immediately". > > I don't understand what's wrong with the XML error handling. I think > it's great because errors should be caught and handled during the > authoring process and by the CMS, which XML essentially forces. Many people feel that a minor typo in their document should not cause their page to stop rendering altogether. I have spoken with a _lot_ of authors who really do not like XML's draconian error handling, including many authors who are always ensuring their documents are valid. I myself have occasionally made typos and other mistakes that, if I had used XML, would have left my site unusable, without my knowledge, for several hours at a time. Personally I don't have a strong opinion; so long as the error handling is defined I don't really mind if it is draconian or error recovery. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From ian at hixie.ch Tue Apr 12 02:34:08 2005 From: ian at hixie.ch (Ian Hickson) Date: Tue, 12 Apr 2005 09:34:08 +0000 (UTC) Subject: [whatwg] <p> elements containing other block-level elements In-Reply-To: <425B84E3.2060602@annevankesteren.nl> References: <Pine.LNX.4.61.0504051557200.2016@dhalsim.dreamhost.com> <4254DD87.7010604@annevankesteren.nl> <42555AB0.5070904@lachy.id.au> <42555C24.1010800@annevankesteren.nl> <4255BFA4.4010901@myrealbox.com> <Pine.LNX.4.61.0504081015180.20461@dhalsim.dreamhost.com> <42567A5E.50307@iki.fi> <Pine.LNX.4.61.0504081351400.25142@dhalsim.dreamhost.com> <31627ca7224496bef9b832bae071a7b1@iki.fi> <Pine.LNX.4.61.0504111627190.172@dhalsim.dreamhost.com> <425B84E3.2060602@annevankesteren.nl> Message-ID: <Pine.LNX.4.61.0504120932130.20461@dhalsim.dreamhost.com> On Tue, 12 Apr 2005, Anne van Kesteren wrote: > Ian Hickson wrote: > > > You missed <p><blockquote/></p>. > > > > Oops, yep. Added. > > I could see the point with CODE versus PRE versus CODE as only child of > PRE as they have different kind of semantics. > > But what is the reason for BLOCKQUOTE? Clearly, Q is for inline and you > don't really need BLOCKQUOTE for that. (If you want to quote a table > from some other source, perhaps, but then again, you could just alter > the Q element its content model.) Q is for quoting something that is part of a paragraph. BLOCKQUOTE is for quoting something that contains paragraphs. > > > The problem is that you mix inline with block-level. Unless UL is > > > redefined to be inline level within P I don't think this is a good > > > idea. I like the idea of having either inline or block-level > > > content. > > > > The spec now has block-level, structured inline-level, and strictly > > inline-level concepts. I'm not overly fond of the names (better > > suggestions welcome), but I hope it addresses your concerns. > > Mostly, except that they are underdefined at the moment. I assume that > section is still being worked on? The whole spec is being worked on. :-) However, I don't really see anything underdefined about the block-level, structured inline-level, and strictly inline-level concepts. What conformance criteria are we missing? -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From ian at hixie.ch Tue Apr 12 02:36:32 2005 From: ian at hixie.ch (Ian Hickson) Date: Tue, 12 Apr 2005 09:36:32 +0000 (UTC) Subject: [whatwg] Image maps: should we drop <a coords="">? In-Reply-To: <425B2C39.7010405@lachy.id.au> References: <Pine.LNX.4.61.0504111531560.172@dhalsim.dreamhost.com> <425B2C39.7010405@lachy.id.au> Message-ID: <Pine.LNX.4.61.0504120934180.20461@dhalsim.dreamhost.com> On Tue, 12 Apr 2005, Lachlan Hunt wrote: > > > > While it is definitely a better design than <area>,it isn't a > > substantially better design, > > How so? Although <a> might have a slightly less presentational name > than <area>, the semantics of both are identical when used for an image > map. It's a better design because it has automatic full fallback. You only include the URI once to have the link work in browsers with no image map support. > One request though. When this section of the spec gets written, can you > provide an example with less presentational abuse than HTML 4 does. > Using it just to provide a navigational toolbar is innappropriate, > because the same can be, and has been, achieved with CSS. Agreed. Incidentally, I'd ask everyone here to please keep me honest when it comes to examples. I'm trying hard to make sure they're all good clean examples but when you've been writing text for three hours, it can be very easy to come up with bogus examples. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From mpt at myrealbox.com Tue Apr 12 03:02:11 2005 From: mpt at myrealbox.com (Matthew Thomas) Date: Tue, 12 Apr 2005 22:02:11 +1200 Subject: [whatwg] <p> elements containing other block-level elements In-Reply-To: <425B2C1E.8080008@lachy.id.au> References: <Pine.LNX.4.61.0504051557200.2016@dhalsim.dreamhost.com> <4254DD87.7010604@annevankesteren.nl> <42555AB0.5070904@lachy.id.au> <42555C24.1010800@annevankesteren.nl> <4255BFA4.4010901@myrealbox.com> <Pine.LNX.4.61.0504081015180.20461@dhalsim.dreamhost.com> <42567A5E.50307@iki.fi> <Pine.LNX.4.61.0504081351400.25142@dhalsim.dreamhost.com> <31627ca7224496bef9b832bae071a7b1@iki.fi> <Pine.LNX.4.61.0504111627190.172@dhalsim.dreamhost.com> <425B2C1E.8080008@lachy.id.au> Message-ID: <425B9CA3.20902@myrealbox.com> Lachlan Hunt wrote: >... > I don't understand what's wrong with the XML error handling. I think > it's great because errors should be caught and handled during the > authoring process and by the CMS, which XML essentially forces. I don't > think user agents should have to gracefully handle errors when it's > trivial for authors to fix them. Hopefully, one day CMSs will be built > as real XML tools, and people will stop complaining about accidental > errors causing a catastrophy. >... <http://diveintomark.org/archives/2004/01/14/thought_experiment> -- Matthew Thomas http://mpt.net.nz/ From olav at olav.dk Tue Apr 12 03:31:05 2005 From: olav at olav.dk (=?ISO-8859-1?Q?Olav_Junker_Kj=E6r?=) Date: Tue, 12 Apr 2005 12:31:05 +0200 Subject: [whatwg] Web Forms 2.0 submission to W3C In-Reply-To: <Pine.LNX.4.61.0504112004530.20461@dhalsim.dreamhost.com> References: <Pine.LNX.4.61.0504112004530.20461@dhalsim.dreamhost.com> Message-ID: <425BA369.8090406@olav.dk> Ian Hickson wrote: > FYI, the W3C has just acknowledged receipt of the Web Forms 2.0 draft that > Mozilla and Opera submitted (on behalf of the WHATWG). Is this good or bad news? The W3C does not seem very enthusiastic about the submission. How is this going to affect the development of the spec? Olav Junker Kj?r From fora at annevankesteren.nl Tue Apr 12 03:36:34 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Tue, 12 Apr 2005 12:36:34 +0200 Subject: [whatwg] <p> elements containing other block-level elements In-Reply-To: <Pine.LNX.4.61.0504120932130.20461@dhalsim.dreamhost.com> References: <Pine.LNX.4.61.0504051557200.2016@dhalsim.dreamhost.com> <4254DD87.7010604@annevankesteren.nl> <42555AB0.5070904@lachy.id.au> <42555C24.1010800@annevankesteren.nl> <4255BFA4.4010901@myrealbox.com> <Pine.LNX.4.61.0504081015180.20461@dhalsim.dreamhost.com> <42567A5E.50307@iki.fi> <Pine.LNX.4.61.0504081351400.25142@dhalsim.dreamhost.com> <31627ca7224496bef9b832bae071a7b1@iki.fi> <Pine.LNX.4.61.0504111627190.172@dhalsim.dreamhost.com> <425B84E3.2060602@annevankesteren.nl> <Pine.LNX.4.61.0504120932130.20461@dhalsim.dreamhost.com> Message-ID: <425BA4B2.8050307@annevankesteren.nl> Ian Hickson wrote: >>>> You missed <p><blockquote/></p>. >>> >>> Oops, yep. Added. > > Q is for quoting something that is part of a paragraph. BLOCKQUOTE is > for quoting something that contains paragraphs. So BLOCKQUOTE doesn't fit inside a paragraph IMHO. So it also doesn't fit inside the model of structured inline-content. > The whole spec is being worked on. :-) However, I don't really see > anything underdefined about the block-level, structured inline-level, > and strictly inline-level concepts. What conformance criteria are we > missing? It would be nice if the different type of element sections pointed back to the elements that are allowed in that section. Not just some examples, but making a list of them. -- Anne van Kesteren <http://annevankesteren.nl/> From ian at hixie.ch Tue Apr 12 03:37:22 2005 From: ian at hixie.ch (Ian Hickson) Date: Tue, 12 Apr 2005 10:37:22 +0000 (UTC) Subject: [whatwg] Web Forms 2.0 submission to W3C In-Reply-To: <425BA369.8090406@olav.dk> References: <Pine.LNX.4.61.0504112004530.20461@dhalsim.dreamhost.com> <425BA369.8090406@olav.dk> Message-ID: <Pine.LNX.4.61.0504121034150.20461@dhalsim.dreamhost.com> On Tue, 12 Apr 2005, Olav Junker Kj?r wrote: > Ian Hickson wrote: > > FYI, the W3C has just acknowledged receipt of the Web Forms 2.0 draft > > that Mozilla and Opera submitted (on behalf of the WHATWG). > > Is this good or bad news? The W3C does not seem very enthusiastic about > the submission. How is this going to affect the development of the spec? It is good news. It is the first step to working with the W3C to move the development of the WHATWG specifications into the W3C fold, while keeping the open nature of the WHATWG development process. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From ian at hixie.ch Tue Apr 12 03:39:55 2005 From: ian at hixie.ch (Ian Hickson) Date: Tue, 12 Apr 2005 10:39:55 +0000 (UTC) Subject: [whatwg] <p> elements containing other block-level elements In-Reply-To: <425BA4B2.8050307@annevankesteren.nl> References: <Pine.LNX.4.61.0504051557200.2016@dhalsim.dreamhost.com> <4254DD87.7010604@annevankesteren.nl> <42555AB0.5070904@lachy.id.au> <42555C24.1010800@annevankesteren.nl> <4255BFA4.4010901@myrealbox.com> <Pine.LNX.4.61.0504081015180.20461@dhalsim.dreamhost.com> <42567A5E.50307@iki.fi> <Pine.LNX.4.61.0504081351400.25142@dhalsim.dreamhost.com> <31627ca7224496bef9b832bae071a7b1@iki.fi> <Pine.LNX.4.61.0504111627190.172@dhalsim.dreamhost.com> <425B84E3.2060602@annevankesteren.nl> <Pine.LNX.4.61.0504120932130.20461@dhalsim.dreamhost.com> <425BA4B2.8050307@annevankesteren.nl> Message-ID: <Pine.LNX.4.61.0504121037370.20461@dhalsim.dreamhost.com> On Tue, 12 Apr 2005, Anne van Kesteren wrote: > > > > Q is for quoting something that is part of a paragraph. BLOCKQUOTE is > > for quoting something that contains paragraphs. > > So BLOCKQUOTE doesn't fit inside a paragraph IMHO. So it also doesn't > fit inside the model of structured inline-content. There have been examples given in this thread of people blockquoting multiple paragraphs half way through a sentence. For example, someone might quote Many people feel that a minor typo in their document should not cause their page to stop rendering altogether. I have spoken with a _lot_ of authors who really do not like XML's draconian error handling, including many authors who are always ensuring their documents are valid. I myself have occasionally made typos and other mistakes that, if I had used XML, would have left my site unusable, without my knowledge, for several hours at a time. ...in the middle of a paragraph, just as this example here shows. > > The whole spec is being worked on. :-) However, I don't really see > > anything underdefined about the block-level, structured inline-level, > > and strictly inline-level concepts. What conformance criteria are we > > missing? > > It would be nice if the different type of element sections pointed back > to the elements that are allowed in that section. Not just some > examples, but making a list of them. Oh, yes, I will be adding that once I know what the complete lists are. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From fora at annevankesteren.nl Tue Apr 12 03:49:56 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Tue, 12 Apr 2005 12:49:56 +0200 Subject: [whatwg] Web Forms 2.0 submission to W3C In-Reply-To: <Pine.LNX.4.61.0504112004530.20461@dhalsim.dreamhost.com> References: <Pine.LNX.4.61.0504112004530.20461@dhalsim.dreamhost.com> Message-ID: <425BA7D4.5080606@annevankesteren.nl> Ian Hickson wrote: > FYI, the W3C has just acknowledged receipt of the Web Forms 2.0 draft that > Mozilla and Opera submitted (on behalf of the WHATWG). Any reason Apple didn't participate? > We'll be publishing another call for comments that takes into account the > technical comments that W3C staff sent to us privately as very soon. I saw a call for comments has already been published but not yet announced. Is that made so people can view the diff for the changes that are made not discussed through this mailing list? Is there any specific reason the W3C didn't want to make their comments public? Also it seems the W3C has a lot of demands that could slow down the process. Will the call for implementations draft be even more postponed or is it still underway? Overall it seems like a good thing though. -- Anne van Kesteren <http://annevankesteren.nl/> From olav at olav.dk Tue Apr 12 03:56:38 2005 From: olav at olav.dk (=?ISO-8859-1?Q?Olav_Junker_Kj=E6r?=) Date: Tue, 12 Apr 2005 12:56:38 +0200 Subject: [whatwg] Web Forms 2.0 submission to W3C In-Reply-To: <Pine.LNX.4.61.0504121034150.20461@dhalsim.dreamhost.com> References: <Pine.LNX.4.61.0504112004530.20461@dhalsim.dreamhost.com> <425BA369.8090406@olav.dk> <Pine.LNX.4.61.0504121034150.20461@dhalsim.dreamhost.com> Message-ID: <425BA966.7060407@olav.dk> Ian Hickson wrote: > It is good news. Congratulations then! :-) > It is the first step to working with the W3C to move the > development of the WHATWG specifications into the W3C fold, while keeping > the open nature of the WHATWG development process. Thats cool, but isn't this going to delay the spec for years? I actually agree with W3C that XForms is much more powerful and elegant that WF2, I just think that WF2 is interesting because it has a hope of being practically usable and used on the world wide web in the near future. Without this possibility, WF2 really hasn't much going for it compared to XForms. Or am I to pessimistic? regards Olav Junker kj?r From hsivonen at iki.fi Tue Apr 12 03:57:11 2005 From: hsivonen at iki.fi (Henri Sivonen) Date: Tue, 12 Apr 2005 13:57:11 +0300 Subject: [whatwg] <p> elements containing other block-level elements In-Reply-To: <425B9CA3.20902@myrealbox.com> References: <Pine.LNX.4.61.0504051557200.2016@dhalsim.dreamhost.com> <4254DD87.7010604@annevankesteren.nl> <42555AB0.5070904@lachy.id.au> <42555C24.1010800@annevankesteren.nl> <4255BFA4.4010901@myrealbox.com> <Pine.LNX.4.61.0504081015180.20461@dhalsim.dreamhost.com> <42567A5E.50307@iki.fi> <Pine.LNX.4.61.0504081351400.25142@dhalsim.dreamhost.com> <31627ca7224496bef9b832bae071a7b1@iki.fi> <Pine.LNX.4.61.0504111627190.172@dhalsim.dreamhost.com> <425B2C1E.8080008@lachy.id.au> <425B9CA3.20902@myrealbox.com> Message-ID: <bcf4c4d5867e47f8a9756e3ad99a7892@iki.fi> On Apr 12, 2005, at 13:02, Matthew Thomas wrote: > <http://diveintomark.org/archives/2004/01/14/thought_experiment> Writing software that is guaranteed to emit well-formed XML is not particularly hard. The problem is people consider XML a lax text format that can be produced with ad hoc print statements. -- Henri Sivonen hsivonen at iki.fi http://hsivonen.iki.fi/ From fora at annevankesteren.nl Tue Apr 12 04:02:37 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Tue, 12 Apr 2005 13:02:37 +0200 Subject: [whatwg] <p> elements containing other block-level elements In-Reply-To: <bcf4c4d5867e47f8a9756e3ad99a7892@iki.fi> References: <Pine.LNX.4.61.0504051557200.2016@dhalsim.dreamhost.com> <4254DD87.7010604@annevankesteren.nl> <42555AB0.5070904@lachy.id.au> <42555C24.1010800@annevankesteren.nl> <4255BFA4.4010901@myrealbox.com> <Pine.LNX.4.61.0504081015180.20461@dhalsim.dreamhost.com> <42567A5E.50307@iki.fi> <Pine.LNX.4.61.0504081351400.25142@dhalsim.dreamhost.com> <31627ca7224496bef9b832bae071a7b1@iki.fi> <Pine.LNX.4.61.0504111627190.172@dhalsim.dreamhost.com> <425B2C1E.8080008@lachy.id.au> <425B9CA3.20902@myrealbox.com> <bcf4c4d5867e47f8a9756e3ad99a7892@iki.fi> Message-ID: <425BAACD.5090709@annevankesteren.nl> Henri Sivonen wrote: >> <http://diveintomark.org/archives/2004/01/14/thought_experiment> > > Writing software that is guaranteed to emit well-formed XML is not > particularly hard. The problem is people consider XML a lax text format > that can be produced with ad hoc print statements. On the other hand, if it couldn't be produced that way, it probably wouldn't be that sucessful. -- Anne van Kesteren <http://annevankesteren.nl/> From lachlan.hunt at lachy.id.au Tue Apr 12 04:30:04 2005 From: lachlan.hunt at lachy.id.au (Lachlan Hunt) Date: Tue, 12 Apr 2005 21:30:04 +1000 Subject: [whatwg] <p> elements containing other block-level elements In-Reply-To: <425B9CA3.20902@myrealbox.com> References: <Pine.LNX.4.61.0504051557200.2016@dhalsim.dreamhost.com> <4254DD87.7010604@annevankesteren.nl> <42555AB0.5070904@lachy.id.au> <42555C24.1010800@annevankesteren.nl> <4255BFA4.4010901@myrealbox.com> <Pine.LNX.4.61.0504081015180.20461@dhalsim.dreamhost.com> <42567A5E.50307@iki.fi> <Pine.LNX.4.61.0504081351400.25142@dhalsim.dreamhost.com> <31627ca7224496bef9b832bae071a7b1@iki.fi> <Pine.LNX.4.61.0504111627190.172@dhalsim.dreamhost.com> <425B2C1E.8080008@lachy.id.au> <425B9CA3.20902@myrealbox.com> Message-ID: <425BB13C.8060404@lachy.id.au> Matthew Thomas wrote: > Lachlan Hunt wrote: > >> ... >> I don't understand what's wrong with the XML error handling. I think >> it's great because errors should be caught and handled during the >> authoring process and by the CMS, which XML essentially forces. > > <http://diveintomark.org/archives/2004/01/14/thought_experiment> As I said above, "errors should be caught and handled during the authoring process and by the CMS". That is clearly just a case of the CMS not doing it's job properly and a broken implementation doesn't mean the language is broken. The nature of XML requires that both the client and publishing tool enforce well-formedness, not just one or the other. If your CMS isn't up to the job, then you shouldn't even attempt to maintain a well formed document that accepts input from external sources. I agree with Henri's comment about using ad hoc print statements, rather than a true XML tool that guarentees well formed output. -- Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox From lachlan.hunt at lachy.id.au Tue Apr 12 04:32:50 2005 From: lachlan.hunt at lachy.id.au (Lachlan Hunt) Date: Tue, 12 Apr 2005 21:32:50 +1000 Subject: [whatwg] <p> elements containing other block-level elements In-Reply-To: <Pine.LNX.4.61.0504120926550.20461@dhalsim.dreamhost.com> References: <Pine.LNX.4.61.0504051557200.2016@dhalsim.dreamhost.com> <4254DD87.7010604@annevankesteren.nl> <42555AB0.5070904@lachy.id.au> <42555C24.1010800@annevankesteren.nl> <4255BFA4.4010901@myrealbox.com> <Pine.LNX.4.61.0504081015180.20461@dhalsim.dreamhost.com> <42567A5E.50307@iki.fi> <Pine.LNX.4.61.0504081351400.25142@dhalsim.dreamhost.com> <31627ca7224496bef9b832bae071a7b1@iki.fi> <Pine.LNX.4.61.0504111627190.172@dhalsim.dreamhost.com> <425B2C1E.8080008@lachy.id.au> <Pine.LNX.4.61.0504120926550.20461@dhalsim.dreamhost.com> Message-ID: <425BB1E2.3070907@lachy.id.au> Ian Hickson wrote: > On Tue, 12 Apr 2005, Lachlan Hunt wrote: > >>>We haven't discussed it yet. I hadn't really thought about it but given: >>> >>> <pre><code> ... </code></pre> >>> <blockcode> ... </blockcode> >> >>To use <pre><code> like <blockcode>, one would have to style it with >> >> pre>code:only-child { display: block; } > > Hm? Why? Oh, sorry. I assume your asking about why display: block;? I think I explained why I used :only-clild well enough before. Where this is the need to apply styles to block of code, such as a background colour or border, but those styles don't need to apply all pre elements in general. So, the solution is to either use <pre class="code"><code/></pre> with pre.code { background-color: silver; } Or use: <pre><code/></pre> with: pre>code:only-child { display: block; background-color: silver; } As I said, though, the chances of that affecting a code element within a pre that is not supposed to be block (ie. the e-mail example I gave before) are very slim. >>I don't understand what's wrong with the XML error handling... > > I myself have occasionally made typos and other mistakes that, if I had > used XML, would have left my site unusable, without my knowledge, for > several hours at a time. Don't you check your site after publishing anyway? Would you not have caught the error while previewing in your browser, before publishing? Although, as I said earlier, a CMS should enforce the well-formedness too, not just the end user. -- Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox From hsivonen at iki.fi Tue Apr 12 04:37:16 2005 From: hsivonen at iki.fi (Henri Sivonen) Date: Tue, 12 Apr 2005 14:37:16 +0300 Subject: [whatwg] <p> elements containing other block-level elements In-Reply-To: <Pine.LNX.4.61.0504120926550.20461@dhalsim.dreamhost.com> References: <Pine.LNX.4.61.0504051557200.2016@dhalsim.dreamhost.com> <4254DD87.7010604@annevankesteren.nl> <42555AB0.5070904@lachy.id.au> <42555C24.1010800@annevankesteren.nl> <4255BFA4.4010901@myrealbox.com> <Pine.LNX.4.61.0504081015180.20461@dhalsim.dreamhost.com> <42567A5E.50307@iki.fi> <Pine.LNX.4.61.0504081351400.25142@dhalsim.dreamhost.com> <31627ca7224496bef9b832bae071a7b1@iki.fi> <Pine.LNX.4.61.0504111627190.172@dhalsim.dreamhost.com> <425B2C1E.8080008@lachy.id.au> <Pine.LNX.4.61.0504120926550.20461@dhalsim.dreamhost.com> Message-ID: <09517b62913cebc85107df48f71fddcf@iki.fi> On Apr 12, 2005, at 12:31, Ian Hickson wrote: > Many people feel that a minor typo in their document should not cause > their page to stop rendering altogether. I have spoken with a _lot_ of > authors who really do not like XML's draconian error handling, > including > many authors who are always ensuring their documents are valid. Recently, I made a typo and left out the slash in an end tag (on the tag soup side). Since Gecko forces tag soup into a tree, I didn't notice anything in Firefox. However, in IE my script produced exceedingly weird results. It turned out that IE had created a non-tree DOM and my single typo had multiplied thanks to cloneNode preserving the non-treeness. It would have saved me debugging time if I had seen a parse error message up front. > I myself have occasionally made typos and other mistakes that, if I had > used XML, would have left my site unusable, without my knowledge, for > several hours at a time. From the "tools will save us" point of view, you need a text editor that tries to parse the doc using an XML parser when you intend to write XML. -- Henri Sivonen hsivonen at iki.fi http://hsivonen.iki.fi/ From ian at hixie.ch Tue Apr 12 04:45:06 2005 From: ian at hixie.ch (Ian Hickson) Date: Tue, 12 Apr 2005 11:45:06 +0000 (UTC) Subject: [whatwg] <p> elements containing other block-level elements In-Reply-To: <425BB1E2.3070907@lachy.id.au> References: <Pine.LNX.4.61.0504051557200.2016@dhalsim.dreamhost.com> <4254DD87.7010604@annevankesteren.nl> <42555AB0.5070904@lachy.id.au> <42555C24.1010800@annevankesteren.nl> <4255BFA4.4010901@myrealbox.com> <Pine.LNX.4.61.0504081015180.20461@dhalsim.dreamhost.com> <42567A5E.50307@iki.fi> <Pine.LNX.4.61.0504081351400.25142@dhalsim.dreamhost.com> <31627ca7224496bef9b832bae071a7b1@iki.fi> <Pine.LNX.4.61.0504111627190.172@dhalsim.dreamhost.com> <425B2C1E.8080008@lachy.id.au> <Pine.LNX.4.61.0504120926550.20461@dhalsim.dreamhost.com> <425BB1E2.3070907@lachy.id.au> Message-ID: <Pine.LNX.4.61.0504121140210.20461@dhalsim.dreamhost.com> On Tue, 12 Apr 2005, Lachlan Hunt wrote: > > > > > > To use <pre><code> like <blockcode>, one would have to style it with > > > > > > pre>code:only-child { display: block; } > > > > Hm? Why? > > Where this is the need to apply styles to block of code, such as a > background colour or border, but those styles don't need to apply all > pre elements in general. Oh, well, sure. That's a CSS limitation, though, which should be fixed in CSS. Not something that we want to have unduly affect the language design. > Would you not have caught the error while previewing in your browser, > before publishing? Although, as I said earlier, a CMS should enforce the > well-formedness too, not just the end user. Who said anything about a CMS? The WHATWG specs, for instance, are hand- written. It is very easy (happens all the time) for me to introduce syntax errors that I don't notice for ages (since I often don't check the output, I just suddenly save and go off somewhere, half-way through edits). -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From howcome at opera.com Tue Apr 12 05:21:28 2005 From: howcome at opera.com (=?iso-8859-1?Q?H=E5kon?= Wium Lie) Date: Tue, 12 Apr 2005 14:21:28 +0200 Subject: [whatwg] Web Forms 2.0 submission to W3C In-Reply-To: <425BA966.7060407@olav.dk> References: <Pine.LNX.4.61.0504112004530.20461@dhalsim.dreamhost.com> <425BA369.8090406@olav.dk> <Pine.LNX.4.61.0504121034150.20461@dhalsim.dreamhost.com> <425BA966.7060407@olav.dk> Message-ID: <16987.48456.86422.623685@howcome.oslo.opera.com> Also sprach Olav Junker Kj?r: > > It is the first step to working with the W3C to move the > > development of the WHATWG specifications into the W3C fold, while keeping > > the open nature of the WHATWG development process. > > Thats cool, but isn't this going to delay the spec for years? No. We're in discussions with W3C about how to best organize the work. The traditional "idea -> workshop -> working group -> WD -> CR -> REC" model may not be the best way forward. First, the specification is at a more advanced stage than most submissions, and lots of people have been reviewing it. Second, a healthy community (mostly consisting of this mailing list) has already been established. W3C staff understands these issues and have proposed some ideas for how to move forward that are being discussed. I'm optimistic. > I actually agree with W3C that XForms is much more powerful and elegant > that WF2, I just think that WF2 is interesting because it has a hope of > being practically usable and used on the world wide web in the near > future. Without this possibility, WF2 really hasn't much going for it > compared to XForms. Or am I to pessimistic? I think you're too pessimistic. There is an immense value in having universally understood models on the web. HTML/CSS/JS/DOM are good examples. The models are not perfect (otherwise we wouldn't be here), but work quite well for an amazing number of use cases. Also, these specifications offer a gentle learning curve which should not be underestimated. Shifting to new models at this stage has enormous costs associated with it. The other point, which Ian has made repeatedly, is that a new model also will be tainted by the time it's implemented and deployed, Partial implementations, bugs, tag abuse -- all of this makes the world a sub-optimal place and there is no reason to believe the next model will be any better than what we're currently stuggling with. Finally, just by looking at the markup of the calculator example, I don't see WF2 being any less powerful or elegant: http://ln.hixie.ch/?start=1110316686&count=1 Having said this, I belive WF2 and XForms can and will work together. XForms will find good use on the server side; the model can capture form semantics and do all sorts of data magic there. Clients will continue to be DOM-centric in the future. I also think we will see products that transform rich XForms into rich HTML forms. There are some nice opportunities in this space. -h&kon H?kon Wium Lie CTO ??e?? howcome at opera.com http://people.opera.com/howcome From dean at w3.org Tue Apr 12 05:40:16 2005 From: dean at w3.org (Dean Jackson) Date: Tue, 12 Apr 2005 22:40:16 +1000 Subject: [whatwg] Web Forms 2.0 submission to W3C In-Reply-To: <425BA7D4.5080606@annevankesteren.nl> References: <Pine.LNX.4.61.0504112004530.20461@dhalsim.dreamhost.com> <425BA7D4.5080606@annevankesteren.nl> Message-ID: <9355b9742eb5e854df148917cad94439@w3.org> On 12 Apr 2005, at 20:49, Anne van Kesteren wrote: > Ian Hickson wrote: >> FYI, the W3C has just acknowledged receipt of the Web Forms 2.0 draft >> that Mozilla and Opera submitted (on behalf of the WHATWG). > >> We'll be publishing another call for comments that takes into account >> the technical comments that W3C staff sent to us privately as very >> soon. > > I saw a call for comments has already been published but not yet > announced. Is that made so people can view the diff for the changes > that are made not discussed through this mailing list? > > Is there any specific reason the W3C didn't want to make their > comments public? No specific reason. WF2 is a large specification; It takes a long time to review in detail. As part of my review process I came up with a list of technical points, but I didn't want to put them in the W3C Comment because I was afraid that it would hide the important point: that Opera, Mozilla and the W3C are investigating ways to collaborate. Also, I wanted more people to do thorough technical reviews. Unfortunately, this takes time and these people are busy. > > Also it seems the W3C has a lot of demands that could slow down the > process. Will the call for implementations draft be even more > postponed or is it still underway? Remember that these are not "demands", only suggestions. And we're not making the suggestions for the W3C, but for the community. Having said that, I don't think the suggestions are too much of a burden. For example, it would have really helped me if there had been a more comprehensive list of use cases and requirements. It isn't really clear to me what the exact problems WF2 is trying to solve are, other than what it says in the introduction (which I could unfairly characterise as fix some stuff that some people have been complaining about, to some degree, at some time, on some lists). I'm sure Ian knows exactly what they are. This follows on to the suggestion that WHAT consider splitting (or staging) the specification to separate the bits that are backwards compatible from the bits that are not. It's quite possible that I missed the change in goals, but I thought the idea was that WF2 should "work" in today's browsers (to some definition of "work", but at least one that says the form should not be unusable without scripting). The bits of WF2 that I see most positive discussion on are <input type="date|email|etc">. Hixie joked at me a few months ago when we were discussing entering email addresses into an HTML field using a mobile device. This stuff is very helpful, and doesn't really require the user to upgrade her browser or to run script. Why doesn't WHAT ship those bits now and continue with a WF3? The suggestion to examine the mapping to XForms was mostly because I saw a few new features in WF2 that were pretty closely aligned with existing features in XForms (for example the repeat stuff, which I see is a candidate for removal from WF2). This wasn't supposed to be an insult or anything, but it does suggest that there are some smart people in the XForms world that are trying to solve similar problems to WF2. Overall, the intention wasn't to slow down the process. > Overall it seems like a good thing though. I think so. Like I said in the comment, the important point for us is to build a single community for improving forms on the Web. Dean From howcome at opera.com Tue Apr 12 05:39:45 2005 From: howcome at opera.com (=?iso-8859-1?Q?H=E5kon?= Wium Lie) Date: Tue, 12 Apr 2005 14:39:45 +0200 Subject: [whatwg] Web Forms 2.0 submission to W3C In-Reply-To: <425BA7D4.5080606@annevankesteren.nl> References: <Pine.LNX.4.61.0504112004530.20461@dhalsim.dreamhost.com> <425BA7D4.5080606@annevankesteren.nl> Message-ID: <16987.49553.326512.329073@howcome.oslo.opera.com> Also sprach Anne van Kesteren: > > FYI, the W3C has just acknowledged receipt of the Web Forms 2.0 draft that > > Mozilla and Opera submitted (on behalf of the WHATWG). > > Any reason Apple didn't participate? We tried to submit WF2 in time to be announced at the W3C Plenary meeting in Boston in Feb/Mar. As a result, the submission had to be done quickly and my understanding is that Apple needed more time than we had to review the paperwork. In the end, W3C needed more time than expected to review the submission and we therefore had to keep quiet at the plenary. So, it might have been better to use the time necessary to add more W3C members to the list of sponsors. What really counts, though, is implementations. Really. > > We'll be publishing another call for comments that takes into account the > > technical comments that W3C staff sent to us privately as very soon. > > I saw a call for comments has already been published but not yet > announced. Is that made so people can view the diff for the changes that > are made not discussed through this mailing list? > > Is there any specific reason the W3C didn't want to make their comments > public? We asked for the technical comments to be sent straight to the editor instead of being part of a formal W3C response. This way we could get them more quickly. I don't mind the comments going public (hey, all is public around here ;) but that's a decision W3C has to make. > Also it seems the W3C has a lot of demands that could slow down the > process. Will the call for implementations draft be even more postponed > or is it still underway? As I said in my previous mail, W3C staff are well aware of the weight of the current W3C process. I'm optimistic, though, I think we will find ways for WHAT WG to work with W3C -- this is good news for both. > Overall it seems like a good thing though. Indeed. -h&kon H?kon Wium Lie CTO ??e?? howcome at opera.com http://people.opera.com/howcome From dean at w3.org Tue Apr 12 05:51:52 2005 From: dean at w3.org (Dean Jackson) Date: Tue, 12 Apr 2005 22:51:52 +1000 Subject: [whatwg] Web Forms 2.0 submission to W3C In-Reply-To: <425BA369.8090406@olav.dk> References: <Pine.LNX.4.61.0504112004530.20461@dhalsim.dreamhost.com> <425BA369.8090406@olav.dk> Message-ID: <8acbb76b08594908fb454b01a7c6bbc3@w3.org> On 12 Apr 2005, at 20:31, Olav Junker Kj?r wrote: > Ian Hickson wrote: >> FYI, the W3C has just acknowledged receipt of the Web Forms 2.0 draft >> that Mozilla and Opera submitted (on behalf of the WHATWG). > > Is this good or bad news? The W3C does not seem very enthusiastic > about the submission. I apologise if there appeared to be a negative feeling in the W3C Comment. It definitely wasn't intended. It's true that this was an extremely difficult Submission to handle. The W3C rules suggest that WF2 should be rejected because it was in conflict with existing work. The W3C certainly doesn't want to suggest that the best way to make progress is to start up your own group, develop outside, and then submit back to W3C for a rubber stamp. The W3C process may not be super fast, but that's because it is very strict on things like consensus and patents. However, the positive point is that both sides want to work with each other, and we're busy trying to work out the best approach (we have something in mind). Also, to be clear, the W3C Team Comment is not the authorised opinion of the entire W3C (which includes Opera and Mozilla). It's only a comment from the W3C Staff. Dean From howcome at opera.com Tue Apr 12 06:04:33 2005 From: howcome at opera.com (=?iso-8859-1?Q?H=E5kon?= Wium Lie) Date: Tue, 12 Apr 2005 15:04:33 +0200 Subject: [whatwg] Web Forms 2.0 submission to W3C In-Reply-To: <9355b9742eb5e854df148917cad94439@w3.org> References: <Pine.LNX.4.61.0504112004530.20461@dhalsim.dreamhost.com> <425BA7D4.5080606@annevankesteren.nl> <9355b9742eb5e854df148917cad94439@w3.org> Message-ID: <16987.51041.546473.235308@howcome.oslo.opera.com> Also sprach Dean Jackson: > > Overall it seems like a good thing though. > > I think so. Like I said in the comment, the important point for us > is to build a single community for improving forms on the Web. I agree with this; I think we have rough consensus in the web community within reach. That doesn't necessarily mean everyone will be sitting in the same room, though, nor that there will only be one specification. I think the CSS/XSL can be a good model. W3C accepted a Member submission [1][2] after a Recommendation had been issued [3] and the two groups have managed to stay inside the same organization. There has been some friction along the way, but the friction has generally been productive. [1] http://www.w3.org/Submission/1997/13/ [2] http://www.w3.org/Submission/1997/13/Comment.html [3] http://www.w3.org/TR/REC-CSS1-961217 -h&kon H?kon Wium Lie CTO ??e?? howcome at opera.com http://people.opera.com/howcome From jg307 at hermes.cam.ac.uk Tue Apr 12 06:07:48 2005 From: jg307 at hermes.cam.ac.uk (J. Graham) Date: Tue, 12 Apr 2005 14:07:48 +0100 (BST) Subject: [whatwg] <p> elements containing other block-level elements In-Reply-To: <09517b62913cebc85107df48f71fddcf@iki.fi> References: <Pine.LNX.4.61.0504051557200.2016@dhalsim.dreamhost.com> <4254DD87.7010604@annevankesteren.nl> <42555AB0.5070904@lachy.id.au> <42555C24.1010800@annevankesteren.nl> <4255BFA4.4010901@myrealbox.com> <Pine.LNX.4.61.0504081015180.20461@dhalsim.dreamhost.com> <42567A5E.50307@iki.fi> <Pine.LNX.4.61.0504081351400.25142@dhalsim.dreamhost.com> <31627ca7224496bef9b832bae071a7b1@iki.fi> <Pine.LNX.4.61.0504111627190.172@dhalsim.dreamhost.com> <425B2C1E.8080008@lachy.id.au> <Pine.LNX.4.61.0504120926550.20461@dhalsim.dreamhost.com> <09517b62913cebc85107df48f71fddcf@iki.fi> Message-ID: <Pine.LNX.4.60.0504121359020.2195@hermes-1.csi.cam.ac.uk> On Tue, 12 Apr 2005, Henri Sivonen wrote: > On Apr 12, 2005, at 12:31, Ian Hickson wrote: > >> Many people feel that a minor typo in their document should not cause >> their page to stop rendering altogether. I have spoken with a _lot_ of >> authors who really do not like XML's draconian error handling, including >> many authors who are always ensuring their documents are valid. > > Recently, I made a typo and left out the slash in an end tag (on the tag soup > side). Since Gecko forces tag soup into a tree, I didn't notice anything in > Firefox. Indeed it would be useful if Firefox had the ability to log parse errors to the console (clearly this would have to be off by default). I don't see how this affects whether the current XML error handling scheme is at-all sutiable for use on the web though. From fora at annevankesteren.nl Tue Apr 12 06:49:15 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Tue, 12 Apr 2005 15:49:15 +0200 Subject: [whatwg] [html5] 2.6.1. The a element Message-ID: <425BD1DB.2010105@annevankesteren.nl> Shouldn't the XML model (and therefore the specification) allow nested links? Also, I think this part should be removed: # Otherwise, it represents an anchor: a possible end-point for other # hyperlinks. ... because every element represents an anchor. (Perhaps this should be added to the description of the ID attribute. When it is set, the element becomes an anchor or so.) Also, you want to replace the pointer to #LinkTypes with #link-types. (As #link-types is already used various places it would be wise to change the pointer and more consistent as camelcase isn't really used.) -- Anne van Kesteren <http://annevankesteren.nl/> From ian at hixie.ch Tue Apr 12 06:50:12 2005 From: ian at hixie.ch (Ian Hickson) Date: Tue, 12 Apr 2005 13:50:12 +0000 (UTC) Subject: Call four comments 4 is out (Was: [whatwg] Web Forms 2.0 submission to W3C) In-Reply-To: <425BA7D4.5080606@annevankesteren.nl> References: <Pine.LNX.4.61.0504112004530.20461@dhalsim.dreamhost.com> <425BA7D4.5080606@annevankesteren.nl> Message-ID: <Pine.LNX.4.61.0504121331270.12923@dhalsim.dreamhost.com> On Tue, 12 Apr 2005, Anne van Kesteren wrote: > > > > We'll be publishing another call for comments that takes into account > > the technical comments that W3C staff sent to us privately as very > > soon. > > I saw a call for comments has already been published but not yet > announced. Is that made so people can view the diff for the changes that > are made not discussed through this mailing list? Nah, it was because I was having issues with generating the diffs. If anyone has a decent HTML diffing tool, I'm still in the market for one. Contact me off list. Anyway, yes, as Anne has noticed, the fourth call for comments is out: http://www.whatwg.org/specs/web-forms/2005-04-11-call-for-comments/ Unless we receive substantial comments pointing out problems in the spec, the plan is to go to a call for implementations in a few weeks. > Also it seems the W3C has a lot of demands that could slow down the > process. Will the call for implementations draft be even more postponed > or is it still underway? There are basically five suggestions in the team comment: 1. Splitting the features that work in old UAs from those that don't into two specs, WF2 and WF3. As far as I can tell, we've already done this. The features that work in old UAs are those in HTML4, which we are calling "WF1", and the new features or features that require updates to user agents or that would have to be implemented in script to work in old user agents are in WF2. To be honest I'm not sure if I accurately understood the proposal here, splitting new features from old features doesn't seem to make much sense in a draft intended to be just new features. Another part of the team comment suggests that the split be between new features that are completely backwards compatible from new features that aren't. Since the entire point of WF2 was that all new features be usable in ways that gracefully degrade, this would again mean the spec was just split into what is in WF2 today, and a second empty spec. So I'm not really sure what they meant. 2. Providing comprehensive use cases and requirements. This doesn't really belong in a spec, so I don't think we should change the spec to include them. Many of the features were discussed on this mailing list and use cases and requirements were listed in detail in past discussions, which can be found in the archives. 3. Mapping XForms to WF2 and back. This would be an interesting exercise, but it basically comes down to "implement WF2 in XForms" and "implement XForms in WF2". These are huge tasks, which we don't really have the time to do. Volunteers are welcome, however. 4. Participating in XHTML2 and XForms development. This is unrelated to the WF2 draft itself. 5. Build a community with the W3C. We're working on that, but again this won't affect the draft itself. So basically no, I don't think the process will be affected much. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From ian at hixie.ch Tue Apr 12 07:28:23 2005 From: ian at hixie.ch (Ian Hickson) Date: Tue, 12 Apr 2005 14:28:23 +0000 (UTC) Subject: [whatwg] [html5] 2.6.1. The a element In-Reply-To: <425BD1DB.2010105@annevankesteren.nl> References: <425BD1DB.2010105@annevankesteren.nl> Message-ID: <Pine.LNX.4.61.0504121423210.12923@dhalsim.dreamhost.com> On Tue, 12 Apr 2005, Anne van Kesteren wrote: > > Shouldn't the XML model (and therefore the specification) allow nested > links? I don't know, what would it mean? What would the DOM events processing model be? > Also, I think this part should be removed: > > # Otherwise, it represents an anchor: a possible end-point for other > # hyperlinks. > > ... because every element represents an anchor. (Perhaps this should be > added to the description of the ID attribute. When it is set, the > element becomes an anchor or so.) Fair enough. So what does an <a> element with no href="" represent? Nothing? Or I guess we could make the href="" attribute required. > Also, you want to replace the pointer to #LinkTypes with #link-types. > (As #link-types is already used various places it would be wise to > change the pointer and more consistent as camelcase isn't really used.) Anything that cross-refs to text past the big yellow-and-black <hr> element will be reexamined at some point, don't worry about those. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From fora at annevankesteren.nl Tue Apr 12 07:32:18 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Tue, 12 Apr 2005 16:32:18 +0200 Subject: [whatwg] [html5] 2.6.1. The a element In-Reply-To: <Pine.LNX.4.61.0504121423210.12923@dhalsim.dreamhost.com> References: <425BD1DB.2010105@annevankesteren.nl> <Pine.LNX.4.61.0504121423210.12923@dhalsim.dreamhost.com> Message-ID: <425BDBF2.3080709@annevankesteren.nl> Ian Hickson wrote: >> Shouldn't the XML model (and therefore the specification) allow >> nested links? > > I don't know, what would it mean? What would the DOM events > processing model be? Perhaps we could ask the XLink WG (or XML Core, or whatever) and the HTML WG (XHTML 2)... > Fair enough. So what does an <a> element with no href="" represent? > Nothing? Or I guess we could make the href="" attribute required. With nothing it represents a semantically meaningless element, like SPAN. Making the HREF attribute required seems like a good thing to do. -- Anne van Kesteren <http://annevankesteren.nl/> From ian at hixie.ch Tue Apr 12 07:38:38 2005 From: ian at hixie.ch (Ian Hickson) Date: Tue, 12 Apr 2005 14:38:38 +0000 (UTC) Subject: [whatwg] [html5] 2.6.1. The a element In-Reply-To: <425BDBF2.3080709@annevankesteren.nl> References: <425BD1DB.2010105@annevankesteren.nl> <Pine.LNX.4.61.0504121423210.12923@dhalsim.dreamhost.com> <425BDBF2.3080709@annevankesteren.nl> Message-ID: <Pine.LNX.4.61.0504121437510.12923@dhalsim.dreamhost.com> On Tue, 12 Apr 2005, Anne van Kesteren wrote: > > > > > > Shouldn't the XML model (and therefore the specification) allow > > > nested links? > > > > I don't know, what would it mean? What would the DOM events processing > > model be? > > Perhaps we could ask the XLink WG (or XML Core, or whatever) and the > HTML WG (XHTML 2)... I volunteer you for that task. :-P In the meantime... > > Fair enough. So what does an <a> element with no href="" represent? > > Nothing? Or I guess we could make the href="" attribute required. > > With nothing it represents a semantically meaningless element, like > SPAN. Making the HREF attribute required seems like a good thing to do. Okie dokie. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From fora at annevankesteren.nl Tue Apr 12 10:43:38 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Tue, 12 Apr 2005 19:43:38 +0200 Subject: [whatwg] [html5] 2.6.4. The small element Message-ID: <425C08CA.9030005@annevankesteren.nl> It looks like the draft says that it does "de-emphasise" text and does "de-important" text when such text does not have an ancestor EM or STRONG element. If this is just a note to make sure people don't misunderstand the element, make it a note. If you actually mean what I just wrote it might be wort to make it more explicit. -- Anne van Kesteren <http://annevankesteren.nl/> From fora at annevankesteren.nl Tue Apr 12 10:45:56 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Tue, 12 Apr 2005 19:45:56 +0200 Subject: [whatwg] [wf2] broken diff links Message-ID: <425C0954.6030505@annevankesteren.nl> The links to the diff files: <http://whatwg.org/specs/web-forms/current-work/> ... are both broken. -- Anne van Kesteren <http://annevankesteren.nl/> From ian at hixie.ch Tue Apr 12 11:56:03 2005 From: ian at hixie.ch (Ian Hickson) Date: Tue, 12 Apr 2005 18:56:03 +0000 (UTC) Subject: [whatwg] [html5] 2.6.4. The small element In-Reply-To: <425C08CA.9030005@annevankesteren.nl> References: <425C08CA.9030005@annevankesteren.nl> Message-ID: <Pine.LNX.4.61.0504121855290.9@dhalsim.dreamhost.com> On Tue, 12 Apr 2005, Anne van Kesteren wrote: > > It looks like the draft says that it does "de-emphasise" text and does > "de-important" text when such text does not have an ancestor EM or > STRONG element. If this is just a note to make sure people don't > misunderstand the element, make it a note. If you actually mean what I > just wrote it might be wort to make it more explicit. My, you really are tracking my changes as I make them. Thanks for your suggestion. I have made it into a note. Cheers, -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From ian at hixie.ch Tue Apr 12 11:58:25 2005 From: ian at hixie.ch (Ian Hickson) Date: Tue, 12 Apr 2005 18:58:25 +0000 (UTC) Subject: [whatwg] [wf2] broken diff links In-Reply-To: <425C0954.6030505@annevankesteren.nl> References: <425C0954.6030505@annevankesteren.nl> Message-ID: <Pine.LNX.4.61.0504121856400.9@dhalsim.dreamhost.com> On Tue, 12 Apr 2005, Anne van Kesteren wrote: > > The links to the diff files: > <http://whatwg.org/specs/web-forms/current-work/> > ... are both broken. Yeah, I was having problems with the diff tool earlier and then my laptop had a hardwre crash and I forgot about it. I've restarted the diffing process. Thanks for reminding me. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From christoph.paeper at tu-clausthal.de Tue Apr 12 12:34:17 2005 From: christoph.paeper at tu-clausthal.de (=?iso-8859-1?Q?Christoph_P=E4per?=) Date: Tue, 12 Apr 2005 21:34:17 +0200 Subject: [whatwg] [html5] 2.6.1. The a element In-Reply-To: <Pine.LNX.4.61.0504121423210.12923@dhalsim.dreamhost.com> References: <425BD1DB.2010105@annevankesteren.nl> <Pine.LNX.4.61.0504121423210.12923@dhalsim.dreamhost.com> Message-ID: <opso4wnfonofh7fl@crissov.heim4.tu-clausthal.de> *Ian Hickson <ian at hixie.ch>*: > > So what does an <a> element with no href="" represent? Nothing? Or I > guess we could make the href="" attribute required. I frequently use and advice to do navigation lists like this: <div><map id="nav"><ul> <li><a href="/">Home</a></li> ... <li><a>Current page</a></li> ... <li><a href="/contact/">Contact</a></li> </ul></map></div> (I use 'map', because 'menu' is deprecated, and 'div', because in HTML4S 'map' cannot be a child of 'body'---but let's not get distracted.) The current page should not link to itself, but for consistency (and styling) I like to keep the 'a' element instance, just without an 'href' attribute. Elsewhere I also use 'a' instead of 'span', because it's IMHO equally meaningful, but shorter. So, no, I don't think 'href' should be required for 'a'. From ian at hixie.ch Tue Apr 12 13:02:44 2005 From: ian at hixie.ch (Ian Hickson) Date: Tue, 12 Apr 2005 20:02:44 +0000 (UTC) Subject: [whatwg] [html5] 2.6.1. The a element In-Reply-To: <opso4wnfonofh7fl@crissov.heim4.tu-clausthal.de> References: <425BD1DB.2010105@annevankesteren.nl> <Pine.LNX.4.61.0504121423210.12923@dhalsim.dreamhost.com> <opso4wnfonofh7fl@crissov.heim4.tu-clausthal.de> Message-ID: <Pine.LNX.4.61.0504121944590.9@dhalsim.dreamhost.com> On Tue, 12 Apr 2005, Christoph P?per wrote: > > > > So what does an <a> element with no href="" represent? Nothing? Or I > > guess we could make the href="" attribute required. > > I frequently use and advice to do navigation lists like this: > > <div><map id="nav"><ul> > <li><a href="/">Home</a></li> > ... > <li><a>Current page</a></li> > ... > <li><a href="/contact/">Contact</a></li> > </ul></map></div> > > The current page should not link to itself, but for consistency (and > styling) I like to keep the 'a' element instance, just without an 'href' > attribute. Elsewhere I also use 'a' instead of 'span', because it's IMHO > equally meaningful, but shorter. So, no, I don't think 'href' should be > required for 'a'. Fair enough. I will update the spec. > (I use 'map', because 'menu' is deprecated, and 'div', because in HTML4S > 'map' cannot be a child of 'body'---but let's not get distracted.) You want the new <navigation>. (<menu> is for things like context menus in the current draft for HTML5.) -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From lists at misinterpreted.net Tue Apr 12 15:43:15 2005 From: lists at misinterpreted.net (Henrik Lied) Date: Wed, 13 Apr 2005 00:43:15 +0200 Subject: [whatwg] HTML5: Deprecate the SMALL element Message-ID: <425C4F03.7030306@misinterpreted.net> The element SMALL should be deprecated, as it describes the appearance of the content. Alternatively, a new name for the element could be created. Since SMALL is usually used to describe copyright-notices and other legal descriptions, my proposal for a new name is DISCLAIMER or NOTES. -- ------------------------------ Henrik Lied http://misinterpreted.net/ henrik at misinterpreted.net From dean at edwards.name Tue Apr 12 15:47:22 2005 From: dean at edwards.name (Dean Edwards) Date: Tue, 12 Apr 2005 23:47:22 +0100 Subject: [whatwg] HTML5: Deprecate the SMALL element In-Reply-To: <425C4F03.7030306@misinterpreted.net> References: <425C4F03.7030306@misinterpreted.net> Message-ID: <425C4FFA.5030604@edwards.name> Hey I like naming things! How about DEM for de-emphasise? -dean Henrik Lied wrote: > The element SMALL should be deprecated, as it describes the appearance > of the content. > Alternatively, a new name for the element could be created. > > Since SMALL is usually used to describe copyright-notices and other > legal descriptions, > my proposal for a new name is DISCLAIMER or NOTES. > From lists at misinterpreted.net Tue Apr 12 15:58:43 2005 From: lists at misinterpreted.net (Henrik Lied) Date: Wed, 13 Apr 2005 00:58:43 +0200 Subject: [whatwg] HTML5: New link-types regarding guideline 2.4 in WCAG 2.0 Message-ID: <425C52A3.70801@misinterpreted.net> In guideline 2.4 of the Web Content Accessibility Guidelines 2 (http://www.w3.org/TR/2004/WD-WCAG20-20041119/#navigation-mechanisms) it is recommended to add a visual skip link to jump to the different sections of a document. As Anne van Kesteren writes about in his post named 'Skip links should be a markup problem', these aids shouldn't be visual. In one of the comments in that post, it was proposed to use the LINK element with a REL attribute which relates to the different sections of the site. I would therefore propose that these link-types should be recommended in the Web Applications 1.0 WD: NAVIGATION Relates to the main site-navigation CONTENT Relates to the head of content ADDITIONAL Relates to an additional section, e.g. a sidebar DISCLAIMER Relates to the copyright-notice/legal agreements in the document -- ------------------------------ Henrik Lied http://misinterpreted.net/ henrik at misinterpreted.net From ian at hixie.ch Tue Apr 12 16:02:31 2005 From: ian at hixie.ch (Ian Hickson) Date: Tue, 12 Apr 2005 23:02:31 +0000 (UTC) Subject: [whatwg] HTML5: Deprecate the SMALL element In-Reply-To: <425C4F03.7030306@misinterpreted.net> References: <425C4F03.7030306@misinterpreted.net> Message-ID: <Pine.LNX.4.61.0504122300210.9@dhalsim.dreamhost.com> On Wed, 13 Apr 2005, Henrik Lied wrote: > > The element SMALL should be deprecated, as it describes the appearance > of the content. Alternatively, a new name for the element could be > created. > > Since SMALL is usually used to describe copyright-notices and other > legal descriptions, my proposal for a new name is DISCLAIMER or NOTES. The name is (in HTML5) short for "small print", which doesn't imply that the text is small, but is the name given to runs of legal text or disclaimers (whatever their actual font size). Keeping the name <small> has the advantage that it will also happen to work in legacy browsers. I don't see what the advantage of a new name would be. The way the element is defined in the draft at the moment is completely independent of the rendering. It doesn't describe the appearance. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From ian at hixie.ch Tue Apr 12 16:06:45 2005 From: ian at hixie.ch (Ian Hickson) Date: Tue, 12 Apr 2005 23:06:45 +0000 (UTC) Subject: [whatwg] HTML5: New link-types regarding guideline 2.4 in WCAG 2.0 In-Reply-To: <425C52A3.70801@misinterpreted.net> References: <425C52A3.70801@misinterpreted.net> Message-ID: <Pine.LNX.4.61.0504122304030.9@dhalsim.dreamhost.com> On Wed, 13 Apr 2005, Henrik Lied wrote: > > I would therefore propose that these link-types should be recommended in > the Web Applications 1.0 WD: > > NAVIGATION Relates to the main site-navigation > CONTENT Relates to the head of content > ADDITIONAL Relates to an additional section, e.g. a > sidebar > DISCLAIMER Relates to the copyright-notice/legal > agreements in the document Those are already in the spec, in fact. Except that they are not link types, but new elements. <navigation> is for site navigation. <article> contains the content. <aside> contains a sidebar. <footer> contains the footer (specifically, <small> inside <footer> contains the small print). Thus we don't need link types, and authors can stop using "skip" links -- user agents can instead automatically skip anything that the user wants to skip, without the author having to worry about adding in such links. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From lachlan.hunt at lachy.id.au Tue Apr 12 19:06:31 2005 From: lachlan.hunt at lachy.id.au (Lachlan Hunt) Date: Wed, 13 Apr 2005 12:06:31 +1000 Subject: [whatwg] HTML5: New link-types regarding guideline 2.4 in WCAG 2.0 In-Reply-To: <425C52A3.70801@misinterpreted.net> References: <425C52A3.70801@misinterpreted.net> Message-ID: <425C7EA7.5090808@lachy.id.au> Henrik Lied wrote: > In one of the comments in that post, it was proposed to use the LINK > element with a REL attribute which relates to the different sections of > the site. > ... > NAVIGATION Relates to the main site-navigation > CONTENT Relates to the head of content > ADDITIONAL Relates to an additional section, e.g. > a sidebar > DISCLAIMER Relates to the copyright-notice/legal Hmm, interesting. They seem like more specific versions of rel="bookmark": "A bookmark is a link to a key entry point within an extended document..." Although, that definition is somewhat ambiguious, as HTML4 doesn't seem to define the meaning of "extended document". Anyway, while on the topic of link types, what does everyone think of these "web communication link relationships" [1] that I worked on a few months ago? It includes relationships like: permalink, feed, via, related, referral, pingback (borrowed from Pingback 1.0), trackback, etc. Could some of these be improved and included within web apps? [1] http://lachy.id.au/dev/markup/specs/wclr/ -- Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox From jim.ley at gmail.com Wed Apr 13 01:03:09 2005 From: jim.ley at gmail.com (Jim Ley) Date: Wed, 13 Apr 2005 09:03:09 +0100 Subject: [whatwg] <p> elements containing other block-level elements In-Reply-To: <bcf4c4d5867e47f8a9756e3ad99a7892@iki.fi> References: <Pine.LNX.4.61.0504051557200.2016@dhalsim.dreamhost.com> <4255BFA4.4010901@myrealbox.com> <Pine.LNX.4.61.0504081015180.20461@dhalsim.dreamhost.com> <42567A5E.50307@iki.fi> <Pine.LNX.4.61.0504081351400.25142@dhalsim.dreamhost.com> <31627ca7224496bef9b832bae071a7b1@iki.fi> <Pine.LNX.4.61.0504111627190.172@dhalsim.dreamhost.com> <425B2C1E.8080008@lachy.id.au> <425B9CA3.20902@myrealbox.com> <bcf4c4d5867e47f8a9756e3ad99a7892@iki.fi> Message-ID: <851c8d3105041301034dc8fda7@mail.gmail.com> On 4/12/05, Henri Sivonen <hsivonen at iki.fi> wrote: > On Apr 12, 2005, at 13:02, Matthew Thomas wrote: > > > <http://diveintomark.org/archives/2004/01/14/thought_experiment> > > Writing software that is guaranteed to emit well-formed XML is not > particularly hard. That depends on your definition of hard, it's clearly beyond many people in the community, even such sites as http://webstandards.org/ and the XML Working group have published non-well formed XML recently - down to encoding issues, almost always. I can't really see how if these groups can't do it, when they have marketing aswell as technical reasons to do it we can expect others to. Jim. From jim.ley at gmail.com Wed Apr 13 01:09:22 2005 From: jim.ley at gmail.com (Jim Ley) Date: Wed, 13 Apr 2005 09:09:22 +0100 Subject: Call four comments 4 is out (Was: [whatwg] Web Forms 2.0 submission to W3C) In-Reply-To: <Pine.LNX.4.61.0504121331270.12923@dhalsim.dreamhost.com> References: <Pine.LNX.4.61.0504112004530.20461@dhalsim.dreamhost.com> <425BA7D4.5080606@annevankesteren.nl> <Pine.LNX.4.61.0504121331270.12923@dhalsim.dreamhost.com> Message-ID: <851c8d31050413010947decf60@mail.gmail.com> On 4/12/05, Ian Hickson <ian at hixie.ch> wrote: > 2. Providing comprehensive use cases and requirements. This doesn't really > belong in a spec, so I don't think we should change the spec to include > them. Then please publish a seperate requirements document that does list them. I'm sure the WHAT-WG must have the resources to simply write up something which you now claim to be "listed in detail". I've asked repeatedly on the list before, and all I've been told is that the use cases were in the un-archived part of the work before the mailing list was formed. I can't find the use cases on the list, so please provide another document, or at the very least, point to them. Without use cases, we can't review the spec, because we don't know what you're trying to solve. Jim. From ian at hixie.ch Wed Apr 13 01:26:57 2005 From: ian at hixie.ch (Ian Hickson) Date: Wed, 13 Apr 2005 08:26:57 +0000 (UTC) Subject: Call four comments 4 is out (Was: [whatwg] Web Forms 2.0 submission to W3C) In-Reply-To: <851c8d31050413010947decf60@mail.gmail.com> References: <Pine.LNX.4.61.0504112004530.20461@dhalsim.dreamhost.com> <425BA7D4.5080606@annevankesteren.nl> <Pine.LNX.4.61.0504121331270.12923@dhalsim.dreamhost.com> <851c8d31050413010947decf60@mail.gmail.com> Message-ID: <Pine.LNX.4.61.0504130826040.9@dhalsim.dreamhost.com> On Wed, 13 Apr 2005, Jim Ley wrote: > > Then please publish a seperate requirements document that does list > [the use cases]. Ok. Could you provide us with a list of features you believe need use cases listed? That would be really helpful in creating such a document. Thanks! -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From dean at w3.org Wed Apr 13 02:08:49 2005 From: dean at w3.org (Dean Jackson) Date: Wed, 13 Apr 2005 19:08:49 +1000 Subject: Call four comments 4 is out (Was: [whatwg] Web Forms 2.0 submission to W3C) In-Reply-To: <Pine.LNX.4.61.0504130826040.9@dhalsim.dreamhost.com> References: <Pine.LNX.4.61.0504112004530.20461@dhalsim.dreamhost.com> <425BA7D4.5080606@annevankesteren.nl> <Pine.LNX.4.61.0504121331270.12923@dhalsim.dreamhost.com> <851c8d31050413010947decf60@mail.gmail.com> <Pine.LNX.4.61.0504130826040.9@dhalsim.dreamhost.com> Message-ID: <f8cebc87c089276ba7510299c1bcce0f@w3.org> On 13 Apr 2005, at 18:26, Ian Hickson wrote: > On Wed, 13 Apr 2005, Jim Ley wrote: >> >> Then please publish a seperate requirements document that does list >> [the use cases]. > > Ok. Could you provide us with a list of features you believe need use > cases listed? That would be really helpful in creating such a document. All of them. For example, I see many new HTML elements in (the strangely named) Web Applications 1.0 for which I'd like to see the requirements. If only to understand why you chose a different approach than the W3C HTML Working Group (eg. maybe you are trying to solve a different use case and therefore have a different requirement). Dean From ian at hixie.ch Wed Apr 13 02:31:24 2005 From: ian at hixie.ch (Ian Hickson) Date: Wed, 13 Apr 2005 09:31:24 +0000 (UTC) Subject: Call four comments 4 is out (Was: [whatwg] Web Forms 2.0 submission to W3C) In-Reply-To: <f8cebc87c089276ba7510299c1bcce0f@w3.org> References: <Pine.LNX.4.61.0504112004530.20461@dhalsim.dreamhost.com> <425BA7D4.5080606@annevankesteren.nl> <Pine.LNX.4.61.0504121331270.12923@dhalsim.dreamhost.com> <851c8d31050413010947decf60@mail.gmail.com> <Pine.LNX.4.61.0504130826040.9@dhalsim.dreamhost.com> <f8cebc87c089276ba7510299c1bcce0f@w3.org> Message-ID: <Pine.LNX.4.61.0504130926070.9@dhalsim.dreamhost.com> On Wed, 13 Apr 2005, Dean Jackson wrote: > > > > Ok. Could you provide us with a list of features you believe need use > > cases listed? That would be really helpful in creating such a > > document. > > All of them. That's never going to happen, just like the XHTML working group has never published a document with use cases for all their features. Ditto the SVG group, the CSS group, and so forth. Most of the features have quite obvious use cases -- for example the use case for the first feature in the Web Apps draft -- <html> -- is having a predictable root element for the document or document fragment. I can maybe find the time to produce a document summarising the use cases for the less obvious features (probably by simply copying the text from e-mails in the archives of this mailing list, where the features mostly originated), but I don't want to waste time doing so for dozens of features where the use cases are obvious and nobody disagrees. > For example, I see many new HTML elements in (the strangely named) Web > Applications 1.0 for which I'd like to see the requirements. If only to > understand why you chose a different approach than the W3C HTML Working > Group (eg. maybe you are trying to solve a different use case and > therefore have a different requirement). The two different requirements are "backwards compatibility" and "well defined error handling / processing model". I expect every difference in the details of common features can be traced down to those two things. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From olav at olav.dk Wed Apr 13 03:58:30 2005 From: olav at olav.dk (=?ISO-8859-1?Q?Olav_Junker_Kj=E6r?=) Date: Wed, 13 Apr 2005 12:58:30 +0200 Subject: Call four comments 4 is out (Was: [whatwg] Web Forms 2.0 submission to W3C) In-Reply-To: <Pine.LNX.4.61.0504130826040.9@dhalsim.dreamhost.com> References: <Pine.LNX.4.61.0504112004530.20461@dhalsim.dreamhost.com> <425BA7D4.5080606@annevankesteren.nl> <Pine.LNX.4.61.0504121331270.12923@dhalsim.dreamhost.com> <851c8d31050413010947decf60@mail.gmail.com> <Pine.LNX.4.61.0504130826040.9@dhalsim.dreamhost.com> Message-ID: <425CFB56.4040406@olav.dk> Ian Hickson wrote: > Ok. Could you provide us with a list of features you believe need use > cases listed? That would be really helpful in creating such a document. Some feature in WF2 for which the use cases are not immediately obvious: - the output element and the readonly attribute. Its not obvious why we need both, and when you should use which. - the data-scheme in form submission (debugging has been mentioned as a use case, but its not obvious from the spec) - the "javascript:" scheme in form submissions - the "file:" scheme; post, put and delete methods - file upload - the form attribute. (The use case in the spec seem a little contrived) - the _charset_ field - step attribute on range - step attribute on date - list attribute on range - changing data attribute on a select element several times during page load Use cases are useful not just to justify features, but also as documentation of the intention of the spec. Often I understand a feature better by reading the use case, rather than by reading the precise specification. regards Olav Junker Kj?r From ian at hixie.ch Wed Apr 13 04:01:25 2005 From: ian at hixie.ch (Ian Hickson) Date: Wed, 13 Apr 2005 11:01:25 +0000 (UTC) Subject: [whatwg] Web Forms 2.0 Feedback In-Reply-To: <46059C2B-6095-11D9-A9B2-000A95AD3972@myrealbox.com> References: <20040820152320.20139.qmail@web50905.mail.yahoo.com> <AD9C29E9-F8BF-11D8-8A8C-000A95AD3972@myrealbox.com> <Pine.LNX.4.61.0411070509130.8631@dhalsim.dreamhost.com> <B20F7A62-32BA-11D9-ACF9-000A95AD3972@myrealbox.com> <Pine.LNX.4.61.0412080206110.4755@dhalsim.dreamhost.com> <285F37A7-48ED-11D9-87BF-000A95AD3972@myrealbox.com> <41B72113.8090500@earthlink.net> <D4483462-49AA-11D9-87BF-000A95AD3972@myrealbox.com> <41DBF3EF.5050909@earthlink.net> <2B50B8F4-5FEB-11D9-BE51-000A95AD3972@myrealbox.com> <41DD51F5.9040106@cam.ac.uk> <Pine.LNX.4.61.0501061645550.1160@dhalsim.dreamhost.com> <46059C2B-6095-11D9-A9B2-000A95AD3972@myrealbox.com> Message-ID: <Pine.LNX.4.61.0504131010550.9@dhalsim.dreamhost.com> (I hope y'all don't mind me replying to all your e-mails out of order. I'm basically going down the spec one element at a time and when I come across one that someone has discussed in the past, I reply to those e-mails.) On Fri, 7 Jan 2005, Matthew Thomas wrote: > On 7 Jan, 2005, at 5:58 AM, Ian Hickson wrote: > > ... > > For <sub>, the ideal aural rendering depends on the context, but humans > > are adept at interpreting things based on context and you could probably get > > away with rendering sub by simply prefixing its contents with the syllable > > "sub", as in "H sub-two O" for "H<sub>2</sub>O". > > ... > > the fact that you can use the element to sensibly change the aural rendering > > suggests to be that it is semantic enough to be kept in HTML. > > Except that "sub" is merely (an abbreviation of) a description of the > typographical presentation! You might just as well say that H<font > color="green">2</font>O is semantic because it could be pronounced as "H > green-two O". But it wouldn't be, and that's rather my point. I rarely hear people calling out the fact that something is bold or italics or red when they are reading text out. I _do_ hear them say "sub-" this and "super-" that. > > It's not ideal, and for a better aural rendering you would use a > > speech-capable UA that supported ChemML, MathML, or another more > > appropriate standard language natively, and pass content to it using > > the appropriate domain-specific language. > > FWIW, in the case of ChemML that wouldn't help -- as far as I know > (having just consulted the household science teacher), there is no > standard way of pronouncing chemical formulas so as to distinguish > subscripts even from normal numbers. So using aural rendering to decide > whether an element is semantic wouldn't work in that case. There's no standard rendering, but there are conventions that a UA author can use. There are several use cases I can see for <sub> and <sup> that I consider to be semantic and not presentational. However, it seems very much to be on the fine line between the two, and I am interested in hearing of ideas that would more clearly move <sub>/<sup> or new elements into the semantic camp. Use cases: In french, parts of words (abbreviations, usually) are always superscripted. For example, the "lle" in "Mlle". In chemistry, number of atoms, atomic weights, charge, etc, are superscripted and subscripted. In variables names parts are often subscripted to indicate a specific variable in a family of variables. In maths, superscripts are used for powers. And of course in lots of other fields there are specific uses for them too. I propose to try to address as many of possible of these use cases in specific ways. For example, "Mlle" would be: <abbr>M<sup>lle</sup></abbr> ...and variable subscripts would be: <var>x<sub>2</sub></var> I'm not sure how to deal with the chemistry case. We don't really have an element for anything like chemical formulas. For maths, MathML comes to mind, although only for the XML serialisation. Any other cases? Any suggestions? -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From olav at olav.dk Wed Apr 13 04:02:00 2005 From: olav at olav.dk (=?ISO-8859-1?Q?Olav_Junker_Kj=E6r?=) Date: Wed, 13 Apr 2005 13:02:00 +0200 Subject: [whatwg] Web Forms 2.0 submission to W3C In-Reply-To: <16987.48456.86422.623685@howcome.oslo.opera.com> References: <Pine.LNX.4.61.0504112004530.20461@dhalsim.dreamhost.com> <425BA369.8090406@olav.dk> <Pine.LNX.4.61.0504121034150.20461@dhalsim.dreamhost.com> <425BA966.7060407@olav.dk> <16987.48456.86422.623685@howcome.oslo.opera.com> Message-ID: <425CFC28.3090905@olav.dk> > Finally, just by looking at the markup of the calculator example, I > don't see WF2 being any less powerful or elegant Yeah, I agree, and I didn't mean to slam WF2 which I think is a very fine spec. I was just afraid that W3C would disregard the "killer features" of WF2 which is backwards-compatibility, familiarity and the possibility of widespread deployment on the web. The current W3C approach of XHTML 2.0 + XForms seem to indicate different priorities. The W3C staff comments suggest that they wish to see a merge between the WF2 and XForms. This is understandable from a political perspective - nobody really wants fragmentation of HTML standards. But if the consequence is a spec which is a compromise between XForms and WF2, I think it would be the worst of both worlds. It might however be a good idea to position WF2 and XForms like CSS and XSL - specs which technically cover the same ground but which are optimized for different use cases. A closer cooperation and sharing of ideas between XForms and WF2 communities will certainly be a boon for everyone. In the end, HTML extensions do belong in the W3C. So I'll be optimistic now! regards Olav Junker Kj?r From ian at hixie.ch Wed Apr 13 04:03:53 2005 From: ian at hixie.ch (Ian Hickson) Date: Wed, 13 Apr 2005 11:03:53 +0000 (UTC) Subject: [whatwg] Web Forms 2.0 Feedback In-Reply-To: <5ccfb334050107024719f475a2@mail.gmail.com> References: <20040820152320.20139.qmail@web50905.mail.yahoo.com> <Pine.LNX.4.61.0412080206110.4755@dhalsim.dreamhost.com> <285F37A7-48ED-11D9-87BF-000A95AD3972@myrealbox.com> <41B72113.8090500@earthlink.net> <D4483462-49AA-11D9-87BF-000A95AD3972@myrealbox.com> <41DBF3EF.5050909@earthlink.net> <2B50B8F4-5FEB-11D9-BE51-000A95AD3972@myrealbox.com> <41DD51F5.9040106@cam.ac.uk> <Pine.LNX.4.61.0501061645550.1160@dhalsim.dreamhost.com> <46059C2B-6095-11D9-A9B2-000A95AD3972@myrealbox.com> <5ccfb334050107024719f475a2@mail.gmail.com> Message-ID: <Pine.LNX.4.61.0504131102070.9@dhalsim.dreamhost.com> On Fri, 7 Jan 2005, Rimantas Liubertas wrote: > > I cannot agree. We should not mix typographical presentation for > presentation sake and typographical presentation for semantic reason. > While it may be not a big deal in chemistry, it is not so in math. This may be a good way of putting it in the spec: "typographical conventions with specific meanings (as opposed to typographical presentation for presentation's sake)". > Or is E=mc2 same as E=mc<sup>2</sup>? > Do log4nm and log<sub>4</sub>n<sup>m</sup> differ? Good examples, I'll use this in the spec (assuming that's ok with you!). Thanks, -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From ian at hixie.ch Wed Apr 13 04:04:49 2005 From: ian at hixie.ch (Ian Hickson) Date: Wed, 13 Apr 2005 11:04:49 +0000 (UTC) Subject: [whatwg] Web Forms 2.0 Feedback In-Reply-To: <41DE85DF.3020106@cam.ac.uk> References: <20040820152320.20139.qmail@web50905.mail.yahoo.com> <AD9C29E9-F8BF-11D8-8A8C-000A95AD3972@myrealbox.com> <Pine.LNX.4.61.0411070509130.8631@dhalsim.dreamhost.com> <B20F7A62-32BA-11D9-ACF9-000A95AD3972@myrealbox.com> <Pine.LNX.4.61.0412080206110.4755@dhalsim.dreamhost.com> <285F37A7-48ED-11D9-87BF-000A95AD3972@myrealbox.com> <41B72113.8090500@earthlink.net> <D4483462-49AA-11D9-87BF-000A95AD3972@myrealbox.com> <41DBF3EF.5050909@earthlink.net> <2B50B8F4-5FEB-11D9-BE51-000A95AD3972@myrealbox.com> <41DD51F5.9040106@cam.ac.uk> <Pine.LNX.4.61.0501061645550.1160@dhalsim.dreamhost.com> <46059C2B-6095-11D9-A9B2-000A95AD3972@myrealbox.com> <41DE85DF.3020106@cam.ac.uk> Message-ID: <Pine.LNX.4.61.0504131104190.9@dhalsim.dreamhost.com> On Fri, 7 Jan 2005, James Graham wrote: > Because that happens to be a convenient umbrella for specific > constructions in documents that need to be treated in a particular way > by UAs. Indeed I would be more than happy if Web Apps "clarified" the > situation with <sup> and <sub> so that purely presentational uses like > L<sup>A</sup>T<sub>E</sub>X were forbidden as these uses undermine the > ability to UAs to provide an appropriate rendering in the case where the > presence of "superscripts" or "subscripts" in a sequence of charcters is > important information that needs to be passed on to the user. I shall include that example as something not to do; good idea. Thanks, -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From ian at hixie.ch Wed Apr 13 04:20:27 2005 From: ian at hixie.ch (Ian Hickson) Date: Wed, 13 Apr 2005 11:20:27 +0000 (UTC) Subject: [whatwg] Web Forms 2.0 Feedback In-Reply-To: <41DF1C57.40801@myrealbox.com> References: <20040820152320.20139.qmail@web50905.mail.yahoo.com> <AD9C29E9-F8BF-11D8-8A8C-000A95AD3972@myrealbox.com> <Pine.LNX.4.61.0411070509130.8631@dhalsim.dreamhost.com> <B20F7A62-32BA-11D9-ACF9-000A95AD3972@myrealbox.com> <Pine.LNX.4.61.0412080206110.4755@dhalsim.dreamhost.com> <285F37A7-48ED-11D9-87BF-000A95AD3972@myrealbox.com> <41B72113.8090500@earthlink.net> <D4483462-49AA-11D9-87BF-000A95AD3972@myrealbox.com> <41DBF3EF.5050909@earthlink.net> <2B50B8F4-5FEB-11D9-BE51-000A95AD3972@myrealbox.com> <41DD51F5.9040106@cam.ac.uk> <Pine.LNX.4.61.0501061645550.1160@dhalsim.dreamhost.com> <46059C2B-6095-11D9-A9B2-000A95AD3972@myrealbox.com> <41DE95F5.7080201@earthlink.net> <41DF1C57.40801@myrealbox.com> Message-ID: <Pine.LNX.4.61.0504131106080.9@dhalsim.dreamhost.com> On Fri, 7 Jan 2005, dolphinling wrote: > > "green" is just as meaningful as "subscript"--they're both purely > presentational, and we as people have attached meanings to certain > presentations. The semantics of "subscript" are completely different > from the semantics of "there are two of the (chemical) element that > immediately preceded this", but we have attached one to the other. There are some differences: * The semantic of <sub>/<sup> can often be deduced from context (especially if we define some specific contexts, like "sub inside var means it's the variable's subscript, as in the part of its name that identifies the specific variable in a family of variables"). * There are rarely, if ever, any semantics associated with a colour that can be understood without an explanation in the same document. Sometimes some content is coloured so that it can be differentiated, as in making test results red or green for different results, but that is always explained in the same document (if it is to be understood, anyway) and is rarely the only aspect of the document that indicates the difference (e.g. typically in such an example it would be the words "pass" and "fail" that were coloured). I would love to be able to unambiguously have the semantic for the "2" in "H<sub>2</sub>O". I don't see how to do it (at least not without introducing a ridiculous number of elements to HTML). I consider <sub> to be an acceptable (semantic) compromise. It does affect media other than visual media, which (as previously mentioned) is the criteria I usually use for working out if something is semantic or presentational. Another criteria is "could the presentation be changed without losing its meaning?". For example, with <em> clearly you can change the presentation without losing the fact that it is emphasis: whether it is bigger or italics doesn't make much difference. But with <sub> I don't think you can. If you change the presentation of <sub> you _do_ change the perceived meaning of the rendered content. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From dean at w3.org Wed Apr 13 04:42:46 2005 From: dean at w3.org (Dean Jackson) Date: Wed, 13 Apr 2005 21:42:46 +1000 Subject: Call four comments 4 is out (Was: [whatwg] Web Forms 2.0 submission to W3C) In-Reply-To: <Pine.LNX.4.61.0504130926070.9@dhalsim.dreamhost.com> References: <Pine.LNX.4.61.0504112004530.20461@dhalsim.dreamhost.com> <425BA7D4.5080606@annevankesteren.nl> <Pine.LNX.4.61.0504121331270.12923@dhalsim.dreamhost.com> <851c8d31050413010947decf60@mail.gmail.com> <Pine.LNX.4.61.0504130826040.9@dhalsim.dreamhost.com> <f8cebc87c089276ba7510299c1bcce0f@w3.org> <Pine.LNX.4.61.0504130926070.9@dhalsim.dreamhost.com> Message-ID: <ff58de76242ae99e2a5493b8304b93ea@w3.org> On 13 Apr 2005, at 19:31, Ian Hickson wrote: > On Wed, 13 Apr 2005, Dean Jackson wrote: >>> >>> Ok. Could you provide us with a list of features you believe need use >>> cases listed? That would be really helpful in creating such a >>> document. >> >> All of them. > > That's never going to happen, just like the XHTML working group has > never > published a document with use cases for all their features. > Ditto the SVG group, The SVG group has published requirements documents for its features. So has the CDF Group, which you participate in. Sure, the requirements documents don't always get updated as often as the specification and they are not completely comprehensive, but it does help the reader understand where you're coming from. One reason why I ask for this is that I've been talking to HTML developers about the WHATWG work and WebForms 2.0. I ask them what they think WHAT are doing. In most cases, they're not sure. Sometimes they've read some press articles and think that it's two browser vendors at war with W3C. If they do answer something like "WHAT are improving HTML forms" I then ask them if they know what improvements are being made. Honestly, I've never met anyone outside the subscribers to this list that really know what you're doing. This isn't meant to be an insult. It's just that I've been looking for average people so that they can educate me on why they need WF2. I think you have made some impressive improvements here. Many times when we've chatted in person, you've explained to me the reasoning behind the new features. It's helped me understand why/how/etc. Please think of the people that don't have the chance to chat to Ian Hickson in person. > the CSS group Wow, that's true. The CSS group have never published a requirements document for any of their work. It did publish a document 7 years ago listing potential new features. > , and so forth. Most of the features have quite > obvious use cases -- for example the use case for the first feature in > the > Web Apps draft -- <html> -- is having a predictable root element for > the > document or document fragment. OK, so why is this important? Why are the alternatives so bad? I'm not talking about the <html> feature, I'm talking about you empathising with the reader. Remember that you might be making something that will last a long time. It's quite a responsibility. > > I can maybe find the time to produce a document summarising the use > cases > for the less obvious features (probably by simply copying the text from > e-mails in the archives of this mailing list, where the features mostly > originated), but I don't want to waste time doing so for dozens of > features where the use cases are obvious and nobody disagrees. That's fair enough. It's your choice. You're a browser developer, so you'll know how to implement it, and why you're doing it. As a reader, I wanted to know. Look, this isn't a big deal. I just made a suggestion. It's obvious that you don't want to do it. We're wasting time discussing it. Dean From ian at hixie.ch Wed Apr 13 04:58:55 2005 From: ian at hixie.ch (Ian Hickson) Date: Wed, 13 Apr 2005 11:58:55 +0000 (UTC) Subject: Call four comments 4 is out (Was: [whatwg] Web Forms 2.0 submission to W3C) In-Reply-To: <ff58de76242ae99e2a5493b8304b93ea@w3.org> References: <Pine.LNX.4.61.0504112004530.20461@dhalsim.dreamhost.com> <425BA7D4.5080606@annevankesteren.nl> <Pine.LNX.4.61.0504121331270.12923@dhalsim.dreamhost.com> <851c8d31050413010947decf60@mail.gmail.com> <Pine.LNX.4.61.0504130826040.9@dhalsim.dreamhost.com> <f8cebc87c089276ba7510299c1bcce0f@w3.org> <Pine.LNX.4.61.0504130926070.9@dhalsim.dreamhost.com> <ff58de76242ae99e2a5493b8304b93ea@w3.org> Message-ID: <Pine.LNX.4.61.0504131145400.9@dhalsim.dreamhost.com> On Wed, 13 Apr 2005, Dean Jackson wrote: > > > > That's never going to happen, just like the XHTML working group has > > never published a document with use cases for all their features. > > Ditto the SVG group, > > The SVG group has published requirements documents for its features. So > has the CDF Group, which you participate in. Requirements documents, sure. The WF2 spec has a whole section on requirements, and the WHATWG was based on a long document listing requirements and design criteria: http://www.w3.org/2004/04/webapps-cdf-ws/papers/opera.html There's a far cry from that, and listing use cases for every feature. :-) > One reason why I ask for this is that I've been talking to HTML > developers about the WHATWG work and WebForms 2.0. I ask them what they > think WHAT are doing. In most cases, they're not sure. Sometimes they've > read some press articles and think that it's two browser vendors at war > with W3C. If they do answer something like "WHAT are improving HTML > forms" I then ask them if they know what improvements are being made. > Honestly, I've never met anyone outside the subscribers to this list > that really know what you're doing. This isn't meant to be an insult. > It's just that I've been looking for average people so that they can > educate me on why they need WF2. I'm not surprised. There's been no effort at making WHATWG a widely known effort -- it's only really been mentioned in the circles that people who care about standards development go in. Ask random authors what the CSS, XHTML, or SVG working groups are doing and you'll get much the same replies: some people will say they're improving CSS, XHTML, or SVG (without knowing any more), others will say that there are turf wars being fought or that the groups are wasting their time. I don't think that's surprising. Few people have the time to really keep track of standards development. > > Most of the features have quite obvious use cases -- for example the > > use case for the first feature in the Web Apps draft -- <html> -- is > > having a predictable root element for the document or document > > fragment. > > OK, so why is this important? Why are the alternatives so bad? > > I'm not talking about the <html> feature, I'm talking about you > empathising with the reader. Remember that you might be making something > that will last a long time. It's quite a responsibility. If there are specific features that need better examples or explanatory text, I'm all for adding it. (Olav just sent such a list of WF2, and I'm going through it and adding text to WF2 to answer his questions.) But there is no chance that we're going to pre-emptively list the raison d'etre of every feature in the spec. That would take years. Many of the features date back to Tim's drafts in 1990. If we've lasted 15 years without use cases I'm sure we can continue a few more. :-) > > I can maybe find the time to produce a document summarising the use > > cases for the less obvious features (probably by simply copying the > > text from e-mails in the archives of this mailing list, where the > > features mostly originated), but I don't want to waste time doing so > > for dozens of features where the use cases are obvious and nobody > > disagrees. > > That's fair enough. It's your choice. You're a browser developer, so > you'll know how to implement it, and why you're doing it. > > As a reader, I wanted to know. I honestly don't believe that you want to read of the use case for the <html> element, the <head> element, the <title> element, and so forth, beyond the descriptions in the spec already. But if you do, where is the equivalent for SVG? :-) -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From jg307 at cam.ac.uk Wed Apr 13 05:10:13 2005 From: jg307 at cam.ac.uk (James Graham) Date: Wed, 13 Apr 2005 13:10:13 +0100 Subject: Call four comments 4 is out (Was: [whatwg] Web Forms 2.0 submission to W3C) In-Reply-To: <ff58de76242ae99e2a5493b8304b93ea@w3.org> References: <Pine.LNX.4.61.0504112004530.20461@dhalsim.dreamhost.com> <425BA7D4.5080606@annevankesteren.nl> <Pine.LNX.4.61.0504121331270.12923@dhalsim.dreamhost.com> <851c8d31050413010947decf60@mail.gmail.com> <Pine.LNX.4.61.0504130826040.9@dhalsim.dreamhost.com> <f8cebc87c089276ba7510299c1bcce0f@w3.org> <Pine.LNX.4.61.0504130926070.9@dhalsim.dreamhost.com> <ff58de76242ae99e2a5493b8304b93ea@w3.org> Message-ID: <425D0C25.2020400@cam.ac.uk> Dean Jackson wrote: > > On 13 Apr 2005, at 19:31, Ian Hickson wrote: > >> On Wed, 13 Apr 2005, Dean Jackson wrote: >> >>>> >>>> Ok. Could you provide us with a list of features you believe need use >>>> cases listed? That would be really helpful in creating such a >>>> document. >>> >>> >>> All of them. >> >> >> That's never going to happen, just like the XHTML working group has >> never >> published a document with use cases for all their features. >> Ditto the SVG group, > > > The SVG group has published requirements documents for its > features. So has the CDF Group, which you participate in. > Sure, the requirements documents don't always get updated as > often as the specification and they are not completely > comprehensive, but it does help the reader understand > where you're coming from. So there's a difference between a "requirments document" and a detailed writeup of use cases for individual features. It seems to me that two documents are required: A brief end-user oriented document explaining what WF2 is and the general class of problems it aims to solve (i.e. adding functionality to web forms without breaking today's browsers). This should then introduce some of the most important new features (new input types, the repetition model, etc.) and give sample uses. The second document should be a longer "best practice" document. This would aim to explain (at a level appropriate to anyone with a modest knowledge of HTML/DOM) what the new things are and how to use the them successfully (as well as what not to do). The important difference between such a document and the spec is that it should focus on problem solving not on details needed by implementors. Being shorter than the spec it will be read by many more people. Obviously Hixie and the WHATWG are unlikely to be able to write both of these documents. It would be nice if the first document were written by the WG and we set a wiki or somesuch up to allow a collaborative attack on the second. -- "But if science you say still sounds too deep, Just do what Beaker does, just shrug and 'Meep!'" -- Dr. Bunsen Honeydew & Beaker of Muppet Labs From ian at hixie.ch Wed Apr 13 05:50:28 2005 From: ian at hixie.ch (Ian Hickson) Date: Wed, 13 Apr 2005 12:50:28 +0000 (UTC) Subject: Call four comments 4 is out (Was: [whatwg] Web Forms 2.0 submission to W3C) In-Reply-To: <425CFB56.4040406@olav.dk> References: <Pine.LNX.4.61.0504112004530.20461@dhalsim.dreamhost.com> <425BA7D4.5080606@annevankesteren.nl> <Pine.LNX.4.61.0504121331270.12923@dhalsim.dreamhost.com> <851c8d31050413010947decf60@mail.gmail.com> <Pine.LNX.4.61.0504130826040.9@dhalsim.dreamhost.com> <425CFB56.4040406@olav.dk> Message-ID: <Pine.LNX.4.61.0504131121020.13833@dhalsim.dreamhost.com> On Wed, 13 Apr 2005, Olav Junker Kj?r wrote: > > Some feature in WF2 for which the use cases are not immediately obvious: > > - the output element and the readonly attribute. Its not obvious why we > need both, and when you should use which. I have added a usage note in the <output> section to help answer this. > - the form attribute. (The use case in the spec seem a little contrived) I agree that the second example is contrived, it's just showing edge cases. The first example, however, is the use case for the form="" attribute. I don't see what I could add to the spec to make this clearer. > - the _charset_ field Added a section with a brief paragraph explaining this. > - step attribute on range This seems obvious. It has the same use case as on other inputs: it changes the allowed numbers. So for example if you want your <input type="range"> control to return numbers that are multiples of 2, you can set step="2". I've added this example to the spec. > - step attribute on date Again, this seems obvious. Say you want only Mondays. You set the min="" to a Monday, then set step="7". There is an example of this in the spec already. > - list attribute on range This could be useful if there are values along the full range of the control that are especially important, such as preconfigured light levels or typical speed limits in a range control used as a speed control. I've added this sentence to the spec. > - the data-scheme in form submission (debugging has been mentioned as a > use case, but its not obvious from the spec) Added a usage note saying debugging is the main use case. > - the "javascript:" scheme in form submissions Added a usage note. > - the "file:" scheme; post, put and delete methods Added a usage note. > - file upload This is to make PUT actually work, mainly. Added a parenthetical comment to the bit that first mentions this. > - changing data attribute on a select element several times during page > load There's no use case for this. It just has to be defined so that we get interoperable behaviour, otherwise every UA will end up doing something different. > Use cases are useful not just to justify features, but also as > documentation of the intention of the spec. Often I understand a feature > better by reading the use case, rather than by reading the precise > specification. That makes sense. Let me know if there are any parts of the spec you still think could do with more of this explanatory text. (Or if any of the text I mentioned above is not enough.) -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From olav at olav.dk Wed Apr 13 06:24:13 2005 From: olav at olav.dk (=?ISO-8859-1?Q?Olav_Junker_Kj=E6r?=) Date: Wed, 13 Apr 2005 15:24:13 +0200 Subject: Call four comments 4 is out (Was: [whatwg] Web Forms 2.0 submission to W3C) In-Reply-To: <Pine.LNX.4.61.0504131121020.13833@dhalsim.dreamhost.com> References: <Pine.LNX.4.61.0504112004530.20461@dhalsim.dreamhost.com> <425BA7D4.5080606@annevankesteren.nl> <Pine.LNX.4.61.0504121331270.12923@dhalsim.dreamhost.com> <851c8d31050413010947decf60@mail.gmail.com> <Pine.LNX.4.61.0504130826040.9@dhalsim.dreamhost.com> <425CFB56.4040406@olav.dk> <Pine.LNX.4.61.0504131121020.13833@dhalsim.dreamhost.com> Message-ID: <425D1D7D.7030305@olav.dk> Generally, I think the short usage notes improves the spec a lot. Suddely the javascript: date: and file: schemes make sense to me! > There's no use case for this. It just has to be defined so that we get > interoperable behaviour, otherwise every UA will end up doing > something different. Yes, I understand your reluctance to have unspecified behavior. I think it might be useful to have a note saying "you are not supposed to do this" in these cases, so the reader won't lose sleep trying to figure out why the features is included in the spec. regards Olav Junker Kj?r From ian at hixie.ch Wed Apr 13 06:38:20 2005 From: ian at hixie.ch (Ian Hickson) Date: Wed, 13 Apr 2005 13:38:20 +0000 (UTC) Subject: Call four comments 4 is out (Was: [whatwg] Web Forms 2.0 submission to W3C) In-Reply-To: <425D1D7D.7030305@olav.dk> References: <Pine.LNX.4.61.0504112004530.20461@dhalsim.dreamhost.com> <425BA7D4.5080606@annevankesteren.nl> <Pine.LNX.4.61.0504121331270.12923@dhalsim.dreamhost.com> <851c8d31050413010947decf60@mail.gmail.com> <Pine.LNX.4.61.0504130826040.9@dhalsim.dreamhost.com> <425CFB56.4040406@olav.dk> <Pine.LNX.4.61.0504131121020.13833@dhalsim.dreamhost.com> <425D1D7D.7030305@olav.dk> Message-ID: <Pine.LNX.4.61.0504131331540.17114@dhalsim.dreamhost.com> On Wed, 13 Apr 2005, Olav Junker Kj?r wrote: > > > > There's no use case for this. It just has to be defined so that we get > > interoperable behaviour, otherwise every UA will end up doing > > something different. > > Yes, I understand your reluctance to have unspecified behavior. I think > it might be useful to have a note saying "you are not supposed to do > this" in these cases, so the reader won't lose sleep trying to figure > out why the features is included in the spec. Well, you might want to dynamically create a <select>. You're not not supposed to do it, but you're not particularily supposed to do it either. It's just one of the many things that have to be defined. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From christoph.paeper at tu-clausthal.de Wed Apr 13 08:36:30 2005 From: christoph.paeper at tu-clausthal.de (=?iso-8859-1?Q?Christoph_P=E4per?=) Date: Wed, 13 Apr 2005 17:36:30 +0200 Subject: [whatwg] Web Forms 2.0 Feedback In-Reply-To: <Pine.LNX.4.61.0504131010550.9@dhalsim.dreamhost.com> References: <20040820152320.20139.qmail@web50905.mail.yahoo.com> <AD9C29E9-F8BF-11D8-8A8C-000A95AD3972@myrealbox.com> <Pine.LNX.4.61.0411070509130.8631@dhalsim.dreamhost.com> <B20F7A62-32BA-11D9-ACF9-000A95AD3972@myrealbox.com> <Pine.LNX.4.61.0412080206110.4755@dhalsim.dreamhost.com> <285F37A7-48ED-11D9-87BF-000A95AD3972@myrealbox.com> <41B72113.8090500@earthlink.net> <D4483462-49AA-11D9-87BF-000A95AD3972@myrealbox.com> <41DBF3EF.5050909@earthlink.net> <2B50B8F4-5FEB-11D9-BE51-000A95AD3972@myrealbox.com> <41DD51F5.9040106@cam.ac.uk> <Pine.LNX.4.61.0501061645550.1160@dhalsim.dreamhost.com> <46059C2B-6095-11D9-A9B2-000A95AD3972@myrealbox.com> <Pine.LNX.4.61.0504131010550.9@dhalsim.dreamhost.com> Message-ID: <opso6ga4ybofh7fl@crissov.heim4.tu-clausthal.de> *Ian Hickson <ian at hixie.ch>*: > > <abbr>M<sup>lle</sup></abbr> > <var>x<sub>2</sub></var> > > I'm not sure how to deal with the chemistry case. We don't really have an > element for anything like chemical formulas. Stretching its semantics really far, one could use 'code' for formulas? and 'abbr' for isotopes etc. ? The molecular sequencers ("replicators") from Star Trek are (hypothetic) computers that need some kind of source code. P.S.: Sorry, Ian, for sending this off-list at first. From fantasai.lists at inkedblade.net Wed Apr 13 12:05:49 2005 From: fantasai.lists at inkedblade.net (fantasai) Date: Wed, 13 Apr 2005 15:05:49 -0400 Subject: [whatwg] Web Forms 2.0 Feedback In-Reply-To: <Pine.LNX.4.61.0504131106080.9@dhalsim.dreamhost.com> References: <20040820152320.20139.qmail@web50905.mail.yahoo.com> <AD9C29E9-F8BF-11D8-8A8C-000A95AD3972@myrealbox.com> <Pine.LNX.4.61.0411070509130.8631@dhalsim.dreamhost.com> <B20F7A62-32BA-11D9-ACF9-000A95AD3972@myrealbox.com> <Pine.LNX.4.61.0412080206110.4755@dhalsim.dreamhost.com> <285F37A7-48ED-11D9-87BF-000A95AD3972@myrealbox.com> <41B72113.8090500@earthlink.net> <D4483462-49AA-11D9-87BF-000A95AD3972@myrealbox.com> <41DBF3EF.5050909@earthlink.net> <2B50B8F4-5FEB-11D9-BE51-000A95AD3972@myrealbox.com> <41DD51F5.9040106@cam.ac.uk> <Pine.LNX.4.61.0501061645550.1160@dhalsim.dreamhost.com> <46059C2B-6095-11D9-A9B2-000A95AD3972@myrealbox.com> <41DE95F5.7080201@earthlink.net> <41DF1C57.40801@myrealbox.com> <Pine.LNX.4.61.0504131106080.9@dhalsim.dreamhost.com> Message-ID: <425D6D8D.1010802@inkedblade.net> Ian Hickson wrote: > > Another criteria is "could the presentation be changed without losing its > meaning?". For example, with <em> clearly you can change the presentation > without losing the fact that it is emphasis: whether it is bigger or > italics doesn't make much difference. But with <sub> I don't think you > can. If you change the presentation of <sub> you _do_ change the perceived > meaning of the rendered content. Subscripts can be marked with brackets when subscripting isn't available. Superscripts can likewise be done with ^. But it's not ideal. ~fantasai From hsivonen at iki.fi Wed Apr 13 12:28:00 2005 From: hsivonen at iki.fi (Henri Sivonen) Date: Wed, 13 Apr 2005 22:28:00 +0300 Subject: [whatwg] <p> elements containing other block-level elements In-Reply-To: <851c8d3105041301034dc8fda7@mail.gmail.com> References: <Pine.LNX.4.61.0504051557200.2016@dhalsim.dreamhost.com> <4255BFA4.4010901@myrealbox.com> <Pine.LNX.4.61.0504081015180.20461@dhalsim.dreamhost.com> <42567A5E.50307@iki.fi> <Pine.LNX.4.61.0504081351400.25142@dhalsim.dreamhost.com> <31627ca7224496bef9b832bae071a7b1@iki.fi> <Pine.LNX.4.61.0504111627190.172@dhalsim.dreamhost.com> <425B2C1E.8080008@lachy.id.au> <425B9CA3.20902@myrealbox.com> <bcf4c4d5867e47f8a9756e3ad99a7892@iki.fi> <851c8d3105041301034dc8fda7@mail.gmail.com> Message-ID: <2ed218db7f8aef07ca8934c1ea83aabb@iki.fi> On Apr 13, 2005, at 11:03, Jim Ley wrote: > On 4/12/05, Henri Sivonen <hsivonen at iki.fi> wrote: >> On Apr 12, 2005, at 13:02, Matthew Thomas wrote: >> >>> <http://diveintomark.org/archives/2004/01/14/thought_experiment> >> >> Writing software that is guaranteed to emit well-formed XML is not >> particularly hard. > > That depends on your definition of hard, it's clearly beyond many > people in the community, even such sites as http://webstandards.org/ > and the XML Working group have published non-well formed XML recently > - down to encoding issues, almost always. I can't really see how if > these groups can't do it, when they have marketing aswell as technical > reasons to do it we can expect others to. http://webstandards.org/ uses MT, which has a text-based templating system, instead of a system designed for XML. The architecture of their CMS is not supportive of the goal of producing well-formed XML. It does not rule out alternative architectures or say anything about the hardness of implementing alternative achitectures. Of course, changing the architecture of a program that already has a different architecture is hard. W3C working groups may be using text editors instead of generating XML programmatically. -- Henri Sivonen hsivonen at iki.fi http://hsivonen.iki.fi/ From lachlan.hunt at lachy.id.au Wed Apr 13 22:34:45 2005 From: lachlan.hunt at lachy.id.au (Lachlan Hunt) Date: Thu, 14 Apr 2005 15:34:45 +1000 Subject: [whatwg] [WF2] Conformance Requirements Issues Message-ID: <425E00F5.5010105@lachy.id.au> Hi, In the conformance requirements for Web Forms 2 [1], it states: | This specification includes by reference the form-related parts of the | HTML4, ... Compliant UAs must implement all the requirements of those | specifications to claim compliance with this one. Because it says "must implement *all* the requirements of those specifications" (rather than just all the form-related requirements) and since there are no strictly conforming HTML 4 implementations in existence, does this not make it impossible for any existing browsers to ever conform to WF2? At the end of that section, it also states in the note: | Note: Documents that use the new features described in this | specification cannot be strictly conforming XHTML or HTML4 documents, | since they contain features not defined in those specifications. Shouldn't that say XHTML 1.0 or 1.1? [1] http://www.whatwg.org/specs/web-forms/2005-04-11-call-for-comments/#conformance -- Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox From ian at hixie.ch Thu Apr 14 02:17:20 2005 From: ian at hixie.ch (Ian Hickson) Date: Thu, 14 Apr 2005 09:17:20 +0000 (UTC) Subject: [whatwg] [WF2] Conformance Requirements Issues In-Reply-To: <425E00F5.5010105@lachy.id.au> References: <425E00F5.5010105@lachy.id.au> Message-ID: <Pine.LNX.4.61.0504140915370.1985@dhalsim.dreamhost.com> On Thu, 14 Apr 2005, Lachlan Hunt wrote: > > In the conformance requirements for Web Forms 2 [1], it states: > > | This specification includes by reference the form-related parts of the > | HTML4, ... Compliant UAs must implement all the requirements of those > | specifications to claim compliance with this one. > > Because it says "must implement *all* the requirements of those > specifications" (rather than just all the form-related requirements) and > since there are no strictly conforming HTML 4 implementations in > existence, does this not make it impossible for any existing browsers to > ever conform to WF2? Existing browsers can't conform to WF2 because they don't implement WF2. In the future they can conform to WF2 by implementing the bits of HTML4, WF2, etc, that they don't support. > At the end of that section, it also states in the note: > | Note: Documents that use the new features described in this > | specification cannot be strictly conforming XHTML or HTML4 documents, > | since they contain features not defined in those specifications. > > Shouldn't that say XHTML 1.0 or 1.1? Fair point. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From fora at annevankesteren.nl Thu Apr 14 04:26:54 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Thu, 14 Apr 2005 13:26:54 +0200 Subject: [whatwg] [html5] 2.6. Phrase elements Message-ID: <425E537E.2060207@annevankesteren.nl> * 2.6.1. The a element I was wondering if you could give some more examples for the specific attributes. For example: a[type=application/pdf]::after{ content:" " url(pdf-icon) } * 2.6.6. The abbr element It seems the TITLE attribute here has a very specific content model. Perhaps it should be specific for the ABBR element instead of reusing the global TITLE attribute? # The title attribute may be omitted if there is a dfn element in the # document whose defining term is the abbreviation. I think this sentence might need some clarification. Is it something like the following: <abbr>W3C</abbr> ... <dfn title="World Wide Web Consortium">... ... so I don't have to provide a TITLE for ABBR because DFN already has one with the same value? I don't think that makes sense... I also wonder, as some elements have further restricted content models. Is it expected that ABBR elements may nest? (Perhaps this should be a more general question as it applies to some other elements in this section as well.) * 2.6.12. The kbd element How can this element only be used in strictly inline-level content but sometimes contain inline-level content. That doesn't work. If that is changed and inline-level content is still allowed I would like to see an example in the specification. * 2.6.13. The sup and sub elements Shouldn't the second example use the I element? * 2.6.15. The q element It looks like this has the same problem as 2.6.12. (A Q element to contain a BLOCKQUOTE?) The link of the CITE attribute links to the CITE element... * 2.6.16. The cite element Could this element get a note saying that it should not be used for quotations. Perhaps an invalid example would help as well. -- Anne van Kesteren <http://annevankesteren.nl/> From fora at annevankesteren.nl Thu Apr 14 04:54:05 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Thu, 14 Apr 2005 13:54:05 +0200 Subject: [whatwg] HTML5: New link-types regarding guideline 2.4 in WCAG 2.0 In-Reply-To: <425C7EA7.5090808@lachy.id.au> References: <425C52A3.70801@misinterpreted.net> <425C7EA7.5090808@lachy.id.au> Message-ID: <425E59DD.3030707@annevankesteren.nl> Lachlan Hunt wrote: > Could some of these be improved and included within web apps? > > http://lachy.id.au/dev/markup/specs/wclr/ I haven't read it completely, but this sentence sounds incorrect: # Designates a resource containing user contributed comments. May be # used in conjunction with feed to designate a syndication format # resource for comments. If you are proposing |rel="feed comments"| that would imply that the link is both about comments and is a feed. |rel="alternate stylesheet"| was an error from the HTML4 WG (I discussed this with fantasai on IRC) because it actually says that the resource linked to is both an alternate representation of the current page and is a stylesheet. However, it actually is an 'alternate stylesheet' for the current page opposed to the default stylesheet linked with |rel="stylesheet"|. I suggest you fix that (and others, if they exist) ambiguity first. Also note that we probably don't need |rel="permalink"| as the link inside an ARTICLE element with a value of "bookmark" probably does that already. -- Anne van Kesteren <http://annevankesteren.nl/> From lachlan.hunt at lachy.id.au Thu Apr 14 05:21:11 2005 From: lachlan.hunt at lachy.id.au (Lachlan Hunt) Date: Thu, 14 Apr 2005 22:21:11 +1000 Subject: [whatwg] [WF2] Conformance Requirements Issues In-Reply-To: <Pine.LNX.4.61.0504140915370.1985@dhalsim.dreamhost.com> References: <425E00F5.5010105@lachy.id.au> <Pine.LNX.4.61.0504140915370.1985@dhalsim.dreamhost.com> Message-ID: <425E6037.10802@lachy.id.au> Ian Hickson wrote: > On Thu, 14 Apr 2005, Lachlan Hunt wrote: > >> In the conformance requirements for Web Forms 2 [1], it states: >> >>| This specification includes by reference the form-related parts of the >>| HTML4, ... Compliant UAs must implement all the requirements of those >>| specifications to claim compliance with this one. >> >>...does this not make it impossible for any existing browsers to >>ever conform to WF2? > > Existing browsers can't conform to WF2 because they don't implement WF2. Sorry for not being clearer, I think you misunderstood what I meant. I didn't mean existing browsers as in the currently available versions, I meant the known browsers after they have been extended with these new features, as opposed to some future browsers that don't even exist yet. > In the future they can conform to WF2 by implementing the bits of HTML4, > WF2, etc, that they don't support. But there are parts of HTML4 that will never be supported by mainstream browsers, though most of those do relate to SGML processing, and there are bits that WF2 changes (such as handling <textarea> as some weird bugwards compatible CDATA/PCDATA combination for error handling). Perhaps this bit from section 2.2 Existing Controls, can be moved or copied up to the conformance requirements. | Compliant UAs must follow all the guidelines given in the HTML4 | specification *except those modified by this specification*. I couldn't find anything with similar meaning to that in the conformance section, but it is a conformance requirment and, as such, should probably be included there. -- Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox From ian at hixie.ch Thu Apr 14 05:42:33 2005 From: ian at hixie.ch (Ian Hickson) Date: Thu, 14 Apr 2005 12:42:33 +0000 (UTC) Subject: [whatwg] [html5] 2.6. Phrase elements In-Reply-To: <425E537E.2060207@annevankesteren.nl> References: <425E537E.2060207@annevankesteren.nl> Message-ID: <Pine.LNX.4.61.0504141133320.1985@dhalsim.dreamhost.com> On Thu, 14 Apr 2005, Anne van Kesteren wrote: > > * 2.6.1. The a element > > I was wondering if you could give some more examples for the specific > attributes. For example: > > a[type=application/pdf]::after{ > content:" " url(pdf-icon) > } That's an example of CSS, not of HTML. But yes, I'm all for more examples in general. Send them in, the best ones will get added to the spec! :-) > * 2.6.6. The abbr element > > It seems the TITLE attribute here has a very specific content model. > Perhaps it should be specific for the ABBR element instead of reusing > the global TITLE attribute? Yeah, why not. DFN, too. > # The title attribute may be omitted if there is a dfn element in the > # document whose defining term is the abbreviation. > > I think this sentence might need some clarification. Is it something > like the following: > > <abbr>W3C</abbr> > ... > <dfn title="World Wide Web Consortium">... > > ... so I don't have to provide a TITLE for ABBR because DFN already has > one with the same value? I don't think that makes sense... No, it's something like: <abbr>W3C</abbr> ... <dfn>W3C</dfn> is the World Wide Web Consortium I've added an example. > I also wonder, as some elements have further restricted content models. > Is it expected that ABBR elements may nest? (Perhaps this should be a > more general question as it applies to some other elements in this > section as well.) Yes, <abbr> could nest. A contrived example: <abbr title="UN International Children's Emergency Fund" ><abbr title="United Nations">UN</abbr>ICEF</abbr> > * 2.6.12. The kbd element > > How can this element only be used in strictly inline-level content but > sometimes contain inline-level content. That doesn't work. I'm confused about what you mean here. "inline-level content" includes "strictly inline-level content". > If that is changed and inline-level content is still allowed I would > like to see an example in the specification. Changed to only allow strictly-inline children. I couldn't find a realistic example of <kbd> containing structured inline content that wouldn't be better handled by using block-level elements and nested inner <kbd> elements. > * 2.6.13. The sup and sub elements > > Shouldn't the second example use the I element? No, why would it be? > * 2.6.15. The q element > > It looks like this has the same problem as 2.6.12. (A Q element to > contain a BLOCKQUOTE?) I don't understand the problem. If the person you are quoting was themselves quoting a block from elsewhere, where's the problem? > The link of the CITE attribute links to the CITE element... Oops. > * 2.6.16. The cite element > > Could this element get a note saying that it should not be used for > quotations. Perhaps an invalid example would help as well. Done. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From lachlan.hunt at lachy.id.au Thu Apr 14 05:48:50 2005 From: lachlan.hunt at lachy.id.au (Lachlan Hunt) Date: Thu, 14 Apr 2005 22:48:50 +1000 Subject: [whatwg] HTML5: New link-types regarding guideline 2.4 in WCAG 2.0 In-Reply-To: <425E59DD.3030707@annevankesteren.nl> References: <425C52A3.70801@misinterpreted.net> <425C7EA7.5090808@lachy.id.au> <425E59DD.3030707@annevankesteren.nl> Message-ID: <425E66B2.1070002@lachy.id.au> Anne van Kesteren wrote: > Lachlan Hunt wrote: > >> Could some of these be improved and included within web apps? >> >> http://lachy.id.au/dev/markup/specs/wclr/ > > > I haven't read it completely, but this sentence sounds incorrect: > > # Designates a resource containing user contributed comments. May be > # used in conjunction with feed to designate a syndication format > # resource for comments. > > If you are proposing |rel="feed comments"| that would imply that the > link is both about comments and is a feed. I don't understand the problem. The comments relationship doesn't say it's about comments, it says contains comments. The definitions for comments and feed are: comments Designates a resource containing user contributed comments... feed Designates a resource used as a syndication format. With comments and feed, it should indicate a "resource used as a syndication format containing user contributed comments". Perhaps the sentence you cited above could be clarified to reflect this better. > |rel="alternate stylesheet"| was an error from the HTML4 WG (I > discussed this with fantasai on IRC) because it actually says that > the resource linked to is both an alternate representation of the > current page and is a stylesheet. However, it actually is an > 'alternate stylesheet' for the current page opposed to the default > stylesheet linked with |rel="stylesheet"|. I somewhat agree with this, although it seems that it is just the definition of alternate that is poorly worded. If it were defined more like this, alternate stylesheet would be more appropriate: Designates substitute versions for the document in which the link occurs or, when used in conjuntion with another link type, an alternate version of the resource type indicated. (that definition is not perfect, but I think you'll understand what its supposed to mean anyway) > I suggest you fix that (and others, if they exist) ambiguity first. > > Also note that we probably don't need |rel="permalink"| as the link > inside an ARTICLE element with a value of "bookmark" probably does that > already. I somewhat disagree that bookmark does this. It's defined as: "...A bookmark is a link to a key entry point within an extended document..." Unless I'm mistaken, a permanet link for the document doesn't really seem to fit that defintion. -- Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox From fora at annevankesteren.nl Thu Apr 14 05:59:21 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Thu, 14 Apr 2005 14:59:21 +0200 Subject: [whatwg] [html5] 2.6. Phrase elements In-Reply-To: <Pine.LNX.4.61.0504141133320.1985@dhalsim.dreamhost.com> References: <425E537E.2060207@annevankesteren.nl> <Pine.LNX.4.61.0504141133320.1985@dhalsim.dreamhost.com> Message-ID: <425E6929.8030602@annevankesteren.nl> Ian Hickson wrote: > I've added an example. Ok, so order isn't important. You want to add a closing DFN tag by the way. (To the example.) >> * 2.6.12. The kbd element >> >> How can this element only be used in strictly inline-level content >> but sometimes contain inline-level content. That doesn't work. > > I'm confused about what you mean here. "inline-level content" > includes "strictly inline-level content". Well, the draft states (this is SAMP): # Contexts in which this element may be used: # Where strictly inline-level content is allowed. So it may only be used in strictly inline-level context, right? How can otherwise ever apply: # Content model: # When used in an element whose content model is only strictly # inline-level content: only strictly inline-level content. # Otherwise: any inline-level content. ..? >> * 2.6.15. The q element >> >> It looks like this has the same problem as 2.6.12. (A Q element to >> contain a BLOCKQUOTE?) > > I don't understand the problem. If the person you are quoting was > themselves quoting a block from elsewhere, where's the problem? Like <q>foo bar and then <cite>Ian</cite> said: <blockquote> <p>Well, I don't want to go into details right now...</p> <p>... but this looks like a very ugly markup construct...</p> </blockquote> however, he was of course wrong, as this kind of nesting is actually kind a cool, not?</q> ..? It looks terrible imho. Not something you put inline or so. -- Anne van Kesteren <http://annevankesteren.nl/> From ian at hixie.ch Thu Apr 14 06:00:31 2005 From: ian at hixie.ch (Ian Hickson) Date: Thu, 14 Apr 2005 13:00:31 +0000 (UTC) Subject: [whatwg] [WF2] Conformance Requirements Issues In-Reply-To: <425E6037.10802@lachy.id.au> References: <425E00F5.5010105@lachy.id.au> <Pine.LNX.4.61.0504140915370.1985@dhalsim.dreamhost.com> <425E6037.10802@lachy.id.au> Message-ID: <Pine.LNX.4.61.0504141257050.1985@dhalsim.dreamhost.com> On Thu, 14 Apr 2005, Lachlan Hunt wrote: > > > > In the future they can conform to WF2 by implementing the bits of > > HTML4, WF2, etc, that they don't support. > > But there are parts of HTML4 that will never be supported by mainstream > browsers Then they won't be compliant to HTML4, or specs that extend HTML4 (like WF2). This will be addressed in Web Apps 1 / HTML5. > though most of those do relate to SGML processing, and there are bits > that WF2 changes (such as handling <textarea> as some weird bugwards > compatible CDATA/PCDATA combination for error handling). Perhaps this > bit from section 2.2 Existing Controls, can be moved or copied up to the > conformance requirements. > > | Compliant UAs must follow all the guidelines given in the HTML4 > | specification *except those modified by this specification*. > > I couldn't find anything with similar meaning to that in the conformance > section, but it is a conformance requirment and, as such, should > probably be included there. Fair point. Done. I also made it (as you suggested, I think) only the forms-related parts. Cheers, -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From fora at annevankesteren.nl Thu Apr 14 06:01:14 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Thu, 14 Apr 2005 15:01:14 +0200 Subject: [whatwg] HTML5: New link-types regarding guideline 2.4 in WCAG 2.0 In-Reply-To: <425E66B2.1070002@lachy.id.au> References: <425C52A3.70801@misinterpreted.net> <425C7EA7.5090808@lachy.id.au> <425E59DD.3030707@annevankesteren.nl> <425E66B2.1070002@lachy.id.au> Message-ID: <425E699A.1060107@annevankesteren.nl> Lachlan Hunt wrote: > With comments and feed, it should indicate a "resource used as a > syndication format containing user contributed comments". Perhaps the > sentence you cited above could be clarified to reflect this better. Using two link values gives the link two relations, not one. > I somewhat agree with this, although it seems that it is just the > definition of alternate that is poorly worded. If it were defined more > like this, alternate stylesheet would be more appropriate: > > Designates substitute versions for the document in which the link > occurs or, when used in conjuntion with another link type, an > alternate version of the resource type indicated. > > (that definition is not perfect, but I think you'll understand what its > supposed to mean anyway) I do, but I'm not sure if it would be correct. -- Anne van Kesteren <http://annevankesteren.nl/> From lachlan.hunt at lachy.id.au Thu Apr 14 06:18:56 2005 From: lachlan.hunt at lachy.id.au (Lachlan Hunt) Date: Thu, 14 Apr 2005 23:18:56 +1000 Subject: [whatwg] HTML5: New link-types regarding guideline 2.4 in WCAG 2.0 In-Reply-To: <425E699A.1060107@annevankesteren.nl> References: <425C52A3.70801@misinterpreted.net> <425C7EA7.5090808@lachy.id.au> <425E59DD.3030707@annevankesteren.nl> <425E66B2.1070002@lachy.id.au> <425E699A.1060107@annevankesteren.nl> Message-ID: <425E6DC0.6020300@lachy.id.au> Anne van Kesteren wrote: > Lachlan Hunt wrote: > >> With comments and feed, it should indicate a "resource used as a >> syndication format containing user contributed comments". Perhaps the >> sentence you cited above could be clarified to reflect this better. > > Using two link values gives the link two relations, not one. Yes, but don't both relationships apply to the one resource, so their semantics are combined? -- Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox From fora at annevankesteren.nl Thu Apr 14 06:25:05 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Thu, 14 Apr 2005 15:25:05 +0200 Subject: [whatwg] HTML5: New link-types regarding guideline 2.4 in WCAG 2.0 In-Reply-To: <425E6DC0.6020300@lachy.id.au> References: <425C52A3.70801@misinterpreted.net> <425C7EA7.5090808@lachy.id.au> <425E59DD.3030707@annevankesteren.nl> <425E66B2.1070002@lachy.id.au> <425E699A.1060107@annevankesteren.nl> <425E6DC0.6020300@lachy.id.au> Message-ID: <425E6F31.3020508@annevankesteren.nl> Lachlan Hunt wrote: >> Using two link values gives the link two relations, not one. > > Yes, but don't both relationships apply to the one resource, so their > semantics are combined? Not as I understand it. For example, a resource could be both the 'prev' document and the 'index'. What would be the combined semantics of |rel="index prev"| or |rel="prev index"|... -- Anne van Kesteren <http://annevankesteren.nl/> From lachlan.hunt at lachy.id.au Thu Apr 14 07:14:41 2005 From: lachlan.hunt at lachy.id.au (Lachlan Hunt) Date: Fri, 15 Apr 2005 00:14:41 +1000 Subject: [whatwg] [WF2] Conformance Requirements Issues In-Reply-To: <Pine.LNX.4.61.0504141257050.1985@dhalsim.dreamhost.com> References: <425E00F5.5010105@lachy.id.au> <Pine.LNX.4.61.0504140915370.1985@dhalsim.dreamhost.com> <425E6037.10802@lachy.id.au> <Pine.LNX.4.61.0504141257050.1985@dhalsim.dreamhost.com> Message-ID: <425E7AD1.8070807@lachy.id.au> Ian Hickson wrote: >>But there are parts of HTML4 that will never be supported by mainstream >>browsers > > Then they won't be compliant to HTML4, or specs that extend HTML4 (like > WF2). Then why write a spec that no browser will ever be able to be fully compliant with due to backwards compatibiltiy constraints? > This will be addressed in Web Apps 1 / HTML5. Ok. > > Perhaps this bit from section 2.2 Existing Controls, can be moved or >> copied up to the conformance requirements. >> >> | Compliant UAs must follow all the guidelines given in the HTML4 >> | specification *except those modified by this specification*. > > Fair point. Done. I also made it (as you suggested, I think) only the > forms-related parts. Yes, that looks good. -- Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox From lachlan.hunt at lachy.id.au Thu Apr 14 07:16:43 2005 From: lachlan.hunt at lachy.id.au (Lachlan Hunt) Date: Fri, 15 Apr 2005 00:16:43 +1000 Subject: [whatwg] HTML5: New link-types regarding guideline 2.4 in WCAG 2.0 In-Reply-To: <425E6F31.3020508@annevankesteren.nl> References: <425C52A3.70801@misinterpreted.net> <425C7EA7.5090808@lachy.id.au> <425E59DD.3030707@annevankesteren.nl> <425E66B2.1070002@lachy.id.au> <425E699A.1060107@annevankesteren.nl> <425E6DC0.6020300@lachy.id.au> <425E6F31.3020508@annevankesteren.nl> Message-ID: <425E7B4B.1080202@lachy.id.au> Anne van Kesteren wrote: > What would be the combined semantics of |rel="index prev"| or |rel="prev index"|... That the resource provides an index for the current document and is the previous document in sequence. eg. If all the files of a short online book, in this order, were: 1. contents.html 2. chapter1.html 3. chapter2.html 4. book-index.html 5. colophon.html (That would be the order they appear in a printed/published book version too) Using only the next, prev and index attributes, all the possible links (that I can think of) could be: contents.html: <!-- first document in sequence, no prev --> <link rel="next" href="chapter1.html"> <link rel="index" href="book-index.html"> chapter1.html: <link rel="prev" href="contents.html"> <link rel="next" href="chapter2.html"> <link rel="index" href="book-index.html"> chapter2.html: <link rel="prev" href="chapter1.html"> <link rel="next index" href="book-index.html"> book-index.html: <link rel="prev" href="chapter2.html"> <link rel="next" href="colophon.html"> colophon.html: <link rel="prev index" href="book-index.html"> <!-- last document in sequence, no next --> (title, rev, and rel="contents" attributes have been omitted for simplicity. Hixie, feel free to use that example in the spec if you like) Each of those points to the next and previous documents in sequence (except for the contents and colophon). Each of them also points to the document serving as the index (book-index.html). For chapter2.html, since book-index.html is both the next document in sequence and the document serving as the index, it can be combined into the one link element with the two relationships, rather than two seperate relationships like the other pages. Same applies to colophon.html, except using prev instead. Are any of those examples above, with either individual or combined relationships, semantically incorrect? Is there anything I haven't explained well enough? -- Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox From fora at annevankesteren.nl Thu Apr 14 07:22:40 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Thu, 14 Apr 2005 16:22:40 +0200 Subject: [whatwg] [html5] 2.6. Phrase elements In-Reply-To: <Pine.LNX.4.61.0504141133320.1985@dhalsim.dreamhost.com> References: <425E537E.2060207@annevankesteren.nl> <Pine.LNX.4.61.0504141133320.1985@dhalsim.dreamhost.com> Message-ID: <425E7CB0.4040604@annevankesteren.nl> Ian Hickson wrote: >> a[type=application/pdf]::after{ content:" " url(pdf-icon) } > > That's an example of CSS, not of HTML. But yes, I'm all for more > examples in general. Send them in, the best ones will get added to > the spec! :-) True. However, it does show a use case for the attribute. You could also say something like: "A visual UA might display |<a href="foo" type="application/pdf">| as: [example rendering]" .... where [example rendering] is an image of a link with a PDF icon after it. -- Anne van Kesteren <http://annevankesteren.nl/> From mattraymond at earthlink.net Thu Apr 14 07:49:29 2005 From: mattraymond at earthlink.net (Matthew Raymond) Date: Thu, 14 Apr 2005 10:49:29 -0400 Subject: [whatwg] Image maps: should we drop <a coords="">? In-Reply-To: <Pine.LNX.4.61.0504112221170.20461@dhalsim.dreamhost.com> References: <Pine.LNX.4.61.0504111531560.172@dhalsim.dreamhost.com> <425AD1B4.8060803@annevankesteren.nl> <Pine.LNX.4.61.0504112221170.20461@dhalsim.dreamhost.com> Message-ID: <425E82F9.5020209@earthlink.net> Ian Hickson wrote: > On Mon, 11 Apr 2005, Anne van Kesteren wrote: > >>Ian Hickson wrote: >> >>>Anyone want us to keep <a coords="">? >> >>The reason I especially liked it was: >> >> <object data="foo" usemap="#foo"> >> <map id="foo"> >> <ul> >> <li><a coords="...">...</a> >> ... > > Yup, it is indeed nice; if image maps had been designed that way from the > start it would make sense. But it's not _that_ much nicer than <area>, > which we could define as allowing: > > <object data="foo" usemap="#foo"> > <map id="foo"> > <ul> > <li><area coords="..." href="..."><a href="...">...</a> > ... > > ...which isn't much worse, and has the very important benefit of actually > working in IE6. This would seem to undermine your position with regards to using the <a> element for menu labels: | <menubar id="appmenu"> | <a href="#file">File</a> | <menu> Contrast this with the following: | <menubar id="appmenu"> | <menulabel><a href="#file">File</a></menulabel> | <menu> It's essentially the same scenario. In both situations, <a> is being used in a situation where alternative, more semantically appropriate markup already exists for the purposes of fallback. However, as illustrated in both your example and mine, <a> could simply be used within the same alternative markup to create fallback without overloading the semantics of <a>. So, with implementations of <a coords=""> existing and gaining marketshare, why is <a coords=""> being phased out while <a href="#[menu]"> for use _within_ menus is being phased in? From liorean at gmail.com Thu Apr 14 09:38:36 2005 From: liorean at gmail.com (liorean) Date: Thu, 14 Apr 2005 18:38:36 +0200 Subject: [whatwg] WebForms 2.0 and object controls Message-ID: <cee13aa305041409382a640f8e@mail.gmail.com> Hello! Doing a quick read through the submitted WebForms 2.0 proposal, I didn't see at any place that it addressed object elements as form controls, something that HTML4.01 forms did. Shouldn't WebForms 2.0 address this part of the HTML4.01 forms as well? -- David "liorean" Andersson <uri:http://liorean.web-graphics.com/> From ian at hixie.ch Thu Apr 14 10:44:28 2005 From: ian at hixie.ch (Ian Hickson) Date: Thu, 14 Apr 2005 17:44:28 +0000 (UTC) Subject: [whatwg] WebForms 2.0 and object controls In-Reply-To: <cee13aa305041409382a640f8e@mail.gmail.com> References: <cee13aa305041409382a640f8e@mail.gmail.com> Message-ID: <Pine.LNX.4.61.0504141743410.1985@dhalsim.dreamhost.com> On Thu, 14 Apr 2005, liorean wrote: > > Doing a quick read through the submitted WebForms 2.0 proposal, I didn't > see at any place that it addressed object elements as form controls, > something that HTML4.01 forms did. Shouldn't WebForms 2.0 address this > part of the HTML4.01 forms as well? Web Forms 2 is an addition to HTML4, not a replacement, so you'll be glad to know that the form submission parts of <object> still apply in WF2. HTH, -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From ian at hixie.ch Thu Apr 14 14:15:31 2005 From: ian at hixie.ch (Ian Hickson) Date: Thu, 14 Apr 2005 21:15:31 +0000 (UTC) Subject: [whatwg] [html5] 2.6. Phrase elements In-Reply-To: <425E6929.8030602@annevankesteren.nl> References: <425E537E.2060207@annevankesteren.nl> <Pine.LNX.4.61.0504141133320.1985@dhalsim.dreamhost.com> <425E6929.8030602@annevankesteren.nl> Message-ID: <Pine.LNX.4.61.0504142109160.1985@dhalsim.dreamhost.com> On Thu, 14 Apr 2005, Anne van Kesteren wrote: > > > > I've added an example. > > You want to add a closing DFN tag by the way. (To the example.) Fixed. > Well, the draft states (this is SAMP): > > # Contexts in which this element may be used: > # Where strictly inline-level content is allowed. > > So it may only be used in strictly inline-level context, right? It can be used "where strictly inline-level content is allowed". Strictly inline-level content is allowed in content models that say "strictly inline-level content" and in content models that say "inline-level content" (the latter includes both strictly inline-level content and structured inline-level content). I'm very open to better names. > How can otherwise ever apply: > > # Content model: > # When used in an element whose content model is only strictly > # inline-level content: only strictly inline-level content. > # Otherwise: any inline-level content. > > ..? One example would be <dt> vs <dd>. <dt> only allows strictly inline-level content, <dd> allows any kind of inline content (or alternatively block-level content, but that's another story). > Like > > <q>foo bar and then <cite>Ian</cite> said: > <blockquote> > <p>Well, I don't want to go into details right now...</p> > <p>... but this looks like a very ugly markup construct...</p> > </blockquote> > however, he was of course wrong, as this kind of nesting is actually > kind a cool, not?</q> > > ..? It looks terrible imho. Not something you put inline or so. There have actually been examples of this in this in the past few weeks, enough to convince me that in some cases it is a valid use case. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From lachlan.hunt at lachy.id.au Thu Apr 14 21:03:16 2005 From: lachlan.hunt at lachy.id.au (Lachlan Hunt) Date: Fri, 15 Apr 2005 14:03:16 +1000 Subject: [whatwg] WebForms 2.0 and object controls In-Reply-To: <Pine.LNX.4.61.0504141743410.1985@dhalsim.dreamhost.com> References: <cee13aa305041409382a640f8e@mail.gmail.com> <Pine.LNX.4.61.0504141743410.1985@dhalsim.dreamhost.com> Message-ID: <425F3D04.30805@lachy.id.au> Ian Hickson wrote: > Web Forms 2 is an addition to HTML4, not a replacement, so you'll be glad > to know that the form submission parts of <object> still apply in WF2. Is there any chance the WF2 can clarify exactly how to use object as a form control? HTML4 is extremely vague on the subject and I'm yet to see any site make use of a custom object as a form control. Does any browser actually support objects as form controls? -- Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox From ian at hixie.ch Fri Apr 15 01:14:09 2005 From: ian at hixie.ch (Ian Hickson) Date: Fri, 15 Apr 2005 08:14:09 +0000 (UTC) Subject: [whatwg] WebForms 2.0 and object controls In-Reply-To: <425F3D04.30805@lachy.id.au> References: <cee13aa305041409382a640f8e@mail.gmail.com> <Pine.LNX.4.61.0504141743410.1985@dhalsim.dreamhost.com> <425F3D04.30805@lachy.id.au> Message-ID: <Pine.LNX.4.61.0504150813470.19880@dhalsim.dreamhost.com> On Fri, 15 Apr 2005, Lachlan Hunt wrote: > > Is there any chance the WF2 can clarify exactly how to use object as a > form control? HTML4 is extremely vague on the subject and I'm yet to > see any site make use of a custom object as a form control. Does any > browser actually support objects as form controls? The various plugin interfaces support it. What would you want the spec to say about it? -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From hasather at gmail.com Fri Apr 15 14:11:10 2005 From: hasather at gmail.com (=?ISO-8859-1?Q?David_H=E5s=E4ther?=) Date: Fri, 15 Apr 2005 23:11:10 +0200 Subject: [whatwg] [html5] %Pixels; unnecessary Message-ID: <1a296f99050415141114a83cac@mail.gmail.com> The Pixels parameter entity replacement text should be NUMBER instead of CDATA since the comment says "integer representing length in pixels". Also, the entity is only used once in the DTD (for the BORDER attribute of the TABLE element type) so it could as well be: border NUMBER #IMPLIED -- controls frame width around table -- -- David H?s?ther From mpt at myrealbox.com Fri Apr 15 17:08:40 2005 From: mpt at myrealbox.com (Matthew Thomas) Date: Sat, 16 Apr 2005 12:08:40 +1200 Subject: [whatwg] [html5] 2.6. Phrase elements In-Reply-To: <Pine.LNX.4.61.0504142109160.1985@dhalsim.dreamhost.com> References: <425E537E.2060207@annevankesteren.nl> <Pine.LNX.4.61.0504141133320.1985@dhalsim.dreamhost.com> <425E6929.8030602@annevankesteren.nl> <Pine.LNX.4.61.0504142109160.1985@dhalsim.dreamhost.com> Message-ID: <42605788.8010809@myrealbox.com> Ian Hickson wrote: > > On Thu, 14 Apr 2005, Anne van Kesteren wrote: >... >> <q>foo bar and then <cite>Ian</cite> said: >> <blockquote> >> <p>Well, I don't want to go into details right now...</p> >> <p>... but this looks like a very ugly markup construct...</p> >> </blockquote> >> however, he was of course wrong, as this kind of nesting is actually >> kind a cool, not?</q> >> >>..? It looks terrible imho. Not something you put inline or so. > > There have actually been examples of this in this in the past few weeks, > enough to convince me that in some cases it is a valid use case. As far as I can see, all the supporting examples have been provided by yourself, and none of them are conformant to basic typography. (This is given away partly by your starting the supposedly resumed outer paragraph with "....".) In other words, any written work attempting such constructions would be marked as an error by a human editor. So if <p>s inside <p>s are allowed, I think it should be only for <p lang="en-hixie">. -- Matthew Thomas http://mpt.net.nz/ From fantasai.lists at inkedblade.net Fri Apr 15 19:12:54 2005 From: fantasai.lists at inkedblade.net (fantasai) Date: Fri, 15 Apr 2005 22:12:54 -0400 Subject: [whatwg] [html5] 2.6. Phrase elements In-Reply-To: <42605788.8010809@myrealbox.com> References: <425E537E.2060207@annevankesteren.nl> <Pine.LNX.4.61.0504141133320.1985@dhalsim.dreamhost.com> <425E6929.8030602@annevankesteren.nl> <Pine.LNX.4.61.0504142109160.1985@dhalsim.dreamhost.com> <42605788.8010809@myrealbox.com> Message-ID: <426074A6.7020807@inkedblade.net> Matthew Thomas wrote: > Ian Hickson wrote: > >> On Thu, 14 Apr 2005, Anne van Kesteren wrote: >> ... >> >>> <q>foo bar and then <cite>Ian</cite> said: >>> <blockquote> >>> <p>Well, I don't want to go into details right now...</p> >>> <p>... but this looks like a very ugly markup construct...</p> >>> </blockquote> >>> however, he was of course wrong, as this kind of nesting is actually >>> kind a cool, not?</q> >>> >>> ..? It looks terrible imho. Not something you put inline or so. >> >> There have actually been examples of this in this in the past few >> weeks, enough to convince me that in some cases it is a valid use case. > > As far as I can see, all the supporting examples have been provided by > yourself, and none of them are conformant to basic typography. (This is > given away partly by your starting the supposedly resumed outer > paragraph with "....".) In other words, any written work attempting such > constructions would be marked as an error by a human editor. I have in front of me several examples of in-paragraph block quotes in which multiple, unrelated sentences are quoted; in which several stanzas of a poem are quoted; in which a paragraph has been quoted in its entirety (and therefore leaving it out of a <p> would be just as wrong as leaving a single-paragraph HTML document without its <p>); and in which, yes, multiple paragraphs have been quoted. Some of the quotations are introduced by the previous sentence, others complete the introductory sentence, and still others break in the middle of the sentence. All of these examples are in print, and have therefore passed through the review of a professional editor. > So if <p>s inside <p>s are allowed, I think it should be only for <p > lang="en-hixie">. I disagree. ~fantasai From mtknight at dark-phantasy.com Fri Apr 15 20:41:16 2005 From: mtknight at dark-phantasy.com (J. King) Date: Fri, 15 Apr 2005 23:41:16 -0400 Subject: [whatwg] [html5] 2.6. Phrase elements In-Reply-To: <426074A6.7020807@inkedblade.net> References: <425E537E.2060207@annevankesteren.nl> <Pine.LNX.4.61.0504141133320.1985@dhalsim.dreamhost.com> <425E6929.8030602@annevankesteren.nl> <Pine.LNX.4.61.0504142109160.1985@dhalsim.dreamhost.com> <42605788.8010809@myrealbox.com> <426074A6.7020807@inkedblade.net> Message-ID: <op.spa262o1k4suho@briann> On Fri, 15 Apr 2005 22:12:54 -0400, fantasai <fantasai.lists at inkedblade.net> wrote: > I have in front of me several examples of in-paragraph block quotes in > which multiple, unrelated sentences are quoted; in which several stanzas > of a poem are quoted; in which a paragraph has been quoted in its [etc, snip] Where could we find these examples? I don't doubt you; I'm just curious. Personally I wouldn't much care either way if things stayed the way they are or if they changed in completely radical, non-sensical ways. I would still mark up paragraphs the same out of habit. -- J. King http://jking.dark-phantasy.com/ From mtknight at dark-phantasy.com Fri Apr 15 21:16:27 2005 From: mtknight at dark-phantasy.com (J. King) Date: Sat, 16 Apr 2005 00:16:27 -0400 Subject: [whatwg] [web-apps] 2.7.8 The i element Message-ID: <op.spa4tpxpk4suho@briann> The note at the bottom says: The i element is not appropriate for marking up names (e.g. of people, or of ships). Is there an element that would be? This has been a problem for me several times and I could never find an acceptable solution. -- J. King http://jking.dark-phantasy.com/ From robmientjes at gmail.com Sat Apr 16 02:53:54 2005 From: robmientjes at gmail.com (Rob Mientjes) Date: Sat, 16 Apr 2005 11:53:54 +0200 Subject: [whatwg] [web-apps] 2.7.8 The i element In-Reply-To: <op.spa4tpxpk4suho@briann> References: <op.spa4tpxpk4suho@briann> Message-ID: <e8e97f9f050416025346d0249e@mail.gmail.com> On 4/16/05, J. King <mtknight at dark-phantasy.com> wrote: > Is there an element that would be? This has been a problem for me several > times and I could never find an acceptable solution. Well, even if there isn't a suitable element, you can still use classes or ids to show the meaning, not just using it as a styling hook. <span class="name">Titanic</span> would come a long way when it comes to 'The Semantic Web', if we must trust Tantek. -- Cheers, Rob. http://zooibaai.nl | http://digital-proof.org | http://chancecube.com From ian at hixie.ch Sat Apr 16 03:40:25 2005 From: ian at hixie.ch (Ian Hickson) Date: Sat, 16 Apr 2005 10:40:25 +0000 (UTC) Subject: [whatwg] [web-apps] 2.7.8 The i element In-Reply-To: <op.spa4tpxpk4suho@briann> References: <op.spa4tpxpk4suho@briann> Message-ID: <Pine.LNX.4.61.0504161039020.7599@dhalsim.dreamhost.com> On Sat, 16 Apr 2005, J. King wrote: > > The note at the bottom says: > > The i element is not appropriate for marking > up names (e.g. of people, or of ships). > > Is there an element that would be? This has been a problem for me several > times and I could never find an acceptable solution. The markup for the bit you quoted is: <p class="note">The <code>i</code> element is not appropriate for marking up names (e.g. of people, or of ships).</p> <!-- XXX what is? --> Currently I don't have an answer. Should we introduce a <name> element? -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From ian at hixie.ch Sat Apr 16 03:49:14 2005 From: ian at hixie.ch (Ian Hickson) Date: Sat, 16 Apr 2005 10:49:14 +0000 (UTC) Subject: [whatwg] [web-apps] 2.7.8 The i element In-Reply-To: <e8e97f9f050416025346d0249e@mail.gmail.com> References: <op.spa4tpxpk4suho@briann> <e8e97f9f050416025346d0249e@mail.gmail.com> Message-ID: <Pine.LNX.4.61.0504161040410.7599@dhalsim.dreamhost.com> On Sat, 16 Apr 2005, Rob Mientjes wrote: > > <span class="name">Titanic</span> would come a long way when it comes to > 'The Semantic Web', if we must trust Tantek. The class attribute is meaningless. http://tantek.com/log/2002/12.html#L20021216 http://whatwg.org/specs/web-apps/current-work/#class So the above wouldn't help at all, at the moment. I am considering that we need some predefined class names. In this particular case, though, a new element would be more appropriate. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From robmientjes at gmail.com Sat Apr 16 03:52:33 2005 From: robmientjes at gmail.com (Rob Mientjes) Date: Sat, 16 Apr 2005 12:52:33 +0200 Subject: [whatwg] [web-apps] 2.7.8 The i element In-Reply-To: <Pine.LNX.4.61.0504161039020.7599@dhalsim.dreamhost.com> References: <op.spa4tpxpk4suho@briann> <Pine.LNX.4.61.0504161039020.7599@dhalsim.dreamhost.com> Message-ID: <e8e97f9f0504160352234b5e20@mail.gmail.com> On 4/16/05, Ian Hickson <ian at hixie.ch> wrote: > <p class="note">The <code>i</code> element is not appropriate for > marking up names (e.g. of people, or of ships).</p> <!-- XXX what is? --> :D > Currently I don't have an answer. Should we introduce a <name> element? Heh. That will make some pedants quite angry. <name><abbr title="Extensible Hypertext Markup Language">XHTML</abbr></name> How do you visualise that yourself? -- Cheers, Rob. http://zooibaai.nl | http://digital-proof.org | http://chancecube.com From robmientjes at gmail.com Sat Apr 16 03:56:00 2005 From: robmientjes at gmail.com (Rob Mientjes) Date: Sat, 16 Apr 2005 12:56:00 +0200 Subject: [whatwg] [web-apps] 2.7.8 The i element In-Reply-To: <Pine.LNX.4.61.0504161040410.7599@dhalsim.dreamhost.com> References: <op.spa4tpxpk4suho@briann> <e8e97f9f050416025346d0249e@mail.gmail.com> <Pine.LNX.4.61.0504161040410.7599@dhalsim.dreamhost.com> Message-ID: <e8e97f9f05041603562f07bb9f@mail.gmail.com> On 4/16/05, Ian Hickson <ian at hixie.ch> wrote: > The class attribute is meaningless. I'm referring to Tantek's visions of hCards, for example. > I am considering that we need some predefined class names. In this > particular case, though, a new element would be more appropriate. Predefined class names, isn't that what Tantek _is_ opting with his hCards and other stuff on the Technorati wiki? Just like the XFN predefined rel values. -- Cheers, Rob. http://zooibaai.nl | http://digital-proof.org | http://chancecube.com From ian at hixie.ch Sat Apr 16 04:43:13 2005 From: ian at hixie.ch (Ian Hickson) Date: Sat, 16 Apr 2005 11:43:13 +0000 (UTC) Subject: [whatwg] [web-apps] 2.7.8 The i element In-Reply-To: <e8e97f9f0504160352234b5e20@mail.gmail.com> References: <op.spa4tpxpk4suho@briann> <Pine.LNX.4.61.0504161039020.7599@dhalsim.dreamhost.com> <e8e97f9f0504160352234b5e20@mail.gmail.com> Message-ID: <Pine.LNX.4.61.0504161056020.7599@dhalsim.dreamhost.com> On Sat, 16 Apr 2005, Rob Mientjes wrote: > > > > Currently I don't have an answer. Should we introduce a <name> element? > > Heh. That will make some pedants quite angry. > > <name><abbr title="Extensible Hypertext Markup Language">XHTML</abbr></name> > > How do you visualise that yourself? Well, it would just be for people, vehicles (ships), that kind of thing. I wasn't imagining that people would want to use it for technologies. Would it make sense to allow it for books? I don't know. Maybe the <cite> element needs a "type" attribute that takes values like "person", "ship", "publication"? What other names do people want to mark up? (There clearly is a semantic difference between marking up the name of a person and the name of a ship. There's a presentational difference, too; ship names are usually italicised, for instance.) -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From ian at hixie.ch Sat Apr 16 04:43:49 2005 From: ian at hixie.ch (Ian Hickson) Date: Sat, 16 Apr 2005 11:43:49 +0000 (UTC) Subject: [whatwg] [web-apps] 2.7.8 The i element In-Reply-To: <e8e97f9f05041603562f07bb9f@mail.gmail.com> References: <op.spa4tpxpk4suho@briann> <e8e97f9f050416025346d0249e@mail.gmail.com> <Pine.LNX.4.61.0504161040410.7599@dhalsim.dreamhost.com> <e8e97f9f05041603562f07bb9f@mail.gmail.com> Message-ID: <Pine.LNX.4.61.0504161143190.7599@dhalsim.dreamhost.com> On Sat, 16 Apr 2005, Rob Mientjes wrote: > > > > The class attribute is meaningless. > > I'm referring to Tantek's visions of hCards, for example. Ah, yes. Well, those would be spec-defined special cases. > > I am considering that we need some predefined class names. In this > > particular case, though, a new element would be more appropriate. > > Predefined class names, isn't that what Tantek _is_ opting with his > hCards and other stuff on the Technorati wiki? Just like the XFN > predefined rel values. Right. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From robmientjes at gmail.com Sat Apr 16 04:57:31 2005 From: robmientjes at gmail.com (Rob Mientjes) Date: Sat, 16 Apr 2005 13:57:31 +0200 Subject: [whatwg] [web-apps] 2.7.8 The i element In-Reply-To: <Pine.LNX.4.61.0504161056020.7599@dhalsim.dreamhost.com> References: <op.spa4tpxpk4suho@briann> <Pine.LNX.4.61.0504161039020.7599@dhalsim.dreamhost.com> <e8e97f9f0504160352234b5e20@mail.gmail.com> <Pine.LNX.4.61.0504161056020.7599@dhalsim.dreamhost.com> Message-ID: <e8e97f9f050416045769ec23cc@mail.gmail.com> On 4/16/05, Ian Hickson <ian at hixie.ch> wrote: > Well, it would just be for people, vehicles (ships), that kind of thing. I > wasn't imagining that people would want to use it for technologies. Well, a NAME element sounds like it may be used for it (and ambiguous naming and spec defining leads to tag abuse, no?). > Would it make sense to allow it for books? I don't know. Maybe the <cite> > element needs a "type" attribute that takes values like "person", "ship", > "publication"? What other names do people want to mark up? That feels like something much better. That way, you can talk about <cite type="person">Anne van Kesteren</cite>, <cite type="publication" (publication sounds a bit vague, maybe something along the lines of source?)>A Dao of Web Design</cite> and maybe better something such as <cite type="object">Titanic</cite>. This deserves some serious attention, cause well, ship is rather silly ;) -- Cheers, Rob. http://zooibaai.nl | http://digital-proof.org | http://chancecube.com From ian at hixie.ch Sat Apr 16 05:50:44 2005 From: ian at hixie.ch (Ian Hickson) Date: Sat, 16 Apr 2005 12:50:44 +0000 (UTC) Subject: [whatwg] [web-apps] 2.7.8 The i element In-Reply-To: <e8e97f9f050416045769ec23cc@mail.gmail.com> References: <op.spa4tpxpk4suho@briann> <Pine.LNX.4.61.0504161039020.7599@dhalsim.dreamhost.com> <e8e97f9f0504160352234b5e20@mail.gmail.com> <Pine.LNX.4.61.0504161056020.7599@dhalsim.dreamhost.com> <e8e97f9f050416045769ec23cc@mail.gmail.com> Message-ID: <Pine.LNX.4.61.0504161239120.20636@dhalsim.dreamhost.com> On Sat, 16 Apr 2005, Rob Mientjes wrote: > > > > Well, it would just be for people, vehicles (ships), that kind of > > thing. I wasn't imagining that people would want to use it for > > technologies. > > Well, a NAME element sounds like it may be used for it (and ambiguous > naming and spec defining leads to tag abuse, no?). We don't want any vague spec defining, if anyone sees any, let me know so we can fix it! :-) > > Would it make sense to allow it for books? I don't know. Maybe the > > <cite> element needs a "type" attribute that takes values like > > "person", "ship", "publication"? What other names do people want to > > mark up? I actually meant the <name> element should, although one option is indeed to co-opt <cite> for this (I don't really like that idea though). > That feels like something much better. That way, you can talk about > <cite type="person">Anne van Kesteren</cite>, <cite type="publication" > (publication sounds a bit vague, maybe something along the lines of > source?)>A Dao of Web Design</cite> and maybe better something such as > <cite type="object">Titanic</cite>. This deserves some serious > attention, cause well, ship is rather silly ;) Yeah. For <name> that might work better though. The thing is we don't want to start making people do: <cite><name type="person">Ian</name></cite> said <q>Hello</q>. ...when all they need to do is write: Ian said "Hello". Is there any advantage to marking up people's names? Maybe we should just let ship names be marked up by <i> (it is, after all, an instance of use of a term, as it were), and say that <cite> can be used for any reference to a publication, including those that aren't really citations ("my favourite book is <cite>...</cite>"). -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From robmientjes at gmail.com Sat Apr 16 05:57:20 2005 From: robmientjes at gmail.com (Rob Mientjes) Date: Sat, 16 Apr 2005 14:57:20 +0200 Subject: [whatwg] [web-apps] 2.7.8 The i element In-Reply-To: <Pine.LNX.4.61.0504161239120.20636@dhalsim.dreamhost.com> References: <op.spa4tpxpk4suho@briann> <Pine.LNX.4.61.0504161039020.7599@dhalsim.dreamhost.com> <e8e97f9f0504160352234b5e20@mail.gmail.com> <Pine.LNX.4.61.0504161056020.7599@dhalsim.dreamhost.com> <e8e97f9f050416045769ec23cc@mail.gmail.com> <Pine.LNX.4.61.0504161239120.20636@dhalsim.dreamhost.com> Message-ID: <e8e97f9f050416055724f000f1@mail.gmail.com> On 4/16/05, Ian Hickson <ian at hixie.ch> wrote: > Is there any advantage to marking up people's names? I dunno. I was just trying to fill the gap of need ;) > Maybe we should just let ship names be marked up by <i> (it is, after all, > an instance of use of a term, as it were), and say that <cite> can be used > for any reference to a publication, including those that aren't really > citations ("my favourite book is <cite>...</cite>"). Well, then let's hear some voices about that change in semantics and usage (Anne? ;)). -- Cheers, Rob. http://zooibaai.nl | http://digital-proof.org | http://chancecube.com From ian at hixie.ch Sat Apr 16 06:04:05 2005 From: ian at hixie.ch (Ian Hickson) Date: Sat, 16 Apr 2005 13:04:05 +0000 (UTC) Subject: [whatwg] [web-apps] 2.7.8 The i element In-Reply-To: <e8e97f9f050416055724f000f1@mail.gmail.com> References: <op.spa4tpxpk4suho@briann> <Pine.LNX.4.61.0504161039020.7599@dhalsim.dreamhost.com> <e8e97f9f0504160352234b5e20@mail.gmail.com> <Pine.LNX.4.61.0504161056020.7599@dhalsim.dreamhost.com> <e8e97f9f050416045769ec23cc@mail.gmail.com> <Pine.LNX.4.61.0504161239120.20636@dhalsim.dreamhost.com> <e8e97f9f050416055724f000f1@mail.gmail.com> Message-ID: <Pine.LNX.4.61.0504161301440.20636@dhalsim.dreamhost.com> On Sat, 16 Apr 2005, Rob Mientjes wrote: > > > > Is there any advantage to marking up people's names? > > I dunno. I was just trying to fill the gap of need ;) The question is: is the need a real need or a perceived need? > > Maybe we should just let ship names be marked up by <i> (it is, after > > all, an instance of use of a term, as it were), and say that <cite> > > can be used for any reference to a publication, including those that > > aren't really citations ("my favourite book is <cite>...</cite>"). > > Well, then let's hear some voices about that change in semantics and > usage (Anne? ;)). Indeed, it would be good to have other opinions on this. Anyone? -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From lachlan.hunt at lachy.id.au Sat Apr 16 06:45:43 2005 From: lachlan.hunt at lachy.id.au (Lachlan Hunt) Date: Sat, 16 Apr 2005 23:45:43 +1000 Subject: [whatwg] [web-apps] 2.7.8 The i element In-Reply-To: <Pine.LNX.4.61.0504161239120.20636@dhalsim.dreamhost.com> References: <op.spa4tpxpk4suho@briann> <Pine.LNX.4.61.0504161039020.7599@dhalsim.dreamhost.com> <e8e97f9f0504160352234b5e20@mail.gmail.com> <Pine.LNX.4.61.0504161056020.7599@dhalsim.dreamhost.com> <e8e97f9f050416045769ec23cc@mail.gmail.com> <Pine.LNX.4.61.0504161239120.20636@dhalsim.dreamhost.com> Message-ID: <42611707.10401@lachy.id.au> Ian Hickson wrote: > Is there any advantage to marking up people's names? The only reason I have ever marked up any name is for linking to their home page or other page about them like this: <a href="http://www.hixie.ch/">Ian Hickson</a> said <q>Hello</q> I see little reason to add specific elements for this purpose to a general purpose markup language like HTML. > Maybe we should just let ship names be marked up by <i> Perhaps. it's been argued many times before that i is the most suitable element to use for such purposes; but then again, italics for ship names is merely a typographical convention and the i element is as meaningless as span. However in the absense of a more semantic element, making use of a non-semantic element with the desired with the desired visual rendering to convey some form of semantics to the reader is sometimes acceptable. > and say that <cite> can be used for any reference to a publication, Agreed, but... > including those that aren't really citations ("my favourite book > is <cite>...</cite>"). I think it should be limited to cases where it really is a citation. In that case, it would probably be better to mark that up as: My favourite book is <a href="urn:isbn:0-735-71245-X">Eric Meyer on CSS</a>. -- Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox From ian at hixie.ch Sat Apr 16 06:55:09 2005 From: ian at hixie.ch (Ian Hickson) Date: Sat, 16 Apr 2005 13:55:09 +0000 (UTC) Subject: [whatwg] [web-apps] 2.7.8 The i element In-Reply-To: <42611707.10401@lachy.id.au> References: <op.spa4tpxpk4suho@briann> <Pine.LNX.4.61.0504161039020.7599@dhalsim.dreamhost.com> <e8e97f9f0504160352234b5e20@mail.gmail.com> <Pine.LNX.4.61.0504161056020.7599@dhalsim.dreamhost.com> <e8e97f9f050416045769ec23cc@mail.gmail.com> <Pine.LNX.4.61.0504161239120.20636@dhalsim.dreamhost.com> <42611707.10401@lachy.id.au> Message-ID: <Pine.LNX.4.61.0504161351170.20636@dhalsim.dreamhost.com> On Sat, 16 Apr 2005, Lachlan Hunt wrote: > > > > Is there any advantage to marking up people's names? > > The only reason I have ever marked up any name is for linking to their > home page or other page about them like this: > > <a href="http://www.hixie.ch/">Ian Hickson</a> said <q>Hello</q> > > I see little reason to add specific elements for this purpose to a > general purpose markup language like HTML. Agreed. > > Maybe we should just let ship names be marked up by <i> > > Perhaps. it's been argued many times before that i is the most suitable > element to use for such purposes; but then again, italics for ship names > is merely a typographical convention and the i element is as meaningless > as span. Actually, <i> in HTML5 is currently defined as having specific semantics: http://whatwg.org/specs/web-apps/current-work/#the-i > > and say that <cite> can be used for any reference to a publication, > > Agreed, but... > > > including those that aren't really citations ("my favourite book > > is <cite>...</cite>"). > > I think it should be limited to cases where it really is a citation. In that > case, it would probably be better to mark that up as: > > My favourite book is <a href="urn:isbn:0-735-71245-X">Eric Meyer on > CSS</a>. What if there is no appropriate link, though? Or when I can't be bothered to find out what the link is? Also, there's nothing that distinguishes that <a> from other <a> elements, yet there is something very different about that one -- it's the title of another work. I'd like to be able to style all such titles consistently, so they have to be marked up in some way. Movie titles are similar. I'd like my UA to give me a tooltip containing information from IMDB for every movie title. With user JavaScript I can do this, if there's a way to recognise movie titles. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From dean at edwards.name Sat Apr 16 06:57:48 2005 From: dean at edwards.name (Dean Edwards) Date: Sat, 16 Apr 2005 14:57:48 +0100 Subject: [whatwg] [web-apps] 2.7.8 The i element In-Reply-To: <Pine.LNX.4.61.0504161301440.20636@dhalsim.dreamhost.com> References: <op.spa4tpxpk4suho@briann> <Pine.LNX.4.61.0504161039020.7599@dhalsim.dreamhost.com> <e8e97f9f0504160352234b5e20@mail.gmail.com> <Pine.LNX.4.61.0504161056020.7599@dhalsim.dreamhost.com> <e8e97f9f050416045769ec23cc@mail.gmail.com> <Pine.LNX.4.61.0504161239120.20636@dhalsim.dreamhost.com> <e8e97f9f050416055724f000f1@mail.gmail.com> <Pine.LNX.4.61.0504161301440.20636@dhalsim.dreamhost.com> Message-ID: <426119DC.4020307@edwards.name> Ian Hickson wrote: > On Sat, 16 Apr 2005, Rob Mientjes wrote: > >>> Is there any advantage to marking up people's names? >> >> >> I dunno. I was just trying to fill the gap of need ;) > > > > The question is: is the need a real need or a perceived need? > > Anyone? > The only reason I can think of for using a <name> element is that screen readers might stress the words differently. Of course, current readers sound like daleks to this would be a case of future-proofing. -dean From ian at hixie.ch Sat Apr 16 07:09:44 2005 From: ian at hixie.ch (Ian Hickson) Date: Sat, 16 Apr 2005 14:09:44 +0000 (UTC) Subject: [whatwg] [web-apps] 2.7.8 The i element In-Reply-To: <426119DC.4020307@edwards.name> References: <op.spa4tpxpk4suho@briann> <Pine.LNX.4.61.0504161039020.7599@dhalsim.dreamhost.com> <e8e97f9f0504160352234b5e20@mail.gmail.com> <Pine.LNX.4.61.0504161056020.7599@dhalsim.dreamhost.com> <e8e97f9f050416045769ec23cc@mail.gmail.com> <Pine.LNX.4.61.0504161239120.20636@dhalsim.dreamhost.com> <e8e97f9f050416055724f000f1@mail.gmail.com> <Pine.LNX.4.61.0504161301440.20636@dhalsim.dreamhost.com> <426119DC.4020307@edwards.name> Message-ID: <Pine.LNX.4.61.0504161409140.7599@dhalsim.dreamhost.com> On Sat, 16 Apr 2005, Dean Edwards wrote: > > The only reason I can think of for using a <name> element is that screen > readers might stress the words differently. Of course, current readers > sound like daleks to this would be a case of future-proofing. I imagine screen readers would have to have a lot more context than just "this is a name" to do that right. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From lachlan.hunt at lachy.id.au Sat Apr 16 07:42:33 2005 From: lachlan.hunt at lachy.id.au (Lachlan Hunt) Date: Sun, 17 Apr 2005 00:42:33 +1000 Subject: [whatwg] [web-apps] 2.7.8 The i element In-Reply-To: <Pine.LNX.4.61.0504161351170.20636@dhalsim.dreamhost.com> References: <op.spa4tpxpk4suho@briann> <Pine.LNX.4.61.0504161039020.7599@dhalsim.dreamhost.com> <e8e97f9f0504160352234b5e20@mail.gmail.com> <Pine.LNX.4.61.0504161056020.7599@dhalsim.dreamhost.com> <e8e97f9f050416045769ec23cc@mail.gmail.com> <Pine.LNX.4.61.0504161239120.20636@dhalsim.dreamhost.com> <42611707.10401@lachy.id.au> <Pine.LNX.4.61.0504161351170.20636@dhalsim.dreamhost.com> Message-ID: <42612459.5080500@lachy.id.au> Ian Hickson wrote: > On Sat, 16 Apr 2005, Lachlan Hunt wrote: >>Perhaps. it's been argued many times before that i is the most suitable >>element to use for such purposes; but then again, italics for ship names >>is merely a typographical convention and the i element is as meaningless >>as span. > > Actually, <i> in HTML5 is currently defined as having specific semantics: > > http://whatwg.org/specs/web-apps/current-work/#the-i So does "i" now stand for "instance", instead of "italics"? >> My favourite book is <a href="urn:isbn:0-735-71245-X">Eric Meyer on >> CSS</a>. > > What if there is no appropriate link, though? I don't know. > Or when I can't be bothered to find out what the link is? Then you're just being lazy :-) > Also, there's nothing that distinguishes that <a> from other <a> elements, Sure there is: a[href^=urn:isbn:] { /* Styles for book titles */ } Although, that would depend on every book being linked with an ISBN URI, if they were all to recieve the same styles. > yet there is something very different about that one -- it's the title of > another work. I'd like to be able to style all such titles consistently, > so they have to be marked up in some way. In that case, would you want to differentiate between ordinary titles and real citations? Or is that something that the class attribute could handle, if needed? > Movie titles are similar. I'd like my UA to give me a tooltip containing > information from IMDB for every movie title. With user JavaScript I can do > this, if there's a way to recognise movie titles. Then would you want different markup for book titles, movie titles, play titles, song titles, etc? Or would you just expect the script to search IMDB for anything marked up with <cite>? -- Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox From ian at hixie.ch Sat Apr 16 07:53:14 2005 From: ian at hixie.ch (Ian Hickson) Date: Sat, 16 Apr 2005 14:53:14 +0000 (UTC) Subject: [whatwg] [web-apps] 2.7.8 The i element In-Reply-To: <42612459.5080500@lachy.id.au> References: <op.spa4tpxpk4suho@briann> <Pine.LNX.4.61.0504161039020.7599@dhalsim.dreamhost.com> <e8e97f9f0504160352234b5e20@mail.gmail.com> <Pine.LNX.4.61.0504161056020.7599@dhalsim.dreamhost.com> <e8e97f9f050416045769ec23cc@mail.gmail.com> <Pine.LNX.4.61.0504161239120.20636@dhalsim.dreamhost.com> <42611707.10401@lachy.id.au> <Pine.LNX.4.61.0504161351170.20636@dhalsim.dreamhost.com> <42612459.5080500@lachy.id.au> Message-ID: <Pine.LNX.4.61.0504161443280.7599@dhalsim.dreamhost.com> On Sun, 17 Apr 2005, Lachlan Hunt wrote: > > > > Actually, <i> in HTML5 is currently defined as having specific > > semantics: > > > > http://whatwg.org/specs/web-apps/current-work/#the-i > > So does "i" now stand for "instance", instead of "italics"? At least until someone argues otherwise. :-) This is actually something that was first suggested back in 1997: http://lists.w3.org/Archives/Public/www-html/1997Dec/0064.html > > > My favourite book is <a href="urn:isbn:0-735-71245-X">Eric Meyer on > > > CSS</a>. > > > > What if there is no appropriate link, though? > > I don't know. That's the problem. Would abusing <cite> for this be acceptable? Do we need another element? > > Or when I can't be bothered to find out what the link is? > > Then you're just being lazy :-) Like most HTML authors. > > Also, there's nothing that distinguishes that <a> from other <a> > > elements, > > Sure there is: > a[href^=urn:isbn:] { /* Styles for book titles */ } > > Although, that would depend on every book being linked with an ISBN URI, if > they were all to recieve the same styles. I don't particularly plan on ever linking to a urn:, since the likelihood of their being successfully dereferenced is extremely low. I don't think that's really a workable solution. > > yet there is something very different about that one -- it's the title > > of another work. I'd like to be able to style all such titles > > consistently, so they have to be marked up in some way. > > In that case, would you want to differentiate between ordinary titles > and real citations? Or is that something that the class attribute could > handle, if needed? I don't know. What do people think? > > Movie titles are similar. I'd like my UA to give me a tooltip > > containing information from IMDB for every movie title. With user > > JavaScript I can do this, if there's a way to recognise movie titles. > > Then would you want different markup for book titles, movie titles, play > titles, song titles, etc? Or would you just expect the script to search > IMDB for anything marked up with <cite>? Again, I don't really know. I could see a use case for a "type" attribute (as was suggested earlier in this thread), but that seems like a slippery slope. Suggestions? -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From mtknight at dark-phantasy.com Sat Apr 16 09:04:44 2005 From: mtknight at dark-phantasy.com (J. King) Date: Sat, 16 Apr 2005 12:04:44 -0400 Subject: [whatwg] [web-apps] 2.7.8 The i element In-Reply-To: <Pine.LNX.4.61.0504161039020.7599@dhalsim.dreamhost.com> References: <op.spa4tpxpk4suho@briann> <Pine.LNX.4.61.0504161039020.7599@dhalsim.dreamhost.com> Message-ID: <op.spb1l61mk4suho@briann.wlfdle.phub.net.cable.rogers.com> On Sat, 16 Apr 2005 06:40:25 -0400, Ian Hickson <ian at hixie.ch> wrote: > The markup for the bit you quoted is: > > <p class="note">The <code>i</code> element is not appropriate for > marking up names (e.g. of people, or of ships).</p> <!-- XXX what is? > --> Mental note: read the spec in markup form from now on. :) -- J. King http://jking.dark-phantasy.com/ From fantasai.lists at inkedblade.net Sat Apr 16 11:31:01 2005 From: fantasai.lists at inkedblade.net (fantasai) Date: Sat, 16 Apr 2005 14:31:01 -0400 Subject: [whatwg] [web-apps] 2.7.8 The i element In-Reply-To: <Pine.LNX.4.61.0504161443280.7599@dhalsim.dreamhost.com> References: <op.spa4tpxpk4suho@briann> <Pine.LNX.4.61.0504161039020.7599@dhalsim.dreamhost.com> <e8e97f9f0504160352234b5e20@mail.gmail.com> <Pine.LNX.4.61.0504161056020.7599@dhalsim.dreamhost.com> <e8e97f9f050416045769ec23cc@mail.gmail.com> <Pine.LNX.4.61.0504161239120.20636@dhalsim.dreamhost.com> <42611707.10401@lachy.id.au> <Pine.LNX.4.61.0504161351170.20636@dhalsim.dreamhost.com> <42612459.5080500@lachy.id.au> <Pine.LNX.4.61.0504161443280.7599@dhalsim.dreamhost.com> Message-ID: <426159E5.2040307@inkedblade.net> Ian Hickson wrote: >>>Movie titles are similar. I'd like my UA to give me a tooltip >>>containing information from IMDB for every movie title. With user >>>JavaScript I can do this, if there's a way to recognise movie titles. >> >>Then would you want different markup for book titles, movie titles, play >>titles, song titles, etc? Or would you just expect the script to search >>IMDB for anything marked up with <cite>? > > Again, I don't really know. I could see a use case for a "type" attribute > (as was suggested earlier in this thread), but that seems like a slippery > slope. Suggestions? You will need a type attribute of some kind if you are to handle the different typographic conventions for e.g. books vs. articles. Book titles are italicized: article titles are put in quotes. Parallel distinctions exist for other types of creative works. ~fantasai From gleemax at myrealbox.com Sat Apr 16 11:22:27 2005 From: gleemax at myrealbox.com (John Lewis) Date: Sat, 16 Apr 2005 13:22:27 -0500 Subject: [whatwg] [web-apps] Titles in HTML (was: 2.7.8 The i element) In-Reply-To: <Pine.LNX.4.61.0504161443280.7599@dhalsim.dreamhost.com> References: <op.spa4tpxpk4suho@briann> <Pine.LNX.4.61.0504161039020.7599@dhalsim.dreamhost.com> <e8e97f9f0504160352234b5e20@mail.gmail.com> <Pine.LNX.4.61.0504161056020.7599@dhalsim.dreamhost.com> <e8e97f9f050416045769ec23cc@mail.gmail.com> <Pine.LNX.4.61.0504161239120.20636@dhalsim.dreamhost.com> <42611707.10401@lachy.id.au> <Pine.LNX.4.61.0504161351170.20636@dhalsim.dreamhost.com> <42612459.5080500@lachy.id.au> <Pine.LNX.4.61.0504161443280.7599@dhalsim.dreamhost.com> Message-ID: <opspb7zpledmipy5@smtp.myrealbox.com> A way to mark up titles is something I've always wanted in HTML. Currently, <cite> is only appropriate for actual citations. I rarely cite books, movies, etc.; I'm usually just talking about them. <i> is worse. It's basically meaningless. The best I can do is <i class="movie"> or something, and even then it's only appropriate for titles that are italicized. Song names (and other minor works) are generally written in quotation marks, not italicized. <i class="song"> is awful. Titles are common enough to belong in HTML. For some evidence, here is a non-comprehensive list of all the major and minor work types I could think of: Major works (italicized in print) 1. books 2. movies 3. video games 4. newspapers 5. plays 6. long (book-length) poems 7. magazines 8. albums 9. radio/TV programs [10. websites?] Minor works (printed in quotation marks) 1. (magazine, newspaper) articles 2. short stories 3. poems 4. songs 5. book chapters 6. speeches 7. episodes of radio/TV programs Everyone writes about these things. (And I don't think I'm exaggerating when I say everyone.) Some ideas: 1. Two new elements, one for major works and one for minor works (these are bad element names, but I couldn't think of anything better) major example: <major class="book">The Great Gatsby</major> minor example: <minor class="song">Eleanor Rigby</minor> Bad: needs two new elements and a specified list of class attribute values Good: it's easy to add new types of works in the future: just add a class attribute value for it (e.g., video games are only a few decades old) 2. One new element, for any work, with some way to differentiate between types of works major example: <t class="book">The Great Gatsby</t> minor example: <t class="song">Eleanor Rigby</t> [Titles are common, so having a short element name wouldn't be uncalled for. See <http://www.w3.org/People/Bos/DesignGuide/readability.html>] Bad: needs a new element and a specified list of class attribute values Good: extensible, only one new element 3. Reuse the cite element, with some way to differentiate between types of works major example: <cite class="book">The Great Gatsby</cite> minor example: <cite class="song">Eleanor Rigby</cite> Bad: redefines an element Good: doesn't need any new elements, extensible 4. Reuse the i element Bad: I don't like this idea at all, especially for minor works, which aren't italicized. Good: No new element... I'm not particular about which element(s) we use as long as we get some way to mark up titles. It's too bad we can't use <title>, since it would be perfect. I like the idea of class attribute values with some (defined) meaning. Would there be ANY advantage to using a new attribute? I like class because authors are familiar with it and it's easily styled with CSS (in HTML). I'm also not sure if the class part should be optional. It probably should be, for lazy authors. I would prefer it be required. If there is one element, the default style should be italic (AFAIK <cite> already is) t { font-style: italic; } with more specific rules for songs and such. With HTML t.song, t.poem { font-style: normal; } and so on. It's not the end of the world if someone leaves off the class attribute and song names are italicized. It would be "worse" for books to be in normal text. For the (rare) case of a title within a title, there would ideally be be something like t t { font-style: normal; } so that the title within a title would be normal. I strongly believe quotation marks (for songs, etc.) should be written by the author in the document, not added with CSS. <q> is messy and hard to use. -- John Lewis From fantasai.lists at inkedblade.net Sat Apr 16 11:41:25 2005 From: fantasai.lists at inkedblade.net (fantasai) Date: Sat, 16 Apr 2005 14:41:25 -0400 Subject: [whatwg] [web-apps] 2.7.8 The i element In-Reply-To: <42611707.10401@lachy.id.au> References: <op.spa4tpxpk4suho@briann> <Pine.LNX.4.61.0504161039020.7599@dhalsim.dreamhost.com> <e8e97f9f0504160352234b5e20@mail.gmail.com> <Pine.LNX.4.61.0504161056020.7599@dhalsim.dreamhost.com> <e8e97f9f050416045769ec23cc@mail.gmail.com> <Pine.LNX.4.61.0504161239120.20636@dhalsim.dreamhost.com> <42611707.10401@lachy.id.au> Message-ID: <42615C55.4040506@inkedblade.net> Lachlan Hunt wrote: > My favourite book is <a href="urn:isbn:0-735-71245-X">Eric Meyer on > CSS</a>. There are two major problems (as I see it) with using ISBN for citations. 1. You are limiting yourself to referencing a single edition of the work, which may not be appropriate. Shakespeare's plays, for example, are available in many, many different publications. If I want to look up the context for your quote from Romeo and Juliet, in most cases there's no need for me to find the exact same edition that you were using. You can helpfully give me a link to an online version of the text, but that would be extra info. 2. You cannot cite anything that has not been assigned an ISBN. There are a lot of publications that don't have standardized IDs. Company memos, ancient manuscripts, my 9th grade paper on medieval castles, a cereal box, the bathroom wall, etc. ~fantasai From fantasai.lists at inkedblade.net Sat Apr 16 11:53:03 2005 From: fantasai.lists at inkedblade.net (fantasai) Date: Sat, 16 Apr 2005 14:53:03 -0400 Subject: [whatwg] citations In-Reply-To: <Pine.LNX.4.61.0504161239120.20636@dhalsim.dreamhost.com> References: <op.spa4tpxpk4suho@briann> <Pine.LNX.4.61.0504161039020.7599@dhalsim.dreamhost.com> <e8e97f9f0504160352234b5e20@mail.gmail.com> <Pine.LNX.4.61.0504161056020.7599@dhalsim.dreamhost.com> <e8e97f9f050416045769ec23cc@mail.gmail.com> <Pine.LNX.4.61.0504161239120.20636@dhalsim.dreamhost.com> Message-ID: <42615F0F.2090809@inkedblade.net> Ian Hickson wrote: > On Sat, 16 Apr 2005, Rob Mientjes wrote: > >>>Would it make sense to allow it for books? I don't know. Maybe the >>><cite> element needs a "type" attribute that takes values like >>>"person", "ship", "publication"? What other names do people want to >>>mark up? > > I actually meant the <name> element should, although one option is indeed > to co-opt <cite> for this (I don't really like that idea though). "But there's no ship as can match <cite>The Interceptor</cite> for speed." ... > The thing is we don't want to start making people do: > > <cite><name type="person">Ian</name></cite> said <q>Hello</q>. > > ...when all they need to do is write: > > Ian said "Hello". > > Is there any advantage to marking up people's names? Depends on what you want to do with them, really. In most cases it's not necessary, since in most cases you don't want to do anything special with them. However, although the average person's name is usually not treated specially, holy figures sometimes are. Ancient egyptians put pharoahs' names in a special cartouche; more modern works, iirc, put some holy persons' names in small-caps. > Maybe we should just let ship names be marked up by <i> (it is, after all, > an instance of use of a term, as it were), and say that <cite> can be used > for any reference to a publication, including those that aren't really > citations ("my favourite book is <cite>...</cite>"). The distinction between a citation and a mention is oftentimes subtle, and I am sure that many authors would confuse the two. So from a practical perspective, this may be necessary. However, the main problem we have right now is that there is no clear alternative to <cite>. So perhaps if there was one -- a blatantly _obvious_ alternative -- it would not be as much of a problem. Another thing to think about: How does one mark up a bibliography? The whole entry is a <cite>, really, although only the title part should be in italics. ~fantasai From fantasai.lists at inkedblade.net Sat Apr 16 11:55:42 2005 From: fantasai.lists at inkedblade.net (fantasai) Date: Sat, 16 Apr 2005 14:55:42 -0400 Subject: [whatwg] distinguishing examples Message-ID: <42615FAE.4070305@inkedblade.net> Looking at http://www.whatwg.org/specs/web-apps/current-work/#the-cite I think that adopting a clearly-styled markup convention for good examples and bad examples (like [1]) would be helpful. Someone carelessly skimming your text should not be able to mistake an example of what /not/ to do for an example of what /to/ do. [1] http://www.mozilla.org/contribute/writing/markup#figures ~fantasai From fantasai.lists at inkedblade.net Sat Apr 16 12:08:58 2005 From: fantasai.lists at inkedblade.net (fantasai) Date: Sat, 16 Apr 2005 15:08:58 -0400 Subject: [whatwg] [web-apps] Titles in HTML In-Reply-To: <opspb7zpledmipy5@smtp.myrealbox.com> References: <op.spa4tpxpk4suho@briann> <Pine.LNX.4.61.0504161039020.7599@dhalsim.dreamhost.com> <e8e97f9f0504160352234b5e20@mail.gmail.com> <Pine.LNX.4.61.0504161056020.7599@dhalsim.dreamhost.com> <e8e97f9f050416045769ec23cc@mail.gmail.com> <Pine.LNX.4.61.0504161239120.20636@dhalsim.dreamhost.com> <42611707.10401@lachy.id.au> <Pine.LNX.4.61.0504161351170.20636@dhalsim.dreamhost.com> <42612459.5080500@lachy.id.au> <Pine.LNX.4.61.0504161443280.7599@dhalsim.dreamhost.com> <opspb7zpledmipy5@smtp.myrealbox.com> Message-ID: <426162CA.1000204@inkedblade.net> John Lewis wrote: > I strongly believe quotation marks (for songs, etc.) should be written > by the author in the document, not added with CSS. <q> is messy and > hard to use. I agree that <q> has problems, particularly with en-US style punctuation. However, if the italics is going to be in the CSS, I think the quotation marks should also be there. I'd like to note also that citations in languages other than English -- in Chinese, for example -- are probably done differently. (This is why either all citation formatting should be the responsibility of the author or none of it should be.) ~fantasai From ian at hixie.ch Sat Apr 16 15:05:17 2005 From: ian at hixie.ch (Ian Hickson) Date: Sat, 16 Apr 2005 22:05:17 +0000 (UTC) Subject: [whatwg] distinguishing examples In-Reply-To: <42615FAE.4070305@inkedblade.net> References: <42615FAE.4070305@inkedblade.net> Message-ID: <Pine.LNX.4.61.0504162204220.7599@dhalsim.dreamhost.com> On Sat, 16 Apr 2005, fantasai wrote: > > Looking at http://www.whatwg.org/specs/web-apps/current-work/#the-cite I > think that adopting a clearly-styled markup convention for good examples > and bad examples (like [1]) would be helpful. Someone carelessly > skimming your text should not be able to mistake an example of what > /not/ to do for an example of what /to/ do. Yeah, I was planning on doing that at some point. I haven't yet worked out what the appropriate markup would be though. (I haven't thought about it much, it's just one of the many things on my TODO list.) -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From gleemax at myrealbox.com Sat Apr 16 15:01:16 2005 From: gleemax at myrealbox.com (John Lewis) Date: Sat, 16 Apr 2005 17:01:16 -0500 Subject: [whatwg] [web-apps] Titles in HTML In-Reply-To: <426162CA.1000204@inkedblade.net> References: <op.spa4tpxpk4suho@briann> <Pine.LNX.4.61.0504161039020.7599@dhalsim.dreamhost.com> <e8e97f9f0504160352234b5e20@mail.gmail.com> <Pine.LNX.4.61.0504161056020.7599@dhalsim.dreamhost.com> <e8e97f9f050416045769ec23cc@mail.gmail.com> <Pine.LNX.4.61.0504161239120.20636@dhalsim.dreamhost.com> <42611707.10401@lachy.id.au> <Pine.LNX.4.61.0504161351170.20636@dhalsim.dreamhost.com> <42612459.5080500@lachy.id.au> <Pine.LNX.4.61.0504161443280.7599@dhalsim.dreamhost.com> <opspb7zpledmipy5@smtp.myrealbox.com> <426162CA.1000204@inkedblade.net> Message-ID: <opspch4etgdmipy5@smtp.myrealbox.com> On Sat, 16 Apr 2005 15:08:58 -0400, fantasai <fantasai.lists at inkedblade.net> wrote: > I agree that <q> has problems, particularly with en-US style punctuation. > However, if the italics is going to be in the CSS, I think the quotation > marks should also be there. But the italic text needs* to be applied via CSS. The quotation marks could be written by the author. In plain text, for example, quotation marks are content, and italic text must be faked (_like this_ to represent underlining) or done without. In UAs that don't support CSS (or don't support it fully), written quotation marks will still work. Keeping the quotation marks out of the CSS also passes the burden of language differences to the author. That means the quotation marks would need to be translated by hand instead of CSS, including when there is a quotation in a quotation, which changes the appearance of the inner quotation marks (at least in English). That isn't great, but it's not a critical problem. * The only exception I could think of is something like <t><i>The Great Gatsby</i></t> which isn't what I think you had in mind. I didn't consider that at all. It looks wrong to me, but maybe it is a possibility. The italics would be the author's responsibility (albeit in a weird way). We wouldn't need to give <t> any default rendering, so maybe it's not as bad as it seems. We could even redefine <q> (giving it a special meaning in a title), producing: <t><q>Eleanor Rigby</q></t> The default <q> style wouldn't be a problem even if it was different than our desired song/article/whatever styling, since we could select just quotes in titles with descendant/child selectors (even by type). Maybe that's a bad idea. I'm sure someone will tell me if it is. > I'd like to note also that citations in languages other than English -- > in Chinese, for example -- are probably done differently. (This is why > either all citation formatting should be the responsibility of the author > or none of it should be.) That is a good point. Maybe there could be language-specific behavior based on the lang attribute (or falling back to the UA default language if there is no language specified on the page). One problem with making formatting the author's responsibility (instead of spelling it out in the spec or making it the UA's responsibility) is that when the author CSS is unavailable, or turned off by the user, there wouldn't be any formatting (absent a user style sheet with appropriate rules). That may be as bad as inappropriate formatting. -- John Lewis From jg307 at cam.ac.uk Sat Apr 16 16:04:49 2005 From: jg307 at cam.ac.uk (James Graham) Date: Sun, 17 Apr 2005 00:04:49 +0100 Subject: [whatwg] [web-apps] 2.7.8 The i element In-Reply-To: <Pine.LNX.4.61.0504161040410.7599@dhalsim.dreamhost.com> References: <op.spa4tpxpk4suho@briann> <e8e97f9f050416025346d0249e@mail.gmail.com> <Pine.LNX.4.61.0504161040410.7599@dhalsim.dreamhost.com> Message-ID: <42619A11.1040909@cam.ac.uk> Ian Hickson wrote: > I am considering that we need some predefined class names. Yuck. This has several problems; it makes document semantics harder to parse (especially as an element may have multiple space seperated strings in the class attribute - substring matching in general is significantly harder than exact value matching), it could cause authors to unwittingly add inaccurate sematics to documents (by accidentially using a reserved class name) - which reduces the value for people who do use the resvered names correctly - and causes compatibility problems since valid HTML4 documents may use a now-reserved name. Is there a good reason for reserved class names? I tend to believe that anything important enough to be included may as well be a tag. If we're looking to provide hooks for domain-specific microformats that should use a seperate mechanism (e.g. a special subType attribute or somesuch) with some provison for (pseudo)namespacing the microformat values (e.g. <link rel="subformat" href="http://example.com/#microformat" namespace="mf" /> and then e.g. <span subtype="mf:shipName">HMS Victory</span>). From mpt at myrealbox.com Sat Apr 16 16:27:50 2005 From: mpt at myrealbox.com (Matthew Thomas) Date: Sun, 17 Apr 2005 11:27:50 +1200 Subject: [whatwg] [web-apps] 2.7.8 The i element In-Reply-To: <Pine.LNX.4.61.0504161443280.7599@dhalsim.dreamhost.com> References: <op.spa4tpxpk4suho@briann> <Pine.LNX.4.61.0504161039020.7599@dhalsim.dreamhost.com> <e8e97f9f0504160352234b5e20@mail.gmail.com> <Pine.LNX.4.61.0504161056020.7599@dhalsim.dreamhost.com> <e8e97f9f050416045769ec23cc@mail.gmail.com> <Pine.LNX.4.61.0504161239120.20636@dhalsim.dreamhost.com> <42611707.10401@lachy.id.au> <Pine.LNX.4.61.0504161351170.20636@dhalsim.dreamhost.com> <42612459.5080500@lachy.id.au> <Pine.LNX.4.61.0504161443280.7599@dhalsim.dreamhost.com> Message-ID: <42619F76.8030905@myrealbox.com> Ian Hickson wrote: >... >>>yet there is something very different about that one -- it's the title >>>of another work. I'd like to be able to style all such titles >>>consistently, so they have to be marked up in some way. >> >>In that case, would you want to differentiate between ordinary titles >>and real citations? Or is that something that the class attribute could >>handle, if needed? > > I don't know. What do people think? >... I think distinguishing between ordinary titles and real citations is untenable, because there's not a workable dividing line. Consider these examples: 1. <p>My favorite book is <cite>The reality dysfunction</cite> by Peter F. Hamilton. It begins: <q>Space outside the attack cruiser <something>Beezling</something> tore open in five places.</q></p> 3. <p>My favorite book is <somethingelse>The reality dysfunction</somethingelse> by Peter F. Hamilton.</p> Why should the title markup have suddenly changed? Do you expect the editor of an online magazine's book reviews department, for example, to have the presence of mind to change the title markup in the first paragraph of a review if she happens to excise the last quote from somewhere else in the review? And where's the dividing line? Is this appropriate, for example? 2. ... <html> ... <title>Review: The reality dysfunction (page 1)</title> ... <p>Peter F. Hamilton's <cite>The reality dysfunction</cite> is a massive undertaking, perhaps too massive. It's not that it's 592 pages in the paperback edition, but...</p> ... <!-- There happen to be no quotes on this page, but the author doesn't know that ahead of time, because it's a CMS that's splitting his review into pages. --> ... <nav><a rel="next"...>&rarr; Page 2</a></nav> ... </html> ... <html> ... <title>Review: The reality dysfunction (page 2)</title> ... <!-- the rest of the review --> ... <p>From the first sentence &#8212; <q>Space outside the attack cruiser <something>Beezling</something> tore open in five places</q> &#8212; to the last, this book will keep you on the edge of your seat.</p> ... </html> You're already very very lucky if an author bothers to use <cite> instead of <i>, since they get zero presentational benefit from doing so. Let's not make it harder. -- Matthew Thomas http://mpt.net.nz/ From fantasai.lists at inkedblade.net Sat Apr 16 16:31:49 2005 From: fantasai.lists at inkedblade.net (fantasai) Date: Sat, 16 Apr 2005 19:31:49 -0400 Subject: [whatwg] [web-apps] Titles in HTML In-Reply-To: <opspch4etgdmipy5@smtp.myrealbox.com> References: <op.spa4tpxpk4suho@briann> <Pine.LNX.4.61.0504161039020.7599@dhalsim.dreamhost.com> <e8e97f9f0504160352234b5e20@mail.gmail.com> <Pine.LNX.4.61.0504161056020.7599@dhalsim.dreamhost.com> <e8e97f9f050416045769ec23cc@mail.gmail.com> <Pine.LNX.4.61.0504161239120.20636@dhalsim.dreamhost.com> <42611707.10401@lachy.id.au> <Pine.LNX.4.61.0504161351170.20636@dhalsim.dreamhost.com> <42612459.5080500@lachy.id.au> <Pine.LNX.4.61.0504161443280.7599@dhalsim.dreamhost.com> <opspb7zpledmipy5@smtp.myrealbox.com> <426162CA.1000204@inkedblade.net> <opspch4etgdmipy5@smtp.myrealbox.com> Message-ID: <4261A065.1080905@inkedblade.net> John Lewis wrote: > On Sat, 16 Apr 2005 15:08:58 -0400, fantasai <fantasai.lists at inkedblade.net> > wrote: > >> I agree that <q> has problems, particularly with en-US style punctuation. >> However, if the italics is going to be in the CSS, I think the quotation >> marks should also be there. > > But the italic text needs* to be applied via CSS. The quotation marks could > be written by the author. In plain text, for example, quotation marks are > content, and italic text must be faked (_like this_ to represent > underlining) or done without. In UAs that don't support CSS (or don't support > it fully), written quotation marks will still work. By that argument, in UAs that don't support CSS, italics won't work either. > That is a good point. Maybe there could be language-specific behavior > based on the lang attribute I agree that there should be. Finding out what that language-specific behavior should be will be difficult, however... ~fantasai From gleemax at myrealbox.com Sat Apr 16 18:39:13 2005 From: gleemax at myrealbox.com (John Lewis) Date: Sat, 16 Apr 2005 20:39:13 -0500 Subject: [whatwg] [web-apps] Titles in HTML In-Reply-To: <4261A065.1080905@inkedblade.net> References: <op.spa4tpxpk4suho@briann> <Pine.LNX.4.61.0504161039020.7599@dhalsim.dreamhost.com> <e8e97f9f0504160352234b5e20@mail.gmail.com> <Pine.LNX.4.61.0504161056020.7599@dhalsim.dreamhost.com> <e8e97f9f050416045769ec23cc@mail.gmail.com> <Pine.LNX.4.61.0504161239120.20636@dhalsim.dreamhost.com> <42611707.10401@lachy.id.au> <Pine.LNX.4.61.0504161351170.20636@dhalsim.dreamhost.com> <42612459.5080500@lachy.id.au> <Pine.LNX.4.61.0504161443280.7599@dhalsim.dreamhost.com> <opspb7zpledmipy5@smtp.myrealbox.com> <426162CA.1000204@inkedblade.net> <opspch4etgdmipy5@smtp.myrealbox.com> <4261A065.1080905@inkedblade.net> Message-ID: <opspcr7nh2dmipy5@smtp.myrealbox.com> On Sat, 16 Apr 2005 19:31:49 -0400, fantasai <fantasai.lists at inkedblade.net> wrote: > John Lewis wrote: >> On Sat, 16 Apr 2005 15:08:58 -0400, fantasai >> <fantasai.lists at inkedblade.net> >> wrote: >> >>> I agree that <q> has problems, particularly with en-US style >>> punctuation. However, if the italics is going to be in the CSS, I >>> think the quotation marks should also be there. >> But the italic text needs* to be applied via CSS. The quotation marks >> could >> be written by the author. In plain text, for example, quotation marks >> are >> content, and italic text must be faked (_like this_ to represent >> underlining) or done without. In UAs that don't support CSS (or don't >> support >> it fully), written quotation marks will still work. > > By that argument, in UAs that don't support CSS, italics won't work > either. Italics was supported in UAs before CSS existed. AFAIK generated quotes haven't enjoyed the same support. What I was trying to say is that even CSS browsers that support font-style do not necessarily support generated quotes. Any browser that implements CSS1, for instance, or one of the many browsers with partial CSS2(.1) support. We can't assume that because font-style is supported that quotes/content will be too. One is basic (implemented more or less universally), and the other isn't. Either way will work, but I still prefer manual quotation marks. I haven't seen any reason why generated quotation marks will be better. -- John Lewis From fantasai.lists at inkedblade.net Sat Apr 16 18:58:22 2005 From: fantasai.lists at inkedblade.net (fantasai) Date: Sat, 16 Apr 2005 21:58:22 -0400 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <fb7f3319eb599acbe7429f972d21672c@iki.fi> References: <42524E27.6060006@annevankesteren.nl> <4252B643.6030308@lachy.id.au> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> <4253CA8A.1070608@olav.dk> <4253D10C.5000700@lachy.id.au> <4253D24A.8050308@annevankesteren.nl> <4253D7CA.2010807@lachy.id.au> <4253DA93.8030606@annevankesteren.nl> <4253E4FF.2090306@lachy.id.au> <4253F517.3040409@olav.dk> <425401B0.3040205@lachy.id.au> <42540251.4080405@annevankesteren.nl> <42546FCE.5070900@lachy.id.au> <Pine.LNX.4.61.0504062335130.20461@dhalsim.dreamhost.com> <4254CE93.4000403@lachy.id.au> <Pine.LNX.4.61.0504071037490.20461@dhalsim.dreamhost.com> <42550FFD.20201@annevankesteren.nl> <Pine.LNX.4.61.0504071050580.20461@dhalsim.dreamhost.com> <4255114D.10108@annevankesteren.nl> <Pine.LNX.4.61.0504071056170.20461@dhalsim.dreamhost.com> <fb7f3319eb599acbe7429f972d21672c@iki.fi> Message-ID: <4261C2BE.7060601@inkedblade.net> Henri Sivonen wrote: > > I am very hostile towards the idea of requiring UAs to implement any XML > parsing features that are in the realm of the XML 1.0 spec but that the > XML 1.0 spec does not require. This means processing the DTD beyond > checking the internal subset for well-formedness. That hostility may be justified as far as browser-type UAs go, but I would rather you didn't apply it to server-side and authoring tools. > Those who want to use entities for input, should parse and reserialize > as UTF-8 in their own lair and not expose their entity references (or > parochial legacy encodings) to the public network. For those of us writing HTML by hand, this is not a practical solution, particularly when invisible characters are involved. Invisible characters aside, I don't want to go digging through a Unicode character map every time I want &rarr; or &tau;. ~fantasai From fantasai.lists at inkedblade.net Sat Apr 16 19:01:49 2005 From: fantasai.lists at inkedblade.net (fantasai) Date: Sat, 16 Apr 2005 22:01:49 -0400 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <851c8d3105040711474e8b3f0@mail.gmail.com> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504062335130.20461@dhalsim.dreamhost.com> <4254CE93.4000403@lachy.id.au> <Pine.LNX.4.61.0504071037490.20461@dhalsim.dreamhost.com> <42550FFD.20201@annevankesteren.nl> <Pine.LNX.4.61.0504071050580.20461@dhalsim.dreamhost.com> <851c8d310504070356287eb4b1@mail.gmail.com> <Pine.LNX.4.61.0504071058300.20461@dhalsim.dreamhost.com> <851c8d3105040704092d099949@mail.gmail.com> <4d793a4ca44b70508a082e60c1264388@iki.fi> <851c8d3105040711474e8b3f0@mail.gmail.com> Message-ID: <4261C38D.2070405@inkedblade.net> Jim Ley wrote: >>>Or at the very least use something that would not confuse people into >>>thinking that it is an >>>application of SGML or XML. >> >>Do you want to replace "NONSGML" with "THIS-IS-NOT-SGML"? > > No, I want to replace <!DOCTYPE - with something completely different, > the whole point that anything that looks like an SGML (or XHTML) > doctype will confuse users into thinking that it is an application of > SGML. The vast majority of people out there have never heard of SGML, and the ones who have are probably clever enough to figure out that NONSGML means it's not SGML. ~fantasai From fantasai.lists at inkedblade.net Sat Apr 16 19:03:06 2005 From: fantasai.lists at inkedblade.net (fantasai) Date: Sat, 16 Apr 2005 22:03:06 -0400 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <42551860.5030409@lachy.id.au> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> <4252B643.6030308@lachy.id.au> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> <4253CA8A.1070608@olav.dk> <4253D10C.5000700@lachy.id.au> <4253D24A.8050308@annevankesteren.nl> <4253D7CA.2010807@lachy.id.au> <4253DA93.8030606@annevankesteren.nl> <4253E4FF.2090306@lachy.id.au> <4253F517.3040409@olav.dk> <425401B0.3040205@lachy.id.au> <42540251.4080405@annevankesteren.nl> <42546FCE.5070900@lachy.id.au> <Pine.LNX.4.61.0504062335130.20461@dhalsim.dreamhost.com> <4254CE93.4000403@lachy.id.au> <Pine.LNX.4.61.0504071037490.20461@dhalsim.dreamhost.com> <42550FFD.20201@annevankesteren.nl> <42551860.5030409@lachy.id.au> Message-ID: <4261C3DA.8020404@inkedblade.net> Lachlan Hunt wrote: > Anne van Kesteren wrote: > >> Ian Hickson wrote: >> >>> This doesn't stop conformance checker implements from writing DTDs of >>> their own and then placing them in their SGML catalog so that the >>> HTML5 DOCTYPE triggers that DTD, though. The point is that different >>> conformance checker vendors should be able to write their own DTD for >>> HTML5 to complement the rest of the conformance checking process. As >>> the mix between DTD-based and other checking will probably be >>> vendor-dependent, I don't see why we'd want to elevate any particular >>> DTD to official status. > > If every conformance checker has to implement their own, there's more > chance they some of them will make mistakes, and each end up with > differing DOCTYPES. If that happens, then chances are each validator > would give differing results, which is even more confusing and would > result in no-one validating at all! If there is only one official > DOCTYPE, then at least all validators would have a chance of giving > identical results, and mistakes can be managed from one place by filing > errata for it, and updating it as necessary. +1, although I think "result in no-one validating at all" is over-exaggerating a bit. :) ~fantasai From fantasai.lists at inkedblade.net Sat Apr 16 19:11:39 2005 From: fantasai.lists at inkedblade.net (fantasai) Date: Sat, 16 Apr 2005 22:11:39 -0400 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <32130a61ba34c8ada9f4a431d879bdef@iki.fi> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> <4252B643.6030308@lachy.id.au> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> <78f32994657502e0c7098780f8e6476b@iki.fi> <4254DA33.3020409@lachy.id.au> <521492f8273c953e36ca9b0957172b6c@iki.fi> <42562363.8050400@lachy.id.au> <32130a61ba34c8ada9f4a431d879bdef@iki.fi> Message-ID: <4261C5DB.2070608@inkedblade.net> Henri Sivonen wrote: > On Apr 8, 2005, at 09:23, Lachlan Hunt wrote: > >> If I ever get around to writing any form of conformance checker, true >> SGML validation (most likely using OpenSP) or XML validation (probably >> using Xerces or other XML parser) is at the top of my list. > > If I ever got around to it, DTD validation wouldn't be my approach. I'd > use Jing with Relax NG and a hand-written SAX filter for checking what > Jing cannot check. (text/html could be handled by substituting a parser > that inferred optional tags and appeared to the app as a parser parsing > XHTML--like TagSoup without error recovery.) > >> | 1. Criteria that can be expressed in a DTD. >> >> validation is a critical part of conformance checking. > > You could check the same criteria either manually or using Relax NG. > Using DTDs is not required. > >> If CMSs are ever going to enforce strinctly conformant code, then DTD >> validation will be a core component of that process. > > Why bother with DTDs now that Relax NG exists? I agree that syntax-checking for xHTML5 documents should be implemented with RelaxNG rather than DTDs. However, iirc, RelaxNG can't be used on regular HTML. One could create a toolchain that converts HTML to xHTML and then runs it through RelaxNG, but I wouldn't be surprised if the converter needed a DTD for the SGML->XML conversion to work... ~fantasai From fantasai.lists at inkedblade.net Sat Apr 16 19:23:57 2005 From: fantasai.lists at inkedblade.net (fantasai) Date: Sat, 16 Apr 2005 22:23:57 -0400 Subject: [whatwg] WA1 dl and dialog Message-ID: <4261C8BD.9060101@inkedblade.net> # The dl element introduces an association list consisting of zero or more # name-value groups... # Name-value groups may be terms and definitions, speakers and words, metadata # topics and values, or any other groups of name-value data. I like the definition you give here, except for one thing: Despite the example given in HTML4, I think that speakers and words is stretching the name-value idea a bit too far. For scripted dialog, I think Tantek's suggestion is much better: http://tantek.com/presentations/2005/03/elementsofxhtml/#slide20 So my suggestion is to remove that particular example from the spec. ~fantasai From lachlan.hunt at lachy.id.au Sat Apr 16 19:27:59 2005 From: lachlan.hunt at lachy.id.au (Lachlan Hunt) Date: Sun, 17 Apr 2005 12:27:59 +1000 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <4261C2BE.7060601@inkedblade.net> References: <42524E27.6060006@annevankesteren.nl> <4252B643.6030308@lachy.id.au> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> <4253CA8A.1070608@olav.dk> <4253D10C.5000700@lachy.id.au> <4253D24A.8050308@annevankesteren.nl> <4253D7CA.2010807@lachy.id.au> <4253DA93.8030606@annevankesteren.nl> <4253E4FF.2090306@lachy.id.au> <4253F517.3040409@olav.dk> <425401B0.3040205@lachy.id.au> <42540251.4080405@annevankesteren.nl> <42546FCE.5070900@lachy.id.au> <Pine.LNX.4.61.0504062335130.20461@dhalsim.dreamhost.com> <4254CE93.4000403@lachy.id.au> <Pine.LNX.4.61.0504071037490.20461@dhalsim.dreamhost.com> <42550FFD.20201@annevankesteren.nl> <Pine.LNX.4.61.0504071050580.20461@dhalsim.dreamhost.com> <4255114D.10108@annevankesteren.nl> <Pine.LNX.4.61.0504071056170.20461@dhalsim.dreamhost.com> <fb7f3319eb599acbe7429f972d21672c@iki.fi> <4261C2BE.7060601@inkedblade.net > Message-ID: <4261C9AF.5090607@lachy.id.au> fantasai wrote: >> Those who want to use entities for input, should parse and reserialize >> as UTF-8 in their own lair and not expose their entity references (or >> parochial legacy encodings) to the public network. > > I don't want to go digging through a Unicode character map every time > I want &rarr; or &tau;. There's no need to go digging through anything to find those characters, it's easy enough to type this into your browser: data:text/html,&rarr; Then copy and paste the character into your editor, or the character identifier if you want the numeric character reference. Ideally a good editor would automatically convert entity references like &rarr; into the UTF-8 encoded character for you, but I don't know of any that do. -- Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox From lachlan.hunt at lachy.id.au Sat Apr 16 23:00:21 2005 From: lachlan.hunt at lachy.id.au (Lachlan Hunt) Date: Sun, 17 Apr 2005 16:00:21 +1000 Subject: [whatwg] [WA1] lang and xml:lang Message-ID: <4261FB75.6000702@lachy.id.au> Hi, Web apps currently states [1]: # Authors should not use the lang attribute in XML documents. Authors # should instead use the xml:lang attribute. Is there any reason for not making that "must not"? The only reason someone would ever have for using lang instead of xml:lang in XHTML is when serving it as text/html, which is strictly forbidden in this version. It should be stated that lang is for HTML only and xml:lang is for X(HT)ML only. I think the heading for the attribute defintion should be updated to include xml:lang as well. [1] http://www.whatwg.org/specs/web-apps/current-work/#lang -- Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox From lachlan.hunt at lachy.id.au Sat Apr 16 23:49:56 2005 From: lachlan.hunt at lachy.id.au (Lachlan Hunt) Date: Sun, 17 Apr 2005 16:49:56 +1000 Subject: [whatwg] [WA1] The profile Attribute Message-ID: <42620714.5020504@lachy.id.au> Hi, # User agents must ignore all the URIs given in the profile attribute # that follow a URI that the UA does not recognise. (Otherwise, if a # name is defined in two profiles, UAs would assign meanings to the # document differently based on which profiles they supported.) # # Note: If a profile's definition changes over time, documents # that use multiple profiles can change defined meaning over # time. So as to avoid this problem, authors are encouraged to # avoid using multiple profiles. I disagree with those statements for several reasons, but mostly because it's confusing nonsense that doesn't make sense and seems to apply unnecessary restrictions on the processing of profiles. 1. There are no reasons there to avoid multiple profiles all together, only reasons to avoid profiles with conflicting definitions. 2. Forcing a UA to ignore all profiles occuring after one they do not understand places an unnecessary burden on the author to specify profiles in the order in which they are most supported by the UAs. 3. That also forces unnecessary restrictions on which profiles a UA may support and process. For example: * User Agent A implements XFN * User Agent B implements RelLicence * A document uses both XFN and RelLicence, and specifies XFN first in the profile attribute. In that scenario, user agent B unfairly loses out on being able to apply the semantics of the RelLicence profile. Considering that UAs A and B are likely to serve different purposes There may be little reason for one to implement the other profile, for anything other than as work around for this specification. This also defeats the whole purpose of allowing multiple profiles 4. The Note about a profiles defintion changing over time, somehow only affecting documents with multiple profiles makes no sense. If a document uses any profile and its definition changes, then the semantics of the document are going to change too. It is certainly not a reason to avoid multiple profiles. I recommend updating the spec to say the following points: * If two profiles define the same name, then the semantic is given by the first known URI specified in the profile attribute. * UAs may ignore unknown profiles and continue to process any subsequent profiles. * Authors should avoid multiple profiles with conflicting defintions, because UAs may apply differing semantics, depending on the profiles they do and do not know. Remove the note from the end of the section entirely (or rewrite it) because the reason given does not match the recommendation to avoid multiple profiles, which is confusing. -- Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox From ian at hixie.ch Sun Apr 17 02:30:47 2005 From: ian at hixie.ch (Ian Hickson) Date: Sun, 17 Apr 2005 09:30:47 +0000 (UTC) Subject: [whatwg] WA1 dl and dialog In-Reply-To: <4261C8BD.9060101@inkedblade.net> References: <4261C8BD.9060101@inkedblade.net> Message-ID: <Pine.LNX.4.61.0504170930330.7599@dhalsim.dreamhost.com> On Sat, 16 Apr 2005, fantasai wrote: > # The dl element introduces an association list consisting of zero or more > # name-value groups... > # Name-value groups may be terms and definitions, speakers and words, metadata > # topics and values, or any other groups of name-value data. > > I like the definition you give here, except for one thing: > Despite the example given in HTML4, I think that speakers and words > is stretching the name-value idea a bit too far. For scripted dialog, > I think Tantek's suggestion is much better: > http://tantek.com/presentations/2005/03/elementsofxhtml/#slide20 > > So my suggestion is to remove that particular example from the spec. Done. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From ian at hixie.ch Sun Apr 17 02:47:50 2005 From: ian at hixie.ch (Ian Hickson) Date: Sun, 17 Apr 2005 09:47:50 +0000 (UTC) Subject: [whatwg] [WA1] lang and xml:lang In-Reply-To: <4261FB75.6000702@lachy.id.au> References: <4261FB75.6000702@lachy.id.au> Message-ID: <Pine.LNX.4.61.0504170939320.7599@dhalsim.dreamhost.com> On Sun, 17 Apr 2005, Lachlan Hunt wrote: > > Web apps currently states [1]: > # Authors should not use the lang attribute in XML documents. Authors > # should instead use the xml:lang attribute. > > Is there any reason for not making that "must not"? The only reason > someone would ever have for using lang instead of xml:lang in XHTML is > when serving it as text/html, which is strictly forbidden in this > version. It should be stated that lang is for HTML only and xml:lang is > for X(HT)ML only. Done. > I think the heading for the attribute defintion should be updated to include > xml:lang as well. Done. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From ian at hixie.ch Sun Apr 17 03:00:47 2005 From: ian at hixie.ch (Ian Hickson) Date: Sun, 17 Apr 2005 10:00:47 +0000 (UTC) Subject: [whatwg] [WA1] The profile Attribute In-Reply-To: <42620714.5020504@lachy.id.au> References: <42620714.5020504@lachy.id.au> Message-ID: <Pine.LNX.4.61.0504170948090.7599@dhalsim.dreamhost.com> On Sun, 17 Apr 2005, Lachlan Hunt wrote: > > 1. There are no reasons there to avoid multiple profiles all together, > only reasons to avoid profiles with conflicting definitions. Imagine you use publicly available profiles A and B. A has definitions "foo" and "bar". B has definitions "baz". You use foo, bar, and baz extensively in your document. Two months later, the author of profile A updates his profile to include the definition "baz", meaning something completely different to the definition from profile B. Your document has now radically changed meaning, yet you didn't use profiles that had clashing meanings when you wrote your document. The only way I can see to avoid this is to use only one profile, since then you can't ever get clashes. > 2. Forcing a UA to ignore all profiles occuring after one they do not > understand places an unnecessary burden on the author to specify > profiles in the order in which they are most supported by the UAs. Imagine you use publicly available profiles A and B. A has definitions "foo" and "bar". B has definitions "foo" and "baz". The definitions of "foo" in the two profiles is very different, but that's ok, because you specify that you are using profiles A and B and so if you use "foo" then it is the meaning from "A" and you clearly aren't saying the "foo" from B. You use foo, bar, and baz extensively in your document. Someone uses a browser that supports only profile B. Now your document will be rendered or processed with completely different semantics, because the UA thinks that by "foo" you mean B's "foo". Your document has now radically changed meaning, yet your document was unambiguous when you wrote it. The only way I can see to avoid this is to tell UAs to ignore any profiles after one that they couldn't understand, since it stops them from assigning meaning incorrectly. > 3. That also forces unnecessary restrictions on which profiles a UA may > support and process. For example: > > * User Agent A implements XFN > * User Agent B implements RelLicence > * A document uses both XFN and RelLicence, and specifies XFN first > in the profile attribute. > > In that scenario, user agent B unfairly loses out on being able to > apply the semantics of the RelLicence profile. Considering that UAs > A and B are likely to serve different purposes There may be little > reason for one to implement the other profile, for anything other > than as work around for this specification. > > This also defeats the whole purpose of allowing multiple profiles That's a fair point, but implementing XFN for user agent B might be simply a matter of dereferencing the profile URI, downloading the XMDP description (or whatever we end up specifying should be at the end of profile URIs -- something will eventually be specified) and ignoring the values from that profile. So I don't think that's a blocker problem. > 4. The Note about a profiles defintion changing over time, somehow only > affecting documents with multiple profiles makes no sense. If a > document uses any profile and its definition changes, then the > semantics of the document are going to change too. It is certainly > not a reason to avoid multiple profiles. Changed "changes" to "introduces new definitions", which is what I meant. A profile should never drop values it previously defined, and this will be mentioned in the relevant spec when that gets defined. > I recommend updating the spec to say the following points: > * If two profiles define the same name, then the semantic is given by > the first known URI specified in the profile attribute. That implies that the semantics of a document depend on the UA that prociess it, which is clearly silly: a document has semantics even in the absence of any UA. (It might not be much use, but it has defined semantics!) > * UAs may ignore unknown profiles and continue to process any subsequent > profiles. For the reasons given above, I think this would be unwise. > * Authors should avoid multiple profiles with conflicting defintions, > because UAs may apply differing semantics, depending on the profiles > they do and do not know. The author can't always know when the profiles he's using will end up with clashes in the future. > Remove the note from the end of the section entirely (or rewrite it) > because the reason given does not match the recommendation to avoid > multiple profiles, which is confusing. Updated the note. Cheers, -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From lachlan.hunt at lachy.id.au Sun Apr 17 03:34:53 2005 From: lachlan.hunt at lachy.id.au (Lachlan Hunt) Date: Sun, 17 Apr 2005 20:34:53 +1000 Subject: [whatwg] [WA1] lang and xml:lang In-Reply-To: <Pine.LNX.4.61.0504170939320.7599@dhalsim.dreamhost.com> References: <4261FB75.6000702@lachy.id.au> <Pine.LNX.4.61.0504170939320.7599@dhalsim.dreamhost.com> Message-ID: <42623BCD.8030207@lachy.id.au> Ian Hickson wrote: > On Sun, 17 Apr 2005, Lachlan Hunt wrote: >>It should be stated that lang is for HTML only and xml:lang is >>for X(HT)ML only. > > Done. Thank you, but now there's just one more issue. # If both the xml:lang attribute and the lang attribute are set, user # agents must use the xml:lang attribute, and the lang attribute must be # ignored for the purposes of determining the element's language. Is that the case for both HTML and XHTML documents? It would make more sense if, in the case of both being set, lang was used for text/html documents and xml:lang for XML documents. However, in the case of only one being set but for the wrong MIME type (eg. xml:lang set for text/html document or lang for XML document), for error recovery, should UAs be allowed to fallback on it? -- Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox From ian at hixie.ch Sun Apr 17 03:56:55 2005 From: ian at hixie.ch (Ian Hickson) Date: Sun, 17 Apr 2005 10:56:55 +0000 (UTC) Subject: [whatwg] [WA1] lang and xml:lang In-Reply-To: <42623BCD.8030207@lachy.id.au> References: <4261FB75.6000702@lachy.id.au> <Pine.LNX.4.61.0504170939320.7599@dhalsim.dreamhost.com> <42623BCD.8030207@lachy.id.au> Message-ID: <Pine.LNX.4.61.0504171042040.20636@dhalsim.dreamhost.com> On Sun, 17 Apr 2005, Lachlan Hunt wrote: > > # If both the xml:lang attribute and the lang attribute are set, user > # agents must use the xml:lang attribute, and the lang attribute must be > # ignored for the purposes of determining the element's language. > > Is that the case for both HTML and XHTML documents? Yes. > It would make more sense if, in the case of both being set, lang was > used for text/html documents and xml:lang for XML documents. The only way you can set xml:lang in an HTML document is via the DOM (in HTML, there are no namespaces). I don't think it's worth having special requirements for something that no-one is likely to ever do outside of obscure test cases. > However, in the case of only one being set but for the wrong MIME type > (eg. xml:lang set for text/html document or lang for XML document), for > error recovery, should UAs be allowed to fallback on it? If xml:lang="" is set onin a text/html document, it'll be {html, 'xml:lang'}, not {xml, 'lang'} which is what xml:lang really is. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From lachlan.hunt at lachy.id.au Sun Apr 17 04:42:38 2005 From: lachlan.hunt at lachy.id.au (Lachlan Hunt) Date: Sun, 17 Apr 2005 21:42:38 +1000 Subject: [whatwg] [WA1] The profile Attribute In-Reply-To: <Pine.LNX.4.61.0504170948090.7599@dhalsim.dreamhost.com> References: <42620714.5020504@lachy.id.au> <Pine.LNX.4.61.0504170948090.7599@dhalsim.dreamhost.com> Message-ID: <42624BAE.8090905@lachy.id.au> Ian Hickson wrote: > On Sun, 17 Apr 2005, Lachlan Hunt wrote: > >>1. There are no reasons there to avoid multiple profiles all together, >> only reasons to avoid profiles with conflicting definitions. > > Imagine you use publicly available profiles A and B. > > A has definitions "foo" and "bar". > > B has definitions "baz". > > You use foo, bar, and baz extensively in your document. > > Two months later, the author of profile A updates his profile to include > the definition "baz", meaning something completely different to the > definition from profile B. Well, I'd say the author of profile A has broken some rules by not keeping the URI for an old version persistent. Profile authors should (hopefully) be smarter than that. Even when XFN was updated from 1.0 to 1.1, a new URI was given to avoid altering the semantics of existing documents in any way. I'd say the chances of the above occuring are slim, and not worth affecting the ability to make use of multiple profiles. The spec could, instead, provide a strong recommendation for profile authors to keep profile versions persistent. > Your document has now radically changed meaning, yet you didn't use > profiles that had clashing meanings when you wrote your document. In which case, I'm sure many authors would be complaining to the profile author about such a change, and I still don't think the spec needs unnecessary restrictions for this small use case. > The only way I can see to avoid this is to use only one profile, since > then you can't ever get clashes. There are other ways I've seen proposed, such as using namespaces: http://www.protogenius.com/rel-schemas/draft-scheid-rel-schemas-00.htm Although that proposal doesn't seem to even make use of the profile attribute, but rather link elements which would be a big improvment over the profile attribute. > Imagine you use publicly available profiles A and B. > > A has definitions "foo" and "bar". > > B has definitions "foo" and "baz". > ... > Someone uses a browser that supports only profile B. Now your document > will be rendered or processed with completely different semantics, because > the UA thinks that by "foo" you mean B's "foo". > > Your document has now radically changed meaning, That's a valid use case to avoid profiles with conflicting definitions, not against multiple profiles in general. >>3. That also forces unnecessary restrictions on which profiles a UA may >> support and process. For example: >> >> * User Agent A implements XFN >> * User Agent B implements RelLicence >> * A document uses both XFN and RelLicence, and specifies XFN first >> in the profile attribute. >> ... > > That's a fair point, but implementing XFN for user agent B might be simply > a matter of dereferencing the profile URI, downloading the XMDP > description (or whatever we end up specifying should be at the end of > profile URIs -- something will eventually be specified) and ignoring the > values from that profile. If it is defined that the resources referenced by the profile attribute should be XMDP (which would be a big improvement over HTML4, which leaves the format explicitly undefined), and UAs were able to download the profile and determine its values, then that would solve a lot of problems. > Changed "changes" to "introduces new definitions", which is what I meant. > A profile should never drop values it previously defined, and this will be > mentioned in the relevant spec when that gets defined. A profile version should never introduce, drop or change values and semantics. If values are added, changed, deprecated or removed, a new version with a new URI should be publised. > The author can't always know when the profiles he's using will end up with > clashes in the future. They can if profiles remain persistent and although persistence can never be guarenteed with 100% certainty, such changes are a small use case that's unlikely to occur. -- Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox From lachlan.hunt at lachy.id.au Sun Apr 17 05:00:54 2005 From: lachlan.hunt at lachy.id.au (Lachlan Hunt) Date: Sun, 17 Apr 2005 22:00:54 +1000 Subject: [whatwg] [WA1] lang and xml:lang In-Reply-To: <Pine.LNX.4.61.0504171042040.20636@dhalsim.dreamhost.com> References: <4261FB75.6000702@lachy.id.au> <Pine.LNX.4.61.0504170939320.7599@dhalsim.dreamhost.com> <42623BCD.8030207@lachy.id.au> <Pine.LNX.4.61.0504171042040.20636@dhalsim.dreamhost.com> Message-ID: <42624FF6.1060807@lachy.id.au> Ian Hickson wrote: > On Sun, 17 Apr 2005, Lachlan Hunt wrote: > >># If both the xml:lang attribute and the lang attribute are set, user >># agents must use the xml:lang attribute, and the lang attribute must be >># ignored for the purposes of determining the element's language. >> >>Is that the case for both HTML and XHTML documents? > > Yes. So, if I have this HTML document <!DOCTYPE ...> <html lang="en" xml:lang="fr"> <title>HTML document</title> <p>This is an HTML, not an XML, document. Considering that legacy HTML UAs won't know about the xml:lang attribute, and will only use lang, are you saying that a conforming Web Apps UA should treat the document as french? >>It would make more sense if, in the case of both being set, lang was >>used for text/html documents and xml:lang for XML documents. > > The only way you can set xml:lang in an HTML document is via the DOM Now I'm confused. If that's the case, then wouldn't the above example be treated as english, regardless of the xml:lang attribute in the source? > (in HTML, there are no namespaces). Which is why xml:lang should be completely ignored, as an unknown attribute, in HTML. > I don't think it's worth having special requirements for something > that no-one is likely to ever do outside of obscure test cases. I've seen people use lots of XML syntax in HTML documents, including xmlns and xml:lang attributes even in one that had an explicit HTML4 DOCTYPE (though I can't remember where) and not just in MS Word generated rubbish. The point is authors do a lot of silly things, and I thought UA behaviour needed to be well defined for as many use cases as possible. >>However, in the case of only one being set but for the wrong MIME type >>(eg. xml:lang set for text/html document or lang for XML document), for >>error recovery, should UAs be allowed to fallback on it? > > If xml:lang="" is set onin a text/html document, it'll be {html, > 'xml:lang'}, not {xml, 'lang'} which is what xml:lang really is. I don't understand how that answers the question. -- Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox From ian at hixie.ch Sun Apr 17 05:51:02 2005 From: ian at hixie.ch (Ian Hickson) Date: Sun, 17 Apr 2005 12:51:02 +0000 (UTC) Subject: [whatwg] [WA1] The profile Attribute In-Reply-To: <42624BAE.8090905@lachy.id.au> References: <42620714.5020504@lachy.id.au> <Pine.LNX.4.61.0504170948090.7599@dhalsim.dreamhost.com> <42624BAE.8090905@lachy.id.au> Message-ID: <Pine.LNX.4.61.0504171147060.20636@dhalsim.dreamhost.com> On Sun, 17 Apr 2005, Lachlan Hunt wrote: > > > > Imagine you use publicly available profiles A and B. > > > > Two months later, the author of profile A updates his profile to > > include the definition "baz", meaning something completely different > > to the definition from profile B. > > Well, I'd say the author of profile A has broken some rules by not > keeping the URI for an old version persistent. There is no way we are requiring a new URI every time the profile changes. That would be an administrative nightmare for editors, authors, and UA implementors. It would make working out common semantics nigh on impossible. IMHO, anyway. > > The only way I can see to avoid this is to use only one profile, since > > then you can't ever get clashes. > > There are other ways I've seen proposed, such as using namespaces: > > http://www.protogenius.com/rel-schemas/draft-scheid-rel-schemas-00.htm Namespaces are not an option. Authors simply don't understand them. > Although that proposal doesn't seem to even make use of the profile > attribute, but rather link elements which would be a big improvment over > the profile attribute. I don't really understand that. > > Imagine you use publicly available profiles A and B. > > > > A has definitions "foo" and "bar". > > B has definitions "foo" and "baz". > > > > Someone uses a browser that supports only profile B. Now your document > > will be rendered or processed with completely different semantics, > > because the UA thinks that by "foo" you mean B's "foo". > > That's a valid use case to avoid profiles with conflicting definitions, > not against multiple profiles in general. That sounds nice in theory but in practice it's not really something you can control. Even when one group of people are in charge of two profiles, you can end up with duplicates. (An example of this being the way XForms and XHTML2, which are done by a lot of the same people, has had clashes.) > If it is defined that the resources referenced by the profile attribute > should be XMDP (which would be a big improvement over HTML4, which > leaves the format explicitly undefined), and UAs were able to download > the profile and determine its values, then that would solve a lot of > problems. Agreed. That will probably happen at some point. (It's on my list.) > > Changed "changes" to "introduces new definitions", which is what I > > meant. A profile should never drop values it previously defined, and > > this will be mentioned in the relevant spec when that gets defined. > > A profile version should never introduce, drop or change values and > semantics. If values are added, changed, deprecated or removed, a new > version with a new URI should be publised. I don't think that's workable. For example, it means every time you upgrade to a more recent profile, all the old UAs will stop rendering your page -- it doesn't have a workable backwards compatibility migration path. > > The author can't always know when the profiles he's using will end up with > > clashes in the future. > > They can if profiles remain persistent and although persistence can never be > guarenteed with 100% certainty, such changes are a small use case that's > unlikely to occur. The advantage you get out of this doesn't IMHO outweight the problems. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From jg307 at cam.ac.uk Sun Apr 17 06:11:56 2005 From: jg307 at cam.ac.uk (James Graham) Date: Sun, 17 Apr 2005 14:11:56 +0100 Subject: [whatwg] [WA1] The profile Attribute In-Reply-To: <Pine.LNX.4.61.0504171147060.20636@dhalsim.dreamhost.com> References: <42620714.5020504@lachy.id.au> <Pine.LNX.4.61.0504170948090.7599@dhalsim.dreamhost.com> <42624BAE.8090905@lachy.id.au> <Pine.LNX.4.61.0504171147060.20636@dhalsim.dreamhost.com> Message-ID: <4262609C.7090800@cam.ac.uk> Ian Hickson wrote: > On Sun, 17 Apr 2005, Lachlan Hunt wrote: > >>>Imagine you use publicly available profiles A and B. >>> >>>Two months later, the author of profile A updates his profile to >>>include the definition "baz", meaning something completely different >>>to the definition from profile B. >> >>Well, I'd say the author of profile A has broken some rules by not >>keeping the URI for an old version persistent. > > > There is no way we are requiring a new URI every time the profile changes. > That would be an administrative nightmare for editors, authors, and UA > implementors. It would make working out common semantics nigh on > impossible. IMHO, anyway. > > > >>>The only way I can see to avoid this is to use only one profile, since >>>then you can't ever get clashes. >> >>There are other ways I've seen proposed, such as using namespaces: >> >>http://www.protogenius.com/rel-schemas/draft-scheid-rel-schemas-00.htm > > > Namespaces are not an option. Authors simply don't understand them. Respectfully, I think namespaces are the only sensible solution here and in other situations where the document is mixing semantics from multiple sources. What's the evidence that authors don't understand namespaces? Does it all come from XML namespaces (which are more complex than anything we would need for this type of problem*)? In any case I think this is a situation where, with sensible defaults, we can provide a useful feature that will be well within the grasp of the small subset of authors who actually want to use it. * For example we could define <profile name="foo" href="http://example.com/profiles/#foo" /> and then require a profile attribute for elements with rel values not assosiated with the default profile, which would be given by the value of the profile attribute in <head> or the last <profile> element with no <name> value. That seems much simpler than XML namespaces. -- "Sir: "Offence" is not confined to the religious. I take offence at "Rudolph the Red-Nosed Reindeer", "Jingle Bells" and all that they stand for; at ten-gallon hats and other symbols of American aggression; at slit-eyed black veils and other symbols of the oppression of women; at First Communion veils, and other symbols of the indoctrination of children. But I do not start a riot when I encounter them, nor try to get them banned by law. I mutter through gritted teeth and turn the other way. There is a case to be made that all of us should try to avoid giving gratuitous offence to others. But how has our secular society been conned into allowing religious offence to jump the queue and claim special privileges?" - Richard Dawkins (The Independent, 24th December 2004) From ian at hixie.ch Sun Apr 17 06:16:43 2005 From: ian at hixie.ch (Ian Hickson) Date: Sun, 17 Apr 2005 13:16:43 +0000 (UTC) Subject: [whatwg] [WA1] lang and xml:lang In-Reply-To: <42624FF6.1060807@lachy.id.au> References: <4261FB75.6000702@lachy.id.au> <Pine.LNX.4.61.0504170939320.7599@dhalsim.dreamhost.com> <42623BCD.8030207@lachy.id.au> <Pine.LNX.4.61.0504171042040.20636@dhalsim.dreamhost.com> <42624FF6.1060807@lachy.id.au> Message-ID: <Pine.LNX.4.61.0504171307580.20636@dhalsim.dreamhost.com> On Sun, 17 Apr 2005, Lachlan Hunt wrote: > > > > > > # If both the xml:lang attribute and the lang attribute are set, user > > > # agents must use the xml:lang attribute, and the lang attribute must be > > > # ignored for the purposes of determining the element's language. > > > > > > Is that the case for both HTML and XHTML documents? > > > > Yes. > > So, if I have this HTML document > > <!DOCTYPE ...> > <html lang="en" xml:lang="fr"> > <title>HTML document</title> > <p>This is an HTML, not an XML, document. > > Considering that legacy HTML UAs won't know about the xml:lang > attribute, and will only use lang, are you saying that a conforming Web > Apps UA should treat the document as french? No. The "xml:lang" attribute in that document is not the xml:lang attribute. It's the {null, "xml:lang"} attribute -- the attribute in the null namespace with the local name "xml:lang" -- whereas the xml:lang attribute, the one defined by XML, is the {xml, "lang"} attribute: the attribute in the XML namespace with the local name "lang". See Namespaces in XML for more information. > > > It would make more sense if, in the case of both being set, lang was > > > used for text/html documents and xml:lang for XML documents. > > > > The only way you can set xml:lang in an HTML document is via the DOM > > Now I'm confused. If that's the case, then wouldn't the above example > be treated as english [...] Yes. > > (in HTML, there are no namespaces). > > Which is why xml:lang should be completely ignored, as an unknown > attribute, in HTML. If there is a literal "xml:lang" attribute in an HTML document, it is ignored and has no effect on this conformance requirement. That, however, is not an xml:lang attribute. Since this is clearly a source of confusion, I've added a paragraph to the Terminology section about this. > I've seen people use lots of XML syntax in HTML documents, including > xmlns and xml:lang attributes even in one that had an explicit HTML4 > DOCTYPE (though I can't remember where) and not just in MS Word > generated rubbish. The point is authors do a lot of silly things, and I > thought UA behaviour needed to be well defined for as many use cases as > possible. Absolutely. However none of the cases you mentioned result in the existence of a "lang" attribute in the XML namespace. They result in unknown attributes in the null namespace, which is very different. > > > However, in the case of only one being set but for the wrong MIME > > > type (eg. xml:lang set for text/html document or lang for XML > > > document), for error recovery, should UAs be allowed to fallback on > > > it? > > > > If xml:lang="" is set onin a text/html document, it'll be {html, > > 'xml:lang'}, not {xml, 'lang'} which is what xml:lang really is. (Er, I should have said {null, 'xml:lang'}, not {html, 'xml:lang'}.) > I don't understand how that answers the question. I hope this e-mail clarifies it for you. Cheers, -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From ian at hixie.ch Sun Apr 17 06:22:02 2005 From: ian at hixie.ch (Ian Hickson) Date: Sun, 17 Apr 2005 13:22:02 +0000 (UTC) Subject: [whatwg] [WA1] The profile Attribute In-Reply-To: <4262609C.7090800@cam.ac.uk> References: <42620714.5020504@lachy.id.au> <Pine.LNX.4.61.0504170948090.7599@dhalsim.dreamhost.com> <42624BAE.8090905@lachy.id.au> <Pine.LNX.4.61.0504171147060.20636@dhalsim.dreamhost.com> <4262609C.7090800@cam.ac.uk> Message-ID: <Pine.LNX.4.61.0504171317540.20636@dhalsim.dreamhost.com> On Sun, 17 Apr 2005, James Graham wrote: > > > > > > > > The only way I can see to avoid this is to use only one profile, > > > > since then you can't ever get clashes. > > > > > > There are other ways I've seen proposed, such as using namespaces: > > > > > > http://www.protogenius.com/rel-schemas/draft-scheid-rel-schemas-00.htm > > > > Namespaces are not an option. Authors simply don't understand them. > > Respectfully, I think namespaces are the only sensible solution here and in > other situations where the document is mixing semantics from multiple sources. The recent microformats trend (using profile="") is one other solution, which seems to be at least as sensible. > What's the evidence that authors don't understand namespaces? One source for example is Micah Dubinko's statistic that 90% of all the queries about XForms that he receives are asking for him to explain namespaces. [1] [1] http://www.w3.org/2004/04/webapps-cdf-ws/papers/verity.html This certainly has also been my experience in dealing with Web authors who are trying to use languages that rely on namespaces. > Does it all come from XML namespaces (which are more complex than > anything we would need for this type of problem*)? In any case I think > this is a situation where, with sensible defaults, we can provide a > useful feature that will be well within the grasp of the small subset of > authors who actually want to use it. By "namespaces" here I am refering to XML namespaces and similar solutions that require declaring a prefix and then using that prefix elsewhere. > For example we could define <profile name="foo" > href="http://example.com/profiles/#foo" /> and then require a profile > attribute for elements with rel values not assosiated with the default > profile, which would be given by the value of the profile attribute in > <head> or the last <profile> element with no <name> value. That seems > much simpler than XML namespaces. That seems a lot more complicated than the current proposed solution with profile="". -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From fora at annevankesteren.nl Sun Apr 17 10:50:26 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Sun, 17 Apr 2005 19:50:26 +0200 Subject: [whatwg] [web-apps] 2.7.8 The i element In-Reply-To: <Pine.LNX.4.61.0504161239120.20636@dhalsim.dreamhost.com> References: <op.spa4tpxpk4suho@briann> <Pine.LNX.4.61.0504161039020.7599@dhalsim.dreamhost.com> <e8e97f9f0504160352234b5e20@mail.gmail.com> <Pine.LNX.4.61.0504161056020.7599@dhalsim.dreamhost.com> <e8e97f9f050416045769ec23cc@mail.gmail.com> <Pine.LNX.4.61.0504161239120.20636@dhalsim.dreamhost.com> Message-ID: <4262A1E2.6060308@annevankesteren.nl> Ian Hickson wrote: > Is there any advantage to marking up people's names? Not really. As there is no way to distinquish two people sharing the same name. Furthermore, it would only be useful for the few who "love semantics", since names are typically not rendered any different from other paragraph text. > Maybe we should just let ship names be marked up by <i> (it is, after > all, an instance of use of a term, as it were), and say that <cite> > can be used for any reference to a publication, including those that > aren't really citations ("my favourite book is <cite>...</cite>"). We need italics for other things as well: # Looking over the index entry for "Italics" in my Chicago Manual of # Style, I see that italics can be used for emphasis, foreign words, # genus and species, key terms, legal cases, letters as letters and # words as words, letters in enumeration, math, questions (as # quotatives), rhyme schemes, ship names, stage directions, subheads, # technical terms, theorems, and titles (of books, journals, movies, # musical works, paintings, plays, and poems). Among other things. A # lot of these are just typographical conventions in English that do # not pertain in all other languages. I think this is exactly what the # i tag was invented for. <http://annevankesteren.nl/archives/2003/09/b-svg-and-accessibility#comment-206> -- Anne van Kesteren <http://annevankesteren.nl/> From fora at annevankesteren.nl Sun Apr 17 10:58:59 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Sun, 17 Apr 2005 19:58:59 +0200 Subject: [whatwg] [web-apps] 2.7.8 The i element In-Reply-To: <Pine.LNX.4.61.0504161443280.7599@dhalsim.dreamhost.com> References: <op.spa4tpxpk4suho@briann> <Pine.LNX.4.61.0504161039020.7599@dhalsim.dreamhost.com> <e8e97f9f0504160352234b5e20@mail.gmail.com> <Pine.LNX.4.61.0504161056020.7599@dhalsim.dreamhost.com> <e8e97f9f050416045769ec23cc@mail.gmail.com> <Pine.LNX.4.61.0504161239120.20636@dhalsim.dreamhost.com> <42611707.10401@lachy.id.au> <Pine.LNX.4.61.0504161351170.20636@dhalsim.dreamhost.com> <42612459.5080500@lachy.id.au> <Pine.LNX.4.61.0504161443280.7599@dhalsim.dreamhost.com> Message-ID: <4262A3E3.1050001@annevankesteren.nl> Ian Hickson wrote: > That's the problem. Would abusing <cite> for this be acceptable? Do we > need another element? I think that would be acceptable. Although I wonder if CITE would still be the right name... Can you still use CITE for persons in that case? <p><cite>John E. Simpson</cite> said in <cite>XPath and XPointer</cite>: <q>...</q></p> > I don't particularly plan on ever linking to a urn:, since the likelihood > of their being successfully dereferenced is extremely low. I don't think > that's really a workable solution. It is also not really backwards compatible. (However, you already linked to a URN once using the CITE attribute on a BLOCKQUOTE...) >>>yet there is something very different about that one -- it's the title >>>of another work. I'd like to be able to style all such titles >>>consistently, so they have to be marked up in some way. >> >>In that case, would you want to differentiate between ordinary titles >>and real citations? Or is that something that the class attribute could >>handle, if needed? > > I don't know. What do people think? See above. >>> Movie titles are similar. I'd like my UA to give me a tooltip >>> containing information from IMDB for every movie title. With user >>> JavaScript I can do this, if there's a way to recognise movie >>> titles. >> >> Then would you want different markup for book titles, movie titles, >> play titles, song titles, etc? Or would you just expect the script >> to search IMDB for anything marked up with <cite>? > > Again, I don't really know. I could see a use case for a "type" > attribute (as was suggested earlier in this thread), but that seems > like a slippery slope. Suggestions? If we go with something like a TYPE attribute, I hope we can give it a better name. However, hiding semantics inside the value of an attribute is a poor markup design in humble opinion. (Although it also has some advantages.) -- Anne van Kesteren <http://annevankesteren.nl/> From fora at annevankesteren.nl Sun Apr 17 11:03:28 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Sun, 17 Apr 2005 20:03:28 +0200 Subject: [whatwg] WA1 dl and dialog In-Reply-To: <4261C8BD.9060101@inkedblade.net> References: <4261C8BD.9060101@inkedblade.net> Message-ID: <4262A4F0.1000206@annevankesteren.nl> fantasai wrote: > I like the definition you give here, except for one thing: > Despite the example given in HTML4, I think that speakers and words > is stretching the name-value idea a bit too far. For scripted dialog, > I think Tantek's suggestion is much better: > http://tantek.com/presentations/2005/03/elementsofxhtml/#slide20 It also requires a lot of additional markup. Can't we just say that when you want to give additional semantics, like you need to use DFN for real definitions, you need to use <dt><cite>{Person}</cite> and either <dd><q>{Quote}</q> or <dd><blockquote>...{Quote}...</blockquote>. > So my suggestion is to remove that particular example from the spec. I think it should be kept. But that there should be a similar note like the one about DFN. -- Anne van Kesteren <http://annevankesteren.nl/> From fora at annevankesteren.nl Sun Apr 17 11:09:21 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Sun, 17 Apr 2005 20:09:21 +0200 Subject: [whatwg] [WA1] lang and xml:lang In-Reply-To: <Pine.LNX.4.61.0504170939320.7599@dhalsim.dreamhost.com> References: <4261FB75.6000702@lachy.id.au> <Pine.LNX.4.61.0504170939320.7599@dhalsim.dreamhost.com> Message-ID: <4262A651.2060804@annevankesteren.nl> Ian Hickson wrote: >> Is there any reason for not making that "must not"? The only >> reason someone would ever have for using lang instead of xml:lang >> in XHTML is when serving it as text/html, which is strictly >> forbidden in this version. It should be stated that lang is for >> HTML only and xml:lang is for X(HT)ML only. > > Done. > > >> I think the heading for the attribute defintion should be updated >> to include xml:lang as well. > > Done. I assume we are going to do something similar for 'xml:id' when that becomes REC? Or do the issues with regard to type ID need to be sorted out first? -- Anne van Kesteren <http://annevankesteren.nl/> From ian at hixie.ch Sun Apr 17 11:17:48 2005 From: ian at hixie.ch (Ian Hickson) Date: Sun, 17 Apr 2005 18:17:48 +0000 (UTC) Subject: [whatwg] [WA1] lang and xml:lang In-Reply-To: <4262A651.2060804@annevankesteren.nl> References: <4261FB75.6000702@lachy.id.au> <Pine.LNX.4.61.0504170939320.7599@dhalsim.dreamhost.com> <4262A651.2060804@annevankesteren.nl> Message-ID: <Pine.LNX.4.61.0504171811480.7599@dhalsim.dreamhost.com> On Sun, 17 Apr 2005, Anne van Kesteren wrote: > > > > [xml:lang] > > I assume we are going to do something similar for 'xml:id' when that > becomes REC? Or do the issues with regard to type ID need to be sorted > out first? Actually, I just took out the text about xml:id. I couldn't work out why we'd want people to use xml:id rather than ID. For xml:lang it makes sense, because there are systems that will want to crawl XML documents and find stuff in certain languages, and "lang" is not used often so making it longer is not a huge deal. But the ID of an element is a meaningless string, so the benefits of making non-HTML UAs be able to determine an HTML element's ID doesn't seem to outweigh the problems (four extra characters very time "id" is used, which is a lot, not to mention the namespace confusion). Also, xml:lang="" and lang="" clash. An element can't have more than one language. However, xml:id="" and id="" can coexist without any trouble. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From fantasai.lists at inkedblade.net Sun Apr 17 13:56:10 2005 From: fantasai.lists at inkedblade.net (fantasai) Date: Sun, 17 Apr 2005 16:56:10 -0400 Subject: [whatwg] [web-apps] 2.7.8 The i element In-Reply-To: <4262A3E3.1050001@annevankesteren.nl> References: <op.spa4tpxpk4suho@briann> <Pine.LNX.4.61.0504161039020.7599@dhalsim.dreamhost.com> <e8e97f9f0504160352234b5e20@mail.gmail.com> <Pine.LNX.4.61.0504161056020.7599@dhalsim.dreamhost.com> <e8e97f9f050416045769ec23cc@mail.gmail.com> <Pine.LNX.4.61.0504161239120.20636@dhalsim.dreamhost.com> <42611707.10401@lachy.id.au> <Pine.LNX.4.61.0504161351170.20636@dhalsim.dreamhost.com> <42612459.5080500@lachy.id.au> <Pine.LNX.4.61.0504161443280.7599@dhalsim.dreamhost.com> <4262A3E3.1050001@annevankesteren.nl> Message-ID: <4262CD6A.10306@inkedblade.net> Anne van Kesteren wrote: > Ian Hickson wrote: > >>> Then would you want different markup for book titles, movie titles, >>> play titles, song titles, etc? Or would you just expect the script >>> to search IMDB for anything marked up with <cite>? >> >> Again, I don't really know. I could see a use case for a "type" >> attribute (as was suggested earlier in this thread), but that seems >> like a slippery slope. Suggestions? > > If we go with something like a TYPE attribute, I hope we can give it a > better name. However, hiding semantics inside the value of an attribute > is a poor markup design in humble opinion. (Although it also has some > advantages.) It's subclassing: the general is sufficient, the specific better. Many markup languages use the design, and in this case, I think it's necessary. ~fantasai From fora at annevankesteren.nl Mon Apr 18 01:14:00 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Mon, 18 Apr 2005 10:14:00 +0200 Subject: [whatwg] [html5] 2.8. Edits Message-ID: <42636C48.3060001@annevankesteren.nl> Now I know backwards compatibility is important[1], but DEL and INS are insanely complex to use and do not cover all "edit" use cases. What XHTML2 does makes more sense to me (introducing a global attribute) and also covers the use cases you see most online. Editing forum posts, weblog posts, etc. With forum posts there is mostly a note that the user edited his comment but you never see "though<ins>t</ins>". You see something like: "Last time edited: {date}". Now if you could say somehow that the contents of some element have been modified: <article edit="modified" datetime="{datetime}"> ... You could easily present that information to the user using CSS or some other mechanism. INS and DEL are IMHO not really appropriate for those kind of edits. [1]<http://ln.hixie.ch/?start=1113762425&count=1> -- Anne van Kesteren <http://annevankesteren.nl/> From fora at annevankesteren.nl Mon Apr 18 01:17:44 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Mon, 18 Apr 2005 10:17:44 +0200 Subject: [whatwg] 2.7.14. The q element Message-ID: <42636D28.9070109@annevankesteren.nl> Is HTML5 going to deal with the quote problem? Or will the CSS WG introduce ::first-character and ::last-character to deal with that? (I did check the source for XXX comments regarding quotes, but I couldn't find any.) -- Anne van Kesteren <http://annevankesteren.nl/> From hsivonen at iki.fi Mon Apr 18 01:39:08 2005 From: hsivonen at iki.fi (Henri Sivonen) Date: Mon, 18 Apr 2005 11:39:08 +0300 Subject: [whatwg] [WA1] The profile Attribute In-Reply-To: <42620714.5020504@lachy.id.au> References: <42620714.5020504@lachy.id.au> Message-ID: <a2ad57fb631766b8ba3d94d45220096d@iki.fi> On Apr 17, 2005, at 09:49, Lachlan Hunt wrote: > 3. That also forces unnecessary restrictions on which profiles a UA may > support and process. For example: > > * User Agent A implements XFN > * User Agent B implements RelLicence > * A document uses both XFN and RelLicence, and specifies XFN first > in the profile attribute. Of the Web documents that use XFN or RelLicense values what proportion references a profile? If you were to write a UA doing some processing with those values, could you afford to ignore the values in documents that don't reference a profile? Are profiles useful for any real implementation scenarios or are they pseudo-semantic cargo cult mumbo jumbo? -- Henri Sivonen hsivonen at iki.fi http://hsivonen.iki.fi/ From ian at hixie.ch Mon Apr 18 01:40:10 2005 From: ian at hixie.ch (Ian Hickson) Date: Mon, 18 Apr 2005 08:40:10 +0000 (UTC) Subject: [whatwg] [html5] 2.8. Edits In-Reply-To: <42636C48.3060001@annevankesteren.nl> References: <42636C48.3060001@annevankesteren.nl> Message-ID: <Pine.LNX.4.61.0504180828440.7599@dhalsim.dreamhost.com> On Mon, 18 Apr 2005, Anne van Kesteren wrote: > > Now I know backwards compatibility is important[1], but DEL and INS are > insanely complex to use and do not cover all "edit" use cases. Can you give some examples they don't cover? I'm aware of some, for example to mark a list item as deleted you can only mark the contents as deleted, not the item itself. But I don't see these as major enough changes to require changing the edit markup model. > What XHTML2 does makes more sense to me (introducing a global attribute) > and also covers the use cases you see most online. It looked to me like the use of an attribute in XHTML2 was actually a hack to get around limitations of DTDs and of CSS. HTML5's design isn't being constrained by either of those so I don't see why edit="" is better. > Editing forum posts, weblog posts, etc. With forum posts there is mostly a > note that the user edited his comment but you never see "though<ins>t</ins>". > You see something like: "Last time edited: {date}". I actually see inline comments about when things were fixed more often than I see "last edited", but that may just be the blogs I frequent. > Now if you could say somehow that the contents of some element have been > modified You can. Wrap those bits you removed in a <del> and wrap the new bits in an <ins>. > <article edit="modified" datetime="{datetime}"> > ... > > You could easily present that information to the user using CSS or some > other mechanism. The information is there with <ins>/<del> as well. > INS and DEL are IMHO not really appropriate for those kind of edits. On the contrary, I think they are the kinds of edits most suitable to <ins>. It certainly leaves more metadata in the document. It may be helpful for authors to use these rules: ins { text-decoration: none; color: inherit; } del { display: block; } -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From ian at hixie.ch Mon Apr 18 01:40:51 2005 From: ian at hixie.ch (Ian Hickson) Date: Mon, 18 Apr 2005 08:40:51 +0000 (UTC) Subject: [whatwg] 2.7.14. The q element In-Reply-To: <42636D28.9070109@annevankesteren.nl> References: <42636D28.9070109@annevankesteren.nl> Message-ID: <Pine.LNX.4.61.0504180840230.7599@dhalsim.dreamhost.com> On Mon, 18 Apr 2005, Anne van Kesteren wrote: > > Is HTML5 going to deal with the quote problem? Or will the CSS WG > introduce ::first-character and ::last-character to deal with that? > > (I did check the source for XXX comments regarding quotes, but I > couldn't find any.) There'll be a "rendering" section that addresses this and many other concerns. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From ian at hixie.ch Mon Apr 18 01:41:42 2005 From: ian at hixie.ch (Ian Hickson) Date: Mon, 18 Apr 2005 08:41:42 +0000 (UTC) Subject: [whatwg] [WA1] The profile Attribute In-Reply-To: <a2ad57fb631766b8ba3d94d45220096d@iki.fi> References: <42620714.5020504@lachy.id.au> <a2ad57fb631766b8ba3d94d45220096d@iki.fi> Message-ID: <Pine.LNX.4.61.0504180841100.7599@dhalsim.dreamhost.com> On Mon, 18 Apr 2005, Henri Sivonen wrote: > > Of the Web documents that use XFN or RelLicense values what proportion > references a profile? If you were to write a UA doing some processing > with those values, could you afford to ignore the values in documents > that don't reference a profile? Are profiles useful for any real > implementation scenarios or are they pseudo-semantic cargo cult mumbo > jumbo? My understanding is that most XFN processors will ignore pages that don't list the XFN profile, but I could be wrong. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From hsivonen at iki.fi Mon Apr 18 01:45:45 2005 From: hsivonen at iki.fi (Henri Sivonen) Date: Mon, 18 Apr 2005 11:45:45 +0300 Subject: [whatwg] [WA1] The profile Attribute In-Reply-To: <Pine.LNX.4.61.0504170948090.7599@dhalsim.dreamhost.com> References: <42620714.5020504@lachy.id.au> <Pine.LNX.4.61.0504170948090.7599@dhalsim.dreamhost.com> Message-ID: <2a0fbb744f10b4eae360cd0eb912a5a3@iki.fi> On Apr 17, 2005, at 13:00, Ian Hickson wrote: > Imagine you use publicly available profiles A and B. > > A has definitions "foo" and "bar". > > B has definitions "foo" and "baz". > > The definitions of "foo" in the two profiles is very different, but > that's ok, because you specify that you are using profiles A and B and > so > if you use "foo" then it is the meaning from "A" and you clearly aren't > saying the "foo" from B. > > You use foo, bar, and baz extensively in your document. > > Someone uses a browser that supports only profile B. Now your document > will be rendered or processed with completely different semantics, > because > the UA thinks that by "foo" you mean B's "foo". Is that a real problem or a theoretical problem? What are the chances that someone specifying rel='nofollow' or rel='license' in a way incompatible with the common usage? The rel attribute has existed for years. Are there examples of name conflicts? Are the conflicts so serious that the benefit of profiles outweighs the cruftiness? It seems to me profiles are solving a problem we are not having. > That's a fair point, but implementing XFN for user agent B might be > simply > a matter of dereferencing the profile URI, Single point of failure. Imagine every UA whacking w3.org for DTDs. Won't be implemented. -- Henri Sivonen hsivonen at iki.fi http://hsivonen.iki.fi/ From hsivonen at iki.fi Mon Apr 18 01:57:39 2005 From: hsivonen at iki.fi (Henri Sivonen) Date: Mon, 18 Apr 2005 11:57:39 +0300 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <4261C5DB.2070608@inkedblade.net> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> <4252B643.6030308@lachy.id.au> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> <78f32994657502e0c7098780f8e6476b@iki.fi> <4254DA33.3020409@lachy.id.au> <521492f8273c953e36ca9b0957172b6c@iki.fi> <42562363.8050400@lachy.id.au> <32130a61ba34c8ada9f4a431d879bdef@iki.fi> <4261C5DB.2070608@inkedblade.net> Message-ID: <e10a4a018218b639f2ce766d588a4d7c@iki.fi> On Apr 17, 2005, at 05:11, fantasai wrote: > I agree that syntax-checking for xHTML5 documents should be implemented > with RelaxNG rather than DTDs. However, iirc, RelaxNG can't be used on > regular HTML. One could create a toolchain that converts HTML to xHTML > and then runs it through RelaxNG, but I wouldn't be surprised if the > converter needed a DTD for the SGML->XML conversion to work... What I had in mind was a parser that implements (hard-coded without a DTD) the minimal tag inference required for the HTML flavor and then feeds SAX events to Jing as if the parser was an XML parser parsing an equivalent XHTML flavor document. -- Henri Sivonen hsivonen at iki.fi http://hsivonen.iki.fi/ From ian at hixie.ch Mon Apr 18 02:13:25 2005 From: ian at hixie.ch (Ian Hickson) Date: Mon, 18 Apr 2005 09:13:25 +0000 (UTC) Subject: [whatwg] [WA1] The profile Attribute In-Reply-To: <2a0fbb744f10b4eae360cd0eb912a5a3@iki.fi> References: <42620714.5020504@lachy.id.au> <Pine.LNX.4.61.0504170948090.7599@dhalsim.dreamhost.com> <2a0fbb744f10b4eae360cd0eb912a5a3@iki.fi> Message-ID: <Pine.LNX.4.61.0504180900520.7599@dhalsim.dreamhost.com> On Mon, 18 Apr 2005, Henri Sivonen wrote: > > Is that a real problem or a theoretical problem? What are the chances > that someone specifying rel='nofollow' or rel='license' in a way > incompatible with the common usage? The rel attribute has existed for > years. Are there examples of name conflicts? Are the conflicts so > serious that the benefit of profiles outweighs the cruftiness? It seems > to me profiles are solving a problem we are not having. The most common names would be incorporated into the spec itself, thus reducing the need for profiles. Microformats are becoming more popular though, and so I think we should at least handle the potential problems. > > That's a fair point, but implementing XFN for user agent B might be > > simply a matter of dereferencing the profile URI, > > Single point of failure. Imagine every UA whacking w3.org for DTDs. > Won't be implemented. Not for browsers, but for conformance checkers, and for data crawlers, it would make sense. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From olav at olav.dk Mon Apr 18 02:25:09 2005 From: olav at olav.dk (=?ISO-8859-1?Q?Olav_Junker_Kj=E6r?=) Date: Mon, 18 Apr 2005 11:25:09 +0200 Subject: [whatwg] Fear of scope creep Message-ID: <42637CF5.7020509@olav.dk> I'm a bit concerned by the apparent scope creep of WHATWG. The charter of WHAT <http://whatwg.org/charter> says: "The goal of the Web Hypertext Applications Technology Working Group is to address the need for one coherent development environment for Web applications, through the creation of technical specifications that are intended to be implemented in mass-market Web browsers." Right now most of the discussions on the WHAT mailing list concerns extensions and clarification of the semantics of document-oriented HTML elements, and discussions about the low-level syntax of HTML (DTD, SGML etc.). "Web Applications 1.0" is apparently slowly turning into "HTML 5". This is all very good and certainly needed, however isn't there a danger it is taking focus and resources away from the initial goal of the WG, to build a common platform for web *applications*, as an open and (potentially) widely implemented alternative to XUL, XAML etc? regards Olav Junker Kj?r From ian at hixie.ch Mon Apr 18 02:46:46 2005 From: ian at hixie.ch (Ian Hickson) Date: Mon, 18 Apr 2005 09:46:46 +0000 (UTC) Subject: [whatwg] Fear of scope creep In-Reply-To: <42637CF5.7020509@olav.dk> References: <42637CF5.7020509@olav.dk> Message-ID: <Pine.LNX.4.61.0504180928310.7599@dhalsim.dreamhost.com> On Mon, 18 Apr 2005, Olav Junker Kj?r wrote: > > I'm a bit concerned by the apparent scope creep of WHATWG. Understandable. > The charter of WHAT <http://whatwg.org/charter> says: "The goal of the > Web Hypertext Applications Technology Working Group is to address the > need for one coherent development environment for Web applications, > through the creation of technical specifications that are intended to be > implemented in mass-market Web browsers." > > Right now most of the discussions on the WHAT mailing list concerns > extensions and clarification of the semantics of document-oriented HTML > elements, and discussions about the low-level syntax of HTML (DTD, SGML > etc.). "Web Applications 1.0" is apparently slowly turning into "HTML > 5". > > This is all very good and certainly needed, however isn't there a danger > it is taking focus and resources away from the initial goal of the WG, > to build a common platform for web *applications*, as an open and > (potentially) widely implemented alternative to XUL, XAML etc? There are basically two ways we can go: * Take HTML4 and DOM2 HTML as a base and only specify the changes. * Take HTML4 and DOM2 HTML as a base and specify the new language in its entirety. With Web Forms 2 we did the former. A lot of the feedback I've received, however, has been complaining about the fact that now people have to check two or three specs to work out how one feature should work. Since our goal is specifically to create "one coherent development environment", I felt that this would be better served by going down the second road for the Web Apps draft. This also gives us the opportunity to fix all the problems HTML4 has. I don't think this is particularly taking resources away from our goal; semantic markup should be a key part of any cross-media cross-platform application environment. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From jg307 at cam.ac.uk Mon Apr 18 04:40:47 2005 From: jg307 at cam.ac.uk (James Graham) Date: Mon, 18 Apr 2005 12:40:47 +0100 Subject: [whatwg] [WA1] The profile Attribute In-Reply-To: <Pine.LNX.4.61.0504171317540.20636@dhalsim.dreamhost.com> References: <42620714.5020504@lachy.id.au> <Pine.LNX.4.61.0504170948090.7599@dhalsim.dreamhost.com> <42624BAE.8090905@lachy.id.au> <Pine.LNX.4.61.0504171147060.20636@dhalsim.dreamhost.com> <4262609C.7090800@cam.ac.uk> <Pine.LNX.4.61.0504171317540.20636@dhalsim.dreamhost.com> Message-ID: <42639CBF.7080305@cam.ac.uk> Ian Hickson wrote: >On Sun, 17 Apr 2005, James Graham wrote: > > >>>>>The only way I can see to avoid this is to use only one profile, >>>>>since then you can't ever get clashes. >>>>> >>>>> >>>>There are other ways I've seen proposed, such as using namespaces: >>>> >>>>http://www.protogenius.com/rel-schemas/draft-scheid-rel-schemas-00.htm >>>> >>>> >>>Namespaces are not an option. Authors simply don't understand them. >>> >>> >>Respectfully, I think namespaces are the only sensible solution here and in >>other situations where the document is mixing semantics from multiple sources. >> >> > >The recent microformats trend (using profile="") is one other solution, >which seems to be at least as sensible. > > > > >>What's the evidence that authors don't understand namespaces? >> >> > >One source for example is Micah Dubinko's statistic that 90% of all the >queries about XForms that he receives are asking for him to explain >namespaces. [1] > > [1] http://www.w3.org/2004/04/webapps-cdf-ws/papers/verity.html > >This certainly has also been my experience in dealing with Web authors who >are trying to use languages that rely on namespaces. > > > > >>Does it all come from XML namespaces (which are more complex than >>anything we would need for this type of problem*)? In any case I think >>this is a situation where, with sensible defaults, we can provide a >>useful feature that will be well within the grasp of the small subset of >>authors who actually want to use it. >> >> > >By "namespaces" here I am refering to XML namespaces and similar solutions >that require declaring a prefix and then using that prefix elsewhere. > > > > >>For example we could define <profile name="foo" >>href="http://example.com/profiles/#foo" /> and then require a profile >>attribute for elements with rel values not assosiated with the default >>profile, which would be given by the value of the profile attribute in >><head> or the last <profile> element with no <name> value. That seems >>much simpler than XML namespaces. >> >> For clarity, that should read something more like: For example we could define <profile title="foo" href="http://example.com/profiles/#foo" /> and then require a profile attribute for elements with rel values not assosiated with the default profile, which would be given by the value of the profile attribute in <head> or the last <profile> element with no title attribute e.g. a document like: <head profile="http://example.com#foo"> <profile href="http://example.com#bar" title="bar" /> <link rel="comments" href="#comments" /> <link rel="license" href="license.html" profile="bar" /> </head> would use the profile at http://example.com#foo for the first <link> and that at http://example.com#bar for the second. >That seems a lot more complicated than the current proposed solution with >profile="". > Indeed. But, unless I'm missing something, the current spec totally fails to address the use-case of multiple profiles per document in any sort of useful way whatsoever. It seems entirely reasonable that people will want to include multiple profiles (since e.g. licensing and XFN type metadata is entirely orthogonal) so simply stating "authors are encouraged to avoid using multiple profiles" is, IMHO, a real problem. -- "But if science you say still sounds too deep, Just do what Beaker does, just shrug and 'Meep!'" -- Dr. Bunsen Honeydew & Beaker of Muppet Labs From hsivonen at iki.fi Mon Apr 18 05:00:00 2005 From: hsivonen at iki.fi (Henri Sivonen) Date: Mon, 18 Apr 2005 15:00:00 +0300 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <4261C2BE.7060601@inkedblade.net> References: <42524E27.6060006@annevankesteren.nl> <4252B643.6030308@lachy.id.au> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> <4253CA8A.1070608@olav.dk> <4253D10C.5000700@lachy.id.au> <4253D24A.8050308@annevankesteren.nl> <4253D7CA.2010807@lachy.id.au> <4253DA93.8030606@annevankesteren.nl> <4253E4FF.2090306@lachy.id.au> <4253F517.3040409@olav.dk> <425401B0.3040205@lachy.id.au> <42540251.4080405@annevankesteren.nl> <42546FCE.5070900@lachy.id.au> <Pine.LNX.4.61.0504062335130.20461@dhalsim.dreamhost.com> <4254CE93.4000403@lachy.id.au> <Pine.LNX.4.61.0504071037490.20461@dhalsim.dreamhost.com> <42550FFD.20201@annevankesteren.nl> <Pine.LNX.4.61.0504071050580.20461@dhalsim.dreamhost.com> <4255114D.10108@annevankesteren.nl> <Pine.LNX.4.61.0504071056170.20461@dhalsim.dreamhost.com> <fb7f3319eb599acbe7429f972d21672c@iki.fi> <4261C2BE.7060601@inkedb lade.net> Message-ID: <7becfe9e53869dcf45c0b5123f918a8b@iki.fi> On Apr 17, 2005, at 04:58, fantasai wrote: > Henri Sivonen wrote: >> I am very hostile towards the idea of requiring UAs to implement any >> XML parsing features that are in the realm of the XML 1.0 spec but >> that the XML 1.0 spec does not require. This means processing the DTD >> beyond checking the internal subset for well-formedness. > > That hostility may be justified as far as browser-type UAs go, but I > would rather you didn't apply it to server-side and authoring tools. When I said "UAs", I had client apps in mind. >> Those who want to use entities for input, should parse and >> reserialize as UTF-8 in their own lair and not expose their entity >> references (or parochial legacy encodings) to the public network. > > For those of us writing HTML by hand, this is not a practical solution, > particularly when invisible characters are involved. Invisible > characters > aside, I don't want to go digging through a Unicode character map every > time I want &rarr; or &tau;. That's not an issue for HTML where entities get tag soup treatment anyway. I didn't say that authors should not type entity references in XML. I said that the entity references should be resolved before the data travels from the server to the client. -- Henri Sivonen hsivonen at iki.fi http://hsivonen.iki.fi/ From fantasai.lists at inkedblade.net Mon Apr 18 05:28:15 2005 From: fantasai.lists at inkedblade.net (fantasai) Date: Mon, 18 Apr 2005 08:28:15 -0400 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <7becfe9e53869dcf45c0b5123f918a8b@iki.fi> References: <42524E27.6060006@annevankesteren.nl> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> <4253CA8A.1070608@olav.dk> <4253D10C.5000700@lachy.id.au> <4253D24A.8050308@annevankesteren.nl> <4253D7CA.2010807@lachy.id.au> <4253DA93.8030606@annevankesteren.nl> <4253E4FF.2090306@lachy.id.au> <4253F517.3040409@olav.dk> <425401B0.3040205@lachy.id.au> <42540251.4080405@annevankesteren.nl> <42546FCE.5070900@lachy.id.au> <Pine.LNX.4.61.0504062335130.20461@dhalsim.dreamhost.com> <4254CE93.4000403@lachy.id.au> <Pine.LNX.4.61.0504071037490.20461@dhalsim.dreamhost.com> <42550FFD.20201@annevankesteren.nl> <Pine.LNX.4.61.0504071050580.20461@dhalsim.dreamhost.com> <4255114D.10108@annevankesteren.nl> <Pine.LNX.4.61.0504071056170.20461@dhalsim.dreamhost.com> <fb7f3319eb599acbe7429f972d21672c@iki.fi> <4261C2BE.7060601@inkedb lade.net> <7becfe9e53869dcf45c0b5123f918a8b@iki.fi> Message-ID: <4263A7DF.1000509@inkedblade.net> Henri Sivonen wrote: > On Apr 17, 2005, at 04:58, fantasai wrote: > >> For those of us writing HTML by hand, this is not a practical solution, >> particularly when invisible characters are involved. Invisible characters >> aside, I don't want to go digging through a Unicode character map every >> time I want &rarr; or &tau;. > > That's not an issue for HTML where entities get tag soup treatment anyway. > > I didn't say that authors should not type entity references in XML. I > said that the entity references should be resolved before the data > travels from the server to the client. So, when is my document going to get preprocessed? I certainly don't want to bother fussing with it every time I fix a typo. ~fantasai From lachlan.hunt at lachy.id.au Mon Apr 18 05:32:16 2005 From: lachlan.hunt at lachy.id.au (Lachlan Hunt) Date: Mon, 18 Apr 2005 22:32:16 +1000 Subject: [whatwg] [WA1] The profile Attribute In-Reply-To: <42639CBF.7080305@cam.ac.uk> References: <42620714.5020504@lachy.id.au> <Pine.LNX.4.61.0504170948090.7599@dhalsim.dreamhost.com> <42624BAE.8090905@lachy.id.au> <Pine.LNX.4.61.0504171147060.20636@dhalsim.dreamhost.com> <4262609C.7090800@cam.ac.uk> <Pine.LNX.4.61.0504171317540.20636@dhalsim.dreamhost.com> <42639CBF.7080305@cam.ac.uk> Message-ID: <4263A8D0.5020207@lachy.id.au> James Graham wrote: > <head profile="http://example.com#foo"> > <profile href="http://example.com#bar" title="bar" /> > <link rel="comments" href="#comments" /> > <link rel="license" href="license.html" profile="bar" /> > </head> The problem with that method is that it doesn't allow values from multiple profiles to be included within the same element. Whereas, a solution that adds namespaces more like the following, but doesn't require their use to reference the values where it is not ambiguous would be better. For example, three profiles are defined with each given a namespace prefx and contain the listed values. Profile 1: foo http://example.org/foo Values: a, b, c Profile 2: bar http://example.com/bar Values: c, d Profile 3: baz http://example.net/baz Values: d, e, f foo and bar both contain "c", bar and baz both contain "d". Without a namespace, the semantics from the first declared profile should be used in such cases and it is not possible to make use of the other. With a form of optional namespace, it should be possible to refer to those values in the following ways: The following unambiguosly refers "a" in foo in both cases: rel="a" OR rel="foo.a" Because "c" is defined in both foo and bar, these are equivalent because foo is defined first rel="c" OR rel="foo.c" With a namespace, "c" in bar, can also be unambiguosly referenced: rel="bar.c" Similarly, the follwing can also be unambiguously referenced: rel="b d baz.d e f" (the first "d" would refer to bar.d because bar is defined first and baz.d is obvious. "b", "e" and "f" are unambiguous because there are no naming conflicts.) If a solution can be found which allows for namespaces, but which does not require them to be used in most cases, which doesn't introduce even more problems, then I think that would probably be the best solution. -- Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox From hsivonen at iki.fi Mon Apr 18 05:37:51 2005 From: hsivonen at iki.fi (Henri Sivonen) Date: Mon, 18 Apr 2005 15:37:51 +0300 Subject: [whatwg] [web-apps] 2.7.8 The i element In-Reply-To: <Pine.LNX.4.61.0504161301440.20636@dhalsim.dreamhost.com> References: <op.spa4tpxpk4suho@briann> <Pine.LNX.4.61.0504161039020.7599@dhalsim.dreamhost.com> <e8e97f9f0504160352234b5e20@mail.gmail.com> <Pine.LNX.4.61.0504161056020.7599@dhalsim.dreamhost.com> <e8e97f9f050416045769ec23cc@mail.gmail.com> <Pine.LNX.4.61.0504161239120.20636@dhalsim.dreamhost.com> <e8e97f9f050416055724f000f1@mail.gmail.com> <Pine.LNX.4.61.0504161301440.20636@dhalsim.dreamhost.com> Message-ID: <164267ec02d940a35ff35bfc6bf782fd@iki.fi> On Apr 16, 2005, at 16:04, Ian Hickson wrote: > On Sat, 16 Apr 2005, Rob Mientjes wrote: >>> >>> Is there any advantage to marking up people's names? >> >> I dunno. I was just trying to fill the gap of need ;) > > The question is: is the need a real need or a perceived need? Some print newspapers and magazines bold the first occurrence (per article) of each personal name. (Is it actually useful? Dunno.) However, doing this with a style sheet once each name has been marked up as such would be really hard compared to just using <b> where the editor wants it. UAs are not going to be able to perform morphological analysis for every language under the sun and, therefore, will the unable to figure out that <name lang='fi'>Sivonen</name> and <name lang='fi'>Sivosen</name> are occurrences of the same name but the latter occurrence is in genetive. An AI-complete UA would need no name markup anyway. :-) From time to time, I am doubting the usefulness of avoiding of <b> and <i> on principle, when it is, after all, bold and italic that is wanted and not some generic change of appearance. -- Henri Sivonen hsivonen at iki.fi http://hsivonen.iki.fi/ From dean at edwards.name Mon Apr 18 05:51:16 2005 From: dean at edwards.name (Dean Edwards) Date: Mon, 18 Apr 2005 13:51:16 +0100 Subject: [whatwg] Fear of scope creep In-Reply-To: <42637CF5.7020509@olav.dk> References: <42637CF5.7020509@olav.dk> Message-ID: <4263AD44.4050107@edwards.name> Olav Junker Kj?r wrote: > I'm a bit concerned by the apparent scope creep of WHATWG. > > The charter of WHAT <http://whatwg.org/charter> says: > "The goal of the Web Hypertext Applications Technology Working Group is > to address the need for one coherent development environment for Web > applications, through the creation of technical specifications that are > intended to be implemented in mass-market Web browsers." > > Right now most of the discussions on the WHAT mailing list concerns > extensions and clarification of the semantics of document-oriented HTML > elements, and discussions about the low-level syntax of HTML (DTD, SGML > etc.). "Web Applications 1.0" is apparently slowly turning into "HTML 5". > I mentioned this a while back too. Part of the problem is that we aren't submitting enough applications related topics. So it seems that all discussion is around standard HTML. This may in turn be due to the fact that we are currently publishing WF2 and (as a group) we haven't turned our full attention on WA1. But you're right, I have a hundred outstanding messages from the WHATWG list which all seem to nitpick existing HTML. I'll probably mark them all as "read" without actually reading them. -dean From jg307 at cam.ac.uk Mon Apr 18 06:06:37 2005 From: jg307 at cam.ac.uk (James Graham) Date: Mon, 18 Apr 2005 14:06:37 +0100 Subject: [whatwg] [WA1] The profile Attribute In-Reply-To: <4263A8D0.5020207@lachy.id.au> References: <42620714.5020504@lachy.id.au> <Pine.LNX.4.61.0504170948090.7599@dhalsim.dreamhost.com> <42624BAE.8090905@lachy.id.au> <Pine.LNX.4.61.0504171147060.20636@dhalsim.dreamhost.com> <4262609C.7090800@cam.ac.uk> <Pine.LNX.4.61.0504171317540.20636@dhalsim.dreamhost.com> <42639CBF.7080305@cam.ac.uk> <4263A8D0.5020207@lachy.id.au> Message-ID: <4263B0DD.8030702@cam.ac.uk> Lachlan Hunt wrote: > James Graham wrote: > >> <head profile="http://example.com#foo"> >> <profile href="http://example.com#bar" title="bar" /> >> <link rel="comments" href="#comments" /> >> <link rel="license" href="license.html" profile="bar" /> >> </head> > > > The problem with that method is that it doesn't allow values from > multiple profiles to be included within the same element. Is that an actual problem in practice? With <link /> one can always add another link element pointing to the same resource. I suppose it's more of an issue for random elements and class (although I still think using class is suboptimal). > Whereas, a solution that adds namespaces more like the following, > but doesn't require their use to reference the values where it is not > ambiguous would be better. > > For example, three profiles are defined with each given a namespace > prefx and contain the listed values. > > Profile 1: foo http://example.org/foo > Values: a, b, c > Profile 2: bar http://example.com/bar > Values: c, d > Profile 3: baz http://example.net/baz > Values: d, e, f > > foo and bar both contain "c", bar and baz both contain "d". Without a > namespace, the semantics from the first declared profile should be > used in such cases and it is not possible to make use of the other. > With a form of optional namespace, it should be possible to refer to > those values in the following ways: > > The following unambiguosly refers "a" in foo in both cases: > rel="a" OR rel="foo.a" > > Because "c" is defined in both foo and bar, these are equivalent > because foo is defined first > rel="c" OR rel="foo.c" > > With a namespace, "c" in bar, can also be unambiguosly referenced: > rel="bar.c" > > Similarly, the follwing can also be unambiguously referenced: > rel="b d baz.d e f" Having namespaces only where conflicts occur strikes me as unwise - in general the author is unlikely to know what the complete range of values in a given spec is and it makes documents very fragile to addition of data from new profiles and to addition of values to existing profiles. It also makes view-source style learning hard because the namespace will be included (or not) in an apparently random fashion. That's actually one of the problems with XML namespaces - from a document like: <root xmlns="#foo" xmlns:bar="#bar"> <bar:fragment> <element /> </bar:fragment> </root> doing a simple view-source (without having read the Namespaces in XML spec) doesn't make it obvious which namespace <element/> is in. -- "But if science you say still sounds too deep, Just do what Beaker does, just shrug and 'Meep!'" -- Dr. Bunsen Honeydew & Beaker of Muppet Labs From fora at annevankesteren.nl Mon Apr 18 06:15:38 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Mon, 18 Apr 2005 15:15:38 +0200 Subject: [whatwg] [html5] 2.8. Edits In-Reply-To: <Pine.LNX.4.61.0504180828440.7599@dhalsim.dreamhost.com> References: <42636C48.3060001@annevankesteren.nl> <Pine.LNX.4.61.0504180828440.7599@dhalsim.dreamhost.com> Message-ID: <4263B2FA.80600@annevankesteren.nl> Ian Hickson wrote: > On Mon, 18 Apr 2005, Anne van Kesteren wrote: > >> Now I know backwards compatibility is important[1], but DEL and INS >> are insanely complex to use and do not cover all "edit" use cases. > > Can you give some examples they don't cover? Well, cases were you just want to note that something has changed, but not necessarily want to "markup" what has changed. > I'm aware of some, for example to mark a list item as deleted you can only > mark the contents as deleted, not the item itself. But I don't see these > as major enough changes to require changing the edit markup model. Deleting the entire document would be another one of those... >> What XHTML2 does makes more sense to me (introducing a global >> attribute) and also covers the use cases you see most online. > > It looked to me like the use of an attribute in XHTML2 was actually a > hack to get around limitations of DTDs and of CSS. HTML5's design > isn't being constrained by either of those so I don't see why edit="" > is better. Well, XHTML is an XML language so it could make use of XML Schema or so which is capable of describing the semantics of DEL and INS I believe, although it would be a quite complicated schema. |edit=""| is easier to use for tools that compare documents and only want to say some content has changed. I have the feeling it is easier overall, both to use when editing by hand and when code has to be processed by tools, but I'm not sure if I can prove it. |edit=""| has indeed also some advantages with aspect to CSS, but that is besides the point. >>Editing forum posts, weblog posts, etc. With forum posts there is mostly a >>note that the user edited his comment but you never see "though<ins>t</ins>". >>You see something like: "Last time edited: {date}". > > I actually see inline comments about when things were fixed more often > than I see "last edited", but that may just be the blogs I frequent. I guess. Popular forum software like phpBB says that a comment/post has changed. I know some weblogs authors [insert info] but on the other hand most don't. Weblog software does (mostly) change the modified date of the entry though. >> Now if you could say somehow that the contents of some element have >> been modified > > You can. Wrap those bits you removed in a <del> and wrap the new bits > in an <ins>. That information is almost never stored. It would also make software insanely complex. > The information is there with <ins>/<del> as well. With INS/DEL you can not easily present it. The information is there, sure. >> INS and DEL are IMHO not really appropriate for those kind of >> edits. > > On the contrary, I think they are the kinds of edits most suitable to > <ins>. It certainly leaves more metadata in the document. If you want metadata you can do exactly the same with some attribute. For element wide changes you just add an attribute to the element (instead of wrapping the element in another element) and for local changes you use SPAN with an attribute. -- Anne van Kesteren <http://annevankesteren.nl/> From Maniac at SoftwareManiacs.Org Mon Apr 18 06:29:12 2005 From: Maniac at SoftwareManiacs.Org (Maniac) Date: Mon, 18 Apr 2005 17:29:12 +0400 Subject: [whatwg] [html5] 2.8. Edits In-Reply-To: <Pine.LNX.4.61.0504180828440.7599@dhalsim.dreamhost.com> References: <42636C48.3060001@annevankesteren.nl> <Pine.LNX.4.61.0504180828440.7599@dhalsim.dreamhost.com> Message-ID: <4263B628.2010003@SoftwareManiacs.Org> Ian Hickson wrote: >I'm aware of some, for example to mark a list item as deleted you can only >mark the contents as deleted, not the item itself. > And you can't add an item as well... >But I don't see these >as major enough changes to require changing the edit markup model. > > I use <ins> and <del> for editing specs and this is in fact *is* a major limitations. Speaking briefly: it is not possible to markup editis for lists (orderd, unordered, definitions) and tables except for replacing the whole list or table altogether. I mention lists and tables since I use them often but in general problematic are any elements that allow only limited subset of children, thus disallowing <ins> and <del>. May be there should be a separate model in the spec about edits saying where <ins> and <del> are allowed in addition to children specified elsewhere. From lachlan.hunt at lachy.id.au Mon Apr 18 07:16:39 2005 From: lachlan.hunt at lachy.id.au (Lachlan Hunt) Date: Tue, 19 Apr 2005 00:16:39 +1000 Subject: [whatwg] [WA1] The profile Attribute In-Reply-To: <4263B0DD.8030702@cam.ac.uk> References: <42620714.5020504@lachy.id.au> <Pine.LNX.4.61.0504170948090.7599@dhalsim.dreamhost.com> <42624BAE.8090905@lachy.id.au> <Pine.LNX.4.61.0504171147060.20636@dhalsim.dreamhost.com> <4262609C.7090800@cam.ac.uk> <Pine.LNX.4.61.0504171317540.20636@dhalsim.dreamhost.com> <42639CBF.7080305@cam.ac.uk> <4263A8D0.5020207@lachy.id.au> <4263B0DD.8030702@cam.ac.uk> Message-ID: <4263C147.6080302@lachy.id.au> James Graham wrote: > Lachlan Hunt wrote: >> The problem with that method is that it doesn't allow values from >> multiple profiles to be included within the same element. > > Is that an actual problem in practice? It could be. Say, for example, the Web Communication Link Relationships [1] I've proposed earlier for link relationships were defined in a profile, it could be quite probable that such values may be used in conjunction with some from XFN. eg. <p><a href="..." rel="wclr.user xfn.met">John Smith</a> said:</p> <p>comment...</p> > Having namespaces only where conflicts occur strikes me as unwise - in > general the author is unlikely to know what the complete range of values > in a given spec is and it makes documents very fragile to addition of > data from new profiles and to addition of values to existing profiles. That same argument also applies where there are no namespaces at all, however introducing optional namespaces may also address the concerns against namespaces. > It also makes view-source style learning hard because... View-source learning is already hard because most documents on the web are non-conformant and invalid rubbish. But I don't agree it would make it harder since most of the time the namespace prefixes would be required, only for the odd case where naming conflicts do occur within profiles used by the same document. [1] http://lachy.id.au/dev/markup/specs/wclr/ -- Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox From mikko.rantalainen at peda.net Mon Apr 18 07:31:44 2005 From: mikko.rantalainen at peda.net (Mikko Rantalainen) Date: Mon, 18 Apr 2005 17:31:44 +0300 Subject: [whatwg] [web-apps] 2.7.8 The i element In-Reply-To: <164267ec02d940a35ff35bfc6bf782fd@iki.fi> References: <op.spa4tpxpk4suho@briann> <Pine.LNX.4.61.0504161039020.7599@dhalsim.dreamhost.com> <e8e97f9f0504160352234b5e20@mail.gmail.com> <Pine.LNX.4.61.0504161056020.7599@dhalsim.dreamhost.com> <e8e97f9f050416045769ec23cc@mail.gmail.com> <Pine.LNX.4.61.0504161239120.20636@dhalsim.dreamhost.com> <e8e97f9f050416055724f000f1@mail.gmail.com> <Pine.LNX.4.61.0504161301440.20636@dhalsim.dreamhost.com> <164267ec02d940a35ff35bfc6bf782fd@iki.fi> Message-ID: <4263C4D0.3070200@peda.net> Henri Sivonen wrote: > On Apr 16, 2005, at 16:04, Ian Hickson wrote: >>The question is: is the need a real need or a perceived need? > > Some print newspapers and magazines bold the first occurrence (per > article) of each personal name. (Is it actually useful? Dunno.) > [...] > From time to time, I am doubting the usefulness of avoiding of <b> and > <i> on principle, when it is, after all, bold and italic that is wanted > and not some generic change of appearance. I think that "bold" isn't really what magazines are looking for in your example case. It's more like some kind of emphasize on first occurrence of person's name. I'd rather use <em>, somebody else might use <strong>. I still think that <b> isn't correct element to use in this case. Newspapers use bold just because it's *the* method to emphasize text in that world. A web browser can do more. That said, I think that <i> and <b> should be used where italized and bold text is the *traditional* way to display the information and the only other logical choice would be a <span>. If bolding is used to bring something more visible or to mark it a bit more important than everything else, <em> or <span> should be used instead. I don't believe that HTML5 can change what <i> element means. It may say it means "instance" but users (web designers) are going to continue think "italic". How about <e> for entity? A bit more semantic than <span> but doesn't hint rendering a little bit. Throw a "type" or "class" attribute in and you might have something usable. -- <e type="person">Mikko</e> From jg307 at cam.ac.uk Mon Apr 18 07:34:36 2005 From: jg307 at cam.ac.uk (James Graham) Date: Mon, 18 Apr 2005 15:34:36 +0100 Subject: [whatwg] [WA1] The profile Attribute In-Reply-To: <4263C147.6080302@lachy.id.au> References: <42620714.5020504@lachy.id.au> <Pine.LNX.4.61.0504170948090.7599@dhalsim.dreamhost.com> <42624BAE.8090905@lachy.id.au> <Pine.LNX.4.61.0504171147060.20636@dhalsim.dreamhost.com> <4262609C.7090800@cam.ac.uk> <Pine.LNX.4.61.0504171317540.20636@dhalsim.dreamhost.com> <42639CBF.7080305@cam.ac.uk> <4263A8D0.5020207@lachy.id.au> <4263B0DD.8030702@cam.ac.uk> <4263C147.6080302@lachy.id.au> Message-ID: <4263C57C.2070001@cam.ac.uk> Lachlan Hunt wrote: > James Graham wrote: > >> Having namespaces only where conflicts occur strikes me as unwise - >> in general the author is unlikely to know what the complete range of >> values in a given spec is and it makes documents very fragile to >> addition of data from new profiles and to addition of values to >> existing profiles. > > > That same argument also applies where there are no namespaces at all, > however introducing optional namespaces may also address the concerns > against namespaces. I strongly feel that by trying to make it simpler, you're actually succeeding in making it harder. You require authors to accumulate information from multiple siources in order to read or write a document. You require that they _know_ the rules surrounding namespaces because it would be impossible to infer the rules from a document. >> It also makes view-source style learning hard because... > > > View-source learning is already hard because most documents on the web > are non-conformant and invalid rubbish. Most documents on the web are a direct result of view-source style learning. If they're invalid rubbish, it's (at least partly) because spec writers have erronously assumed that the majority of authors would have enough of a clue to check things like whether there were conflicts between diffrent profiles they were using. In fact, the fact that authors won't check for conflicts is one reason that namespaces *should* be used for profiles - and we should encourage authors to use them as much as possible so that every value assosiated with a profile is assosiated explicitly. Authors simply won't read the part of the spec that explains why including multiple profiles is a bad idea, will include multiple profiles (since they'll see that that's allowed from view-sourcing other documents) and will run into name conflicts. So, infact, I'd require that all profiles introduced through a profile element (or similar) have an explicity title that was then required for accessing that profile throughout the document. The profile attribute on <head> would be discouraged. Then authors looking at a document via view-source would see a consisent and logical picture which they could easilly copy. -- "But if science you say still sounds too deep, Just do what Beaker does, just shrug and 'Meep!'" -- Dr. Bunsen Honeydew & Beaker of Muppet Labs From hsivonen at iki.fi Mon Apr 18 11:02:03 2005 From: hsivonen at iki.fi (Henri Sivonen) Date: Mon, 18 Apr 2005 21:02:03 +0300 Subject: [whatwg] [web-apps] 2.7.8 The i element In-Reply-To: <4263C4D0.3070200@peda.net> References: <op.spa4tpxpk4suho@briann> <Pine.LNX.4.61.0504161039020.7599@dhalsim.dreamhost.com> <e8e97f9f0504160352234b5e20@mail.gmail.com> <Pine.LNX.4.61.0504161056020.7599@dhalsim.dreamhost.com> <e8e97f9f050416045769ec23cc@mail.gmail.com> <Pine.LNX.4.61.0504161239120.20636@dhalsim.dreamhost.com> <e8e97f9f050416055724f000f1@mail.gmail.com> <Pine.LNX.4.61.0504161301440.20636@dhalsim.dreamhost.com> <164267ec02d940a35ff35bfc6bf782fd@iki.fi> <4263C4D0.3070200@peda.net> Message-ID: <c491cf2eb2cced0fa3c71dbb447dfa85@iki.fi> On Apr 18, 2005, at 17:31, Mikko Rantalainen wrote: > Henri Sivonen wrote: >> On Apr 16, 2005, at 16:04, Ian Hickson wrote: >>> The question is: is the need a real need or a perceived need? >> Some print newspapers and magazines bold the first occurrence (per >> article) of each personal name. (Is it actually useful? Dunno.) [...] >> From time to time, I am doubting the usefulness of avoiding of <b> >> and <i> on principle, when it is, after all, bold and italic that is >> wanted and not some generic change of appearance. > > I think that "bold" isn't really what magazines are looking for in > your example case. Have you ever seen any other emphasis than bold in that case? > It's more like some kind of emphasize on first occurrence of person's > name. I'd rather use <em>, somebody else might use <strong>. I do not believe the meaning of the bolding is strong emphasis in this case. Emphasis perhaps but not particularly strong. > I still think that <b> isn't correct element to use in this case. > Newspapers use bold just because it's *the* method to emphasize text > in that world. When there are established cases where you are supposed to use bold and cases where you are supposed to use italic, is it truly useful to try to enumerate all the semantic roles and come up with gazillions of synonyms for <b> and <i> only in order to adhere to the "no presentationalism" principle even when there aren't compelling use cases for programmatic text analysis that would benefit from fine-grained semantics? Is anyone here seriously expecting Google to come up with a service that harvested the names of ships if What WG specified a semantic element for marking up the names of ships? > A web browser can do more. For example? -- Henri Sivonen hsivonen at iki.fi http://hsivonen.iki.fi/ From bkn3 at columbia.edu Mon Apr 18 17:49:57 2005 From: bkn3 at columbia.edu (Brad Neuberg) Date: Mon, 18 Apr 2005 17:49:57 -0700 Subject: [whatwg] Fear of scope creep In-Reply-To: <4263AD44.4050107@edwards.name> References: <42637CF5.7020509@olav.dk> <4263AD44.4050107@edwards.name> Message-ID: <6.2.1.2.2.20050418174446.02abcc30@pop.mail.yahoo.com> I agree with the comments on scope creep from Dean and Olav. The discussion on the WHATWG list seems to be mostly about HTML and DOM semantics these days. My understanding of the web app standard was that it would codify a set of useful tags and practices that developers might have already been using, such as the XmlHttpRequest object, and maybe introduce a bit more functionality and tags to make building these kinds of web apps easier. Then, on IE, much of this would be implemented as an emulation layer using things like IE Behaviors and so on, similar to Deans work. If the web app standard ends up specifying what is essentially an entirely new standard of HTML, like HTML 5, then I don't see it being possible to truly emulate on IE as well as being a pain in the butt to actually code (i.e. if it requires indepth knowledge of esoteric HTML and SGML issues to implement then I don't see it actually getting much uptake). Plus, the more we emulate on IE the slower it will be; emulation layers in the browser can be slow if you aren't careful, plus they can have issues with dynamic updating of the DOM, like Dean's IE 5 layer. Best, Brad Neuberg At 05:51 AM 4/18/2005, Dean Edwards wrote: >Olav Junker Kj?r wrote: >>I'm a bit concerned by the apparent scope creep of WHATWG. >>The charter of WHAT <http://whatwg.org/charter> says: >>"The goal of the Web Hypertext Applications Technology Working Group is >>to address the need for one coherent development environment for Web >>applications, through the creation of technical specifications that are >>intended to be implemented in mass-market Web browsers." >>Right now most of the discussions on the WHAT mailing list concerns >>extensions and clarification of the semantics of document-oriented HTML >>elements, and discussions about the low-level syntax of HTML (DTD, SGML >>etc.). "Web Applications 1.0" is apparently slowly turning into "HTML 5". > >I mentioned this a while back too. Part of the problem is that we aren't >submitting enough applications related topics. So it seems that all >discussion is around standard HTML. This may in turn be due to the fact >that we are currently publishing WF2 and (as a group) we haven't turned >our full attention on WA1. But you're right, I have a hundred outstanding >messages from the WHATWG list which all seem to nitpick existing HTML. >I'll probably mark them all as "read" without actually reading them. > >-dean > Brad Neuberg, bkn3 at columbia.edu Senior Software Engineer, Rojo Networks Weblog: http://www.codinginparadise.org ===================================================================== Check out Rojo, an RSS and Atom news aggregator that I work on. Visit http://rojo.com for more info. Feel free to ask me for an invite! Rojo is Hiring! If you're interested in RSS, Weblogs, Social Networking, Java, Open Source, etc... then come work with us at Rojo. If you recommend someone and we hire them you'll get a free iPod! See http://www.rojonetworks.com/JobsAtRojo.html. From darin at meer.net Mon Apr 18 18:55:05 2005 From: darin at meer.net (Darin Fisher) Date: Mon, 18 Apr 2005 18:55:05 -0700 Subject: [whatwg] Comments on XMLHttpRequest specification Message-ID: <426464F9.5080202@meer.net> I've been meaning to comment on the XMLHttpRequest specification, and in particular the specification of setRequestHeader. I'm basing my comments on: http://www.whatwg.org/specs/web-apps/current-work/#scripted-http In the section on setRequestHeader: "UAs must set the Authorization header according to the values passed to the open() <http://www.whatwg.org/specs/web-apps/current-work/#openmethod> method (but must allow calls to setRequestHeader() <http://www.whatwg.org/specs/web-apps/current-work/#setrequestheader> to append values to it)." This specification does not indicate how the Authorization header is to be constructed. Is the implementation to assume a Basic auth challenge? That does not sound very useful to me. Instead, useragents should send requests as usual and respond to challenges by attempting to use the supplied username and password, resorting to prompting the user only if required. Also, UAs may set the Authorization header ahead of time if they know from past experience that the specified URL has a reusable challenge (i.e., a Basic auth challenge). This process is all described in RFC 2617. Other comments: UAs may also set the Accept-Language header based on knowledge of the user's preferred language. Hmm... are you sure you want to specify that Range headers may not be set? What implementation doesn't allow them? Mozilla will only insert its own Range headers when it can determine that the response can be partially satisfied from its cache. If Range headers are already present in the request, then it will simply issue the requested range request and not try to update its cache based on it. (That's a bunch of mozilla implementation details, sorry.) The Keep-Alive header is a HTTP/1.0 defacto standards thingy. It's not specified by HTTP/1.1. Are you sure you want to require it? The statement, "User agents must not set any headers other than the headers set by the author using this method, with the following exceptions:" seems very difficult to support. What about other random headers that the networking subsystem might introduce? What about future versions of HTTP? I can imagine that some extension to the networking system may introduce extra headers on all outgoing HTTP requests to work properly with some third-party gateway or proxy server. In short, it seems a bit wrong to restrict what can be set by the transport layer. Certainly, in a proxy configuration a great variety of hop-by-hop headers might be added to the request (specified as hop-by-hop by listing them as values on the Connection header). Those headers would be stripped by the proxy server before sending them onto the origin server, so the web author would arguably not care about those headers. Basically, I think it's important to not over-specify setRequestHeader to the point where useful things become verboten. But, on the flip side I understand that you want to make it clear how the HTTP layer is to interact with user set request headers. Despite these nit-picks, I'm really happy to see XMLHttpRequest being specified. Keep up the good work! :-) -Darin From mint at franklinmint.fm Mon Apr 18 19:19:22 2005 From: mint at franklinmint.fm (Robert Sayre) Date: Mon, 18 Apr 2005 22:19:22 -0400 Subject: [whatwg] Comments on XMLHttpRequest specification In-Reply-To: <426464F9.5080202@meer.net> References: <426464F9.5080202@meer.net> Message-ID: <42646AAA.9000501@franklinmint.fm> Darin Fisher wrote: > Hmm... are you sure you want to specify that Range headers may not be > set? What implementation doesn't allow them? In particular, consider Microsoft Exchange, which returns the results of a SEARCH query with a ranges-specifier of "rows".[0] Are the setRequestHeader requrirements a reflection of IE/Mozilla/Opera implementations or invention? What would happen if a server allowed Kerberos auth? Would there be any way for a WhatWG implementation to deal with that? Robert Sayre [0] http://msdn.microsoft.com/library/en-us/e2k3/e2k3/_exch2k_sql_range_header.asp From mikko.rantalainen at peda.net Tue Apr 19 02:23:11 2005 From: mikko.rantalainen at peda.net (Mikko Rantalainen) Date: Tue, 19 Apr 2005 12:23:11 +0300 Subject: [whatwg] [web-apps] 2.7.8 The i element In-Reply-To: <c491cf2eb2cced0fa3c71dbb447dfa85@iki.fi> References: <op.spa4tpxpk4suho@briann> <Pine.LNX.4.61.0504161039020.7599@dhalsim.dreamhost.com> <e8e97f9f0504160352234b5e20@mail.gmail.com> <Pine.LNX.4.61.0504161056020.7599@dhalsim.dreamhost.com> <e8e97f9f050416045769ec23cc@mail.gmail.com> <Pine.LNX.4.61.0504161239120.20636@dhalsim.dreamhost.com> <e8e97f9f050416055724f000f1@mail.gmail.com> <Pine.LNX.4.61.0504161301440.20636@dhalsim.dreamhost.com> <164267ec02d940a35ff35bfc6bf782fd@iki.fi> <4263C4D0.3070200@peda.net> <c491cf2eb2cced0fa3c71dbb447dfa85@iki.fi> Message-ID: <4264CDFF.5020101@peda.net> Henri Sivonen wrote: > On Apr 18, 2005, at 17:31, Mikko Rantalainen wrote: >>Henri Sivonen wrote: >>>Some print newspapers and magazines bold the first occurrence (per >>>article) of each personal name. (Is it actually useful? Dunno.) [...] >> >>I think that "bold" isn't really what magazines are looking for in >>your example case. > > Have you ever seen any other emphasis than bold in that case? I've seen increased letter spacing instead of bolding and IIRC once or twice I've seen small caps in similar situation. All the current texts use bolding, though. >>It's more like some kind of emphasize on first occurrence of person's >>name. I'd rather use <em>, somebody else might use <strong>. > > I do not believe the meaning of the bolding is strong emphasis in this > case. Emphasis perhaps but not particularly strong. Yes, I think that emphasis is what they are looking for. The reason I suggested using <strong> is that newspapers do have methods for less emphasis than bold but they use that method anyway. For example, the increased letter spacing would be a nicer method for slight emphasis. >>A web browser can do more. > For example? I meant that a web browser has other means for presenting emphasis than just bolding. It might use colors, for example, though the style author should be cautious not to rely on colors that may cause problems for some users. However, the amount of emphasis the first occurrence of a person's name should get is a slightly different text or background color than the rest of the text, IMHO. In addition, a web browser has interactive UI so it can present emphasis in time axis as well. It could use blinking, for example. I think it could be used for strong emphasis inside a header, if such emphasis were really searched for. That said, I agree that <b> and <i> can be used and shouldn't be avoided only "because they're presentational". But most of the time, <em> describes the semantics much better. (I wish that we didn't have <strong>, just nested <em>s. It would be a little be simpler.) -- Mikko From ian at hixie.ch Tue Apr 19 02:44:06 2005 From: ian at hixie.ch (Ian Hickson) Date: Tue, 19 Apr 2005 09:44:06 +0000 (UTC) Subject: [whatwg] Fear of scope creep In-Reply-To: <6.2.1.2.2.20050418174446.02abcc30@pop.mail.yahoo.com> References: <42637CF5.7020509@olav.dk> <4263AD44.4050107@edwards.name> <6.2.1.2.2.20050418174446.02abcc30@pop.mail.yahoo.com> Message-ID: <Pine.LNX.4.61.0504190941500.20636@dhalsim.dreamhost.com> On Mon, 18 Apr 2005, Brad Neuberg wrote: > > I agree with the comments on scope creep from Dean and Olav. The > discussion on the WHATWG list seems to be mostly about HTML and DOM > semantics these days. Based on the input of various people in the last few days, I'll be turning my attention to more Web Apps-y aspects of the spec now and will get back to the semantics stuff later. (Doesn't make any difference to when the spec is finished, it all needs to be done in due course.) So, if you have proposals for Web Apps-y features, please let's hear them. I was mainly working on semantics stuff since that's what people were posting about. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From ian at hixie.ch Tue Apr 19 03:10:10 2005 From: ian at hixie.ch (Ian Hickson) Date: Tue, 19 Apr 2005 10:10:10 +0000 (UTC) Subject: [whatwg] XPointer In-Reply-To: <41954E56.7050205@students.cs.uu.nl> References: <41954E56.7050205@students.cs.uu.nl> Message-ID: <Pine.LNX.4.61.0504191005440.20636@dhalsim.dreamhost.com> On Sat, 13 Nov 2004, Laurens Holst wrote: > > What about requiring XPointer support in UA's? Would certainly make > linking to a point inside another document a whole lot easier, as > opposed to having to rely on the document author's application of ID's > on every section. Requiring XPointer support is the job of the XPointer spec, not the WHATWG specs. Having said that, personally my experiences with XPointer have led me to conclude that it is an over-complicated way of achieving what is much more easily achived using IDs and fragment identifiers. Occasionally those fail to get the accuracy one would want, but I'm not convinced those cases are worth the massive complexity of XPointer. In any case though, as I said, it's not WHATWG's role to take a position on other specs, especially those that are already part of a standards track and so forth. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From ian at hixie.ch Tue Apr 19 03:24:28 2005 From: ian at hixie.ch (Ian Hickson) Date: Tue, 19 Apr 2005 10:24:28 +0000 (UTC) Subject: [whatwg] [web-apps] Some comments In-Reply-To: <4195685C.1060208@students.cs.uu.nl> References: <4110E801.3000107@annevankesteren.nl> <Pine.LNX.4.61.0408291722510.8458@dhalsim.dreamhost.com> <851c8d31040829124831bf5468@mail.gmail.com> <Pine.LNX.4.61.0411121030570.8631@dhalsim.dreamhost.com> <851c8d31041112032524816d29@mail.gmail.com> <Pine.LNX.4.61.0411121139180.8631@dhalsim.dreamhost.com> <851c8d3104111204035dc6212a@mail.gmail.com> <Pine.LNX.4.61.0411121238170.8631@dhalsim.dreamhost.com> <851c8d3104111205347f937877@mail.gmail.com> <Pine.LNX.4.61.0411121344230.2337@dhalsim.dreamhost.com> <851c8d310411120947617db864@mail.gmail.com> <Pine.LNX.4.61.0411122133250.8631@dhalsim.dreamhost.com> <4195685C.1060208@students.cs.uu.nl> Message-ID: <Pine.LNX.4.61.0504191014380.20636@dhalsim.dreamhost.com> On Sat, 13 Nov 2004, Laurens Holst wrote: > Ian Hickson wrote: > > > > The difference is that relying on JS is legitimate, while relying > > > > on CSS is not. > > > > > > Could you please explain how you arrived at this conclusion? It's > > > not supported by HTML or WCAG specifications. > > > > It's not something you'd expect to see in a specification. It's a > > fundamental concept in the architecture of the Web. Media-dependent > > and platform-specific material has to be optional, since you can't > > expect to support every medium or platform (the platforms might not > > yet exist). On the other hand, content which is key to the application > > -- such as the logic behind a calculator -- clearly can't be optional. > > According to the well-known MVC (Model-View-Controller) design pattern, > by many considered a best practice to aim for as much as possible, > scripts should be separated from content and style. At least it kind of > translates to that (I know this is not 100% correct). The W3C recommends > the same separation, although I forgot where I read that so > unfortunately I cannot provide a link at the moment. Without making any judgements as to the value of the MVC model as opposed to other models, I just want to note that the model I described is not counter to the MVC model. The MVC model, implemented in HTML, would have: Data model: The HTML file Control logic: meda-independent JS files User interface: The CSS files, associated XBL, and media-dependent JS There's no reason the control logic has to be in the data model. Now, given the above separation, and the design of HTML, the entire "user interface" layer can be lifted _and not replaced_, with the user agent using default values to create a basic user interface view on the fly. However, the data model and control logic parts, while separate and capable of being replaced with equivalent implementations independently, cannot be removed altogether. The user agent would not be capable of inventing new data models or control logic, like it could invent new UI. The data model and control logic's markup and JS are the "content", the CSS, XBL, and media-dependent JS files are the "style". "style" is optional, and the user should always be able to override it, while "content" is key to the application. If the user overrides the "content", he may well end up with a broken, or at least logically different, application. (Of course, that's his right, IMHO. But it's not a right that the UA should encourage him to execise, and it is in this way that it differs from the "style" part.) -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From ian at hixie.ch Tue Apr 19 03:34:14 2005 From: ian at hixie.ch (Ian Hickson) Date: Tue, 19 Apr 2005 10:34:14 +0000 (UTC) Subject: [whatwg] overflow:auto in tbody In-Reply-To: <4195E06A.8040206@netcabo.pt> References: <4195E06A.8040206@netcabo.pt> Message-ID: <Pine.LNX.4.61.0504191033230.20636@dhalsim.dreamhost.com> On Sat, 13 Nov 2004, Luis Miguel Reis wrote: > > What I haven't seen so far was the definition of wath happens to table > headers when the scrollbar appears. This leads to extra cells on the > table headers, just to "fill the gap". [...] > > Can the WebForm spec include a section that defines the third behaviour > explicitly (the spacer introducer in the header) ? This would be a CSS issue. I urge you to bring the issue up with the CSS working group: www-style at w3.org -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From jim.ley at gmail.com Tue Apr 19 03:36:07 2005 From: jim.ley at gmail.com (Jim Ley) Date: Tue, 19 Apr 2005 11:36:07 +0100 Subject: [whatwg] XPointer In-Reply-To: <Pine.LNX.4.61.0504191005440.20636@dhalsim.dreamhost.com> References: <41954E56.7050205@students.cs.uu.nl> <Pine.LNX.4.61.0504191005440.20636@dhalsim.dreamhost.com> Message-ID: <851c8d310504190336406fac75@mail.gmail.com> On 4/19/05, Ian Hickson <ian at hixie.ch> wrote: > On Sat, 13 Nov 2004, Laurens Holst wrote: > > > > What about requiring XPointer support in UA's? Would certainly make > > linking to a point inside another document a whole lot easier, as > > opposed to having to rely on the document author's application of ID's > > on every section. > > Requiring XPointer support is the job of the XPointer spec, not the WHATWG > specs. If this is the case, an obvious quick look shows two things that WF2 requires support of outside its scope, so... Please update the WF2 specification to remove its current dependance on user agents implementing HTML 4.01 (or XHTML) Please update the WF2 specification to remove its current dependance on the ECMA 262 specification (the required regular expression) There is nothing wrong with requiring implementation of another specification, indeed it's much better than defining everything yourself. I don't want the WHAT-WG to define a regular expression language for example, it would be ridiculous. Of course you may have legitimate reasons for not requiring XPointer support, but please give them and not write rubbish like above. Jim. From ian at hixie.ch Tue Apr 19 03:59:22 2005 From: ian at hixie.ch (Ian Hickson) Date: Tue, 19 Apr 2005 10:59:22 +0000 (UTC) Subject: [whatwg] Enhanced data tables In-Reply-To: <569C3FA2-4551-11D9-807B-000A957E8988@uk2.net> References: <C5613EDC-30EB-11D9-9F1E-000A957E8988@uk2.net> <0BF1DCCA-3135-11D9-ABBD-000A95AD3972@myrealbox.com> <Pine.LNX.4.61.0412031701020.20176@dhalsim.dreamhost.com> <569C3FA2-4551-11D9-807B-000A957E8988@uk2.net> Message-ID: <Pine.LNX.4.61.0504191055530.20636@dhalsim.dreamhost.com> On Fri, 3 Dec 2004, Afternoon wrote: > > > > The data grid idea that I assumed Ben was referring to isn't quite the > > same as a table, although I'm finding it difficult to justify the > > difference. From a practical standpoint the difference between a > > <table> and a data grid is that the table's data is all in a DOM > > content model, whereas the data grid can be dynamically populated from > > script, one row at a time, so that only the displayed portion need be > > in memory at any one time. > > I don't believe the data necessarily needs to be absent from the > content, although it certainly could be. There are cases where it must. For example, the data grid for a mail application showing a mailbox with 10,000 mails. You simply cannot have all 10,000 DOM rows in memory. It doesn't work. > > Another difference is that tables have a legacy of rendering semantics > > which we can't do much about, whereas for the data grid we want to be > > able to use GUI-specific native controls (or native-looking controls) > > which have features such as clickable column headers, draggable column > > separators, etc. Also, datagrids are limited to text in each cell > > (with one icon per row), rows can be selected, data can be marked as > > editable, etc. > > This is my key point. These features increase the usability of data > grids in native controls. Adding them to browsers would create more > functional applications for less work on the author's part. Right. > > There is a big overlap, but they aren't the same. > > Indeed, a browser that assumed every <table> was data-bearing and should > have controls displayed would be all but useless. Sadly, from a pragmatic point of view this is indeed the case. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From jim.ley at gmail.com Tue Apr 19 04:04:20 2005 From: jim.ley at gmail.com (Jim Ley) Date: Tue, 19 Apr 2005 12:04:20 +0100 Subject: [whatwg] Enhanced data tables In-Reply-To: <Pine.LNX.4.61.0504191055530.20636@dhalsim.dreamhost.com> References: <C5613EDC-30EB-11D9-9F1E-000A957E8988@uk2.net> <0BF1DCCA-3135-11D9-ABBD-000A95AD3972@myrealbox.com> <Pine.LNX.4.61.0412031701020.20176@dhalsim.dreamhost.com> <569C3FA2-4551-11D9-807B-000A957E8988@uk2.net> <Pine.LNX.4.61.0504191055530.20636@dhalsim.dreamhost.com> Message-ID: <851c8d31050419040463cc4fb@mail.gmail.com> On 4/19/05, Ian Hickson <ian at hixie.ch> wrote: > > Indeed, a browser that assumed every <table> was data-bearing and should > > have controls displayed would be all but useless. > > Sadly, from a pragmatic point of view this is indeed the case. Why, there is no WHAT-WG content available today? Assuming it for the WHAT-WG doctypes (or those things that say <!DOCTYPE but are not doctypes in any defined sense at all) seems a perfectly feasible proposition. Why do you say it's not? Cheers, Jim. From ian at hixie.ch Tue Apr 19 04:11:55 2005 From: ian at hixie.ch (Ian Hickson) Date: Tue, 19 Apr 2005 11:11:55 +0000 (UTC) Subject: [whatwg] XPointer In-Reply-To: <851c8d310504190336406fac75@mail.gmail.com> References: <41954E56.7050205@students.cs.uu.nl> <Pine.LNX.4.61.0504191005440.20636@dhalsim.dreamhost.com> <851c8d310504190336406fac75@mail.gmail.com> Message-ID: <Pine.LNX.4.61.0504191059460.7599@dhalsim.dreamhost.com> On Tue, 19 Apr 2005, Jim Ley wrote: > > > > Requiring XPointer support is the job of the XPointer spec, not the > > WHATWG specs. > > If this is the case, an obvious quick look shows two things that WF2 > requires support of outside its scope, so... > > Please update the WF2 specification to remove its current dependance on > user agents implementing HTML 4.01 (or XHTML) > > Please update the WF2 specification to remove its current dependance on > the ECMA 262 specification (the required regular expression) Both of these are prerequisities because the spec extends them or relies on them for its features. That is the difference between that and requiring XPointer support, since we don't rely on the latter for anything. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From jim.ley at gmail.com Tue Apr 19 05:05:52 2005 From: jim.ley at gmail.com (Jim Ley) Date: Tue, 19 Apr 2005 13:05:52 +0100 Subject: [whatwg] XPointer In-Reply-To: <Pine.LNX.4.61.0504191059460.7599@dhalsim.dreamhost.com> References: <41954E56.7050205@students.cs.uu.nl> <Pine.LNX.4.61.0504191005440.20636@dhalsim.dreamhost.com> <851c8d310504190336406fac75@mail.gmail.com> <Pine.LNX.4.61.0504191059460.7599@dhalsim.dreamhost.com> Message-ID: <851c8d31050419050595205d3@mail.gmail.com> On 4/19/05, Ian Hickson <ian at hixie.ch> wrote: > On Tue, 19 Apr 2005, Jim Ley wrote: > > Please update the WF2 specification to remove its current dependance on > > the ECMA 262 specification (the required regular expression) > > Both of these are prerequisities because the spec extends them or relies > on them for its features. > > That is the difference between that and requiring XPointer support, since > we don't rely on the latter for anything. And the proposal was that you include a requirement for XPointer for fragment identification within XML documents. I hardly see what the difference is, you've made a decision to require external dependencies to fulfil a use case, it seems completely reasonable. Please respond to the request and not fudge the issue based on your personal prejudices against technologies. Jim. From ian at hixie.ch Tue Apr 19 05:40:52 2005 From: ian at hixie.ch (Ian Hickson) Date: Tue, 19 Apr 2005 12:40:52 +0000 (UTC) Subject: [whatwg] XPointer In-Reply-To: <851c8d31050419050595205d3@mail.gmail.com> References: <41954E56.7050205@students.cs.uu.nl> <Pine.LNX.4.61.0504191005440.20636@dhalsim.dreamhost.com> <851c8d310504190336406fac75@mail.gmail.com> <Pine.LNX.4.61.0504191059460.7599@dhalsim.dreamhost.com> <851c8d31050419050595205d3@mail.gmail.com> Message-ID: <Pine.LNX.4.61.0504191237520.7599@dhalsim.dreamhost.com> On Tue, 19 Apr 2005, Jim Ley wrote: > > And the proposal was that you include a requirement for XPointer for > fragment identification within XML documents. I hardly see what the > difference is, you've made a decision to require external dependencies > to fulfil a use case, it seems completely reasonable. > > Please respond to the request and not fudge the issue based on your > personal prejudices against technologies. What _are_ you talking about. The request, as I understood it, was to provide exactly what XPointer provides, by requiring XPointer support. That's already possible, by simply using the XPointer spec. This has no relation whatsoever to the other cases you brought up, which are examples of technologies that are _extended_ by WF2. Please stop trolling. It's getting quite tiresome. The rest of us are trying to actually do work here. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From jim.ley at gmail.com Tue Apr 19 06:02:29 2005 From: jim.ley at gmail.com (Jim Ley) Date: Tue, 19 Apr 2005 14:02:29 +0100 Subject: [whatwg] XPointer In-Reply-To: <Pine.LNX.4.61.0504191237520.7599@dhalsim.dreamhost.com> References: <41954E56.7050205@students.cs.uu.nl> <Pine.LNX.4.61.0504191005440.20636@dhalsim.dreamhost.com> <851c8d310504190336406fac75@mail.gmail.com> <Pine.LNX.4.61.0504191059460.7599@dhalsim.dreamhost.com> <851c8d31050419050595205d3@mail.gmail.com> <Pine.LNX.4.61.0504191237520.7599@dhalsim.dreamhost.com> Message-ID: <851c8d31050419060268f32e32@mail.gmail.com> On 4/19/05, Ian Hickson <ian at hixie.ch> wrote: > On Tue, 19 Apr 2005, Jim Ley wrote: > The request, as I understood it, was to provide exactly what XPointer > provides, by requiring XPointer support. That's already possible, by > simply using the XPointer spec. The request was to improve the ability to link into web documents - that's the use case. The proposal to achieve this was by requiring XPointer. Please actually respond to proposals made, and issues raised with sensible responses, and do not just dismiss them with inaccurate comments saying it is not appropriate for the specificaion. Improving linking into a web documents is a perfectly reasonable use case to be addressed here, if it's not, why is it inappropriate, how do we know what use cases are appropriate and what aren't? Jim. From howcome at opera.com Tue Apr 19 06:05:00 2005 From: howcome at opera.com (=?iso-8859-1?Q?H=E5kon?= Wium Lie) Date: Tue, 19 Apr 2005 15:05:00 +0200 Subject: [whatwg] XPointer In-Reply-To: <851c8d31050419050595205d3@mail.gmail.com> References: <41954E56.7050205@students.cs.uu.nl> <Pine.LNX.4.61.0504191005440.20636@dhalsim.dreamhost.com> <851c8d310504190336406fac75@mail.gmail.com> <Pine.LNX.4.61.0504191059460.7599@dhalsim.dreamhost.com> <851c8d31050419050595205d3@mail.gmail.com> Message-ID: <16997.508.231272.647857@howcome.oslo.opera.com> Also sprach Jim Ley: > > > Please update the WF2 specification to remove its current dependance on > > > the ECMA 262 specification (the required regular expression) > > > > Both of these are prerequisities because the spec extends them or relies > > on them for its features. > > > > That is the difference between that and requiring XPointer support, since > > we don't rely on the latter for anything. > > And the proposal was that you include a requirement for XPointer for > fragment identification within XML documents. I hardly see what the > difference is, you've made a decision to require external dependencies > to fulfil a use case, it seems completely reasonable. Personally, I'd like to keep the list of requirements to an absolute minimum. I do not want to include XPointer on that list, even if it starts with an X. > Please respond to the request and not fudge the issue based on your > personal prejudices against technologies. This is an unfair statement to make. Please be considerate. -h&kon H?kon Wium Lie CTO ??e?? howcome at opera.com http://people.opera.com/howcome From jim.ley at gmail.com Tue Apr 19 06:17:39 2005 From: jim.ley at gmail.com (Jim Ley) Date: Tue, 19 Apr 2005 14:17:39 +0100 Subject: [whatwg] XPointer In-Reply-To: <16997.508.231272.647857@howcome.oslo.opera.com> References: <41954E56.7050205@students.cs.uu.nl> <Pine.LNX.4.61.0504191005440.20636@dhalsim.dreamhost.com> <851c8d310504190336406fac75@mail.gmail.com> <Pine.LNX.4.61.0504191059460.7599@dhalsim.dreamhost.com> <851c8d31050419050595205d3@mail.gmail.com> <16997.508.231272.647857@howcome.oslo.opera.com> Message-ID: <851c8d31050419061756266fc7@mail.gmail.com> On 4/19/05, H?kon Wium Lie <howcome at opera.com> wrote: > Also sprach Jim Ley: > Personally, I'd like to keep the list of requirements to an absolute > minimum. I do not want to include XPointer on that list, even if it > starts with an X. I would to, I don't think requiring XPointer is a necessarily a good idea, but the reason given that "it's not appropriate for the spec to require things" is simply misleading and was done from a position of power to stop debate, rather than as a sensible argument of why it's not appropriate. Seen as both Opera and Mozillla already have an XPointer implementation (or Opera will have as soon as they have a conformant SVG viewer) I hardly think the requirement is particular onerous one, and should certainly be discussed on its merits not on simply "it's not appropriate". Jim. From olav at olav.dk Tue Apr 19 13:09:47 2005 From: olav at olav.dk (=?ISO-8859-1?Q?Olav_Junker_Kj=E6r?=) Date: Tue, 19 Apr 2005 22:09:47 +0200 Subject: [whatwg] Editing In-Reply-To: <Pine.LNX.4.61.0504190941500.20636@dhalsim.dreamhost.com> References: <42637CF5.7020509@olav.dk> <4263AD44.4050107@edwards.name> <6.2.1.2.2.20050418174446.02abcc30@pop.mail.yahoo.com> <Pine.LNX.4.61.0504190941500.20636@dhalsim.dreamhost.com> Message-ID: <4265658B.2020503@olav.dk> Ian Hickson wrote: > So, if you have proposals for Web Apps-y features, please let's hear them. > I was mainly working on semantics stuff since that's what people were > posting about. I have been thinking about HTML editing, which I think is a critical feature. IE has it, Mozilla has a limited form (designMode but not contentEditable), and Safari is rumored to get support for it soon. Therefore I think its quite important to get it specified sooner rather than later. The WA1 requirements includes: - Rich text editing: an underlying architecture upon which domain-specific editors can be created, including things like control over the caret position. - A predefined HTML editor based on the rich text editing architecture. - Text selection manipulation APIs. I think the initial goal of the spec should be to describe the level of implementation in IE 6, since this is already used in lots of apps (primarily CMS'es). However, the IE model is not very flexible, the spec should preferably be more open and allowing customization on different levels. I'm not sure about the "predefined HTML editor" requirement. Is this just the editing logic, or is it a complete editor widget with toolbar etc.? Something like <htmlarea> which automatically included toolbars could be cool. Its not critical, though, since it's easy to build a toolbar if the editing logic is available, and most app authors would want to customize the toolbar anyway. Editing is a complex topic, and the question is how many details should be specified. In IE the editing commands are specified, but lots of editing logic is not documented - e.g what exactly happens if you press delete on the boundary between two block level elements. On one hand, web app authors would like consistency across browsers, on the other hand it's would be a large undertaking to specify, and by having it unspecified browsers could compete on having the most user friendly editing. Anyways, editing could be broken up into these topics: - A way to mark an element as editable (the contentEditable attribute). - Caret and selection. When an element is editable it should be possible to place and move a caret or create a selection in the element, using keyboard and mouse. The UI for this should not be specified, since this is platform and media dependent. There should, however, be an API for getting the position and contents of the current selection. Theoretically, all editing logic could be implemented in script on top of a sufficiently advanced caret/selection API. The IE selection API, however, is *not* flexible enough to implement the editing commands which is available in the higher-level editing interface (execCommand et.al). - Typing and deletion. Typing and deletion of characters is simple in most cases (just insert/remove a character in the DOM), but it gets complicated when crossing element boundaries, eg. pressing enter, or pressing delete when positioned before the first character in a element, or pressing delete when a selection crosses element boundaries. I dont think there is a single "right" way to handle these issues. For example, in a editor for structured data, element boundaries might be explicit, so you can place the caret between two adjacent opening tags, while in a simple comment editing box, element boundaries would be transparent. How much or how little should be specified? - Undo. Undo is also a major issue. Every editing action should preferable be undoable, however since this is really a UI feature and wont impact the actual html produced, it might be left unspecifed. The question is how transparently undo can be handled. E.g. should any scripted change to the DOM in a editable element be automatically undoable, and is this even possible? Or should undo be explicitly supported by specifying "save points" in the script? - Editing commands. In IE this is supported through the methods execCommand, queryCommandEnabled, queryCommandValue etc. Again the question is how detailed the actual DOM transformations and queries should be specified. There should be a way to customize existing commands and add new commands. Perhaps the execCommand-style interface should be replaced with something consistent with the WA1 Command interface. regards Olav Junker Kj?r From jerrett at bravenet.com Tue Apr 19 13:35:04 2005 From: jerrett at bravenet.com (Jerrett Taylor) Date: Tue, 19 Apr 2005 13:35:04 -0700 Subject: [whatwg] Editing In-Reply-To: <4265658B.2020503@olav.dk> References: <42637CF5.7020509@olav.dk> <4263AD44.4050107@edwards.name> <6.2.1.2.2.20050418174446.02abcc30@pop.mail.yahoo.com> <Pine.LNX.4.61.0504190941500.20636@dhalsim.dreamhost.com> <4265658B.2020503@olav.dk> Message-ID: <1113942904.9552.5.camel@wintermute> Something else that might be worth taking into consideration is the mangling (formating?) that the editors output as. Having similar behavrious is one thing, but if the markup output is drasticly different it can be a nightmare to try to get the end result displayed the same .. then you get different people editing the same content with different browsers, and changing a lot more than the typo they went to fix.... On Tue, 2005-04-19 at 22:09 +0200, Olav Junker Kj?r wrote: > Ian Hickson wrote: > > So, if you have proposals for Web Apps-y features, please let's hear them. > > I was mainly working on semantics stuff since that's what people were > > posting about. > > I have been thinking about HTML editing, which I think is a critical > feature. IE has it, Mozilla has a limited form (designMode but not > contentEditable), and Safari is rumored to get support for it soon. > Therefore I think its quite important to get it specified sooner rather > than later. > > The WA1 requirements includes: > > - Rich text editing: an underlying architecture upon which > domain-specific editors can be created, including things like control > over the caret position. > - A predefined HTML editor based on the rich text editing architecture. > - Text selection manipulation APIs. > > I think the initial goal of the spec should be to describe the level of > implementation in IE 6, since this is already used in lots of apps > (primarily CMS'es). However, the IE model is not very flexible, the > spec should preferably be more open and allowing customization on > different levels. > > I'm not sure about the "predefined HTML editor" requirement. Is this > just the editing logic, or is it a complete editor widget with toolbar > etc.? Something like <htmlarea> which automatically included toolbars > could be cool. Its not critical, though, since it's easy to build a > toolbar if the editing logic is available, and most app authors would > want to customize the toolbar anyway. > > Editing is a complex topic, and the question is how many details should > be specified. In IE the editing commands are specified, but lots of > editing logic is not documented - e.g what exactly happens if you press > delete on the boundary between two block level elements. On one hand, > web app authors would like consistency across browsers, on the other > hand it's would be a large undertaking to specify, and by having it > unspecified browsers could compete on having the most user friendly editing. > > Anyways, editing could be broken up into these topics: > > - A way to mark an element as editable (the contentEditable attribute). > > - Caret and selection. When an element is editable it should be possible > to place and move a caret or create a selection in the element, using > keyboard and mouse. The UI for this should not be specified, since this > is platform and media dependent. There should, however, be an API for > getting the position and contents of the current selection. > > Theoretically, all editing logic could be implemented in script on top > of a sufficiently advanced caret/selection API. The IE selection API, > however, is *not* flexible enough to implement the editing commands > which is available in the higher-level editing interface (execCommand > et.al). > > - Typing and deletion. Typing and deletion of characters is simple in > most cases (just insert/remove a character in the DOM), but it gets > complicated when crossing element boundaries, eg. pressing enter, or > pressing delete when positioned before the first character in a element, > or pressing delete when a selection crosses element boundaries. > I dont think there is a single "right" way to handle these issues. For > example, in a editor for structured data, element boundaries might be > explicit, so you can place the caret between two adjacent opening tags, > while in a simple comment editing box, element boundaries would be > transparent. How much or how little should be specified? > > - Undo. Undo is also a major issue. Every editing action should > preferable be undoable, however since this is really a UI feature and > wont impact the actual html produced, it might be left unspecifed. The > question is how transparently undo can be handled. E.g. should any > scripted change to the DOM in a editable element be automatically > undoable, and is this even possible? Or should undo be explicitly > supported by specifying "save points" in the script? > > - Editing commands. In IE this is supported through the methods > execCommand, queryCommandEnabled, queryCommandValue etc. Again the > question is how detailed the actual DOM transformations and queries > should be specified. > There should be a way to customize existing commands and add new > commands. Perhaps the execCommand-style interface should be replaced > with something consistent with the WA1 Command interface. > > > > regards > Olav Junker Kj?r From olav at olav.dk Tue Apr 19 15:02:08 2005 From: olav at olav.dk (=?ISO-8859-1?Q?Olav_Junker_Kj=E6r?=) Date: Wed, 20 Apr 2005 00:02:08 +0200 Subject: [whatwg] form charset In-Reply-To: <Pine.LNX.4.61.0504131121020.13833@dhalsim.dreamhost.com> References: <Pine.LNX.4.61.0504112004530.20461@dhalsim.dreamhost.com> <425BA7D4.5080606@annevankesteren.nl> <Pine.LNX.4.61.0504121331270.12923@dhalsim.dreamhost.com> <851c8d31050413010947decf60@mail.gmail.com> <Pine.LNX.4.61.0504130826040.9@dhalsim.dreamhost.com> <425CFB56.4040406@olav.dk> <Pine.LNX.4.61.0504131121020.13833@dhalsim.dreamhost.com> Message-ID: <42657FE0.7090805@olav.dk> I understand that the _charset_ field is needed in url encoded requests, since any encoding can be chosen through accept-charset and there is no other way to know the encoding. However, is it really the right thing to allow arbitrary encodings of GET queries in the first place? The official Right Way to encode URLs is to use Utf8, and it seems strange to allow a different encoding after the question mark. Also, URLs are supposed to be context independent, e.g. you should be able to bookmark a query, send it in a mail and so on. This might be problematic if the correct interpretation of the URL is dependent on the encoding or the accept-charset attribute on the form in the originating page. Of course we cannot just mandate utf8 always, since there is the issue of backwards compatibility. If I'm not mistaken, browsers usually urlencode forms using the same charset as the page. I we want to avoid breakage of server scripts, this should remain the default. However, the only legal value in accept-charset should be utf8 when the method is GET. regards Olav Junker Kj?r From ian at hixie.ch Tue Apr 19 16:41:21 2005 From: ian at hixie.ch (Ian Hickson) Date: Tue, 19 Apr 2005 23:41:21 +0000 (UTC) Subject: [whatwg] Re: form charset In-Reply-To: <42657FE0.7090805@olav.dk> References: <Pine.LNX.4.61.0504112004530.20461@dhalsim.dreamhost.com> <425BA7D4.5080606@annevankesteren.nl> <Pine.LNX.4.61.0504121331270.12923@dhalsim.dreamhost.com> <851c8d31050413010947decf60@mail.gmail.com> <Pine.LNX.4.61.0504130826040.9@dhalsim.dreamhost.com> <425CFB56.4040406@olav.dk> <Pine.LNX.4.61.0504131121020.13833@dhalsim.dreamhost.com> <42657FE0.7090805@olav.dk> Message-ID: <Pine.LNX.4.61.0504192336490.7599@dhalsim.dreamhost.com> On Wed, 20 Apr 2005, Olav Junker Kj?r wrote: > > I understand that the _charset_ field is needed in url encoded requests, > since any encoding can be chosen through accept-charset and there is no > other way to know the encoding. _charset_ is a horrible solution to a problem that (as you point out) should just be solved by UTF-8. However, in practice sites depend on it because IE does it, and so I included it in the spec so that other vendors had something to refer to when dealing with customer demands. > However, the only legal value in accept-charset should be utf8 when the > method is GET. Fair enough. Added. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From peter at opera.com Wed Apr 20 00:01:19 2005 From: peter at opera.com (Peter Karlsson) Date: Wed, 20 Apr 2005 08:01:19 +0100 (CET) Subject: [whatwg] Re: form charset In-Reply-To: <42657FE0.7090805@olav.dk> References: <Pine.LNX.4.61.0504112004530.20461@dhalsim.dreamhost.com> <425BA7D4.5080606@annevankesteren.nl> <Pine.LNX.4.61.0504121331270.12923@dhalsim.dreamhost.com> <851c8d31050413010947decf60@mail.gmail.com> <Pine.LNX.4.61.0504130826040.9@dhalsim.dreamhost.com> <425CFB56.4040406@olav.dk> <Pine.LNX.4.61.0504131121020.13833@dhalsim.dreamhost.com> <42657FE0.7090805@olav.dk> Message-ID: <Pine.LNX.4.62.0504200756080.4030@peter.oslo.opera.com> Olav Junker Kj?r on 2005-04-20: > However, is it really the right thing to allow arbitrary encodings of GET > queries in the first place? The official Right Way to encode URLs is to > use Utf8, and it seems strange to allow a different encoding after the > question mark. Strange as it may seem, that's the way it is currently done. HTML 4.01 says that the character encoding of any forms data should be the document character encoding, unless there is an accept-charset attribute on the form stating otherwise. This means that you do need to handle the part of the URL after the first question mark differently from the the part before it (but then again, you also do need to handle the domain name different from the path component, so this segmentation isn't that unexpected). This is usually not a problem until you find something like this embedded in a search page (where "{chinese}" is the Chinese search text you just entered in the search field): <a href="/search?q={chinese}">Next &gt;</a> And yes, this very much does exist in the wild. > Of course we cannot just mandate utf8 always, since there is the issue of > backwards compatibility. If I'm not mistaken, browsers usually urlencode > forms using the same charset as the page. Correct. > However, the only legal value in accept-charset should be utf8 when the > method is GET. UTF-8 and US-ASCII, probably. -- \\// Peter, software engineer, Opera Software The opinions expressed are my own, and not those of my employer. Please reply only by follow-ups on the mailing list. From ian at hixie.ch Wed Apr 20 02:55:47 2005 From: ian at hixie.ch (Ian Hickson) Date: Wed, 20 Apr 2005 09:55:47 +0000 (UTC) Subject: [whatwg] Re: form charset In-Reply-To: <Pine.LNX.4.62.0504200756080.4030@peter.oslo.opera.com> References: <Pine.LNX.4.61.0504112004530.20461@dhalsim.dreamhost.com> <425BA7D4.5080606@annevankesteren.nl> <Pine.LNX.4.61.0504121331270.12923@dhalsim.dreamhost.com> <851c8d31050413010947decf60@mail.gmail.com> <Pine.LNX.4.61.0504130826040.9@dhalsim.dreamhost.com> <425CFB56.4040406@olav.dk> <Pine.LNX.4.61.0504131121020.13833@dhalsim.dreamhost.com> <42657FE0.7090805@olav.dk> <Pine.LNX.4.62.0504200756080.4030@peter.oslo.opera.com> Message-ID: <Pine.LNX.4.61.0504200954170.24632@dhalsim.dreamhost.com> On Wed, 20 Apr 2005, Peter Karlsson wrote: > > > > However, the only legal value in accept-charset should be utf8 when > > the method is GET. > > UTF-8 and US-ASCII, probably. That's what I'd written, actually. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From fora at annevankesteren.nl Wed Apr 20 06:21:10 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Wed, 20 Apr 2005 15:21:10 +0200 Subject: [whatwg] Editing In-Reply-To: <4265658B.2020503@olav.dk> References: <42637CF5.7020509@olav.dk> <4263AD44.4050107@edwards.name> <6.2.1.2.2.20050418174446.02abcc30@pop.mail.yahoo.com> <Pine.LNX.4.61.0504190941500.20636@dhalsim.dreamhost.com> <4265658B.2020503@olav.dk> Message-ID: <42665746.7020005@annevankesteren.nl> Olav Junker Kj?r wrote: > Anyways, editing could be broken up into these topics: > > - A way to mark an element as editable (the contentEditable attribute). Besides your other points I think it would also be important to specify the content model the element can have and the possibility to restrict this content model. For example, you could allow any element that is allowed as a child of the particular element that has contentEditable set, but there should be a way to exclude certain elements (and perhaps attributes) if you don't want those. <em contentEditable="true" exclude="a em strong span"> -- Anne van Kesteren <http://annevankesteren.nl/> From dean at edwards.name Wed Apr 20 06:51:26 2005 From: dean at edwards.name (Dean Edwards) Date: Wed, 20 Apr 2005 14:51:26 +0100 Subject: [whatwg] Scripting Tweaks In-Reply-To: <42665746.7020005@annevankesteren.nl> References: <42637CF5.7020509@olav.dk> <4263AD44.4050107@edwards.name> <6.2.1.2.2.20050418174446.02abcc30@pop.mail.yahoo.com> <Pine.LNX.4.61.0504190941500.20636@dhalsim.dreamhost.com> <4265658B.2020503@olav.dk> <42665746.7020005@annevankesteren.nl> Message-ID: <42665E5E.6000007@edwards.name> There are some scripting tweaks I'd like to see in WA1. Apologies if these have been covered already: 1) Mozilla's DOMContentLoaded event is very handy. It fires when a node's content has been loaded and parsed (the DOM has been constructed). This is much better than the standard onload event as it doesn't wait for binary content to also load. 2) I'd like to be able to lock/disable an entire document. This is useful when submitting to hidden frames. It helps prevent users from re-submitting data before it has been processed. Ideally, I could disable an entire frameset. Better yet, I can display some kind of visual feedback so that the user knows the page is locked (e.g. hourglass, greyed out content). 3) I find myself using Microsoft's uniqueID property quite often. Although the ID attribute is supposed to provide a unique identifier, it often doesn't. We would probably need a complementary DOM method to retrieve an element by uniqueID (IE uses the "all" property). http://msdn.microsoft.com/workshop/author/dhtml/reference/properties/uniqueid.asp 4) Most DOM scripting revolves around elements. Consequently, I write lots of loops like this: for (var i = 0; i < childNodes.length; i++) { if (childNodes[i].nodeType == Node.NODE_ELEMENT) { // do something with the element } } It would be handy to have the following DOM properties: childElements firstChildElement lastChildElement previousElement nextElement parentElement handy but definitely not required. That's it for the time being. I'll post more as I think of them. -dean From ian at hixie.ch Wed Apr 20 07:13:31 2005 From: ian at hixie.ch (Ian Hickson) Date: Wed, 20 Apr 2005 14:13:31 +0000 (UTC) Subject: [whatwg] Scripting Tweaks In-Reply-To: <42665E5E.6000007@edwards.name> References: <42637CF5.7020509@olav.dk> <4263AD44.4050107@edwards.name> <6.2.1.2.2.20050418174446.02abcc30@pop.mail.yahoo.com> <Pine.LNX.4.61.0504190941500.20636@dhalsim.dreamhost.com> <4265658B.2020503@olav.dk> <42665746.7020005@annevankesteren.nl> <42665E5E.6000007@edwards.name> Message-ID: <Pine.LNX.4.61.0504201410420.5260@dhalsim.dreamhost.com> On Wed, 20 Apr 2005, Dean Edwards wrote: > > 1) Mozilla's DOMContentLoaded event is very handy. It fires when a > node's content has been loaded and parsed (the DOM has been > constructed). This is much better than the standard onload event as it > doesn't wait for binary content to also load. Good idea. > 2) I'd like to be able to lock/disable an entire document. This is > useful when submitting to hidden frames. It helps prevent users from > re-submitting data before it has been processed. Ideally, I could > disable an entire frameset. Better yet, I can display some kind of > visual feedback so that the user knows the page is locked (e.g. > hourglass, greyed out content). Not sure I follow here. I frequently post a form then keep browsing the page while the next one loads, opening links in the background. I don't want pages stopping that. :-) You can disable the submit button (indeed maybe UAs should just do that by default), would that do it? > 3) I find myself using Microsoft's uniqueID property quite often. > Although the ID attribute is supposed to provide a unique identifier, it > often doesn't. We would probably need a complementary DOM method to > retrieve an element by uniqueID (IE uses the "all" property). > > http://msdn.microsoft.com/workshop/author/dhtml/reference/properties/uniqueid.asp Interesting. What's the use case? > 4) Most DOM scripting revolves around elements. Consequently, I write > lots of loops like this: > > for (var i = 0; i < childNodes.length; i++) { > if (childNodes[i].nodeType == Node.NODE_ELEMENT) { > // do something with the element > } > } > > It would be handy to have the following DOM properties: > > childElements > firstChildElement > lastChildElement > previousElement > nextElement > parentElement > > handy but definitely not required. Way ahead of you: http://whatwg.org/specs/web-apps/current-work/#navigating But in general I think NodeIterator would be better. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From olav at olav.dk Wed Apr 20 07:15:38 2005 From: olav at olav.dk (=?UTF-8?B?T2xhdiBKdW5rZXIgS2rDpnI=?=) Date: Wed, 20 Apr 2005 16:15:38 +0200 Subject: [whatwg] Scripting Tweaks In-Reply-To: <42665E5E.6000007@edwards.name> References: <42637CF5.7020509@olav.dk> <4263AD44.4050107@edwards.name> <6.2.1.2.2.20050418174446.02abcc30@pop.mail.yahoo.com> <Pine.LNX.4.61.0504190941500.20636@dhalsim.dreamhost.com> <4265658B.2020503@olav.dk> <42665746.7020005@annevankesteren.nl> <42665E5E.6000007@edwards.name> Message-ID: <4266640A.8010703@olav.dk> Dean Edwards wrote: > It would be handy to have the following DOM properties: > > childElements > firstChildElement > lastChildElement > previousElement > nextElement > parentElement > > handy but definitely not required. I think "childElements" corresponds to IE's "children" collection (except that "children" includes comments). I agree that this is useful. "parentElement" would always be the same as "parentNode" though, won't it? regards Olav Junker Kj?r From dean at edwards.name Wed Apr 20 07:31:53 2005 From: dean at edwards.name (Dean Edwards) Date: Wed, 20 Apr 2005 15:31:53 +0100 Subject: [whatwg] Scripting Tweaks In-Reply-To: <Pine.LNX.4.61.0504201410420.5260@dhalsim.dreamhost.com> References: <42637CF5.7020509@olav.dk> <4263AD44.4050107@edwards.name> <6.2.1.2.2.20050418174446.02abcc30@pop.mail.yahoo.com> <Pine.LNX.4.61.0504190941500.20636@dhalsim.dreamhost.com> <4265658B.2020503@olav.dk> <42665746.7020005@annevankesteren.nl> <42665E5E.6000007@edwards.name> <Pine.LNX.4.61.0504201410420.5260@dhalsim.dreamhost.com> Message-ID: <426667D9.2020502@edwards.name> Ian Hickson wrote: > On Wed, 20 Apr 2005, Dean Edwards wrote: > >>1) Mozilla's DOMContentLoaded event is very handy. > > Good idea. > >>2) I'd like to be able to lock/disable an entire document. This is >>useful when submitting to hidden frames. It helps prevent users from >>re-submitting data before it has been processed. Ideally, I could >>disable an entire frameset. Better yet, I can display some kind of >>visual feedback so that the user knows the page is locked (e.g. >>hourglass, greyed out content). > > > Not sure I follow here. I frequently post a form then keep browsing the > page while the next one loads, opening links in the background. I don't > want pages stopping that. :-) > > You can disable the submit button (indeed maybe UAs should just do that > by default), would that do it? > Not really. There may be more than one submit button. Also, if the submit button has a value associated with it then that value wouldn't be submitted. The use case is a web app that submits data to a hidden iframe. This is common in JSP type backends. The hidden frame then updates the page with new data. Maybe this is just me working on projects that are designed wrong! Anyone else encounter this scenario? > > >>3) I find myself using Microsoft's uniqueID property quite often. >>Although the ID attribute is supposed to provide a unique identifier, it >>often doesn't. We would probably need a complementary DOM method to >>retrieve an element by uniqueID (IE uses the "all" property). >> >>http://msdn.microsoft.com/workshop/author/dhtml/reference/properties/uniqueid.asp > > > Interesting. What's the use case? > I can't think of one off the top of my head but I do find myself using it. It's certainly handy for passing string references around rather than object references. > > >>4) It would be handy to have the following DOM properties: >> >>childElements >>firstChildElement >>lastChildElement >>previousElement >>nextElement >>parentElement > > Way ahead of you: > > http://whatwg.org/specs/web-apps/current-work/#navigating > > But in general I think NodeIterator would be better. > Oops. Haven't looked at the spec in a while. Naughty me. ;-) -dean From dean at edwards.name Wed Apr 20 07:34:46 2005 From: dean at edwards.name (Dean Edwards) Date: Wed, 20 Apr 2005 15:34:46 +0100 Subject: [whatwg] Scripting Tweaks In-Reply-To: <4266640A.8010703@olav.dk> References: <42637CF5.7020509@olav.dk> <4263AD44.4050107@edwards.name> <6.2.1.2.2.20050418174446.02abcc30@pop.mail.yahoo.com> <Pine.LNX.4.61.0504190941500.20636@dhalsim.dreamhost.com> <4265658B.2020503@olav.dk> <42665746.7020005@annevankesteren.nl> <42665E5E.6000007@edwards.name> <4266640A.8010703@olav.dk> Message-ID: <42666886.9030807@edwards.name> Olav Junker Kj?r wrote: > "parentElement" would always be the same as "parentNode" though, won't it? > parentNode could also be a document fragment. From ian at hixie.ch Wed Apr 20 07:33:35 2005 From: ian at hixie.ch (Ian Hickson) Date: Wed, 20 Apr 2005 14:33:35 +0000 (UTC) Subject: [whatwg] Scripting Tweaks In-Reply-To: <426667D9.2020502@edwards.name> References: <42637CF5.7020509@olav.dk> <4263AD44.4050107@edwards.name> <6.2.1.2.2.20050418174446.02abcc30@pop.mail.yahoo.com> <Pine.LNX.4.61.0504190941500.20636@dhalsim.dreamhost.com> <4265658B.2020503@olav.dk> <42665746.7020005@annevankesteren.nl> <42665E5E.6000007@edwards.name> <Pine.LNX.4.61.0504201410420.5260@dhalsim.dreamhost.com> <426667D9.2020502@edwards.name> Message-ID: <Pine.LNX.4.61.0504201430160.5260@dhalsim.dreamhost.com> On Wed, 20 Apr 2005, Dean Edwards wrote: > > The use case is a web app that submits data to a hidden iframe. This is > common in JSP type backends. The hidden frame then updates the page with > new data. Maybe this is just me working on projects that are designed > wrong! Anyone else encounter this scenario? So you'd submit to a hidden <iframe> and then disable the main page? In past projects of this nature I used to create a new <iframe> each time I submitted something, so there'd be no problem submitting multiple times, it would just update the UI multiple times (and if they shouldn't, then I would prevent the submission by disabling the entry points to submitting). More recently I just spawn a new XMLHttpRequest for each submission. > I can't think of one off the top of my head but I do find myself using > it. It's certainly handy for passing string references around rather > than object references. Wouldn't object references by lighter weight? -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From dean at edwards.name Wed Apr 20 07:50:02 2005 From: dean at edwards.name (Dean Edwards) Date: Wed, 20 Apr 2005 15:50:02 +0100 Subject: [whatwg] Scripting Tweaks In-Reply-To: <Pine.LNX.4.61.0504201430160.5260@dhalsim.dreamhost.com> References: <42637CF5.7020509@olav.dk> <4263AD44.4050107@edwards.name> <6.2.1.2.2.20050418174446.02abcc30@pop.mail.yahoo.com> <Pine.LNX.4.61.0504190941500.20636@dhalsim.dreamhost.com> <4265658B.2020503@olav.dk> <42665746.7020005@annevankesteren.nl> <42665E5E.6000007@edwards.name> <Pine.LNX.4.61.0504201410420.5260@dhalsim.dreamhost.com> <426667D9.2020502@edwards.name> <Pine.LNX.4.61.0504201430160.5260@dhalsim.dreamhost.com> Message-ID: <42666C1A.7050203@edwards.name> Ian Hickson wrote: > On Wed, 20 Apr 2005, Dean Edwards wrote: > >>The use case is a web app that submits data to a hidden iframe. This is >>common in JSP type backends. The hidden frame then updates the page with >>new data. Maybe this is just me working on projects that are designed >>wrong! Anyone else encounter this scenario? > > > So you'd submit to a hidden <iframe> and then disable the main page? > Yep. The iframe then unlocks the page when submission is complete. Forgetting about iframes for a minute. This is analogous to disabling the entire application (not the chrome). Most GUI apps have this behavior to some degree. > In past projects of this nature I used to create a new <iframe> each time > I submitted something, so there'd be no problem submitting multiple times, > it would just update the UI multiple times (and if they shouldn't, then I > would prevent the submission by disabling the entry points to submitting). > > More recently I just spawn a new XMLHttpRequest for each submission. > For this particular use case there are now better techniques it's true. > >>I can't think of one off the top of my head but I do find myself using >>it. It's certainly handy for passing string references around rather >>than object references. > > > Wouldn't object references by lighter weight? > Sometimes you want to construct eval code. A string reference is the only way to do this. Here is some sample code from IE7 that disables unsuccessful form controls on submission: [code] elem[i].disabled = true; setTimeout("document.all." + elem[i].uniqueID + ".disabled=false", 1); [/code] To do the same using object references you would have to create a closure. The string version is easier. As I say, I found myself using this surprisingly often. But then I do write some pretty freaky code... ;-) -dean From ian at hixie.ch Wed Apr 20 07:52:57 2005 From: ian at hixie.ch (Ian Hickson) Date: Wed, 20 Apr 2005 14:52:57 +0000 (UTC) Subject: [whatwg] Scripting Tweaks In-Reply-To: <42666C1A.7050203@edwards.name> References: <42637CF5.7020509@olav.dk> <4263AD44.4050107@edwards.name> <6.2.1.2.2.20050418174446.02abcc30@pop.mail.yahoo.com> <Pine.LNX.4.61.0504190941500.20636@dhalsim.dreamhost.com> <4265658B.2020503@olav.dk> <42665746.7020005@annevankesteren.nl> <42665E5E.6000007@edwards.name> <Pine.LNX.4.61.0504201410420.5260@dhalsim.dreamhost.com> <426667D9.2020502@edwards.name> <Pine.LNX.4.61.0504201430160.5260@dhalsim.dreamhost.com> <42666C1A.7050203@edwards.name> Message-ID: <Pine.LNX.4.61.0504201446470.5260@dhalsim.dreamhost.com> On Wed, 20 Apr 2005, Dean Edwards wrote: > > > > So you'd submit to a hidden <iframe> and then disable the main page? > > Yep. The iframe then unlocks the page when submission is complete. > Forgetting about iframes for a minute. This is analogous to disabling > the entire application (not the chrome). Most GUI apps have this > behavior to some degree. Most GUI applications don't have the possibility of the network dying and never re-enabling the page. :-) > > > I can't think of one off the top of my head but I do find myself > > > using it. It's certainly handy for passing string references around > > > rather than object references. > > > > Wouldn't object references by lighter weight? > > Sometimes you want to construct eval code. A string reference is the > only way to do this. Here is some sample code from IE7 that disables > unsuccessful form controls on submission: > > [code] > elem[i].disabled = true; > setTimeout("document.all." + elem[i].uniqueID + ".disabled=false", 1); > [/code] > > To do the same using object references you would have to create a > closure. The string version is easier. As I say, I found myself using > this surprisingly often. But then I do write some pretty freaky code... > ;-) I beg to differ: elem[i].disabled = true; setTimeout(function () { elem[i].disabled = false }, 1); That looks a lot easier than the eval() to me. And shorter. And it will have syntax errors caught at compile time. Is there another use case? :-) -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From dean at edwards.name Wed Apr 20 08:18:09 2005 From: dean at edwards.name (Dean Edwards) Date: Wed, 20 Apr 2005 16:18:09 +0100 Subject: [whatwg] Scripting Tweaks In-Reply-To: <Pine.LNX.4.61.0504201446470.5260@dhalsim.dreamhost.com> References: <42637CF5.7020509@olav.dk> <4263AD44.4050107@edwards.name> <6.2.1.2.2.20050418174446.02abcc30@pop.mail.yahoo.com> <Pine.LNX.4.61.0504190941500.20636@dhalsim.dreamhost.com> <4265658B.2020503@olav.dk> <42665746.7020005@annevankesteren.nl> <42665E5E.6000007@edwards.name> <Pine.LNX.4.61.0504201410420.5260@dhalsim.dreamhost.com> <426667D9.2020502@edwards.name> <Pine.LNX.4.61.0504201430160.5260@dhalsim.dreamhost.com> <42666C1A.7050203@edwards.name> <Pine.LNX.4.61.0504201446470.5260@dhalsim.dreamhost.com> Message-ID: <426672B1.8020304@edwards.name> Ian Hickson wrote: > On Wed, 20 Apr 2005, Dean Edwards wrote: > >>>So you'd submit to a hidden <iframe> and then disable the main page? >> >>Yep. The iframe then unlocks the page when submission is complete. >>Forgetting about iframes for a minute. This is analogous to disabling >>the entire application (not the chrome). Most GUI apps have this >>behavior to some degree. > > > Most GUI applications don't have the possibility of the network dying and > never re-enabling the page. :-) > > True. However, if the network dies the page is not going to reflect that anyway. I've seen many users continuing to click submit because they don't get immediate feedback. A good server application will handle this of course. But this would not be an issue in a GUI which would usually disable its interface when processing. Remember, I'm talking about disabling the page /not/ the browser. > >>>>I can't think of one off the top of my head but I do find myself >>>>using it. It's certainly handy for passing string references around >>>>rather than object references. >>> >>>Wouldn't object references by lighter weight? > > I beg to differ: > > elem[i].disabled = true; > setTimeout(function () { elem[i].disabled = false }, 1); > > That looks a lot easier than the eval() to me. And shorter. And it will > have syntax errors caught at compile time. > Yes, but as I said initially, that creates a closure. This is not always the most efficient solution. Your code won't work anyway because "i" is variable. The closure would need to be more complicated to work properly. > Is there another use case? :-) > OK. You're making me work hard here. :-) If I want to build a list of elements that I've already processed: var processed = {}; for (var i in elements) { if (!processed[elements[i].uniqueID]) { process(elements[i]); processed[elements[i].uniqueID] = true; } } I can't think of another way of doing that. -dean From dolphinling at myrealbox.com Wed Apr 20 08:17:11 2005 From: dolphinling at myrealbox.com (dolphinling) Date: Wed, 20 Apr 2005 11:17:11 -0400 Subject: [whatwg] canvas Message-ID: <42667277.3020202@myrealbox.com> On Anne Van Kesteren's blog (http://annevankesteren.nl/archives/2005/04/canvas-element), Sjoerd Visscher said: > This should never have been an element. The best way to do this is to > only create a canvas interface, just like the audio interface. With > the interface you would have to choose an image in the document to > replace. Canvas has no right being an element because it doesn't do > anything without scripting. Ian Hickson replied: > Sjoerd: You shoulda said something on the WHATWG list. :-) (Unless you > did? I don't remember discussing this and can't find any outstanding > open issues on <canvas>.) > > I don't see why an element should stop being an element just because > it is only useful with scripting. I expect plenty of elements in HTML5 > to be intrinsincly linked to scripting. They're still elements. We > still win by having UAs be able to spot them a mile away. Dimitri Glazkov replied: > I guess the real question is: how canvas is pertinent to the content > of the page? > > As a way to put it in perspective: Is the photo paper part of the > picture? Sjoerd Visscher replied: > Ian: I hadn't thought of this solution before. On performance: if you > put a script element in the head of the document containing var > canvas1 = new Canvas(), UAs can initialize a canvas before actually > encountering the location in the document where the canvas will be > rendered. > > Dimitri: wrong perspective. My perspective: the canvas element is like > issuing a newspaper with blanks for the pictures, and adding an > addendum with drawing instructions. I think I agree with Sjoerd here. Changing canvas to be applied to the img/object elements instead of its own element would be much more semantic, and would also provide better fallback. -- dolphinling <http://dolphinling.net/> From olav at olav.dk Wed Apr 20 08:20:28 2005 From: olav at olav.dk (=?ISO-8859-1?Q?Olav_Junker_Kj=E6r?=) Date: Wed, 20 Apr 2005 17:20:28 +0200 Subject: [whatwg] Canvas element Message-ID: <4266733C.4060901@olav.dk> I don't completely understand the rationale for the canvas-element in WA1. It seems to overlap a lot with the use case for SVG. Of course WF2 competes directly with XForms also, but WF2 has the critical advantage that it is backwards compatible, implementable in script (which allows an IE implementation), and leverages existing knowledge. Canvas does none of this, its completely new and has to be implemented by the browser vendors. This rules out that it will ever be supported by IE, which in turn means that it will not be used on the world wide web in the foreseeable future (and most likely never). I understand that it was invented by Apple for use in platform specific applications. This makes sense, and it also makes sense that other vendors might want to support it in non-www contexts. Mozilla could use it in XUL, for example. However I dont think it belongs in a spec which is intended to cover *web* applications. SVG is at least usable in IE through a plug-in for IE, but realistically, anyone who needs interactive vector graphics on the web is going to use flash. regards Olav Junker Kj?r From dean at w3.org Wed Apr 20 10:21:10 2005 From: dean at w3.org (Dean Jackson) Date: Thu, 21 Apr 2005 03:21:10 +1000 Subject: [whatwg] Canvas element In-Reply-To: <4266733C.4060901@olav.dk> References: <4266733C.4060901@olav.dk> Message-ID: <3bcac13cfc2b82777b6cae74581e244f@w3.org> On 21 Apr 2005, at 01:20, Olav Junker Kj?r wrote: > I don't completely understand the rationale for the canvas-element in > WA1. > > It seems to overlap a lot with the use case for SVG. Of course WF2 > competes directly with XForms also, but WF2 has the critical advantage > that it is backwards compatible, implementable in script (which allows > an IE implementation), and leverages existing knowledge. > > Canvas does none of this, its completely new and has to be implemented > by the browser vendors. This rules out that it will ever be supported > by IE, which in turn means that it will not be used on the world wide > web in the foreseeable future (and most likely never). I understand > that it was invented by Apple for use in platform specific > applications. This makes sense, and it also makes sense that other > vendors might want to support it in non-www contexts. Mozilla could > use it in XUL, for example. Furthermore, it's a completely different model to the one that Web developers are used to. Why would you go against accepted practise? In HTML, you use script to modify the content of the document using the DOM. Your model is the document. If you want to change the view, then you update the model via the DOM and the view is changed accordingly. With <canvas> your document doesn't have the content. You don't update the document, you just call javascript methods. Obviously this has pretty significant accessibility problems. There is no content in <canvas> - it's just script. With document-based graphics solutions, such as SVG and even Flash, there is real content in the document. Accessibility tools can access that content and provide alternate renderings (such as voice). For example, when you draw a circle in SVG you add a <circle> element into the document. That element has attributes, such as position, radius, fill colour, a textual description, etc. All these attributes are part of the DOM and available to accessibility tools. There *really* is a circle in the document. Using canvas there isn't a circle. There isn't anything. All that has happened is that some pixels on the screen have been coloured in. Those pixels don't have any meaning. Imagine if you had to call document.write to generate your *entire* HTML document everytime you wanted to change anything? Actually even that is better than canvas. Imagine if you had to draw all the pixels of all the text, rather than put the text in the document? How do you style a canvas? You can't, because there are no elements. Well, that isn't really true. You could, in your javascript code that is doing all the drawing everytime you want an update, decide to query the CSS OM and work out, in script, whether or not any styling rules should apply. But it isn't as easy as doing: circle { fill: red; } The canvas model is what we call immediate mode drawing in the graphics community. It's popular, but suited to drawing millions and millions of objects where it is impractical to keep the content in memory. There are performance tradeoffs on the graphics side as well. Developers will have to implement code in Javascript to do the graphics management (redrawing everything all the time is usually a bad idea). I won't look forward to coding this again and again. Using a document model solution the implementation doesn't need to redraw everything. It knows what parts need updating. It can cache renderings of elements that have not changed for increased performance, The developer doesn't need to worry. Canvas exists to draw graphics. The workflow of such applications typically involves a designer drawing the artwork in an illustration tool. How would you get that illustration into canvas? It would be pretty difficult, not to mention extremely verbose and unmaintainable, to convert the illustration into Javascript commands. Compare this to a document model such as SVG where you simply export the illustration. You can reuse that illustration in multiple places, in multiple documents. I'm not against the idea completely as it has a certain set of limited areas where it is applicable. But I think there are other solutions which are better suited in the vast majority of cases, have a higher level of semantics, more in line with the accepted Web architecture and developer experience and much more accessible. I've seen the Dashboard widgets that use canvas (there isn't many of them). In every case it would be just as easy to use SVG, and much more suitable (and probably with better performance). My feeling is that canvas provides a worse alternative to a problem that is already solved by SVG (and implemented in Opera and Firefox). Or even Flash.... and believe me it hurts to say that. Dean From bfults at gmail.com Wed Apr 20 10:28:01 2005 From: bfults at gmail.com (Brad Fults) Date: Wed, 20 Apr 2005 10:28:01 -0700 Subject: [whatwg] Editing In-Reply-To: <42665746.7020005@annevankesteren.nl> References: <42637CF5.7020509@olav.dk> <4263AD44.4050107@edwards.name> <6.2.1.2.2.20050418174446.02abcc30@pop.mail.yahoo.com> <Pine.LNX.4.61.0504190941500.20636@dhalsim.dreamhost.com> <4265658B.2020503@olav.dk> <42665746.7020005@annevankesteren.nl> Message-ID: <1959130b0504201028460e8d25@mail.gmail.com> On 4/20/05, Anne van Kesteren <fora at annevankesteren.nl> wrote: > Besides your other points I think it would also be important to specify > the content model the element can have and the possibility to restrict > this content model. > ... > <em contentEditable="true" exclude="a em strong span"> Although such a selection method would be convenient, I think it makes more sense to specify such exceptions on the elements themselves, removing the need to add a new attribute. For instance, <div contenteditable="true"> <a href="#header" contenteditable="false">Header</a> <a href="#footer">Footer</a> </div> In this case the first link would be manipulated as an unbreakable unit inside the div. -- Brad Fults NeatBox From jg307 at cam.ac.uk Wed Apr 20 10:35:29 2005 From: jg307 at cam.ac.uk (James Graham) Date: Wed, 20 Apr 2005 18:35:29 +0100 Subject: [whatwg] Editing In-Reply-To: <1959130b0504201028460e8d25@mail.gmail.com> References: <42637CF5.7020509@olav.dk> <4263AD44.4050107@edwards.name> <6.2.1.2.2.20050418174446.02abcc30@pop.mail.yahoo.com> <Pine.LNX.4.61.0504190941500.20636@dhalsim.dreamhost.com> <4265658B.2020503@olav.dk> <42665746.7020005@annevankesteren.nl> <1959130b0504201028460e8d25@mail.gmail.com> Message-ID: <426692E1.9050504@cam.ac.uk> Brad Fults wrote: >On 4/20/05, Anne van Kesteren <fora at annevankesteren.nl> wrote: > > >>Besides your other points I think it would also be important to specify >>the content model the element can have and the possibility to restrict >>this content model. >>... >> <em contentEditable="true" exclude="a em strong span"> >> >> > >Although such a selection method would be convenient, I think it makes >more sense to specify such exceptions on the elements themselves, >removing the need to add a new attribute. For instance, > ><div contenteditable="true"> > <a href="#header" contenteditable="false">Header</a> > <a href="#footer">Footer</a> ></div> > >In this case the first link would be manipulated as an unbreakable >unit inside the div. > > But this alone doesn't prevent the authot _inserting_ another <a> element into the contenteditable <div>. Anne's solution does allow for such restrictions but doesn't seem to generalise well e.g. it's not clear how to prevent an attribute from being inserted on an editable element or allow for realistic restrictions like "href attributes in <a> elements must point to http:// resources". Given that, I'm not sure what of the restrictions should be managed declaratively and what should be managed via scripting, since, at some level, scripting will almost certainly be needed to ensure acceptable input. -- "But if science you say still sounds too deep, Just do what Beaker does, just shrug and 'Meep!'" -- Dr. Bunsen Honeydew & Beaker of Muppet Labs From jg307 at cam.ac.uk Wed Apr 20 10:40:46 2005 From: jg307 at cam.ac.uk (James Graham) Date: Wed, 20 Apr 2005 18:40:46 +0100 Subject: [whatwg] Canvas element In-Reply-To: <3bcac13cfc2b82777b6cae74581e244f@w3.org> References: <4266733C.4060901@olav.dk> <3bcac13cfc2b82777b6cae74581e244f@w3.org> Message-ID: <4266941E.9040301@cam.ac.uk> Dean Jackson wrote: > I've seen the Dashboard widgets that use canvas (there isn't many of > them). In every case it would be just as easy to use SVG, and much > more suitable (and probably with better performance). My feeling is > that canvas provides a worse alternative to a problem that is already > solved by SVG (and implemented in Opera and Firefox). Or even Flash.... > and believe me it hurts to say that. If <canvas> is so terrible, it presumably won't gain much traction. However it still makes sense to have a specification for it since: a) It is relatively widely implemented (2/4 of the well known UAs) and specifications help ensure that the implementations don't diverge too far b) Through specification, certain incremental improvements to concerns such as accessibility can be made (e.g. <canvas> as specified by the WHATWG allows for fallback content, which the apple implementation does not) -- "But if science you say still sounds too deep, Just do what Beaker does, just shrug and 'Meep!'" -- Dr. Bunsen Honeydew & Beaker of Muppet Labs From bfults at gmail.com Wed Apr 20 10:42:45 2005 From: bfults at gmail.com (Brad Fults) Date: Wed, 20 Apr 2005 10:42:45 -0700 Subject: [whatwg] Scripting Tweaks In-Reply-To: <426672B1.8020304@edwards.name> References: <42637CF5.7020509@olav.dk> <4265658B.2020503@olav.dk> <42665746.7020005@annevankesteren.nl> <42665E5E.6000007@edwards.name> <Pine.LNX.4.61.0504201410420.5260@dhalsim.dreamhost.com> <426667D9.2020502@edwards.name> <Pine.LNX.4.61.0504201430160.5260@dhalsim.dreamhost.com> <42666C1A.7050203@edwards.name> <Pine.LNX.4.61.0504201446470.5260@dhalsim.dreamhost.com> <426672B1.8020304@edwards.name> Message-ID: <1959130b05042010421c119da@mail.gmail.com> On 4/20/05, Dean Edwards <dean at edwards.name> wrote: > Ian Hickson wrote: > > On Wed, 20 Apr 2005, Dean Edwards wrote: > > I beg to differ: > > > > elem[i].disabled = true; > > setTimeout(function () { elem[i].disabled = false }, 1); > > > > That looks a lot easier than the eval() to me. And shorter. And it will > > have syntax errors caught at compile time. > > > > Yes, but as I said initially, that creates a closure. This is not always > the most efficient solution. Your code won't work anyway because "i" is > variable. The closure would need to be more complicated to work properly. Talking about eval() and "efficient" should set off sirens in any JS developer's mind. Using eval() requires re-compilation of the code at runtime and is very rarely ever a real solution. In addition, the proper argument to the setTimeout() function is a function reference, not a string. If you have a basic understanding of closures, they're not all that scary. Observe: function fnMakeEnabled(oEl) { return function() { oEl.disabled = false; }; } ... for (...) { elem[i].disabled = true; setTimeout(fnMakeEnabled(elem[i]), 1); } -- Brad Fults NeatBox From dolphinling at myrealbox.com Wed Apr 20 10:59:20 2005 From: dolphinling at myrealbox.com (dolphinling) Date: Wed, 20 Apr 2005 13:59:20 -0400 Subject: [whatwg] Canvas element In-Reply-To: <4266733C.4060901@olav.dk> References: <4266733C.4060901@olav.dk> Message-ID: <42669878.8060205@myrealbox.com> ? wrote: > I don't completely understand the rationale for the canvas-element in WA1. > > It seems to overlap a lot with the use case for SVG. I'm guessing here, as I haven't really followed or studied it, but I believe it's a way for authors to change bitmap images through script, as opposed to vector images that SVG provides. -- dolphinling <http://dolphinling.net/> From fora at annevankesteren.nl Wed Apr 20 11:03:33 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Wed, 20 Apr 2005 20:03:33 +0200 Subject: [whatwg] Canvas element In-Reply-To: <3bcac13cfc2b82777b6cae74581e244f@w3.org> References: <4266733C.4060901@olav.dk> <3bcac13cfc2b82777b6cae74581e244f@w3.org> Message-ID: <42669975.9050501@annevankesteren.nl> Dean Jackson wrote: > Obviously this has pretty significant accessibility problems. There > is no content in <canvas> - it's just script. With document-based > graphics solutions, such as SVG and even Flash, there is real content > in the document. Accessibility tools can access that content and > provide alternate renderings (such as voice). The content from the CANVAS element is the fallback content. <canvas> ... alternate content ... </canvas> -- Anne van Kesteren <http://annevankesteren.nl/> From fora at annevankesteren.nl Wed Apr 20 11:07:27 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Wed, 20 Apr 2005 20:07:27 +0200 Subject: [whatwg] Editing In-Reply-To: <1959130b0504201028460e8d25@mail.gmail.com> References: <42637CF5.7020509@olav.dk> <4263AD44.4050107@edwards.name> <6.2.1.2.2.20050418174446.02abcc30@pop.mail.yahoo.com> <Pine.LNX.4.61.0504190941500.20636@dhalsim.dreamhost.com> <4265658B.2020503@olav.dk> <42665746.7020005@annevankesteren.nl> <1959130b0504201028460e8d25@mail.gmail.com> Message-ID: <42669A5F.7060705@annevankesteren.nl> Brad Fults wrote: >>Besides your other points I think it would also be important to specify >>the content model the element can have and the possibility to restrict >>this content model. >>... >> <em contentEditable="true" exclude="a em strong span"> > > Although such a selection method would be convenient, I think it makes > more sense to specify such exceptions on the elements themselves, > removing the need to add a new attribute. For instance, > > <div contenteditable="true"> > <a href="#header" contenteditable="false">Header</a> > <a href="#footer">Footer</a> > </div> > > In this case the first link would be manipulated as an unbreakable > unit inside the div. This inheritance model is already in the specification. I was proposing something different but I haven't really given the syntax a thought as James Graham points out. Excluding some elements may be nice, but you probably want to restrict attributes or even element/attribute values as well. -- Anne van Kesteren <http://annevankesteren.nl/> From bkn3 at columbia.edu Wed Apr 20 11:10:48 2005 From: bkn3 at columbia.edu (Brad Neuberg) Date: Wed, 20 Apr 2005 11:10:48 -0700 Subject: [whatwg] Desired Features for Web Applications Message-ID: <6.2.1.2.2.20050420105518.02a402d0@pop.mail.yahoo.com> As someone who works with web application development, here's some of the things that would make my life easier. Also, including certain methods as part of the standard that I usually have to roll on my own would make things more standardized: * Have a document.getByPath() method that takes an XPath expression to traverse and find any nodes in the document; this would be _extremely_ powerful and would erase a huge amount of boilerplate code needed for walking over the DOM using the standard DOM traversal methods. This would have to be a fast implementation though or else it couldn't be depended on. * Have methods for traversing the DOM based on the 'class' attribute. If you have XPath type traversal this is somewhat less needed, but I find myself rolling methods in most projects to work with my document by class name. Example methods I have rolled for myself along these lines: * xGetElementsByClassName(rootElement, className, tagName) - Gets all the elements rooted at rootElement with the given className, optionally restricted by tagName * xGetSingleElementByClassName(rootElement, className, tagName) - Same as the above, but just returns one element * xGetParentElementByClassName(rootElement, className, tagName) - Navigates upwards until we hit a parent element with the given class name and optional tag name. * Formalization of innerHTML as being a standard part of creating web applications * Right now most people directly access an elements className property, without realizing that they might be clobbering multi-classed elements (i.e. something with class="class1 class2"). I usually have to create wrapper methods to ensure that this doesn't happen, such as xAddClass(target, className), xRemoveClass(target, className), and xHasClass(target, className), but it would be much nicer if the className property itself had better support for multi-classed elements. Some example possibilities of what this might look like: * someElement.className.add("someNewClass") * someElement.className.remove("SomeOldClass") * someElement.className.hasClass("someClass") * The lack of min-width and max-width in IE's CSS makes things difficult. Brad Brad Neuberg, bkn3 at columbia.edu Senior Software Engineer, Rojo Networks Weblog: http://www.codinginparadise.org ===================================================================== Check out Rojo, an RSS and Atom news aggregator that I work on. Visit http://rojo.com for more info. Feel free to ask me for an invite! Rojo is Hiring! If you're interested in RSS, Weblogs, Social Networking, Java, Open Source, etc... then come work with us at Rojo. If you recommend someone and we hire them you'll get a free iPod! See http://www.rojonetworks.com/JobsAtRojo.html. From dean at edwards.name Wed Apr 20 11:27:18 2005 From: dean at edwards.name (Dean Edwards) Date: Wed, 20 Apr 2005 19:27:18 +0100 Subject: [whatwg] Scripting Tweaks In-Reply-To: <1959130b05042010421c119da@mail.gmail.com> References: <42637CF5.7020509@olav.dk> <4265658B.2020503@olav.dk> <42665746.7020005@annevankesteren.nl> <42665E5E.6000007@edwards.name> <Pine.LNX.4.61.0504201410420.5260@dhalsim.dreamhost.com> <426667D9.2020502@edwards.name> <Pine.LNX.4.61.0504201430160.5260@dhalsim.dreamhost.com> <42666C1A.7050203@edwards.name> <Pine.LNX.4.61.0504201446470.5260@dhalsim.dreamhost.com> <426672B1.8020304@edwards.name> <1959130b05042010421c119da@mail.gmail.com> Message-ID: <42669F06.7070600@edwards.name> Brad Fults wrote: > On 4/20/05, Dean Edwards <dean at edwards.name> wrote: >>Yes, but as I said initially, that creates a closure. This is not always >>the most efficient solution. Your code won't work anyway because "i" is >>variable. The closure would need to be more complicated to work properly. > > Talking about eval() and "efficient" should set off sirens in any JS > developer's mind. Using eval() requires re-compilation of the code at > runtime and is very rarely ever a real solution. > > In addition, the proper argument to the setTimeout() function is a > function reference, not a string. If you have a basic understanding of > closures, they're not all that scary. Observe: > > function fnMakeEnabled(oEl) > { > return function() { oEl.disabled = false; }; > } > ... > for (...) > { > elem[i].disabled = true; > setTimeout(fnMakeEnabled(elem[i]), 1); > } > The issue is not about closures it is about the ability to represent an element as a unique string. This can be useful for all sorts of reasons. The example "non-scary" closure you supplied is too difficult for many programmers. Even Ian got it wrong at first and he is far from being a beginner. But, as I say, this is not the real issue. Speaking of setTimeout, where is this defined? -dean From dean at edwards.name Wed Apr 20 11:30:17 2005 From: dean at edwards.name (Dean Edwards) Date: Wed, 20 Apr 2005 19:30:17 +0100 Subject: [whatwg] Desired Features for Web Applications In-Reply-To: <6.2.1.2.2.20050420105518.02a402d0@pop.mail.yahoo.com> References: <6.2.1.2.2.20050420105518.02a402d0@pop.mail.yahoo.com> Message-ID: <42669FB9.90609@edwards.name> Brad Neuberg wrote: > * Right now most people directly access an elements className property, > without realizing that they might be clobbering multi-classed elements > (i.e. something with class="class1 class2"). I usually have to create > wrapper methods to ensure that this doesn't happen, such as > xAddClass(target, className), xRemoveClass(target, className), and > xHasClass(target, className), but it would be much nicer if the > className property itself had better support for multi-classed > elements. Some example possibilities of what this might look like: > * someElement.className.add("someNewClass") > * someElement.className.remove("SomeOldClass") > * someElement.className.hasClass("someClass") > +1 From dimitri.glazkov at gmail.com Wed Apr 20 11:28:33 2005 From: dimitri.glazkov at gmail.com (Dimitri Glazkov) Date: Wed, 20 Apr 2005 13:28:33 -0500 Subject: [whatwg] Canvas element In-Reply-To: <42669975.9050501@annevankesteren.nl> References: <4266733C.4060901@olav.dk> <3bcac13cfc2b82777b6cae74581e244f@w3.org> <42669975.9050501@annevankesteren.nl> Message-ID: <fb15ac21050420112840ff9300@mail.gmail.com> I guess I am still struggling to grasp the concepts, so please be patient with me. Isn't the main functional value behind the canvas element is the rendering context? If so, what is the significance of the canvas element itself? Take away the behavior, and you've got yourself another SPACER tag. Why not allow creating rendering context on all block-level elements? Why does the content have to contain information which block level element is meant for drawing? Also, I am having hard time the "fallback content" phrase. IMHO, it's not the fallback content, it's _the content_ of the element. The rendering context is presentation (hopefully, visual interpretation of the content), and so are all functional behaviors that come with it. However, if the rendering context is available on all block-level elements, you can do some really neat stuff, such as using the content of a block-level element as arguments for rendering. For instance, the markup of an ordered list of links and images is transformed into an image gallery. :DG< On 4/20/05, Anne van Kesteren <fora at annevankesteren.nl> wrote: > Dean Jackson wrote: > > Obviously this has pretty significant accessibility problems. There > > is no content in <canvas> - it's just script. With document-based > > graphics solutions, such as SVG and even Flash, there is real content > > in the document. Accessibility tools can access that content and > > provide alternate renderings (such as voice). > > The content from the CANVAS element is the fallback content. > > <canvas> > ... alternate content ... > </canvas> > > -- > Anne van Kesteren > <http://annevankesteren.nl/> > > From fora at annevankesteren.nl Wed Apr 20 11:25:42 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Wed, 20 Apr 2005 20:25:42 +0200 Subject: [whatwg] Desired Features for Web Applications In-Reply-To: <6.2.1.2.2.20050420105518.02a402d0@pop.mail.yahoo.com> References: <6.2.1.2.2.20050420105518.02a402d0@pop.mail.yahoo.com> Message-ID: <42669EA6.2090605@annevankesteren.nl> Brad Neuberg wrote: > * Have a document.getByPath() method that takes an XPath expression to > traverse and find any nodes in the document; this would be _extremely_ > powerful and would erase a huge amount of boilerplate code needed for > walking over the DOM using the standard DOM traversal methods. This > would have to be a fast implementation though or else it couldn't be > depended on. <http://www.w3.org/TR/DOM-Level-3-XPath/> > * Have methods for traversing the DOM based on the 'class' attribute. > If you have XPath type traversal this is somewhat less needed, but I > find myself rolling methods in most projects to work with my document by > class name. Example methods I have rolled for myself along these lines: > * xGetElementsByClassName(rootElement, className, tagName) - > Gets all the elements rooted at rootElement with the given className, > optionally restricted by tagName > * xGetSingleElementByClassName(rootElement, className, tagName) > - Same as the above, but just returns one element > * xGetParentElementByClassName(rootElement, className, tagName) > - Navigates upwards until we hit a parent element with the given class > name and optional tag name. <http://whatwg.org/specs/web-apps/current-work/#getelementsbyclass0> > * Formalization of innerHTML as being a standard part of creating web > applications <http://whatwg.org/specs/web-apps/current-work/#serialization> > * Right now most people directly access an elements className property, > without realizing that they might be clobbering multi-classed elements > (i.e. something with class="class1 class2"). I usually have to create > wrapper methods to ensure that this doesn't happen, such as > xAddClass(target, className), xRemoveClass(target, className), and > xHasClass(target, className), but it would be much nicer if the > className property itself had better support for multi-classed > elements. Some example possibilities of what this might look like: > * someElement.className.add("someNewClass") > * someElement.className.remove("SomeOldClass") > * someElement.className.hasClass("someClass") This would be useful. > * The lack of min-width and max-width in IE's CSS makes things difficult. There are hacks for this. -- Anne van Kesteren <http://annevankesteren.nl/> From fora at annevankesteren.nl Wed Apr 20 11:35:50 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Wed, 20 Apr 2005 20:35:50 +0200 Subject: [whatwg] Canvas element In-Reply-To: <fb15ac21050420112840ff9300@mail.gmail.com> References: <4266733C.4060901@olav.dk> <3bcac13cfc2b82777b6cae74581e244f@w3.org> <42669975.9050501@annevankesteren.nl> <fb15ac21050420112840ff9300@mail.gmail.com> Message-ID: <4266A106.20906@annevankesteren.nl> Dimitri Glazkov wrote: > Isn't the main functional value behind the canvas element is the > rendering context? If so, what is the significance of the canvas > element itself? Take away the behavior, and you've got yourself > another SPACER tag. Not really. Since you know what the element is for it has some additional semantics. Which can be used I guess one way or another. > Why not allow creating rendering context on all block-level elements? > Why does the content have to contain information which block level > element is meant for drawing? I'm not sure what you mean here. > Also, I am having hard time the "fallback content" phrase. IMHO, it's > not the fallback content, it's _the content_ of the element. The > rendering context is presentation (hopefully, visual interpretation of > the content), and so are all functional behaviors that come with it. No, not really. If you take a simple OBJECT element example: <object data="logo"> Company's logo </object> ... then the image itself has more semantics than the fallback content. It is much more descriptive and shows what is actually meant. The fallback content can probably never match that, nor should it. Same goes up for the image you draw for the CANVAS element imho. > However, if the rendering context is available on all block-level > elements, you can do some really neat stuff, such as using the content > of a block-level element as arguments for rendering. For instance, the > markup of an ordered list of links and images is transformed into an > image gallery. Such things are already possible using CSS and XBL. This would be abuse of the CANVAS element as noted in the beginning of the section. -- Anne van Kesteren <http://annevankesteren.nl/> From jim.ley at gmail.com Wed Apr 20 13:11:24 2005 From: jim.ley at gmail.com (Jim Ley) Date: Wed, 20 Apr 2005 21:11:24 +0100 Subject: [whatwg] Scripting Tweaks In-Reply-To: <42669F06.7070600@edwards.name> References: <42637CF5.7020509@olav.dk> <42665E5E.6000007@edwards.name> <Pine.LNX.4.61.0504201410420.5260@dhalsim.dreamhost.com> <426667D9.2020502@edwards.name> <Pine.LNX.4.61.0504201430160.5260@dhalsim.dreamhost.com> <42666C1A.7050203@edwards.name> <Pine.LNX.4.61.0504201446470.5260@dhalsim.dreamhost.com> <426672B1.8020304@edwards.name> <1959130b05042010421c119da@mail.gmail.com> <42669F06.7070600@edwards.name> Message-ID: <851c8d31050420131136409a83@mail.gmail.com> On 4/20/05, Dean Edwards <dean at edwards.name> wrote: > Speaking of setTimeout, where is this defined? Nowhere, and in fact the string method is the commoner implementation, there are a number of implementations which do not support a function reference. uniqueID is very useful, I to use it all the time for patterns such as your hashtable of objects. I certainly support the idea, and with the strong issues that closures of DOM objects have in IE, it's even more valuable. It's certainly a pattern I would rather encourage in the dabblers who are always on the team. Jim. From dimitri.glazkov at gmail.com Wed Apr 20 13:30:46 2005 From: dimitri.glazkov at gmail.com (Dimitri Glazkov) Date: Wed, 20 Apr 2005 15:30:46 -0500 Subject: [whatwg] Canvas element In-Reply-To: <4266A106.20906@annevankesteren.nl> References: <4266733C.4060901@olav.dk> <3bcac13cfc2b82777b6cae74581e244f@w3.org> <42669975.9050501@annevankesteren.nl> <fb15ac21050420112840ff9300@mail.gmail.com> <4266A106.20906@annevankesteren.nl> Message-ID: <fb15ac21050420133027fd1c60@mail.gmail.com> On 4/20/05, Anne van Kesteren <fora at annevankesteren.nl> wrote: > > Isn't the main functional value behind the canvas element is the > > rendering context? If so, what is the significance of the canvas > > element itself? Take away the behavior, and you've got yourself > > another SPACER tag. > > Not really. Since you know what the element is for it has some > additional semantics. Which can be used I guess one way or another. Ok, let me rephrase that. What is the *content* significance of the the canvas element? Semantically, it's a placeholder for some multimedia behavior, the nature of which is not know from the perspective of content. That's just begging for all kinds of abuse. Besides, in terms of progressive enhancement, you are actually defining an element in the markup that is _meant_ to regress gracelessly. Canvas element, IMHO, is part of the declarative application development school of thought, and this school of thought does not mix very well with the structural markup school of thought. As an element, canvas belongs more with the XAML people than with the XHTML people. Or maybe WA1 is indeed about declarative application development? You guys tell me. I certainly don't see how you could mix the two (and you would have to, if you strive to become HTML5) and still get away with something that is not a frankenstein. Instead of this: <canvas id="weightedTags">A neat, animated graph representation of Technorati tags, which you poor slob can't see because your agent doesn't support it.</canvas> I would rather see this: <ol id="weightedTags"> <li class="weight-3">Stuff</li> <!-- ... more tags --> </ol> with this as bound behavior: var weightedTags = document.getElementById("weightedTags"); var context = weightedTags.getContext("CanvasRenderingContext2D"); // use content of the weightedTags to draw with context // ... Does this make any sense? :DG< From sjoerd at w3future.com Wed Apr 20 14:45:39 2005 From: sjoerd at w3future.com (Sjoerd Visscher) Date: Wed, 20 Apr 2005 23:45:39 +0200 Subject: [whatwg] Canvas element In-Reply-To: <fb15ac21050420133027fd1c60@mail.gmail.com> References: <4266733C.4060901@olav.dk> <3bcac13cfc2b82777b6cae74581e244f@w3.org> <42669975.9050501@annevankesteren.nl> <fb15ac21050420112840ff9300@mail.gmail.com> <4266A106.20906@annevankesteren.nl> <fb15ac21050420133027fd1c60@mail.gmail.com> Message-ID: <4266CD83.2020308@w3future.com> Dimitri Glazkov wrote: > I would rather see this: > > <ol id="weightedTags"> > <li class="weight-3">Stuff</li> > <!-- ... more tags --> > </ol> > > with this as bound behavior: > > var weightedTags = document.getElementById("weightedTags"); > var context = weightedTags.getContext("CanvasRenderingContext2D"); > // use content of the weightedTags to draw with context > // ... > > Does this make any sense? I think it does, I really like it. It is comparable with allowing the src attribute on any element, as XHTML2 is doing. -- Sjoerd Visscher http://w3future.com/weblog/ From dolphinling at myrealbox.com Wed Apr 20 15:08:22 2005 From: dolphinling at myrealbox.com (dolphinling) Date: Wed, 20 Apr 2005 18:08:22 -0400 Subject: [whatwg] Canvas element In-Reply-To: <fb15ac21050420133027fd1c60@mail.gmail.com> References: <4266733C.4060901@olav.dk> <3bcac13cfc2b82777b6cae74581e244f@w3.org> <42669975.9050501@annevankesteren.nl> <fb15ac21050420112840ff9300@mail.gmail.com> <4266A106.20906@annevankesteren.nl> <fb15ac21050420133027fd1c60@mail.gmail.com> Message-ID: <4266D2D6.2060802@myrealbox.com> +1 I would ask what semantics canvas has. ol means the content is an ordered list, em means the content is emphasized, span and div mean the content is different, but in a way not associated with any element. Even img and object mean the content is external, (usually) with non-html semantics. At best I can see canvas being equivelant to img and object, but without the use case of the content being external. But even so, they come with default semantics (the image or whatever else is being represented in them) whereas canvas doesn't, it has to be scripted in. So am I missing something here? What semantics does canvas have? -- dolphinling <http://dolphinling.net/> From dean at edwards.name Wed Apr 20 15:18:18 2005 From: dean at edwards.name (Dean Edwards) Date: Wed, 20 Apr 2005 23:18:18 +0100 Subject: [whatwg] Canvas element In-Reply-To: <4266D2D6.2060802@myrealbox.com> References: <4266733C.4060901@olav.dk> <3bcac13cfc2b82777b6cae74581e244f@w3.org> <42669975.9050501@annevankesteren.nl> <fb15ac21050420112840ff9300@mail.gmail.com> <4266A106.20906@annevankesteren.nl> <fb15ac21050420133027fd1c60@mail.gmail.com> <4266D2D6.2060802@myrealbox.com> Message-ID: <4266D52A.1030301@edwards.name> dolphinling wrote: > +1 > > > I would ask what semantics canvas has. ol means the content is an > ordered list, em means the content is emphasized, span and div mean the > content is different, but in a way not associated with any element. Even > img and object mean the content is external, (usually) with non-html > semantics. > > At best I can see canvas being equivelant to img and object, but without > the use case of the content being external. But even so, they come with > default semantics (the image or whatever else is being represented in > them) whereas canvas doesn't, it has to be scripted in. > > So am I missing something here? What semantics does canvas have? > I see the CANVAS element as analogous to the IMG element. It has similar content (it's ultimately an image) but that content is defined differently (using script). I can certainly see the advantage of having a programmable image. One use may be for generating avatars. It would be easier to combine skin tone, hair colour, eyes etc programmatically than have thousands of images sitting on the server. I agree that it may be open to abuse but I've never been convinced that this is a good reason to disallow anything. -dean From dimitri.glazkov at gmail.com Wed Apr 20 15:40:11 2005 From: dimitri.glazkov at gmail.com (Dimitri Glazkov) Date: Wed, 20 Apr 2005 17:40:11 -0500 Subject: [whatwg] Canvas element In-Reply-To: <4266D52A.1030301@edwards.name> References: <4266733C.4060901@olav.dk> <3bcac13cfc2b82777b6cae74581e244f@w3.org> <42669975.9050501@annevankesteren.nl> <fb15ac21050420112840ff9300@mail.gmail.com> <4266A106.20906@annevankesteren.nl> <fb15ac21050420133027fd1c60@mail.gmail.com> <4266D2D6.2060802@myrealbox.com> <4266D52A.1030301@edwards.name> Message-ID: <fb15ac2105042015401d468dc1@mail.gmail.com> Oh yeah, I agree on programmable image being quite useful. The question is why only limit the capability to a special CANVAS element (whose semantics are questionable), when any block-level element could have this ability. The thing is, programmable image is with almost 100% certainty will be a presentational graphic. And presentational graphic has no place in markup. Therefore, if you utilize rendering context to create a dynamic image, you won't necessarily be doing it inside of an IMG (or CANVAS) element -- the dynamic image will be a presentational graphic for the content, expressed in markup. Take your example with eyes and hair, for instance. This is the markup that I would expect seeing instead of a canvas element (I am improvising here): <span class="photorobot"> <span class="hairColor">green</span> <span class="eyeColor">yellow</span> <span class="mouthType">puckered</span> </span> Then the behavior would be attached to span.photorobot to create a canvas and draw a mug shot. Oddly enough, I just wrote about this whole graphics and markup thing this weekend: http://glazkov.com/blog/archive/2005/04/18/430.aspx :DG< On 4/20/05, Dean Edwards <dean at edwards.name> wrote: > dolphinling wrote: > > +1 > > > > > > I would ask what semantics canvas has. ol means the content is an > > ordered list, em means the content is emphasized, span and div mean the > > content is different, but in a way not associated with any element. Even > > img and object mean the content is external, (usually) with non-html > > semantics. > > > > At best I can see canvas being equivelant to img and object, but without > > the use case of the content being external. But even so, they come with > > default semantics (the image or whatever else is being represented in > > them) whereas canvas doesn't, it has to be scripted in. > > > > So am I missing something here? What semantics does canvas have? > > > > I see the CANVAS element as analogous to the IMG element. It has similar > content (it's ultimately an image) but that content is defined > differently (using script). > > I can certainly see the advantage of having a programmable image. One > use may be for generating avatars. It would be easier to combine skin > tone, hair colour, eyes etc programmatically than have thousands of > images sitting on the server. > > I agree that it may be open to abuse but I've never been convinced that > this is a good reason to disallow anything. > > -dean > > From ian at hixie.ch Wed Apr 20 16:05:02 2005 From: ian at hixie.ch (Ian Hickson) Date: Wed, 20 Apr 2005 23:05:02 +0000 (UTC) Subject: [whatwg] Scripting Tweaks In-Reply-To: <42669F06.7070600@edwards.name> References: <42637CF5.7020509@olav.dk> <4265658B.2020503@olav.dk> <42665746.7020005@annevankesteren.nl> <42665E5E.6000007@edwards.name> <Pine.LNX.4.61.0504201410420.5260@dhalsim.dreamhost.com> <426667D9.2020502@edwards.name> <Pine.LNX.4.61.0504201430160.5260@dhalsim.dreamhost.com> <42666C1A.7050203@edwards.name> <Pine.LNX.4.61.0504201446470.5260@dhalsim.dreamhost.com> <426672B1.8020304@edwards.name> <1959130b05042010421c119da@mail.gmail.com> <42669F06.7070600@edwards.name> Message-ID: <Pine.LNX.4.61.0504202303320.22264@dhalsim.dreamhost.com> [I'll get back to the rest of the thread when I actually work on the relevant parts of the spec (I agree with the proposals in general, so there isn't much for me to add), but just jumping in here:] On Wed, 20 Apr 2005, Dean Edwards wrote: > > Speaking of setTimeout, where is this defined? http://whatwg.org/specs/web-apps/current-work/#settimeout -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From bkn3 at columbia.edu Wed Apr 20 16:08:03 2005 From: bkn3 at columbia.edu (Brad Neuberg) Date: Wed, 20 Apr 2005 16:08:03 -0700 Subject: [whatwg] Scripting Tweaks In-Reply-To: <851c8d31050420131136409a83@mail.gmail.com> References: <42637CF5.7020509@olav.dk> <42665E5E.6000007@edwards.name> <Pine.LNX.4.61.0504201410420.5260@dhalsim.dreamhost.com> <426667D9.2020502@edwards.name> <Pine.LNX.4.61.0504201430160.5260@dhalsim.dreamhost.com> <42666C1A.7050203@edwards.name> <Pine.LNX.4.61.0504201446470.5260@dhalsim.dreamhost.com> <426672B1.8020304@edwards.name> <1959130b05042010421c119da@mail.gmail.com> <42669F06.7070600@edwards.name> <851c8d31050420131136409a83@mail.gmail.com> Message-ID: <6.2.1.2.2.20050420160735.02ae2dd8@pop.mail.yahoo.com> At 01:11 PM 4/20/2005, you wrote: >On 4/20/05, Dean Edwards <dean at edwards.name> wrote: > > Speaking of setTimeout, where is this defined? > >Nowhere, and in fact the string method is the commoner implementation, >there are a number of implementations which do not support a function >reference. > >uniqueID is very useful, I to use it all the time for patterns such as >your hashtable of objects. I certainly support the idea, and with >the strong issues that closures of DOM objects have in IE, interesting, tell me more; I didn't know IE has issues with certain kinds of closures. >it's even >more valuable. It's certainly a pattern I would rather encourage in >the dabblers who are always on the team. > >Jim. Brad Neuberg, bkn3 at columbia.edu Senior Software Engineer, Rojo Networks Weblog: http://www.codinginparadise.org ===================================================================== Check out Rojo, an RSS and Atom news aggregator that I work on. Visit http://rojo.com for more info. Feel free to ask me for an invite! Rojo is Hiring! If you're interested in RSS, Weblogs, Social Networking, Java, Open Source, etc... then come work with us at Rojo. If you recommend someone and we hire them you'll get a free iPod! See http://www.rojonetworks.com/JobsAtRojo.html. From ian at hixie.ch Wed Apr 20 16:16:55 2005 From: ian at hixie.ch (Ian Hickson) Date: Wed, 20 Apr 2005 23:16:55 +0000 (UTC) Subject: [whatwg] Desired Features for Web Applications In-Reply-To: <6.2.1.2.2.20050420105518.02a402d0@pop.mail.yahoo.com> References: <6.2.1.2.2.20050420105518.02a402d0@pop.mail.yahoo.com> Message-ID: <Pine.LNX.4.61.0504202309290.22264@dhalsim.dreamhost.com> On Wed, 20 Apr 2005, Brad Neuberg wrote: > > As someone who works with web application development, here's some of > the things that would make my life easier. Also, including certain > methods as part of the standard that I usually have to roll on my own > would make things more standardized: Thanks for your input! > * Have a document.getByPath() method that takes an XPath expression to > traverse and find any nodes in the document; this would be _extremely_ > powerful and would erase a huge amount of boilerplate code needed for > walking over the DOM using the standard DOM traversal methods. This > would have to be a fast implementation though or else it couldn't be > depended on. http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html#XPathEvaluator I also hope to have a getElementsBySelector() method somewhere (either in DOM3 Style or in Web Apps, whichever I happen to edit first). > * Have methods for traversing the DOM based on the 'class' attribute. If you > have XPath type traversal this is somewhat less needed, but I find myself > rolling methods in most projects to work with my document by class name. > Example methods I have rolled for myself along these lines: > * xGetElementsByClassName(rootElement, className, tagName) - Gets all > the elements rooted at rootElement with the given className, optionally > restricted by tagName http://whatwg.org/specs/web-apps/current-work/#selecting (Can't restrict by tag name, but that seems a bit arbitrary -- why not by attribute, or whatever? At that point you're back to getElementsBySelector or some such.) > * xGetSingleElementByClassName(rootElement, className, tagName) - Same > as the above, but just returns one element Just use getElementsByClass(...)[0]. (Since the returned NodeList is live, it can be lazily evaulated and thus would be no less efficient.) > * xGetParentElementByClassName(rootElement, className, tagName) - > Navigates upwards until we hit a parent element with the given class name and > optional tag name. Interesting idea. Noted. > * Formalization of innerHTML as being a standard part of creating web > applications http://whatwg.org/specs/web-apps/current-work/#serialization > * Right now most people directly access an elements className property, > without realizing that they might be clobbering multi-classed elements (i.e. > something with class="class1 class2"). I usually have to create wrapper > methods to ensure that this doesn't happen, such as xAddClass(target, > className), xRemoveClass(target, className), and xHasClass(target, className), > but it would be much nicer if the className property itself had better support > for multi-classed elements. Some example possibilities of what this might > look like: > * someElement.className.add("someNewClass") > * someElement.className.remove("SomeOldClass") > * someElement.className.hasClass("someClass") Agreed. Noted. > * The lack of min-width and max-width in IE's CSS makes things difficult. Not much we can do about this from a spec point of view. Thanks, -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From dean at edwards.name Wed Apr 20 16:20:36 2005 From: dean at edwards.name (Dean Edwards) Date: Thu, 21 Apr 2005 00:20:36 +0100 Subject: [whatwg] Scripting Tweaks In-Reply-To: <Pine.LNX.4.61.0504202303320.22264@dhalsim.dreamhost.com> References: <42637CF5.7020509@olav.dk> <4265658B.2020503@olav.dk> <42665746.7020005@annevankesteren.nl> <42665E5E.6000007@edwards.name> <Pine.LNX.4.61.0504201410420.5260@dhalsim.dreamhost.com> <426667D9.2020502@edwards.name> <Pine.LNX.4.61.0504201430160.5260@dhalsim.dreamhost.com> <42666C1A.7050203@edwards.name> <Pine.LNX.4.61.0504201446470.5260@dhalsim.dreamhost.com> <426672B1.8020304@edwards.name> <1959130b05042010421c119da@mail.gmail.com> <42669F06.7070600@edwards.name> <Pine.LNX.4.61.0504202303320.22264@dhalsim.dreamhost.com> Message-ID: <4266E3C4.80608@edwards.name> Ian Hickson wrote: >>Speaking of setTimeout, where is this defined? > > http://whatwg.org/specs/web-apps/current-work/#settimeout > OK. That's twice in one day. I'm off to read the WA1 spec.... -dean From dean at w3.org Wed Apr 20 21:42:15 2005 From: dean at w3.org (Dean Jackson) Date: Thu, 21 Apr 2005 14:42:15 +1000 Subject: [whatwg] Canvas element In-Reply-To: <fb15ac2105042015401d468dc1@mail.gmail.com> References: <4266733C.4060901@olav.dk> <3bcac13cfc2b82777b6cae74581e244f@w3.org> <42669975.9050501@annevankesteren.nl> <fb15ac21050420112840ff9300@mail.gmail.com> <4266A106.20906@annevankesteren.nl> <fb15ac21050420133027fd1c60@mail.gmail.com> <4266D2D6.2060802@myrealbox.com> <4266D52A.1030301@edwards.name> <fb15ac2105042015401d468dc1@mail.gmail.com> Message-ID: <f34106194665e12b1258154d7e9bbd2a@w3.org> On 21 Apr 2005, at 08:40, Dimitri Glazkov wrote: > Oh yeah, I agree on programmable image being quite useful. The > question is why only limit the capability to a special CANVAS element > (whose semantics are questionable), when any block-level element could > have this ability. I agree with this, and with everything else Dimitri says in his weblog entry. I believe Sjoerd was saying a similar thing. Rather than an element itself, canvas should be a behaviour that is attached to an existing element. Dean > > The thing is, programmable image is with almost 100% certainty will be > a presentational graphic. And presentational graphic has no place in > markup. Therefore, if you utilize rendering context to create a > dynamic image, you won't necessarily be doing it inside of an IMG (or > CANVAS) element -- the dynamic image will be a presentational graphic > for the content, expressed in markup. > > Take your example with eyes and hair, for instance. This is the markup > that I would expect seeing instead of a canvas element (I am > improvising here): > > <span class="photorobot"> > <span class="hairColor">green</span> > <span class="eyeColor">yellow</span> > <span class="mouthType">puckered</span> > </span> > > Then the behavior would be attached to span.photorobot to create a > canvas and draw a mug shot. > > Oddly enough, I just wrote about this whole graphics and markup thing > this weekend: > > http://glazkov.com/blog/archive/2005/04/18/430.aspx > > :DG< > > On 4/20/05, Dean Edwards <dean at edwards.name> wrote: >> dolphinling wrote: >>> +1 >>> >>> >>> I would ask what semantics canvas has. ol means the content is an >>> ordered list, em means the content is emphasized, span and div mean >>> the >>> content is different, but in a way not associated with any element. >>> Even >>> img and object mean the content is external, (usually) with non-html >>> semantics. >>> >>> At best I can see canvas being equivelant to img and object, but >>> without >>> the use case of the content being external. But even so, they come >>> with >>> default semantics (the image or whatever else is being represented in >>> them) whereas canvas doesn't, it has to be scripted in. >>> >>> So am I missing something here? What semantics does canvas have? >>> >> >> I see the CANVAS element as analogous to the IMG element. It has >> similar >> content (it's ultimately an image) but that content is defined >> differently (using script). >> >> I can certainly see the advantage of having a programmable image. One >> use may be for generating avatars. It would be easier to combine skin >> tone, hair colour, eyes etc programmatically than have thousands of >> images sitting on the server. >> >> I agree that it may be open to abuse but I've never been convinced >> that >> this is a good reason to disallow anything. >> >> -dean >> >> From frodrish at yahoo.com Wed Apr 20 20:09:11 2005 From: frodrish at yahoo.com (Frederic Simard) Date: Wed, 20 Apr 2005 20:09:11 -0700 (PDT) Subject: [whatwg] Comment about WF2 and the readonly attribute restriction Message-ID: <20050421030911.69923.qmail@web32106.mail.mud.yahoo.com> I have some concern about restriction on the applicability of the readonly attribute on some of the form elements. The readonly attribute should be applicable to all form elements that can change. This means that the elements that should not support the readonly attribute is the output and button elements. I do not see good reasons to not support readonly attributes on checkbox, radio and select elements. >From my point of view for those elements have the same requirement in regards readonly functionality that the input element have. That is why they should also support the readonly attribute. The support of the readonly attribute for those elements will make the spec more consistent and it will also simplify the creation of a readonly version of a web page. Frederic __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From dean at edwards.name Wed Apr 20 23:41:27 2005 From: dean at edwards.name (Dean Edwards) Date: Thu, 21 Apr 2005 07:41:27 +0100 Subject: [whatwg] WA1 Section 2 In-Reply-To: <Pine.LNX.4.61.0504202309290.22264@dhalsim.dreamhost.com> References: <6.2.1.2.2.20050420105518.02a402d0@pop.mail.yahoo.com> <Pine.LNX.4.61.0504202309290.22264@dhalsim.dreamhost.com> Message-ID: <42674B17.8040804@edwards.name> Ian, I'm not sure that Section 2 of WA1 belongs in the spec. None of it seems to have much to do with web applications and it makes up 50% of the document. I know I've said this before but shouldn't this be a separate document? Wasn't that the plan for the other bits and pieces of HTML5 anyway? -dean From ian at hixie.ch Wed Apr 20 23:41:50 2005 From: ian at hixie.ch (Ian Hickson) Date: Thu, 21 Apr 2005 06:41:50 +0000 (UTC) Subject: [whatwg] Re: WA1 Section 2 In-Reply-To: <42674B17.8040804@edwards.name> References: <6.2.1.2.2.20050420105518.02a402d0@pop.mail.yahoo.com> <Pine.LNX.4.61.0504202309290.22264@dhalsim.dreamhost.com> <42674B17.8040804@edwards.name> Message-ID: <Pine.LNX.4.61.0504210638451.29809@dhalsim.dreamhost.com> On Thu, 21 Apr 2005, Dean Edwards wrote: > > I'm not sure that Section 2 of WA1 belongs in the spec. None of it seems > to have much to do with web applications and it makes up 50% of the > document. I originally would have agreed, however when making the Web Forms 2 spec one important piece of feedback I got, and something that I found quite annoying myself, was that structuring the spec as a "diff" to another spec is way more complicated than it should be. Hence in Web Apps 1 I took the alternative (but effectively equivalent) option of just making it the new version of the spec, instead of a "diff". > I know I've said this before but shouldn't this be a separate document? > Wasn't that the plan for the other bits and pieces of HTML5 anyway? Having HTML5 Core + Web Forms 2 + Web Apps 1 was the original idea, but based on my experience doing the WF2 part, I think it would be better to just merge the three into one coherent self-contained spec. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From jim.ley at gmail.com Thu Apr 21 01:28:56 2005 From: jim.ley at gmail.com (Jim Ley) Date: Thu, 21 Apr 2005 09:28:56 +0100 Subject: [whatwg] Scripting Tweaks In-Reply-To: <4266E3C4.80608@edwards.name> References: <42637CF5.7020509@olav.dk> <426667D9.2020502@edwards.name> <Pine.LNX.4.61.0504201430160.5260@dhalsim.dreamhost.com> <42666C1A.7050203@edwards.name> <Pine.LNX.4.61.0504201446470.5260@dhalsim.dreamhost.com> <426672B1.8020304@edwards.name> <1959130b05042010421c119da@mail.gmail.com> <42669F06.7070600@edwards.name> <Pine.LNX.4.61.0504202303320.22264@dhalsim.dreamhost.com> <4266E3C4.80608@edwards.name> Message-ID: <851c8d310504210128443e8d46@mail.gmail.com> On 4/21/05, Dean Edwards <dean at edwards.name> wrote: > Ian Hickson wrote: > >>Speaking of setTimeout, where is this defined? > > > > http://whatwg.org/specs/web-apps/current-work/#settimeout > > > > OK. That's twice in one day. I'm off to read the WA1 spec.... It's rather odd though, as it's been defined such that the mozilla implementation will be non-conformant, either the mozilla implementation will need to change to be conformant - breaking compatibility with existing scripts. Or mozilla will not be able to be conformant. Jim. From jim.ley at gmail.com Thu Apr 21 01:29:16 2005 From: jim.ley at gmail.com (Jim Ley) Date: Thu, 21 Apr 2005 09:29:16 +0100 Subject: [whatwg] Scripting Tweaks In-Reply-To: <6.2.1.2.2.20050420160735.02ae2dd8@pop.mail.yahoo.com> References: <42637CF5.7020509@olav.dk> <426667D9.2020502@edwards.name> <Pine.LNX.4.61.0504201430160.5260@dhalsim.dreamhost.com> <42666C1A.7050203@edwards.name> <Pine.LNX.4.61.0504201446470.5260@dhalsim.dreamhost.com> <426672B1.8020304@edwards.name> <1959130b05042010421c119da@mail.gmail.com> <42669F06.7070600@edwards.name> <851c8d31050420131136409a83@mail.gmail.com> <6.2.1.2.2.20050420160735.02ae2dd8@pop.mail.yahoo.com> Message-ID: <851c8d31050421012988c6b26@mail.gmail.com> On 4/21/05, Brad Neuberg <bkn3 at columbia.edu> wrote: > At 01:11 PM 4/20/2005, you wrote: > >uniqueID is very useful, I to use it all the time for patterns such as > >your hashtable of objects. I certainly support the idea, and with > >the strong issues that closures of DOM objects have in IE, > > interesting, tell me more; I didn't know IE has issues with certain kinds > of closures. http://jibbering.com/faq/faq_notes/closures.html#clMem Jim. From ian at hixie.ch Thu Apr 21 03:03:21 2005 From: ian at hixie.ch (Ian Hickson) Date: Thu, 21 Apr 2005 10:03:21 +0000 (UTC) Subject: [whatwg] Comment about WF2 and the readonly attribute restriction In-Reply-To: <20050421030911.69923.qmail@web32106.mail.mud.yahoo.com> References: <20050421030911.69923.qmail@web32106.mail.mud.yahoo.com> Message-ID: <Pine.LNX.4.61.0504211001240.24720@dhalsim.dreamhost.com> On Wed, 20 Apr 2005, Frederic Simard wrote: > > I have some concern about restriction on the > applicability of the readonly attribute on some of the > form elements. The readonly attribute should be > applicable to all form elements that can change. This > means that the elements that should not support the > readonly attribute is the output and button elements. > I do not see good reasons to not support readonly > attributes on checkbox, radio and select elements. >From a UI point of view, there simply is no concept of a "readonly" checkbox, radio, or select element (try to find an example in your operating system to see what I mean). What you want is <output>. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From ian at hixie.ch Thu Apr 21 04:51:08 2005 From: ian at hixie.ch (Ian Hickson) Date: Thu, 21 Apr 2005 11:51:08 +0000 (UTC) Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <4261C38D.2070405@inkedblade.net> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504062335130.20461@dhalsim.dreamhost.com> <4254CE93.4000403@lachy.id.au> <Pine.LNX.4.61.0504071037490.20461@dhalsim.dreamhost.com> <42550FFD.20201@annevankesteren.nl> <Pine.LNX.4.61.0504071050580.20461@dhalsim.dreamhost.com> <851c8d310504070356287eb4b1@mail.gmail.com> <Pine.LNX.4.61.0504071058300.20461@dhalsim.dreamhost.com> <851c8d3105040704092d099949@mail.gmail.com> <4d793a4ca44b70508a082e60c1264388@iki.fi> <851c8d3105040711474e8b3f0@mail.gmail.com> <4261C38D.2070405@inkedblade.net> Message-ID: <Pine.LNX.4.61.0504211149350.24720@dhalsim.dreamhost.com> On Sat, 16 Apr 2005, fantasai wrote: > Jim Ley wrote: > > > > Or at the very least use something that would not confuse people into > > > > thinking that it is an > > > > application of SGML or XML. > > > > > > Do you want to replace "NONSGML" with "THIS-IS-NOT-SGML"? > > > > No, I want to replace <!DOCTYPE - with something completely different, > > the whole point that anything that looks like an SGML (or XHTML) > > doctype will confuse users into thinking that it is an application of > > SGML. > > The vast majority of people out there have never heard of SGML, > and the ones who have are probably clever enough to figure out > that NONSGML means it's not SGML. Of course (ironically) they'd be wrong... NONSGML is an SGML keyword meaning that the DTD in question is not an SGML DTD, it doesn't mean that the document isn't an SGML document. I'm currently leaning towards something simpler, maybe just: <!DOCTYPE HTML5> This would still trigger standards mode (I believe; we'd have to check, of course) and would be a lot easier to remember. But I won't be looking at this in detail for some time (probably not until I start working on the "Parsing" section). -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From dimitri.glazkov at gmail.com Thu Apr 21 05:26:01 2005 From: dimitri.glazkov at gmail.com (Dimitri Glazkov) Date: Thu, 21 Apr 2005 07:26:01 -0500 Subject: [whatwg] Some likeness of DOM Session scope Message-ID: <fb15ac210504210526262c6bc@mail.gmail.com> IMHO, one of the biggest obstacles for growth in Web applications development is the fact that the entire application lives in the scope of one request. Once next request is made, the browser essentially "forgets" everything and the whole new cycle of loading, initialization, and binding begins. Yes, you can simulate the effect of retaining scope across several requests with XmlHttpRequest and even frames, but it's the "simulate" part that bothers me. "Simulate" means "hacking", and "hacking" inevitably means inconsistent and/or incomplete implementations. It seems that a future Web Application platform should have this type of functionality readily available. What do you think about the idea of having some likeness of a scope that's inherently wider than request? Consider this example (improvising here): Request 1: function SyntaxHighlighter() { // code goes here to provide on-the-fly beautification of code } document.session.highlighter = new SyntaxHighlighter(); Request 2+: if (document.session.highighter) { var codeSections = document.getElementsBySelector("pre > code") for(var i = 0; i < codeSections.length; i++) { SyntaxHighlighter.apply(codeSections[i]); } } Is this a totally asinine idea? :DG< From ian at hixie.ch Thu Apr 21 06:07:45 2005 From: ian at hixie.ch (Ian Hickson) Date: Thu, 21 Apr 2005 13:07:45 +0000 (UTC) Subject: [whatwg] Some likeness of DOM Session scope In-Reply-To: <fb15ac210504210526262c6bc@mail.gmail.com> References: <fb15ac210504210526262c6bc@mail.gmail.com> Message-ID: <Pine.LNX.4.61.0504211259410.24720@dhalsim.dreamhost.com> On Thu, 21 Apr 2005, Dimitri Glazkov wrote: > > It seems that a future Web Application platform should have this type of > functionality readily available. What do you think about the idea of > having some likeness of a scope that's inherently wider than request? I entirely agree that this is a good idea. I'm not 100% sure what a good way to do this is. Some sort of per-domain, per-window (tab, in modern browsers) object that is shared across pages from that domain is what I had in mind, but I'm not sure what the object should do. I was considering having it be a DOM (so basically you stored data in an XML document), but that seems unwieldly. I also considered just a list of strings, but that seems too unstructured. An object containing object references wouldn't really work other, because there's no way to serialise it (so that it lasts longer than the current browser session, e.g.). Anyone have any concrete proposals? :-) -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From kornel at ldreams.net Thu Apr 21 07:13:01 2005 From: kornel at ldreams.net (Kornel Lesinski) Date: Thu, 21 Apr 2005 15:13:01 +0100 Subject: [whatwg] Some likeness of DOM Session scope In-Reply-To: <Pine.LNX.4.61.0504211259410.24720@dhalsim.dreamhost.com> References: <fb15ac210504210526262c6bc@mail.gmail.com> <Pine.LNX.4.61.0504211259410.24720@dhalsim.dreamhost.com> Message-ID: <op.spk5rziu602458@idlaptop02.ideadesigners.local> On Thu, 21 Apr 2005 14:07:45 +0100, Ian Hickson <ian at hixie.ch> wrote: > Anyone have any concrete proposals? :-) Persistent associative array that stores anything*, just like session object in PHP and ASP. This might be called: document.localCookies Scope would be just like in HTTP cookies, but these wouldn't be sent to the server and wouldn't have length limit. To store object: document.localCookies['key_name'].value = anything; To retrieve object: anything = document.localCookies['key_name'].value; * only /Storable/ objects should be allowed. Storable objects are the ones that implement "sleep" and "wake" methods that (un)serialize them. That would be save/load XML for DOMNodes, toString/parseInt/etc for basic types. -- regards, Kornel Lesinski From olav at olav.dk Thu Apr 21 07:49:59 2005 From: olav at olav.dk (=?ISO-8859-1?Q?Olav_Junker_Kj=E6r?=) Date: Thu, 21 Apr 2005 16:49:59 +0200 Subject: [whatwg] Some likeness of DOM Session scope In-Reply-To: <Pine.LNX.4.61.0504211259410.24720@dhalsim.dreamhost.com> References: <fb15ac210504210526262c6bc@mail.gmail.com> <Pine.LNX.4.61.0504211259410.24720@dhalsim.dreamhost.com> Message-ID: <4267BD97.60707@olav.dk> Ian Hickson wrote: > I entirely agree that this is a good idea. I'm not 100% sure what a good > way to do this is. Some sort of per-domain, per-window (tab, in modern > browsers) object that is shared across pages from that domain is what I > had in mind, but I'm not sure what the object should do. I was considering > having it be a DOM (so basically you stored data in an XML document), but > that seems unwieldly. I also considered just a list of strings, but that > seems too unstructured. An object containing object references wouldn't > really work other, because there's no way to serialise it (so that it > lasts longer than the current browser session, e.g.). > > Anyone have any concrete proposals? :-) How about a javascript structure which may be arbitrary deep, but only may contain javascript built-in types (Object, Array, string, number, bool, Date etc.)? This would be very easy to use, although it might be confusing for authors that you can save a string but not e.g. a textnode. There is some larger issues here, though. A web page with an URL should be "reentrant", e.g. if you bookmark it and visit it later, it should work. Pages which is dependent on info generated on other pages should either have that info encoded in the URL, or be accessed through a POST request. In the first case, the context is preserved, in the second the page can't (easily) be bookmarked and revisited, since browsers treats pages which is the result of a POST request differently, which avoids the problem of the missing context. Ordinary web sites are usually "stateless" in the sense that you can visit the pages in any order. Stateful transactions (like payment) are usually handled as a sequence of POST's. Web applications on the other hand are usually very stateful, but precisely because they are usually confined to a single page with a single URL, you dont get the "reentrance" problem. You can only bookmark the initial state, which is safe. If an app spans several pages with distinct URL's, but is stateful in such a way that pages are dependent on local state generated on earlier pages, it gets very fragile. We might start to see lots of "You seem to be visiting this page out of context" messages on Google :-) Thats not to say that the proposal is a bad idea. I see some very strong use cases for it. For example, I might have written half a page of text in a CMS, but when i hit "save", I'm informed that the network connection is broken, and it wont get fixed before monday. In this case it would be very nice if the client side script could save data in a persistent local store - only accesible to this page, of course. regards Olav Junker Kj?r From mint at franklinmint.fm Thu Apr 21 14:37:14 2005 From: mint at franklinmint.fm (Robert Sayre) Date: Thu, 21 Apr 2005 17:37:14 -0400 Subject: [whatwg] Some likeness of DOM Session scope In-Reply-To: <4267BD97.60707@olav.dk> References: <fb15ac210504210526262c6bc@mail.gmail.com> <Pine.LNX.4.61.0504211259410.24720@dhalsim.dreamhost.com> <4267BD97.60707@olav.dk> Message-ID: <42681D0A.1020807@franklinmint.fm> Olav Junker Kj?r wrote: > Ian Hickson wrote: >> Anyone have any concrete proposals? :-) http://www.crockford.com/JSON/index.html ? > If an app spans several pages with distinct URL's, but is stateful in > such a way that pages are dependent on local state generated on earlier > pages, it gets very fragile. We might start to see lots of "You seem to > be visiting this page out of context" messages on Google :-) Might be nice to add the ability to tie the objects to a given transaction by associating a POE URI with them: http://www.ietf.org/internet-drafts/draft-nottingham-http-poe-00.txt Robert Sayre From bradneuberg at yahoo.com Thu Apr 21 20:47:09 2005 From: bradneuberg at yahoo.com (Brad Neuberg) Date: Thu, 21 Apr 2005 20:47:09 -0700 (PDT) Subject: [whatwg] Some likeness of DOM Session scope In-Reply-To: 6667 Message-ID: <20050422034709.21654.qmail@web60709.mail.yahoo.com> Something along these lines that would be useful is control over what goes into the history (and what affects the back button) and what _doesn't_. Alot of times I shoot off RPC type functions using XmlHttpRequest that I _dont_ want in the history, since they wouldnt be appropriate for the back button, and other times I want the back button to be affected. Brad --- Dimitri Glazkov <dimitri.glazkov at gmail.com> wrote: > IMHO, one of the biggest obstacles for growth in Web > applications > development is the fact that the entire application > lives in the scope > of one request. > > Once next request is made, the browser essentially > "forgets" > everything and the whole new cycle of loading, > initialization, and > binding begins. > > Yes, you can simulate the effect of retaining scope > across several > requests with XmlHttpRequest and even frames, but > it's the "simulate" > part that bothers me. "Simulate" means "hacking", > and "hacking" > inevitably means inconsistent and/or incomplete > implementations. > > It seems that a future Web Application platform > should have this type > of functionality readily available. What do you > think about the idea > of having some likeness of a scope that's inherently > wider than > request? > > Consider this example (improvising here): > > Request 1: > > function SyntaxHighlighter() > { > // code goes here to provide on-the-fly > beautification of code > } > document.session.highlighter = new > SyntaxHighlighter(); > > Request 2+: > > if (document.session.highighter) > { > var codeSections = > document.getElementsBySelector("pre > code") > for(var i = 0; i < codeSections.length; i++) > { > SyntaxHighlighter.apply(codeSections[i]); > } > } > > Is this a totally asinine idea? > > :DG< > From bradneuberg at yahoo.com Thu Apr 21 22:24:26 2005 From: bradneuberg at yahoo.com (Brad Neuberg) Date: Thu, 21 Apr 2005 22:24:26 -0700 (PDT) Subject: [whatwg] Canvas element In-Reply-To: 6667 Message-ID: <20050422052426.52574.qmail@web60701.mail.yahoo.com> +1 on the canvas API being able to be applied to any block-level element; this would be a very powerful capability, and its true that a specialized CANVAS element doesn't really mean anything in terms of semantic markup. Can we also apply this API to inline elements? As a matter of fact, why should the 'display' property affect this at all? I might want to use an absolute or relative positioned block as a surface to draw on. It doesn't seem like whether it is inline, block, fixed, absolute, etc. is what influences whether it is a drawable surface. Should we specify in CSS that some element is "drawable"? This sounds like a straightforward way: someElement { drawable: true; } This then tells the browser to initialize the canvas API on this element and to expect that its drawing surface might be updated through script. Sure seems like an appropriate place to put this, since it is a style-like property that one would attach to with CSS. One issue with this is that the actual canvas API calls would happen with JavaScript, which is seperate from the CSS. So another alternative for this would be that any element can have the canvas API on it, without having to go through CSS. Instead, you either start the canvas API up through JavaScript with an explicit method or attribute call: var someElement = document.getElementById("someElement"); // alternative 1 someElement.setDrawable(true); // alternative 2 - these are very similar from // javascripts perspective someElement.drawable = true; // alternative 3 - you just start using the canvas API // on any element someElement.canvas.moveTo(33); Does it affect performance that the rendering engine won't know before hand that some elements can be arbitrarily drawn on and others can't? Also, how does the canvas API on an element's surface affect other CSS properties, like 'overflow'? Brad Neuberg --- Dean Jackson <dean at w3.org> wrote: > On 21 Apr 2005, at 08:40, Dimitri Glazkov wrote: > > > Oh yeah, I agree on programmable image being quite > useful. The > > question is why only limit the capability to a > special CANVAS element > > (whose semantics are questionable), when any > block-level element could > > have this ability. > > I agree with this, and with everything else Dimitri > says > in his weblog entry. I believe Sjoerd was saying a > similar > thing. > > Rather than an element itself, canvas should be a > behaviour that > is attached to an existing element. > > Dean > > > > > The thing is, programmable image is with almost > 100% certainty will be > > a presentational graphic. And presentational > graphic has no place in > > markup. Therefore, if you utilize rendering > context to create a > > dynamic image, you won't necessarily be doing it > inside of an IMG (or > > CANVAS) element -- the dynamic image will be a > presentational graphic > > for the content, expressed in markup. > > > > Take your example with eyes and hair, for > instance. This is the markup > > that I would expect seeing instead of a canvas > element (I am > > improvising here): > > > > <span class="photorobot"> > > <span class="hairColor">green</span> > > <span class="eyeColor">yellow</span> > > <span class="mouthType">puckered</span> > > </span> > > > > Then the behavior would be attached to > span.photorobot to create a > > canvas and draw a mug shot. > > > > Oddly enough, I just wrote about this whole > graphics and markup thing > > this weekend: > > > > > http://glazkov.com/blog/archive/2005/04/18/430.aspx > > > > :DG< > > > > On 4/20/05, Dean Edwards <dean at edwards.name> > wrote: > >> dolphinling wrote: > >>> +1 > >>> > >>> > >>> I would ask what semantics canvas has. ol means > the content is an > >>> ordered list, em means the content is > emphasized, span and div mean > >>> the > >>> content is different, but in a way not > associated with any element. > >>> Even > >>> img and object mean the content is external, > (usually) with non-html > >>> semantics. > >>> > >>> At best I can see canvas being equivelant to img > and object, but > >>> without > >>> the use case of the content being external. But > even so, they come > >>> with > >>> default semantics (the image or whatever else is > being represented in > >>> them) whereas canvas doesn't, it has to be > scripted in. > >>> > >>> So am I missing something here? What semantics > does canvas have? > >>> > >> > >> I see the CANVAS element as analogous to the IMG > element. It has > >> similar > >> content (it's ultimately an image) but that > content is defined > >> differently (using script). > >> > >> I can certainly see the advantage of having a > programmable image. One > >> use may be for generating avatars. It would be > easier to combine skin > >> tone, hair colour, eyes etc programmatically than > have thousands of > >> images sitting on the server. > >> > >> I agree that it may be open to abuse but I've > never been convinced > >> that > >> this is a good reason to disallow anything. > >> > >> -dean > >> > >> > > From hyatt at apple.com Thu Apr 21 23:16:58 2005 From: hyatt at apple.com (Dave Hyatt) Date: Thu, 21 Apr 2005 23:16:58 -0700 Subject: [whatwg] Canvas element In-Reply-To: <20050422052426.52574.qmail@web60701.mail.yahoo.com> References: <20050422052426.52574.qmail@web60701.mail.yahoo.com> Message-ID: <47885CCE-8A49-452F-95C8-AEB2F041F9D5@apple.com> We have been thinking about this feature for WebCore. In addition to primitive drawing operations, you really want higher level programmatic drawing control as well. For example, it would be interesting to be able to programmatically draw the background of your element, the border of your element, the outline of your element, etc., knowing that the image would be drawn in the appropriate z-index relative to the other components of your element (or children). For example, it would be particularly convenient to have APIs like "drawCSSBorderLine" that could automatically draw a line using the correct CSS-specified border style, or a method like "drawCSSBackground" that could be used to tile the background image into a specified rect. In addition of course to custom painting is the need to allow control over layout itself, so that people can easily define their own custom layouts. It is not clear to me that this work should be standardized, however, as browsers may need to come up with somewhat engine-specific solutions based off how they happen to implement these concepts (and the tie-in to native code like Objective-C may result in differences as well). dave (hyatt at apple.com) On Apr 21, 2005, at 10:24 PM, Brad Neuberg wrote: > +1 on the canvas API being able to be applied to any > block-level element; this would be a very powerful > capability, and its true that a specialized CANVAS > element doesn't really mean anything in terms of > semantic markup. > > Can we also apply this API to inline elements? As a > matter of fact, why should the 'display' property > affect this at all? I might want to use an absolute or > relative positioned block as a surface to draw on. It > doesn't seem like whether it is inline, block, fixed, > absolute, etc. is what influences whether it is a > drawable surface. > > Should we specify in CSS that some element is > "drawable"? This sounds like a straightforward way: > > someElement { > drawable: true; > } > > This then tells the browser to initialize the canvas > API on this element and to expect that its drawing > surface might be updated through script. > > Sure seems like an appropriate place to put this, > since it is a style-like property that one would > attach to with CSS. > > One issue with this is that the actual canvas API > calls would happen with JavaScript, which is seperate > from the CSS. So another alternative for this would > be that any element can have the canvas API on it, > without having to go through CSS. Instead, you either > start the canvas API up through JavaScript with an > explicit method or attribute call: > > var someElement = > document.getElementById("someElement"); > > // alternative 1 > someElement.setDrawable(true); > > // alternative 2 - these are very similar from > // javascripts perspective > someElement.drawable = true; > > // alternative 3 - you just start using the canvas API > // on any element > someElement.canvas.moveTo(33); > > Does it affect performance that the rendering engine > won't know before hand that some elements can be > arbitrarily drawn on and others can't? Also, how does > the canvas API on an element's surface affect other > CSS properties, like 'overflow'? > > Brad Neuberg > > --- Dean Jackson <dean at w3.org> wrote: > >> On 21 Apr 2005, at 08:40, Dimitri Glazkov wrote: >> >> >>> Oh yeah, I agree on programmable image being quite >>> >> useful. The >> >>> question is why only limit the capability to a >>> >> special CANVAS element >> >>> (whose semantics are questionable), when any >>> >> block-level element could >> >>> have this ability. >>> >> >> I agree with this, and with everything else Dimitri >> says >> in his weblog entry. I believe Sjoerd was saying a >> similar >> thing. >> >> Rather than an element itself, canvas should be a >> behaviour that >> is attached to an existing element. >> >> Dean >> >> >>> >>> The thing is, programmable image is with almost >>> >> 100% certainty will be >> >>> a presentational graphic. And presentational >>> >> graphic has no place in >> >>> markup. Therefore, if you utilize rendering >>> >> context to create a >> >>> dynamic image, you won't necessarily be doing it >>> >> inside of an IMG (or >> >>> CANVAS) element -- the dynamic image will be a >>> >> presentational graphic >> >>> for the content, expressed in markup. >>> >>> Take your example with eyes and hair, for >>> >> instance. This is the markup >> >>> that I would expect seeing instead of a canvas >>> >> element (I am >> >>> improvising here): >>> >>> <span class="photorobot"> >>> <span class="hairColor">green</span> >>> <span class="eyeColor">yellow</span> >>> <span class="mouthType">puckered</span> >>> </span> >>> >>> Then the behavior would be attached to >>> >> span.photorobot to create a >> >>> canvas and draw a mug shot. >>> >>> Oddly enough, I just wrote about this whole >>> >> graphics and markup thing >> >>> this weekend: >>> >>> >>> >> http://glazkov.com/blog/archive/2005/04/18/430.aspx >> >>> >>> :DG< >>> >>> On 4/20/05, Dean Edwards <dean at edwards.name> >>> >> wrote: >> >>>> dolphinling wrote: >>>> >>>>> +1 >>>>> >>>>> >>>>> I would ask what semantics canvas has. ol means >>>>> >> the content is an >> >>>>> ordered list, em means the content is >>>>> >> emphasized, span and div mean >> >>>>> the >>>>> content is different, but in a way not >>>>> >> associated with any element. >> >>>>> Even >>>>> img and object mean the content is external, >>>>> >> (usually) with non-html >> >>>>> semantics. >>>>> >>>>> At best I can see canvas being equivelant to img >>>>> >> and object, but >> >>>>> without >>>>> the use case of the content being external. But >>>>> >> even so, they come >> >>>>> with >>>>> default semantics (the image or whatever else is >>>>> >> being represented in >> >>>>> them) whereas canvas doesn't, it has to be >>>>> >> scripted in. >> >>>>> >>>>> So am I missing something here? What semantics >>>>> >> does canvas have? >> >>>>> >>>>> >>>> >>>> I see the CANVAS element as analogous to the IMG >>>> >> element. It has >> >>>> similar >>>> content (it's ultimately an image) but that >>>> >> content is defined >> >>>> differently (using script). >>>> >>>> I can certainly see the advantage of having a >>>> >> programmable image. One >> >>>> use may be for generating avatars. It would be >>>> >> easier to combine skin >> >>>> tone, hair colour, eyes etc programmatically than >>>> >> have thousands of >> >>>> images sitting on the server. >>>> >>>> I agree that it may be open to abuse but I've >>>> >> never been convinced >> >>>> that >>>> this is a good reason to disallow anything. >>>> >>>> -dean >>>> >>>> >>>> >> >> > From hsivonen at iki.fi Fri Apr 22 07:21:48 2005 From: hsivonen at iki.fi (Henri Sivonen) Date: Fri, 22 Apr 2005 17:21:48 +0300 Subject: [whatwg] Canvas element In-Reply-To: <4266D2D6.2060802@myrealbox.com> References: <4266733C.4060901@olav.dk> <3bcac13cfc2b82777b6cae74581e244f@w3.org> <42669975.9050501@annevankesteren.nl> <fb15ac21050420112840ff9300@mail.gmail.com> <4266A106.20906@annevankesteren.nl> <fb15ac21050420133027fd1c60@mail.gmail.com> <4266D2D6.2060802@myrealbox.com> Message-ID: <e06e01ec2cb663550835cdd78c2168f4@iki.fi> On Apr 21, 2005, at 01:08, dolphinling wrote: > What semantics does canvas have? It has the semantics of a rendering context to which scripts can draw. -- Henri Sivonen hsivonen at iki.fi http://hsivonen.iki.fi/ From judell at gmail.com Fri Apr 22 07:40:56 2005 From: judell at gmail.com (Jon Udell) Date: Fri, 22 Apr 2005 10:40:56 -0400 Subject: [whatwg] Re: Radio UserLand: Mail from Ian Hickson In-Reply-To: <200504221017.j3MAHXPn006119@bigrack.userland.com> References: <200504221017.j3MAHXPn006119@bigrack.userland.com> Message-ID: <94a59c7d0504220740638f95fd@mail.gmail.com> On 4/22/05, radio at spam.hixie.ch <radio at spam.hixie.ch> wrote: > You write "If JavaScript is going to be an appropriate technology of intermediation, would > it make sense for it to offer an easy way to issue a non-interactive HTTP POST?" > > Yes, it would. I urge you to send your suggestions to whatwg at whatwg.org, where > we're discussing this kind of thing and writing specs that browsers will be implementing. OK. Then I do propose an easy way to issue a non-interactive HTTP POST. As to how, I'm probably the wrong guy to propose something. My first thought was that, if a list were assigned to location.href, then the base URL would be the first element and the URL-encoded data the second. This maps to how curl and Python work. But a problem here is that POST is only implicit, so what about PUT, DELETE, etc.? Perhaps one could make a case that POST is important enough to be included in the most basic idiom, along with GET, and for other stuff there's an advanced idiom? - Jon From dimitri.glazkov at gmail.com Fri Apr 22 07:58:43 2005 From: dimitri.glazkov at gmail.com (Dimitri Glazkov) Date: Fri, 22 Apr 2005 09:58:43 -0500 Subject: [whatwg] Some likeness of DOM Session scope In-Reply-To: <20050422034709.21654.qmail@web60709.mail.yahoo.com> References: <20050422034709.21654.qmail@web60709.mail.yahoo.com> Message-ID: <fb15ac210504220758504b6da6@mail.gmail.com> At first, I envisioned a fairly simplistic (perhaps naiive would be a better word) functionality: An initially empty JS object, which survives from request to request until the browser window is closed. This object is implicitly instantiated once per session for each domain, and is the same across all windows/tabs. Being the associative array that it is, the object can be populated by whatever data or functions that need to survive throughout the session. Obviously, you can see some serious potential security, memory usage, and just plain compartmentalization issues here. Then, after reading the thread, it seemed that maybe I am looking at the problem from the wrong end: Maybe it would a better idea to introduce functionality that standardizes a usability-perfect simulation of a request within the same page? I think that is what Brad is writing about. In other words, instead of trying to come up with a vehicle that allows you to pass data across independent requests, devise ways to: * identify (create) state of an application inside of a page * communicate it to the browser's address bar and history navigation * restore the state when the browser asks for it (via back/forward or bookmark). With this in place, history can be manipulated at will and a transparent user experience of browsing multiple pages can be created within the same actual page. I believe Microsoft has toyed with this concept in IE5 by introducing #default#saveFavorite and #default#saveHistory behaviors. Or maybe it's both: a serializable/deserializable persistence mechanism across independents requests and the way to manipulate the history. What do you guys think? :DG< On 4/21/05, Brad Neuberg <bradneuberg at yahoo.com> wrote: > Something along these lines that would be useful is > control over what goes into the history (and what > affects the back button) and what _doesn't_. Alot of > times I shoot off RPC type functions using > XmlHttpRequest that I _dont_ want in the history, > since they wouldnt be appropriate for the back button, > and other times I want the back button to be affected. > > Brad > > --- Dimitri Glazkov <dimitri.glazkov at gmail.com> wrote: > > IMHO, one of the biggest obstacles for growth in Web > > applications > > development is the fact that the entire application > > lives in the scope > > of one request. > > > > Once next request is made, the browser essentially > > "forgets" > > everything and the whole new cycle of loading, > > initialization, and > > binding begins. > > > > Yes, you can simulate the effect of retaining scope > > across several > > requests with XmlHttpRequest and even frames, but > > it's the "simulate" > > part that bothers me. "Simulate" means "hacking", > > and "hacking" > > inevitably means inconsistent and/or incomplete > > implementations. > > > > It seems that a future Web Application platform > > should have this type > > of functionality readily available. What do you > > think about the idea > > of having some likeness of a scope that's inherently > > wider than > > request? > > > > Consider this example (improvising here): > > > > Request 1: > > > > function SyntaxHighlighter() > > { > > // code goes here to provide on-the-fly > > beautification of code > > } > > document.session.highlighter = new > > SyntaxHighlighter(); > > > > Request 2+: > > > > if (document.session.highighter) > > { > > var codeSections = > > document.getElementsBySelector("pre > code") > > for(var i = 0; i < codeSections.length; i++) > > { > > SyntaxHighlighter.apply(codeSections[i]); > > } > > } > > > > Is this a totally asinine idea? > > > > :DG< > > > From jim.ley at gmail.com Fri Apr 22 08:00:26 2005 From: jim.ley at gmail.com (Jim Ley) Date: Fri, 22 Apr 2005 16:00:26 +0100 Subject: [whatwg] Canvas element In-Reply-To: <e06e01ec2cb663550835cdd78c2168f4@iki.fi> References: <4266733C.4060901@olav.dk> <3bcac13cfc2b82777b6cae74581e244f@w3.org> <42669975.9050501@annevankesteren.nl> <fb15ac21050420112840ff9300@mail.gmail.com> <4266A106.20906@annevankesteren.nl> <fb15ac21050420133027fd1c60@mail.gmail.com> <4266D2D6.2060802@myrealbox.com> <e06e01ec2cb663550835cdd78c2168f4@iki.fi> Message-ID: <851c8d310504220800549069a4@mail.gmail.com> On 4/22/05, Henri Sivonen <hsivonen at iki.fi> wrote: > On Apr 21, 2005, at 01:08, dolphinling wrote: > > > What semantics does canvas have? > > It has the semantics of a rendering context to which scripts can draw. So it only has presentational semantics, so should be in a rendering language like CSS? Jim. From robmientjes at gmail.com Fri Apr 22 08:09:37 2005 From: robmientjes at gmail.com (Rob Mientjes) Date: Fri, 22 Apr 2005 17:09:37 +0200 Subject: [whatwg] Canvas element In-Reply-To: <851c8d310504220800549069a4@mail.gmail.com> References: <4266733C.4060901@olav.dk> <3bcac13cfc2b82777b6cae74581e244f@w3.org> <42669975.9050501@annevankesteren.nl> <fb15ac21050420112840ff9300@mail.gmail.com> <4266A106.20906@annevankesteren.nl> <fb15ac21050420133027fd1c60@mail.gmail.com> <4266D2D6.2060802@myrealbox.com> <e06e01ec2cb663550835cdd78c2168f4@iki.fi> <851c8d310504220800549069a4@mail.gmail.com> Message-ID: <e8e97f9f0504220809596db2db@mail.gmail.com> On 4/22/05, Jim Ley <jim.ley at gmail.com> wrote: > > It has the semantics of a rendering context to which scripts can draw. > > So it only has presentational semantics, so should be in a rendering > language like CSS? That's the endless quandry. 'CSS can only do so much!' 'Markup should be about content, not presentation.' Maybe someone else can think of a suitable description that doesn't get in the way of anti-presentational markup purists. -- Cheers, Rob. http://zooibaai.nl | http://digital-proof.org | http://chancecube.com From dean at edwards.name Fri Apr 22 08:27:27 2005 From: dean at edwards.name (Dean Edwards) Date: Fri, 22 Apr 2005 16:27:27 +0100 Subject: [whatwg] Canvas element In-Reply-To: <e8e97f9f0504220809596db2db@mail.gmail.com> References: <4266733C.4060901@olav.dk> <3bcac13cfc2b82777b6cae74581e244f@w3.org> <42669975.9050501@annevankesteren.nl> <fb15ac21050420112840ff9300@mail.gmail.com> <4266A106.20906@annevankesteren.nl> <fb15ac21050420133027fd1c60@mail.gmail.com> <4266D2D6.2060802@myrealbox.com> <e06e01ec2cb663550835cdd78c2168f4@iki.fi> <851c8d310504220800549069a4@mail.gmail.com> <e8e97f9f0504220809596db2db@mail.gmail.com> Message-ID: <426917DF.8020402@edwards.name> Rob Mientjes wrote: > On 4/22/05, Jim Ley <jim.ley at gmail.com> wrote: > >>>It has the semantics of a rendering context to which scripts can draw. >> >>So it only has presentational semantics, so should be in a rendering >>language like CSS? > > > That's the endless quandry. 'CSS can only do so much!' 'Markup should > be about content, not presentation.' > > Maybe someone else can think of a suitable description that doesn't > get in the way of anti-presentational markup purists. HTML: IMG --> CANVAS CSS: background-image --> background-canvas ? div#flag { background-canvas: draw; } div#flag.blank { background-canvas: none; } -dean From bkn3 at columbia.edu Fri Apr 22 10:14:17 2005 From: bkn3 at columbia.edu (Brad Neuberg) Date: Fri, 22 Apr 2005 10:14:17 -0700 Subject: [whatwg] Canvas element - Keep It Simple In-Reply-To: <e8e97f9f0504220809596db2db@mail.gmail.com> References: <4266733C.4060901@olav.dk> <3bcac13cfc2b82777b6cae74581e244f@w3.org> <42669975.9050501@annevankesteren.nl> <fb15ac21050420112840ff9300@mail.gmail.com> <4266A106.20906@annevankesteren.nl> <fb15ac21050420133027fd1c60@mail.gmail.com> <4266D2D6.2060802@myrealbox.com> <e06e01ec2cb663550835cdd78c2168f4@iki.fi> <851c8d310504220800549069a4@mail.gmail.com> <e8e97f9f0504220809596db2db@mail.gmail.com> Message-ID: <6.2.1.2.2.20050422100505.02aa1e88@pop.mail.yahoo.com> One thing I'm worried about is if we make canvas too generic, we will make it very difficult to implement as well as have all sorts of boundry conditions that we won't completely realize until the spec has been tested in the wild, leading to bugs. For example, if we allow any element to be drawn on, let's say on an absolutely positioned div that is located in a relative one, and this absolutely positioned div has overflow: auto in it's CSS, and someone uses it as a canvas and draws on it in such a way that its content goes beyond the elements containing space, scroll bars will have to appear. What if some browsers forget this boundry condition? How many other boundry conditions are there? I'm all for exactness and purity, but I'm for simplicity too ;) Here's another proposal: In your source you simply have an IMG tag. Then, either through CSS, an HTML attribute, or JavaScript you 'turn' this IMG tag into a canvas and can start drawing on it. So browsers that support IMGs as canvases will get a nice surface to draw on, while those that don't will degrade nicely into some already retrieved image. An example use: In the HTML: <img id="someImage" src="http://example.com/degraded_image.gif" /> In the CSS: #someImage { drawable: true; } Now in our JavaScript: var someImage = document.getElementById("someImage"); // now start drawing What do y'all think? Seems easy for implementors, and the underlying rendering engine can still treat it as an image but one in which the image data is generated by code, which should make it easier to put together (I think ease of implementation and simplicity should definently be a target of the WHAT-WG; we don't want to end up with a DSSSL-like standard that takes forever to implement and work the kinks out of). One thing I can imagine is that some people will want IMG tags that are canvases that _don't_ show up in older browsers (i.e. they don't even want a way for it to degrade, because it can't be implemented using a normal IMG src value). Any ideas on how to do this using the kind of pseudocode above? Brad Neuberg At 08:09 AM 4/22/2005, Rob Mientjes wrote: >On 4/22/05, Jim Ley <jim.ley at gmail.com> wrote: > > > It has the semantics of a rendering context to which scripts can draw. > > > > So it only has presentational semantics, so should be in a rendering > > language like CSS? > >That's the endless quandry. 'CSS can only do so much!' 'Markup should >be about content, not presentation.' > >Maybe someone else can think of a suitable description that doesn't >get in the way of anti-presentational markup purists. >-- >Cheers, >Rob. > >http://zooibaai.nl | http://digital-proof.org | http://chancecube.com Brad Neuberg, bkn3 at columbia.edu Senior Software Engineer, Rojo Networks Weblog: http://www.codinginparadise.org ===================================================================== Check out Rojo, an RSS and Atom news aggregator that I work on. Visit http://rojo.com for more info. Feel free to ask me for an invite! Rojo is Hiring! If you're interested in RSS, Weblogs, Social Networking, Java, Open Source, etc... then come work with us at Rojo. If you recommend someone and we hire them you'll get a free iPod! See http://www.rojonetworks.com/JobsAtRojo.html. From bkn3 at columbia.edu Fri Apr 22 10:25:55 2005 From: bkn3 at columbia.edu (Brad Neuberg) Date: Fri, 22 Apr 2005 10:25:55 -0700 Subject: [whatwg] Updating Location Bar for RPC Type Apps Message-ID: <6.2.1.2.2.20050422101421.02aaf1b0@pop.mail.yahoo.com> Whenever I implement a DHTML (Ajax?) type app that needs to talk to the server without refreshing the client, such as through a hidden iframe or an XmlHttpRequest object, I always wish that I could update the window location bar to show a bookmarkable and copyable URL, but update it in such a way that it _doesn't_ refresh the browser or change it's location (window.location.href changes the location). For example, lets say I am showing a page that has a table of elements on it, with a sorting pulldown that can change the sorting of the elements either by NAME or by a TAG sorting scheme. Let's say the URL show in the location bar when the user first hits this page is the following: http://www.rojo.com/manage-subscriptions This page has a sorting pull down with two options, sort by NAME and sort by TAG. When the user selects the TAG pulldown we shoot off a request through a hidden iframe, which travels to the server. The server then generates new table content as HTML and sends it basic in the background, and the client simply does an innerHTML on a div in the center of the page with the new sorting type. However, the URL in the location bar stays as "http://www.rojo.com/manage-subscriptions", when I would like it to update to "http://www.rojo.com/manage-subscriptions?sortby=TAG", so that a user can bookmark it, email it, or a programmer can see what the URL is in a clear way and can script it using HTTP (REST?). Now we would have to be careful or this could lead to phishing attacks, where someone could update the URL arbitrarily. We would have to enforce the same-host rule on the URL, the same rule that is applied to where an XmlHttpRequest object can communicate to (i.e. same host, same protocol, same port, etc.) This also ties in with an earlier email I sent out about controlling the history/back-button as well. In this case if the user hits the back button they actually _dont_ get anything we've sent through the iframe, when I want to plug these things into the history. If we make it possible for programmers to control whether a remote URL sent through XmlHttpRequest is placed into the history or not I think we should think through the security, phishing, and general annoyance factors this could cause (imagine pushing hundreds of entries into the history, so that a user can't hit the back page to their original page to keep a user on the current page). In fact, we should do a security, phishing, and annoyance scan (blink tag anyone?) over the WHAT-WG draft itself sometime, forming a threat model before so we know what potential attackers would actually be trying to do. When we take this into account we should remember that sometimes email programs embed the browser into themselves, so that WHAT standards could be embedded into email messages, leading to various kinds of attacks and general wierdness. Brad Neuberg Brad Neuberg, bkn3 at columbia.edu Senior Software Engineer, Rojo Networks Weblog: http://www.codinginparadise.org ===================================================================== Check out Rojo, an RSS and Atom news aggregator that I work on. Visit http://rojo.com for more info. Feel free to ask me for an invite! Rojo is Hiring! If you're interested in RSS, Weblogs, Social Networking, Java, Open Source, etc... then come work with us at Rojo. If you recommend someone and we hire them you'll get a free iPod! See http://www.rojonetworks.com/JobsAtRojo.html. From bkn3 at columbia.edu Fri Apr 22 10:35:04 2005 From: bkn3 at columbia.edu (Brad Neuberg) Date: Fri, 22 Apr 2005 10:35:04 -0700 Subject: [whatwg] Some likeness of DOM Session scope --> Steal Flash's SharedObject Syntax In-Reply-To: <fb15ac210504220758504b6da6@mail.gmail.com> References: <20050422034709.21654.qmail@web60709.mail.yahoo.com> <fb15ac210504220758504b6da6@mail.gmail.com> Message-ID: <6.2.1.2.2.20050422102952.02b39960@pop.mail.yahoo.com> Flash MX has a scriptable object named SharedObject that can contain far more application state than a normal cookie can, but for Flash movies. Perhaps this is a good concept to steal from Flash? They've thought through the API pretty well. One thing that is unique about these is that they can store binary, so that you can actually serialize the state of your Flash ActionScript (which is just JavaScript now) right into your cookie, making programming in Flash very productive. You can also store images, sounds, video etc., leading to very fast startup time for apps that use these. Some more info on SharedObjects at http://www.macromedia.com/support/flash/action_scripts/local_shared_object/: "Local shared objects provide a way to maintain locally persistent data (similar to "cookies" stored by web browsers). For example, you can create a shared object, such as a calculator with memory, in the player. Because the shared object is locally persistent, Macromedia Flash MX saves its data attributes on the user's machine when the movie ends. The next time the movie runs, the calculator contains the values it had when the movie ended. Alternatively, you can delete the shared object before the movie ends, in which case the calculator opens without any prior values the next time the movie runs. " About size considerations: "Local shared objects are always persistent on the client, up to available memory and disk space. By default, Macromedia Flash MXcan save locally persistent remote shared objects up to 100 K in size. When you try to save a larger object, the Macromedia Flash Player 6displays the Local Storage dialog box, which lets the user allow or deny local storage for the domain that is requesting access. Make sure your Stage size is at least 215 x 138 pixels; this is the minimum size Macromedia Flash MX requires to display the dialog box." In terms of security, we should be careful that these can't be used as a vector to attack the local system, either through a buffer overflow attack or a way to get a binary image onto a machine that can then be manipulated. One note: when a user clears their cookies we should also clear out these SharedObjects, probably presenting them to the user as super-charged cookies, to prevent a similar security bug that affected Flash. There is a sneaky adware attack called PIE that stores cookies into a Flash's SharedObjects, pulling them back out if a user clears their cookies since Flash didn't hook clearing the SharedObjects into clearing the cookies in the browser. At 07:58 AM 4/22/2005, Dimitri Glazkov wrote: >At first, I envisioned a fairly simplistic (perhaps naiive would be a >better word) functionality: > >An initially empty JS object, which survives from request to request >until the browser window is closed. This object is implicitly >instantiated once per session for each domain, and is the same across >all windows/tabs. > >Being the associative array that it is, the object can be populated by >whatever data or functions that need to survive throughout the >session. > >Obviously, you can see some serious potential security, memory usage, >and just plain compartmentalization issues here. > >Then, after reading the thread, it seemed that maybe I am looking at >the problem from the wrong end: > >Maybe it would a better idea to introduce functionality that >standardizes a usability-perfect simulation of a request within the >same page? I think that is what Brad is writing about. > >In other words, instead of trying to come up with a vehicle that >allows you to pass data across independent requests, devise ways to: > >* identify (create) state of an application inside of a page >* communicate it to the browser's address bar and history navigation >* restore the state when the browser asks for it (via back/forward or >bookmark). > >With this in place, history can be manipulated at will and a >transparent user experience of browsing multiple pages can be created >within the same actual page. > >I believe Microsoft has toyed with this concept in IE5 by introducing >#default#saveFavorite and #default#saveHistory behaviors. > >Or maybe it's both: a serializable/deserializable persistence >mechanism across independents requests and the way to manipulate the >history. > >What do you guys think? > >:DG< > >On 4/21/05, Brad Neuberg <bradneuberg at yahoo.com> wrote: > > Something along these lines that would be useful is > > control over what goes into the history (and what > > affects the back button) and what _doesn't_. Alot of > > times I shoot off RPC type functions using > > XmlHttpRequest that I _dont_ want in the history, > > since they wouldnt be appropriate for the back button, > > and other times I want the back button to be affected. > > > > Brad > > > > --- Dimitri Glazkov <dimitri.glazkov at gmail.com> wrote: > > > IMHO, one of the biggest obstacles for growth in Web > > > applications > > > development is the fact that the entire application > > > lives in the scope > > > of one request. > > > > > > Once next request is made, the browser essentially > > > "forgets" > > > everything and the whole new cycle of loading, > > > initialization, and > > > binding begins. > > > > > > Yes, you can simulate the effect of retaining scope > > > across several > > > requests with XmlHttpRequest and even frames, but > > > it's the "simulate" > > > part that bothers me. "Simulate" means "hacking", > > > and "hacking" > > > inevitably means inconsistent and/or incomplete > > > implementations. > > > > > > It seems that a future Web Application platform > > > should have this type > > > of functionality readily available. What do you > > > think about the idea > > > of having some likeness of a scope that's inherently > > > wider than > > > request? > > > > > > Consider this example (improvising here): > > > > > > Request 1: > > > > > > function SyntaxHighlighter() > > > { > > > // code goes here to provide on-the-fly > > > beautification of code > > > } > > > document.session.highlighter = new > > > SyntaxHighlighter(); > > > > > > Request 2+: > > > > > > if (document.session.highighter) > > > { > > > var codeSections = > > > document.getElementsBySelector("pre > code") > > > for(var i = 0; i < codeSections.length; i++) > > > { > > > SyntaxHighlighter.apply(codeSections[i]); > > > } > > > } > > > > > > Is this a totally asinine idea? > > > > > > :DG< > > > > > Brad Neuberg, bkn3 at columbia.edu Senior Software Engineer, Rojo Networks Weblog: http://www.codinginparadise.org ===================================================================== Check out Rojo, an RSS and Atom news aggregator that I work on. Visit http://rojo.com for more info. Feel free to ask me for an invite! Rojo is Hiring! If you're interested in RSS, Weblogs, Social Networking, Java, Open Source, etc... then come work with us at Rojo. If you recommend someone and we hire them you'll get a free iPod! See http://www.rojonetworks.com/JobsAtRojo.html. From bkn3 at columbia.edu Fri Apr 22 10:51:04 2005 From: bkn3 at columbia.edu (Brad Neuberg) Date: Fri, 22 Apr 2005 10:51:04 -0700 Subject: [whatwg] Re: Radio UserLand: Mail from Ian Hickson In-Reply-To: <94a59c7d0504220740638f95fd@mail.gmail.com> References: <200504221017.j3MAHXPn006119@bigrack.userland.com> <94a59c7d0504220740638f95fd@mail.gmail.com> Message-ID: <6.2.1.2.2.20050422104745.02b75f28@pop.mail.yahoo.com> Here's a possible API for GET and POST semantics without XmlHttpRequest: window.location.href = base URL + URL parameters already appended window.location.method = GET or POST, nothing else supported If the method is a POST method, the internal code simply pulls all the parameters off of window.location.href and builds up a POST request using them. Should it URL encode each query parameter and key first, or assume that they are already URL-encoded? Brad At 07:40 AM 4/22/2005, Jon Udell wrote: >On 4/22/05, radio at spam.hixie.ch <radio at spam.hixie.ch> wrote: > > > You write "If JavaScript is going to be an appropriate technology of > intermediation, would > > it make sense for it to offer an easy way to issue a non-interactive > HTTP POST?" > > > > Yes, it would. I urge you to send your suggestions to > whatwg at whatwg.org, where > > we're discussing this kind of thing and writing specs that browsers > will be implementing. > >OK. Then I do propose an easy way to issue a non-interactive HTTP POST. > >As to how, I'm probably the wrong guy to propose something. My first >thought was that, if a list were assigned to location.href, then the >base URL would be the first element and the URL-encoded data the >second. This maps to how curl and Python work. But a problem here is >that POST is only implicit, so what about PUT, DELETE, etc.? > >Perhaps one could make a case that POST is important enough to be >included in the most basic idiom, along with GET, and for other stuff >there's an advanced idiom? > >- Jon Brad Neuberg, bkn3 at columbia.edu Senior Software Engineer, Rojo Networks Weblog: http://www.codinginparadise.org ===================================================================== Check out Rojo, an RSS and Atom news aggregator that I work on. Visit http://rojo.com for more info. Feel free to ask me for an invite! Rojo is Hiring! If you're interested in RSS, Weblogs, Social Networking, Java, Open Source, etc... then come work with us at Rojo. If you recommend someone and we hire them you'll get a free iPod! See http://www.rojonetworks.com/JobsAtRojo.html. From fora at annevankesteren.nl Fri Apr 22 10:55:12 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Fri, 22 Apr 2005 19:55:12 +0200 Subject: [whatwg] Canvas element - Keep It Simple In-Reply-To: <6.2.1.2.2.20050422100505.02aa1e88@pop.mail.yahoo.com> References: <4266733C.4060901@olav.dk> <3bcac13cfc2b82777b6cae74581e244f@w3.org> <42669975.9050501@annevankesteren.nl> <fb15ac21050420112840ff9300@mail.gmail.com> <4266A106.20906@annevankesteren.nl> <fb15ac21050420133027fd1c60@mail.gmail.com> <4266D2D6.2060802@myrealbox.com> <e06e01ec2cb663550835cdd78c2168f4@iki.fi> <851c8d310504220800549069a4@mail.gmail.com> <e8e97f9f0504220809596db2db@mail.gmail.com> <6.2.1.2.2.20050422100505.02aa1e88@pop.mail.yahoo.com> Message-ID: <42693A80.5020006@annevankesteren.nl> Brad Neuberg wrote: > What do y'all think? Seems easy for implementors, and the underlying > rendering engine can still treat it as an image but one in which the > image data is generated by code, which should make it easier to put > together (I think ease of implementation and simplicity should > definently be a target of the WHAT-WG; we don't want to end up with a > DSSSL-like standard that takes forever to implement and work the kinks > out of). As there are already implementations and implementors are not likely to change it all back I don't think this is going to work, but if this somehow gets through then please choose the OBJECT element instead. -- Anne van Kesteren <http://annevankesteren.nl/> From olav at olav.dk Fri Apr 22 11:12:25 2005 From: olav at olav.dk (=?ISO-8859-1?Q?Olav_Junker_Kj=E6r?=) Date: Fri, 22 Apr 2005 20:12:25 +0200 Subject: [whatwg] Updating Location Bar for RPC Type Apps In-Reply-To: <6.2.1.2.2.20050422101421.02aaf1b0@pop.mail.yahoo.com> References: <6.2.1.2.2.20050422101421.02aaf1b0@pop.mail.yahoo.com> Message-ID: <42693E89.5000807@olav.dk> Brad Neuberg wrote: > > Whenever I implement a DHTML (Ajax?) type app that needs to talk to the > server without refreshing the client, such as through a hidden iframe or > an XmlHttpRequest object, I always wish that I could update the window > location bar to show a bookmarkable and copyable URL, but update it in > such a way that it _doesn't_ refresh the browser or change it's location > (window.location.href changes the location). You can do this by changing the fragment, e.g. set window.location to: http://www.rojo.com/manage-subscriptions#sortby=TAG" This is useful for changing to a new bookmarkable state on the client side without reloading the page. regards Olav Junker Kj?r From dean at edwards.name Fri Apr 22 11:15:18 2005 From: dean at edwards.name (Dean Edwards) Date: Fri, 22 Apr 2005 19:15:18 +0100 Subject: [whatwg] Updating Location Bar for RPC Type Apps In-Reply-To: <42693E89.5000807@olav.dk> References: <6.2.1.2.2.20050422101421.02aaf1b0@pop.mail.yahoo.com> <42693E89.5000807@olav.dk> Message-ID: <42693F36.70201@edwards.name> Olav Junker Kj?r wrote: > You can do this by changing the fragment, e.g. set window.location to: > http://www.rojo.com/manage-subscriptions#sortby=TAG" > This is useful for changing to a new bookmarkable state on the client > side without reloading the page. > Try using this in conjunction with location.replace() to avoid adding to the back button as well. -dean From ian at hixie.ch Fri Apr 22 12:27:25 2005 From: ian at hixie.ch (Ian Hickson) Date: Fri, 22 Apr 2005 19:27:25 +0000 (UTC) Subject: [whatwg] Updating Location Bar for RPC Type Apps In-Reply-To: <6.2.1.2.2.20050422101421.02aaf1b0@pop.mail.yahoo.com> References: <6.2.1.2.2.20050422101421.02aaf1b0@pop.mail.yahoo.com> Message-ID: <Pine.LNX.4.61.0504221920510.13557@dhalsim.dreamhost.com> On Fri, 22 Apr 2005, Brad Neuberg wrote: > > In fact, we should do a security, phishing, and annoyance scan (blink > tag anyone?) over the WHAT-WG draft itself sometime, forming a threat > model before so we know what potential attackers would actually be > trying to do. Yes, this would (naturally) be a good idea. I encourage anyone who has the time to do this regularly. (Of course, I'm thinking carefully about security whenever adding features to the draft, so hopefully there won't be any! But there always are...) -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From hsivonen at iki.fi Fri Apr 22 14:35:56 2005 From: hsivonen at iki.fi (Henri Sivonen) Date: Sat, 23 Apr 2005 00:35:56 +0300 Subject: [whatwg] Canvas element In-Reply-To: <851c8d310504220800549069a4@mail.gmail.com> References: <4266733C.4060901@olav.dk> <3bcac13cfc2b82777b6cae74581e244f@w3.org> <42669975.9050501@annevankesteren.nl> <fb15ac21050420112840ff9300@mail.gmail.com> <4266A106.20906@annevankesteren.nl> <fb15ac21050420133027fd1c60@mail.gmail.com> <4266D2D6.2060802@myrealbox.com> <e06e01ec2cb663550835cdd78c2168f4@iki.fi> <851c8d310504220800549069a4@mail.gmail.com> Message-ID: <b8c66d4d312f6e787d11cdc634e3c40c@iki.fi> On Apr 22, 2005, at 18:00, Jim Ley wrote: > On 4/22/05, Henri Sivonen <hsivonen at iki.fi> wrote: >> On Apr 21, 2005, at 01:08, dolphinling wrote: >> >>> What semantics does canvas have? >> >> It has the semantics of a rendering context to which scripts can draw. > > So it only has presentational semantics, So it seems. > so should be in a rendering language like CSS? If you value hard-line anti-presentationalism over pragmatism. From hsivonen at iki.fi Fri Apr 22 14:45:12 2005 From: hsivonen at iki.fi (Henri Sivonen) Date: Sat, 23 Apr 2005 00:45:12 +0300 Subject: [whatwg] Re: why, e.g., input/@checked="checked" ? In-Reply-To: <424BC3B3.6010907@inkedblade.net> References: <42456E16.90702@koberg.com> <42477798.99123562@smtp.bjoern.hoehrmann.de> <42457D73.5070708@koberg.com> <20050326152537.GB14917@us-lot.org> <424580FC.4070004@koberg.com> <20050326155449.GC14917@us-lot.org> <Pine.GSO.4.58.0503261853450.14336@korppi.cs.tut.fi> <424BC3B3.6010907@inkedblade.net> Message-ID: <997f1efad8cf3d78196cf83a9e9f9a1f@iki.fi> On Mar 31, 2005, at 12:32, fantasai wrote: > So, for example, I could use attribute minimalization to > shorten the 'type="checkbox"' part like so: > <input checkbox checked> What should text/html flavor HTML5 conformance checkers allow? The tendency has been towards browser reality as opposed the allowing all SGMLisms. -- Henri Sivonen hsivonen at iki.fi http://hsivonen.iki.fi/ From bkn3 at columbia.edu Fri Apr 22 16:13:14 2005 From: bkn3 at columbia.edu (Brad Neuberg) Date: Fri, 22 Apr 2005 16:13:14 -0700 Subject: [whatwg] Updating Location Bar for RPC Type Apps In-Reply-To: <Pine.LNX.4.61.0504221920510.13557@dhalsim.dreamhost.com> References: <6.2.1.2.2.20050422101421.02aaf1b0@pop.mail.yahoo.com> <Pine.LNX.4.61.0504221920510.13557@dhalsim.dreamhost.com> Message-ID: <6.2.1.2.2.20050422161247.02a58530@pop.mail.yahoo.com> Do you have an idea of what the threat model might be? I.e. who is attacking, why are they attacking, and how will they usually be attacking. Brad At 12:27 PM 4/22/2005, Ian Hickson wrote: >On Fri, 22 Apr 2005, Brad Neuberg wrote: > > > > In fact, we should do a security, phishing, and annoyance scan (blink > > tag anyone?) over the WHAT-WG draft itself sometime, forming a threat > > model before so we know what potential attackers would actually be > > trying to do. > >Yes, this would (naturally) be a good idea. I encourage anyone who has the >time to do this regularly. > >(Of course, I'm thinking carefully about security whenever adding features >to the draft, so hopefully there won't be any! But there always are...) > >-- >Ian Hickson U+1047E )\._.,--....,'``. fL >http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. >Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' Brad Neuberg, bkn3 at columbia.edu Senior Software Engineer, Rojo Networks Weblog: http://www.codinginparadise.org ===================================================================== Check out Rojo, an RSS and Atom news aggregator that I work on. Visit http://rojo.com for more info. Feel free to ask me for an invite! Rojo is Hiring! If you're interested in RSS, Weblogs, Social Networking, Java, Open Source, etc... then come work with us at Rojo. If you recommend someone and we hire them you'll get a free iPod! See http://www.rojonetworks.com/JobsAtRojo.html. From ian at hixie.ch Fri Apr 22 16:51:04 2005 From: ian at hixie.ch (Ian Hickson) Date: Fri, 22 Apr 2005 23:51:04 +0000 (UTC) Subject: [whatwg] Updating Location Bar for RPC Type Apps In-Reply-To: <6.2.1.2.2.20050422161247.02a58530@pop.mail.yahoo.com> References: <6.2.1.2.2.20050422101421.02aaf1b0@pop.mail.yahoo.com> <Pine.LNX.4.61.0504221920510.13557@dhalsim.dreamhost.com> <6.2.1.2.2.20050422161247.02a58530@pop.mail.yahoo.com> Message-ID: <Pine.LNX.4.61.0504222335390.1260@dhalsim.dreamhost.com> On Fri, 22 Apr 2005, Brad Neuberg wrote: > > Do you have an idea of what the threat model might be? I.e. who is > attacking, why are they attacking, and how will they usually be > attacking. There are a number of attack vectors but the main ones are letting scripts access data from other hosts or from the computer itself, letting scripts affect the user's experience with the computer and the internet outside the site in question, and making it easier for sites to spoof other sites or system services in order to fradulently obtain personal information. So for example ways to disable the "back" button, or ways to override the user's window manager, and ways for sites to make it appear that they are other sites would be features that should never be allowed in the spec. (<script src="">, <img src="">, and window.open() are examples of features that currently exist in HTML browsers but suffer from these problems to one extent or another.) -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From jim.ley at gmail.com Sat Apr 23 12:12:59 2005 From: jim.ley at gmail.com (Jim Ley) Date: Sat, 23 Apr 2005 20:12:59 +0100 Subject: [whatwg] Canvas element In-Reply-To: <b8c66d4d312f6e787d11cdc634e3c40c@iki.fi> References: <4266733C.4060901@olav.dk> <3bcac13cfc2b82777b6cae74581e244f@w3.org> <42669975.9050501@annevankesteren.nl> <fb15ac21050420112840ff9300@mail.gmail.com> <4266A106.20906@annevankesteren.nl> <fb15ac21050420133027fd1c60@mail.gmail.com> <4266D2D6.2060802@myrealbox.com> <e06e01ec2cb663550835cdd78c2168f4@iki.fi> <851c8d310504220800549069a4@mail.gmail.com> <b8c66d4d312f6e787d11cdc634e3c40c@iki.fi> Message-ID: <851c8d3105042312125ac38d87@mail.gmail.com> On 4/22/05, Henri Sivonen <hsivonen at iki.fi> wrote: > On Apr 22, 2005, at 18:00, Jim Ley wrote: > > so should be in a rendering language like CSS? > > If you value hard-line anti-presentationalism over pragmatism. Er, There are very good reasons why the presentation is split, the most important of course being accessibilty, it's clear from this list that people prefer being able to draw on-top of any element, or perhaps just an img element, and I'm sure that's not from any anti-presentationalism, but simply because they don't see efficient ways to author a canvas element in a backwardsly compatbile accessible manner. Repeatedly in WF2, new elements have been rejected due to their difficulty in implementing in IE6, why is canvas different? (and yes we could implement it in IE6 without much difficulty) Jim. From dolphinling at myrealbox.com Sat Apr 23 12:16:14 2005 From: dolphinling at myrealbox.com (dolphinling) Date: Sat, 23 Apr 2005 15:16:14 -0400 Subject: [whatwg] Canvas element - Keep It Simple In-Reply-To: <42693A80.5020006@annevankesteren.nl> References: <4266733C.4060901@olav.dk> <3bcac13cfc2b82777b6cae74581e244f@w3.org> <42669975.9050501@annevankesteren.nl> <fb15ac21050420112840ff9300@mail.gmail.com> <4266A106.20906@annevankesteren.nl> <fb15ac21050420133027fd1c60@mail.gmail.com> <4266D2D6.2060802@myrealbox.com> <e06e01ec2cb663550835cdd78c2168f4@iki.fi> <851c8d310504220800549069a4@mail.gmail.com> <e8e97f9f0504220809596db2db@mail.gmail.com> <6.2.1.2.2.20050422100505.02aa1e88@pop.mail.yahoo.com> <42693A80.5020006@annevankesteren.nl> Message-ID: <426A9EFE.9030605@myrealbox.com> Anne van Kesteren wrote: > Brad Neuberg wrote: > >> What do y'all think? Seems easy for implementors, and the underlying >> rendering engine can still treat it as an image but one in which the >> image data is generated by code, which should make it easier to put >> together (I think ease of implementation and simplicity should >> definently be a target of the WHAT-WG; we don't want to end up with a >> DSSSL-like standard that takes forever to implement and work the kinks >> out of). > > > As there are already implementations and implementors are not likely to > change it all back I don't think this is going to work, There's one implementation, and one implementation in testing builds. It would also be an easy change to make for those implementations (and they could still keep support for the "old way" if they need). > but if this > somehow gets through then please choose the OBJECT element instead. Does IE6 support gif/jpg/png in OBJECT? If not, allow it in both for backwards compatablity. I agree, though, it should be focused on OBJECT. -- dolphinling <http://dolphinling.net/> From jim.ley at gmail.com Sat Apr 23 12:18:53 2005 From: jim.ley at gmail.com (Jim Ley) Date: Sat, 23 Apr 2005 20:18:53 +0100 Subject: [whatwg] Updating Location Bar for RPC Type Apps In-Reply-To: <42693E89.5000807@olav.dk> References: <6.2.1.2.2.20050422101421.02aaf1b0@pop.mail.yahoo.com> <42693E89.5000807@olav.dk> Message-ID: <851c8d3105042312182f601b89@mail.gmail.com> On 4/22/05, Olav Junker Kj?r <olav at olav.dk> wrote: > Brad Neuberg wrote: > > > > Whenever I implement a DHTML (Ajax?) type app that needs to talk to the > > server without refreshing the client, such as through a hidden iframe or > > an XmlHttpRequest object, I always wish that I could update the window > > location bar to show a bookmarkable and copyable URL, but update it in > > such a way that it _doesn't_ refresh the browser or change it's location > > (window.location.href changes the location). > > You can do this by changing the fragment, e.g. set window.location to: > http://www.rojo.com/manage-subscriptions#sortby=TAG" > This is useful for changing to a new bookmarkable state on the client > side without reloading the page. Hmm, but then you need client-side intelligence to test the hash portion of the string, and then make subsequent requests to get the relevant data from the server. The original suggestion is much more powerful than that, as it allows the server to respond directly to a request. I've certainly wanted this, a sensible compromise is to only be able to set the query portion of the url. Jim. From jim.ley at gmail.com Sat Apr 23 12:24:53 2005 From: jim.ley at gmail.com (Jim Ley) Date: Sat, 23 Apr 2005 20:24:53 +0100 Subject: [whatwg] Canvas element - Keep It Simple In-Reply-To: <42693A80.5020006@annevankesteren.nl> References: <4266733C.4060901@olav.dk> <fb15ac21050420112840ff9300@mail.gmail.com> <4266A106.20906@annevankesteren.nl> <fb15ac21050420133027fd1c60@mail.gmail.com> <4266D2D6.2060802@myrealbox.com> <e06e01ec2cb663550835cdd78c2168f4@iki.fi> <851c8d310504220800549069a4@mail.gmail.com> <e8e97f9f0504220809596db2db@mail.gmail.com> <6.2.1.2.2.20050422100505.02aa1e88@pop.mail.yahoo.com> <42693A80.5020006@annevankesteren.nl> Message-ID: <851c8d3105042312242e49f5e3@mail.gmail.com> On 4/22/05, Anne van Kesteren <fora at annevankesteren.nl> wrote: > As there are already implementations and implementors are not likely to > change it all back Until today, the spec was very clear that it wasn't appropriate to implement any feature on the spec, today for some unexplained reason it's changed to just a general it could change warning. Either way any implementor would've been aware of the highly draft nature of the specification, so should have been expecting it to change. There are certainly no sites relying on the functionality. > I don't think this is going to work, but if this > somehow gets through then please choose the OBJECT element instead. OBJECT is indeed a good idea, for any extension of that needs fallback behaviour. Jim. From hsivonen at iki.fi Sat Apr 23 18:22:25 2005 From: hsivonen at iki.fi (Henri Sivonen) Date: Sun, 24 Apr 2005 04:22:25 +0300 Subject: [whatwg] Canvas element - Keep It Simple In-Reply-To: <426A9EFE.9030605@myrealbox.com> References: <4266733C.4060901@olav.dk> <3bcac13cfc2b82777b6cae74581e244f@w3.org> <42669975.9050501@annevankesteren.nl> <fb15ac21050420112840ff9300@mail.gmail.com> <4266A106.20906@annevankesteren.nl> <fb15ac21050420133027fd1c60@mail.gmail.com> <4266D2D6.2060802@myrealbox.com> <e06e01ec2cb663550835cdd78c2168f4@iki.fi> <851c8d310504220800549069a4@mail.gmail.com> <e8e97f9f0504220809596db2db@mail.gmail.com> <6.2.1.2.2.20050422100505.02aa1e88@pop.mail.yahoo.com> <42693A80.5020006@annevankesteren.nl> <426A9EFE.9030605@myrealbox.com> Message-ID: <b0fed924a48f6abbac9cff8dbdb3e4de@iki.fi> On Apr 23, 2005, at 22:16, dolphinling wrote: > There's one implementation, and one implementation in testing builds. > It would also be an easy change to make for those implementations (and > they could still keep support for the "old way" if they need). The release date of Tiger is very near. Safari will ship with canvas. Once it is out, you can't pull it back. -- Henri Sivonen hsivonen at iki.fi http://hsivonen.iki.fi/ From hsivonen at iki.fi Sat Apr 23 18:24:33 2005 From: hsivonen at iki.fi (Henri Sivonen) Date: Sun, 24 Apr 2005 04:24:33 +0300 Subject: [whatwg] Canvas element In-Reply-To: <851c8d3105042312125ac38d87@mail.gmail.com> References: <4266733C.4060901@olav.dk> <3bcac13cfc2b82777b6cae74581e244f@w3.org> <42669975.9050501@annevankesteren.nl> <fb15ac21050420112840ff9300@mail.gmail.com> <4266A106.20906@annevankesteren.nl> <fb15ac21050420133027fd1c60@mail.gmail.com> <4266D2D6.2060802@myrealbox.com> <e06e01ec2cb663550835cdd78c2168f4@iki.fi> <851c8d310504220800549069a4@mail.gmail.com> <b8c66d4d312f6e787d11cdc634e3c40c@iki.fi> <851c8d3105042312125ac38d87@mail.gmail.com> Message-ID: <f3fa68c9e7804c5ec3c44c377ea3b2d1@iki.fi> On Apr 23, 2005, at 22:12, Jim Ley wrote: > On 4/22/05, Henri Sivonen <hsivonen at iki.fi> wrote: >> On Apr 22, 2005, at 18:00, Jim Ley wrote: >>> so should be in a rendering language like CSS? >> >> If you value hard-line anti-presentationalism over pragmatism. > > Er, There are very good reasons why the presentation is split, the > most important of course being accessibilty How would moving the graphics context establishment syntax to another place improve accessiblity? -- Henri Sivonen hsivonen at iki.fi http://hsivonen.iki.fi/ From jim.ley at gmail.com Sun Apr 24 01:26:03 2005 From: jim.ley at gmail.com (Jim Ley) Date: Sun, 24 Apr 2005 09:26:03 +0100 Subject: [whatwg] Canvas element - Keep It Simple In-Reply-To: <b0fed924a48f6abbac9cff8dbdb3e4de@iki.fi> References: <4266733C.4060901@olav.dk> <fb15ac21050420133027fd1c60@mail.gmail.com> <4266D2D6.2060802@myrealbox.com> <e06e01ec2cb663550835cdd78c2168f4@iki.fi> <851c8d310504220800549069a4@mail.gmail.com> <e8e97f9f0504220809596db2db@mail.gmail.com> <6.2.1.2.2.20050422100505.02aa1e88@pop.mail.yahoo.com> <42693A80.5020006@annevankesteren.nl> <426A9EFE.9030605@myrealbox.com> <b0fed924a48f6abbac9cff8dbdb3e4de@iki.fi> Message-ID: <851c8d3105042401263d26e49d@mail.gmail.com> On 4/24/05, Henri Sivonen <hsivonen at iki.fi> wrote: > On Apr 23, 2005, at 22:16, dolphinling wrote: > > > There's one implementation, and one implementation in testing builds. > > It would also be an easy change to make for those implementations (and > > they could still keep support for the "old way" if they need). > > The release date of Tiger is very near. Safari will ship with canvas. So? What's that got to do with the Web Applications Standard? > Once it is out, you can't pull it back. It's never been in a published standard, the specification still states that it's subject to change. I'm very disappointed that the "do not implement in released software" has been removed without any discussion on the list of the maturity of the specification, but that's just the normal high handed approach of the working group. But even without that, there's no need to bless a poor implementation decisison simply because one minority browser has implemented it and used it solely in non-web content. If successful shipped implementations is what matters, then there's lots of successful IE extensions that do the same as canvas and other elements which it would be much more sensible to go with. Jim. From ian at hixie.ch Sun Apr 24 03:26:03 2005 From: ian at hixie.ch (Ian Hickson) Date: Sun, 24 Apr 2005 10:26:03 +0000 (UTC) Subject: [whatwg] Canvas element - Keep It Simple In-Reply-To: <b0fed924a48f6abbac9cff8dbdb3e4de@iki.fi> References: <4266733C.4060901@olav.dk> <3bcac13cfc2b82777b6cae74581e244f@w3.org> <42669975.9050501@annevankesteren.nl> <fb15ac21050420112840ff9300@mail.gmail.com> <4266A106.20906@annevankesteren.nl> <fb15ac21050420133027fd1c60@mail.gmail.com> <4266D2D6.2060802@myrealbox.com> <e06e01ec2cb663550835cdd78c2168f4@iki.fi> <851c8d310504220800549069a4@mail.gmail.com> <e8e97f9f0504220809596db2db@mail.gmail.com> <6.2.1.2.2.20050422100505.02aa1e88@pop.mail.yahoo.com> <42693A80.5020006@annevankesteren.nl> <426A9EFE.9030605@myrealbox.com> <b0fed924a48f6abbac9cff8dbdb3e4de@iki.fi> Message-ID: <Pine.LNX.4.61.0504241025190.25563@dhalsim.dreamhost.com> On Sun, 24 Apr 2005, Henri Sivonen wrote: > > The release date of Tiger is very near. Safari will ship with canvas. > Once it is out, you can't pull it back. The Safari in Tiger was already RTM before this thread started, for what it's worth. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From kornel at ldreams.net Sun Apr 24 07:12:26 2005 From: kornel at ldreams.net (Kornel Lesinski) Date: Sun, 24 Apr 2005 15:12:26 +0100 Subject: [whatwg] Canvas element - Keep It Simple In-Reply-To: <42693A80.5020006@annevankesteren.nl> References: <4266733C.4060901@olav.dk> <3bcac13cfc2b82777b6cae74581e244f@w3.org> <42669975.9050501@annevankesteren.nl> <fb15ac21050420112840ff9300@mail.gmail.com> <4266A106.20906@annevankesteren.nl> <fb15ac21050420133027fd1c60@mail.gmail.com> <4266D2D6.2060802@myrealbox.com> <e06e01ec2cb663550835cdd78c2168f4@iki.fi> <851c8d310504220800549069a4@mail.gmail.com> <e8e97f9f0504220809596db2db@mail.gmail.com> <6.2.1.2.2.20050422100505.02aa1e88@pop.mail.yahoo.com> <42693A80.5020006@annevankesteren.nl> Message-ID: <op.spqpq0np602458@idlaptop02.ideadesigners.local> On Fri, 22 Apr 2005 18:55:12 +0100, Anne van Kesteren <fora at annevankesteren.nl> wrote: > As there are already implementations and implementors are not likely to > change it all back I don't think this is going to work, but if this > somehow gets through then please choose the OBJECT element instead. I think <canvas> is the best solution. <object> is already complex and too many ways of defining it's contents led to poor support. canvas doesn't belong to CSS, because CSS can't use it. Developers would use it via object.style.canvas = 'enabled' or something like that. Enabling via JS IMHO doesn't work either. Just adds unneccesary code: <div id="canvas"></div> <script type="text/javascript">document.getElementById('canvas').drawable=true</script> It has been mentioned before that UAs probably won't manage to support drawing on every element, so authors would limit themselves just to something basic like static or abslutely positioned div. <canvas> as element has some advantages: It would be possible to modify prototype of HTMLCanvasElement to add functions that are missing in some implementations or - in case of safari - find all <canvas> elements and replace them with safari-compatible ones - that would be very difficult if canvas was enabled via CSS or JS method. Another problem is that it would be very useful to create images for CSS via scripting (like rounded corners, shades, patterns), but I don't see any elegant way of joining those two... foo {background: url(#id_of_canvas_element);} canvas.onlyForCSS {display: none;} -- regards, Kornel Lesinski From jim.ley at gmail.com Sun Apr 24 08:14:29 2005 From: jim.ley at gmail.com (Jim Ley) Date: Sun, 24 Apr 2005 16:14:29 +0100 Subject: [whatwg] Canvas element - Keep It Simple In-Reply-To: <op.spqpq0np602458@idlaptop02.ideadesigners.local> References: <4266733C.4060901@olav.dk> <4266A106.20906@annevankesteren.nl> <fb15ac21050420133027fd1c60@mail.gmail.com> <4266D2D6.2060802@myrealbox.com> <e06e01ec2cb663550835cdd78c2168f4@iki.fi> <851c8d310504220800549069a4@mail.gmail.com> <e8e97f9f0504220809596db2db@mail.gmail.com> <6.2.1.2.2.20050422100505.02aa1e88@pop.mail.yahoo.com> <42693A80.5020006@annevankesteren.nl> <op.spqpq0np602458@idlaptop02.ideadesigners.local> Message-ID: <851c8d31050424081417b2ab2@mail.gmail.com> On 4/24/05, Kornel Lesinski <kornel at ldreams.net> wrote: > canvas doesn't belong to CSS, because CSS can't use it. Neither can HTML - it's always blank unless script is supported, so by that argument, Script, and only Script is the appropriate place. > Enabling via JS IMHO doesn't work either. Just adds unneccesary code: > > <div id="canvas"></div> > <script > type="text/javascript">document.getElementById('canvas').drawable=true</script> You've made these seem bloated, but you're ignoring the fact that the only "extra" code in that example is the .drawable=true - if that really is a problem, then it would be trivial to not require it and just allow drawing to start on top of any element. > It would be possible to modify prototype of HTMLCanvasElement > to add functions that are missing in some implementations or The existence of an HTMLCanvasElement prototype is not standard currently - are you suggesting that the Web Application specification should require the prototyping of these objects? I would be very much opposed to this, requiring a particular coupling to javascript is not a good idea. Jim. From kornel at ldreams.net Sun Apr 24 08:44:15 2005 From: kornel at ldreams.net (Kornel Lesinski) Date: Sun, 24 Apr 2005 16:44:15 +0100 Subject: [whatwg] Canvas element - Keep It Simple In-Reply-To: <851c8d31050424081417b2ab2@mail.gmail.com> References: <4266733C.4060901@olav.dk> <4266A106.20906@annevankesteren.nl> <fb15ac21050420133027fd1c60@mail.gmail.com> <4266D2D6.2060802@myrealbox.com> <e06e01ec2cb663550835cdd78c2168f4@iki.fi> <851c8d310504220800549069a4@mail.gmail.com> <e8e97f9f0504220809596db2db@mail.gmail.com> <6.2.1.2.2.20050422100505.02aa1e88@pop.mail.yahoo.com> <42693A80.5020006@annevankesteren.nl> <op.spqpq0np602458@idlaptop02.ideadesigners.local> <851c8d31050424081417b2ab2@mail.gmail.com> Message-ID: <op.spqtz1af602458@idlaptop02.ideadesigners.local> On Sun, 24 Apr 2005 16:14:29 +0100, Jim Ley <jim.ley at gmail.com> wrote: > Neither can HTML - it's always blank unless script is supported, so by > that argument, Script, and only Script is the appropriate place. It needs to be in DOM. If every element could be made canvas by script, each DOM element would have to implement neccessary interface. <canvas> limits this support only to certain elements and lets browsers attach neccesary styling and behaviour beforehand. > You've made these seem bloated, but you're ignoring the fact that the > only "extra" code in that example is the .drawable=true - if that > really is a problem, then it would be trivial to not require it and > just allow drawing to start on top of any element. Drawable <img> is pretty easy to implement (change to internal bitmap), but drawable <div> might be really difficult (additional overlay of bitmap). >> It would be possible to modify prototype of HTMLCanvasElement >> to add functions that are missing in some implementations or > > The existence of an HTMLCanvasElement prototype is not standard > currently It's in current draft, with width/height properties and getContext method. > - are you suggesting that the Web Application specification > should require the prototyping of these objects? I would be very > much opposed to this, requiring a particular coupling to javascript is > not a good idea. But such coupling is already there for every current form element. Prototypes are required by ECMA script already. -- regards, Kornel Lesinski From jim.ley at gmail.com Sun Apr 24 09:42:31 2005 From: jim.ley at gmail.com (Jim Ley) Date: Sun, 24 Apr 2005 17:42:31 +0100 Subject: [whatwg] Canvas element - Keep It Simple In-Reply-To: <op.spqtz1af602458@idlaptop02.ideadesigners.local> References: <4266733C.4060901@olav.dk> <4266D2D6.2060802@myrealbox.com> <e06e01ec2cb663550835cdd78c2168f4@iki.fi> <851c8d310504220800549069a4@mail.gmail.com> <e8e97f9f0504220809596db2db@mail.gmail.com> <6.2.1.2.2.20050422100505.02aa1e88@pop.mail.yahoo.com> <42693A80.5020006@annevankesteren.nl> <op.spqpq0np602458@idlaptop02.ideadesigners.local> <851c8d31050424081417b2ab2@mail.gmail.com> <op.spqtz1af602458@idlaptop02.ideadesigners.local> Message-ID: <851c8d31050424094238388b24@mail.gmail.com> On 4/24/05, Kornel Lesinski <kornel at ldreams.net> wrote: > On Sun, 24 Apr 2005 16:14:29 +0100, Jim Ley <jim.ley at gmail.com> wrote: > Drawable <img> is pretty easy to implement (change to internal bitmap), So the proposal to have img alone switch to drawable seems a good one. The WHAT-WG members have previously said that new elements are a bad idea as they're more complicated to implement - re-using image seems a good option. Especially as it would give us the ability to use the image itself as a background - and to provide fallback support for the user. Look at google maps, it draws on top of img elements, adding in extra canvas elements would seem to be highly redundant? > > The existence of an HTMLCanvasElement prototype is not standard > > currently > > It's in current draft, with width/height properties and getContext method. Could you point to where? Or was I not clear enough about talking about the _prototype_ that's the thing that is not currently specified and I believe is hugely unwarranted. [Prototypes] > But such coupling is already there for every current form element. > Prototypes are required by ECMA script already. Could you point me to the part of the specification? Because by my reading of the ECMA spec prototypes are not required on host objects such as the DOM in a webbrowser. Jim. From bradneuberg at yahoo.com Sun Apr 24 16:07:26 2005 From: bradneuberg at yahoo.com (Brad Neuberg) Date: Sun, 24 Apr 2005 16:07:26 -0700 (PDT) Subject: [whatwg] Canvas element - Keep It Simple In-Reply-To: 6667 Message-ID: <20050424230726.72862.qmail@web60707.mail.yahoo.com> --- Jim Ley <jim.ley at gmail.com> wrote: > On 4/24/05, Henri Sivonen <hsivonen at iki.fi> wrote: > > On Apr 23, 2005, at 22:16, dolphinling wrote: > > > > > There's one implementation, and one > implementation in testing builds. > > > It would also be an easy change to make for > those implementations (and > > > they could still keep support for the "old way" > if they need). > > > > The release date of Tiger is very near. Safari > will ship with canvas. > > So? What's that got to do with the Web Applications > Standard? > > > Once it is out, you can't pull it back. > > It's never been in a published standard, the > specification still > states that it's subject to change. I'm very > disappointed that the "do > not implement in released software" has been removed > without any > discussion on the list of the maturity of the > specification, but > that's just the normal high handed approach of the > working group. But > even without that, there's no need to bless a poor > implementation > decisison simply because one minority browser has > implemented it and > used it solely in non-web content. > > If successful shipped implementations is what > matters, then there's > lots of successful IE extensions that do the same as > canvas and other > elements which it would be much more sensible to go > with. I'm not against that; I thought one of the ideas behind the WHAT working group is to take already working defacto standards and simply specify them and implement them in other browsers, such as innerHTML and XmlHttpRequest. I'd much rather choose an already existing, if not perfect, canvas or drawable surface type defacto standard than create an imaginary "perfect" one like we seem to be doing on this list. Running code is king.... Brad > > Jim. > From jim.ley at gmail.com Mon Apr 25 01:17:04 2005 From: jim.ley at gmail.com (Jim Ley) Date: Mon, 25 Apr 2005 09:17:04 +0100 Subject: [whatwg] Canvas element - Keep It Simple In-Reply-To: <20050424230726.72862.qmail@web60707.mail.yahoo.com> References: <20050424230726.72862.qmail@web60707.mail.yahoo.com> Message-ID: <851c8d31050425011752d88d7@mail.gmail.com> On 4/25/05, Brad Neuberg <bradneuberg at yahoo.com> wrote: > > If successful shipped implementations is what > > matters, then there's > > lots of successful IE extensions that do the same as > > canvas and other > > elements which it would be much more sensible to go > > with. > > I'm not against that; I thought one of the ideas > behind the WHAT working group is to take already > working defacto standards and simply specify them and > implement them in other browsers, such as innerHTML > and XmlHttpRequest. I'd much rather choose an already > existing, if not perfect, canvas or drawable surface > type defacto standard than create an imaginary > "perfect" one like we seem to be doing on this list. > Running code is king.... Great, lets go with VML, supported on the majority of desktops out there, used by high profile sites such as Google, It's a much better option albeit more complicated than canvas. Jim. From olav at olav.dk Mon Apr 25 02:46:37 2005 From: olav at olav.dk (=?ISO-8859-1?Q?Olav_Junker_Kj=E6r?=) Date: Mon, 25 Apr 2005 11:46:37 +0200 Subject: [whatwg] Canvas element - Keep It Simple In-Reply-To: <851c8d31050425011752d88d7@mail.gmail.com> References: <20050424230726.72862.qmail@web60707.mail.yahoo.com> <851c8d31050425011752d88d7@mail.gmail.com> Message-ID: <426CBC7D.50303@olav.dk> Jim Ley wrote: > Great, lets go with VML, supported on the majority of desktops out > there, used by high profile sites such as Google, It's a much better > option albeit more complicated than canvas. First I thought you were joking, but that is actually a great idea! VML does integrate with HTML, not just XHTML, which was one of Dave Hyatts major criticisms against SVG. http://weblogs.mozillazine.org/hyatt/archives/2004_07.html#005928 It's certainly a lot more work to implement that canvas, but if it became supported by other browsers than IE, it would be useful on the wold wide web a lot sooner than canvas or SVG. Even if Microsoft committed to support SVG or canvas in a future version of IE (which I think is unlikely), it would still take years for the implementation to penetrate. OTOH VML is already widely supported - it's just ignored by developers because it is perceived as proprietary, and because Flash has an even wider penetration (and better tools). regards Olav Junker Kj?r From bkn3 at columbia.edu Mon Apr 25 12:06:10 2005 From: bkn3 at columbia.edu (Brad Neuberg) Date: Mon, 25 Apr 2005 12:06:10 -0700 Subject: [whatwg] Canvas element - Keep It Simple In-Reply-To: <851c8d31050424094238388b24@mail.gmail.com> References: <4266733C.4060901@olav.dk> <4266D2D6.2060802@myrealbox.com> <e06e01ec2cb663550835cdd78c2168f4@iki.fi> <851c8d310504220800549069a4@mail.gmail.com> <e8e97f9f0504220809596db2db@mail.gmail.com> <6.2.1.2.2.20050422100505.02aa1e88@pop.mail.yahoo.com> <42693A80.5020006@annevankesteren.nl> <op.spqpq0np602458@idlaptop02.ideadesigners.local> <851c8d31050424081417b2ab2@mail.gmail.com> <op.spqtz1af602458@idlaptop02.ideadesigners.local> <851c8d31050424094238388b24@mail.gmail.com> Message-ID: <6.2.1.2.2.20050425120411.02a24758@pop.mail.yahoo.com> At 09:42 AM 4/24/2005, Jim Ley wrote: >On 4/24/05, Kornel Lesinski <kornel at ldreams.net> wrote: > > On Sun, 24 Apr 2005 16:14:29 +0100, Jim Ley <jim.ley at gmail.com> wrote: > > Drawable <img> is pretty easy to implement (change to internal bitmap), > >So the proposal to have img alone switch to drawable seems a good one. > The WHAT-WG members have previously said that new elements are a bad >idea as they're more complicated to implement - re-using image seems a >good option. Especially as it would give us the ability to use the >image itself as a background - and to provide fallback support for the >user. > >Look at google maps, it draws on top of img elements, adding in extra >canvas elements would seem to be highly redundant? > > > > The existence of an HTMLCanvasElement prototype is not standard > > > currently > > > > It's in current draft, with width/height properties and getContext method. > >Could you point to where? Or was I not clear enough about talking >about the _prototype_ that's the thing that is not currently specified >and I believe is hugely unwarranted. > >[Prototypes] > > But such coupling is already there for every current form element. > > Prototypes are required by ECMA script already. > >Could you point me to the part of the specification? Because by my >reading of the ECMA spec prototypes are not required on host objects >such as the DOM in a webbrowser. True, but having prototypes on DOM objects can be extremely useful and provide all sorts of very powerful options. Mozilla allows manipulation of the prototype object on DOM objects (except for removing the original native methods and attributes, for security reasons). Unfortunately, IE doesn't support this, so this ability can't really be used in practice. Brad >Jim. Brad Neuberg, bkn3 at columbia.edu Senior Software Engineer, Rojo Networks Weblog: http://www.codinginparadise.org ===================================================================== Check out Rojo, an RSS and Atom news aggregator that I work on. Visit http://rojo.com for more info. Feel free to ask me for an invite! Rojo is Hiring! If you're interested in RSS, Weblogs, Social Networking, Java, Open Source, etc... then come work with us at Rojo. If you recommend someone and we hire them you'll get a free iPod! See http://www.rojonetworks.com/JobsAtRojo.html. From bkn3 at columbia.edu Mon Apr 25 12:17:17 2005 From: bkn3 at columbia.edu (Brad Neuberg) Date: Mon, 25 Apr 2005 12:17:17 -0700 Subject: [whatwg] Canvas element - Keep It Simple In-Reply-To: <851c8d31050425011752d88d7@mail.gmail.com> References: <20050424230726.72862.qmail@web60707.mail.yahoo.com> <851c8d31050425011752d88d7@mail.gmail.com> Message-ID: <6.2.1.2.2.20050425121648.02a4b510@pop.mail.yahoo.com> Here's the VML standard if folks are interested: http://www.w3.org/TR/1998/NOTE-VML-19980513 How closely does IE correspond to the VML standard? I love the idea of embracing and extending things from Microsoft, co-opting them. ;) Brad At 01:17 AM 4/25/2005, Jim Ley wrote: >On 4/25/05, Brad Neuberg <bradneuberg at yahoo.com> wrote: > > > If successful shipped implementations is what > > > matters, then there's > > > lots of successful IE extensions that do the same as > > > canvas and other > > > elements which it would be much more sensible to go > > > with. > > > > I'm not against that; I thought one of the ideas > > behind the WHAT working group is to take already > > working defacto standards and simply specify them and > > implement them in other browsers, such as innerHTML > > and XmlHttpRequest. I'd much rather choose an already > > existing, if not perfect, canvas or drawable surface > > type defacto standard than create an imaginary > > "perfect" one like we seem to be doing on this list. > > Running code is king.... > >Great, lets go with VML, supported on the majority of desktops out >there, used by high profile sites such as Google, It's a much better >option albeit more complicated than canvas. > >Jim. Brad Neuberg, bkn3 at columbia.edu Senior Software Engineer, Rojo Networks Weblog: http://www.codinginparadise.org ===================================================================== Check out Rojo, an RSS and Atom news aggregator that I work on. Visit http://rojo.com for more info. Feel free to ask me for an invite! Rojo is Hiring! If you're interested in RSS, Weblogs, Social Networking, Java, Open Source, etc... then come work with us at Rojo. If you recommend someone and we hire them you'll get a free iPod! See http://www.rojonetworks.com/JobsAtRojo.html. From hsivonen at iki.fi Mon Apr 25 12:46:45 2005 From: hsivonen at iki.fi (Henri Sivonen) Date: Mon, 25 Apr 2005 22:46:45 +0300 Subject: [whatwg] text/html flavor conformance checkers and <foo /> Message-ID: <6999888fe81645cb9750235153c271d3@iki.fi> What should text/html flavor conformance checkers say about <foo />? Silently treat as <foo>> as per SGML? Silently treat as <foo> as per real world? Report a warning? Report an error? What about <foo/>? I am leaning towards reporting an error. -- Henri Sivonen hsivonen at iki.fi http://hsivonen.iki.fi/ From bkn3 at columbia.edu Mon Apr 25 12:58:08 2005 From: bkn3 at columbia.edu (Brad Neuberg) Date: Mon, 25 Apr 2005 12:58:08 -0700 Subject: [whatwg] text/html flavor conformance checkers and <foo /> In-Reply-To: <6999888fe81645cb9750235153c271d3@iki.fi> References: <6999888fe81645cb9750235153c271d3@iki.fi> Message-ID: <6.2.1.2.2.20050425125702.02a303c8@pop.mail.yahoo.com> At 12:46 PM 4/25/2005, Henri Sivonen wrote: >What should text/html flavor conformance checkers say about <foo />? > >Silently treat as <foo>> as per SGML? >Silently treat as <foo> as per real world? >Report a warning? >Report an error? > >What about <foo/>? > >I am leaning towards reporting an error. Unfortunately, <foo /> is the real world way of "hacking" XHTML support into IE, since IE will belch if you give <foo/>. You also have to serve it up as text/html for IE..... You should probably transform it into what people expect it in the real world, which is turning <foo /> into <foo>. Brad >-- >Henri Sivonen >hsivonen at iki.fi >http://hsivonen.iki.fi/ > Brad Neuberg, bkn3 at columbia.edu Senior Software Engineer, Rojo Networks Weblog: http://www.codinginparadise.org ===================================================================== Check out Rojo, an RSS and Atom news aggregator that I work on. Visit http://rojo.com for more info. Feel free to ask me for an invite! Rojo is Hiring! If you're interested in RSS, Weblogs, Social Networking, Java, Open Source, etc... then come work with us at Rojo. If you recommend someone and we hire them you'll get a free iPod! See http://www.rojonetworks.com/JobsAtRojo.html. From fora at annevankesteren.nl Mon Apr 25 13:00:32 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Mon, 25 Apr 2005 22:00:32 +0200 Subject: [whatwg] text/html flavor conformance checkers and <foo /> In-Reply-To: <6.2.1.2.2.20050425125702.02a303c8@pop.mail.yahoo.com> References: <6999888fe81645cb9750235153c271d3@iki.fi> <6.2.1.2.2.20050425125702.02a303c8@pop.mail.yahoo.com> Message-ID: <426D4C60.6070307@annevankesteren.nl> Brad Neuberg wrote: >> What should text/html flavor conformance checkers say about <foo />? >> >> Silently treat as <foo>> as per SGML? >> Silently treat as <foo> as per real world? >> Report a warning? >> Report an error? >> >> What about <foo/>? >> >> I am leaning towards reporting an error. > > Unfortunately, <foo /> is the real world way of "hacking" XHTML support > into IE, since IE will belch if you give <foo/>. You also have to serve > it up as text/html for IE..... You should probably transform it into > what people expect it in the real world, which is turning <foo /> into > <foo>. That was my first though too, until Henri pointed out he was talking about conformance checkers and not about parsers. -- Anne van Kesteren <http://annevankesteren.nl/> From olav at olav.dk Mon Apr 25 13:21:05 2005 From: olav at olav.dk (=?ISO-8859-1?Q?Olav_Junker_Kj=E6r?=) Date: Mon, 25 Apr 2005 22:21:05 +0200 Subject: [whatwg] text/html flavor conformance checkers and <foo /> In-Reply-To: <6999888fe81645cb9750235153c271d3@iki.fi> References: <6999888fe81645cb9750235153c271d3@iki.fi> Message-ID: <426D5131.2070201@olav.dk> Both <foo /> and <foo/> are errors in HTML and should be flagged by a conformance checker. XHTML 1.0 appendix C arguably allows a hybrid syntax which is HTML and XHTML at the same time. This is not relevant for HTML5 though, since HTML5 explicitly disallows serving XHTML as text/html, so a HTML5 document is always either HTML or XHTML dependent on the mime type. regards Olav Junker Kj?r Henri Sivonen wrote: > What should text/html flavor conformance checkers say about <foo />? > > Silently treat as <foo>> as per SGML? > Silently treat as <foo> as per real world? > Report a warning? > Report an error? > > What about <foo/>? > > I am leaning towards reporting an error. > From ian at hixie.ch Mon Apr 25 16:23:11 2005 From: ian at hixie.ch (Ian Hickson) Date: Mon, 25 Apr 2005 23:23:11 +0000 (UTC) Subject: [whatwg] Re: HTTP 205 response In-Reply-To: <426D659E.9020907@mit.edu> References: <426D659E.9020907@mit.edu> Message-ID: <Pine.LNX.4.61.0504252317260.25513@dhalsim.dreamhost.com> On Mon, 25 Apr 2005, Boris Zbarsky wrote: > > Step 8 at http://whatwg.org/specs/web-forms/current-work/#form-submission > doesn't seem particularly well-defined to me. In particular, > > 1) There is no definition of the term "form" here (if there is one > elsewhere in the specification, please link to it). Would a form in > a Flash plugin be considered a form? What about XForms? What about > other languages (eg XUL) defining HTML-form-like semantics? Changed to specifically refer to <form> elements. > 2) It's not clear to me why simply resetting forms to their current > defaultValues (as opposed to their initial defaultValues) follows > the HTTP specification being cited Changed to say that the requirement in WF2 is based on the HTTP one, but that the HTTP one is vague. > See also https://bugzilla.mozilla.org/show_bug.cgi?id=198309 for some > discussion on the issue. Did you have any specific comments in mind? Thanks for your input, I have updated the spec accordingly. Please let me know if there's anything that could be improved. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From ian at hixie.ch Tue Apr 26 01:44:47 2005 From: ian at hixie.ch (Ian Hickson) Date: Tue, 26 Apr 2005 08:44:47 +0000 (UTC) Subject: [whatwg] Re: HTTP 205 response In-Reply-To: <426DAF2C.2090906@mit.edu> References: <426D659E.9020907@mit.edu> <Pine.LNX.4.61.0504252317260.25513@dhalsim.dreamhost.com> <426DAF2C.2090906@mit.edu> Message-ID: <Pine.LNX.4.61.0504260831060.25513@dhalsim.dreamhost.com> On Mon, 25 Apr 2005, Boris Zbarsky wrote: > > > > Changed to specifically refer to <form> elements. > > I assume the specification somewhere makes it clear that element names > in orange (is this a good idea accessibility-wise?) mean <html:*> > elements or something equivalent? The terminology section says: "Unless otherwise stated, XML elements defined in this specification are elements in the http://www.w3.org/1999/xhtml namespace, and attributes defined in this specification have no namespace." ...is that enough? (The orange colour applies to all <code> elements.) > > > See also https://bugzilla.mozilla.org/show_bug.cgi?id=198309 for some > > > discussion on the issue. > > > > Did you have any specific comments in mind? > > Yes. It's not clear which document should be reset when the 205 > response is received if the form had a target attribute. Note that if > that happened the 205 may be received after the original document no > longer exists. Also note that in the simplest and most straightforward > implementation of form submission (as just another load in a window) the > HTTP request may only be aware of the target document, not the one it > was "dispatched from" (whatever that means, in general; see next > paragraph). > > One other thing. When a 205 is received, will the onreset handlers of > the relevant forms fire? Addressed the above points. http://whatwg.org/specs/web-forms/current-work/#form-submission Let me know if you can find any other holes! :-) > It's also not clear what should happen if a 205 response is received in > response to an HTTP request that is NOT a form submission (say a link > click, the user typing a URI in the URL bar, a window.open call, etc, > etc). It may be that the specification wishes to leave these cases > undefined; it may be worth clearly saying so in that case. Those cases will be defined in the Web Apps spec in due course, but are out of scope of the Web Forms spec. I don't really know where to put the note in the WF2 spec; putting it in the middle of the forms submission algorithm seems a bit weird (obviously that stuff doesn't apply to things other than form submission, it's right in the middle of sections that are exclusively about form submission). Thanks hugely for your input, -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From tato at game.gr.jp Mon Apr 25 04:25:25 2005 From: tato at game.gr.jp (Toshirou Takahashi) Date: Mon, 25 Apr 2005 20:25:25 +0900 Subject: [whatwg] about 2.12. Scripting Message-ID: <20050425193543.603E.TATO@game.gr.jp> hi(^^)/ about 2.12. Scripting http://whatwg.org/specs/web-apps/current-work/#the-script interface HTMLScriptElement : HTMLElement { attribute DOMString text; attribute DOMString src; attribute DOMString type; }; Why isn't there Charset attribute ? i think ... the charset attribute is necessary for Script Tag. Because, beforehand, we do not know charset that read by src attribute. reference: HTML4.0 http://www.w3.org/TR/REC-html40/interact/scripts.html#h-18.2.1 <!ELEMENT SCRIPT - - %Script; -- script statements --> <!ATTLIST SCRIPT charset %Charset; #IMPLIED -- char encoding of linked resource -- type %ContentType; #REQUIRED -- content type of script language -- src %URI; #IMPLIED -- URI for an external script -- defer (defer) #IMPLIED -- UA may defer execution of script -- > DOM1 http://www.w3.org/TR/DOM-Level-1/level-one-html.html#ID-81598695 interface HTMLScriptElement : HTMLElement { attribute DOMString text; attribute DOMString htmlFor; attribute DOMString event; attribute DOMString charset; attribute boolean defer; attribute DOMString src; attribute DOMString type; }; MSDN http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/objects/script.asp -- Toshirou Takahashi <tato at game.gr.jp> http://allabout.co.jp/career/javascript/profile/mbiopage.htm http://jsgt.org/mt/01/ From bzbarsky at mit.edu Mon Apr 25 20:02:04 2005 From: bzbarsky at mit.edu (Boris Zbarsky) Date: Mon, 25 Apr 2005 22:02:04 -0500 Subject: [whatwg] Re: HTTP 205 response In-Reply-To: <Pine.LNX.4.61.0504252317260.25513@dhalsim.dreamhost.com> References: <426D659E.9020907@mit.edu> <Pine.LNX.4.61.0504252317260.25513@dhalsim.dreamhost.com> Message-ID: <426DAF2C.2090906@mit.edu> Ian Hickson wrote: > Changed to specifically refer to <form> elements. I assume the specification somewhere makes it clear that element names in orange (is this a good idea accessibility-wise?) mean <html:*> elements or something equivalent? >>See also https://bugzilla.mozilla.org/show_bug.cgi?id=198309 for some >>discussion on the issue. > > Did you have any specific comments in mind? Yes. It's not clear which document should be reset when the 205 response is received if the form had a target attribute. Note that if that happened the 205 may be received after the original document no longer exists. Also note that in the simplest and most straightforward implementation of form submission (as just another load in a window) the HTTP request may only be aware of the target document, not the one it was "dispatched from" (whatever that means, in general; see next paragraph). It's also not clear what should happen if a 205 response is received in response to an HTTP request that is NOT a form submission (say a link click, the user typing a URI in the URL bar, a window.open call, etc, etc). It may be that the specification wishes to leave these cases undefined; it may be worth clearly saying so in that case. One other thing. When a 205 is received, will the onreset handlers of the relevant forms fire? -Boris From fora at annevankesteren.nl Tue Apr 26 04:24:54 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Tue, 26 Apr 2005 13:24:54 +0200 Subject: [whatwg] [html5] Use cases for DI element Message-ID: <426E2506.3060708@annevankesteren.nl> As use cases were requested for the DI element: 1. Identifying a definition group. 2. Editing a definition group When you have a list of items: <dl> <dt>foo <dt>bar <dt>baz <dd>terms <dd>programmar's slang <dt>HTML <dt>CSS <dd>Internet languages </dl> ... there is no simple way to identify a definition group. One way would be to give the first DT element an ID attribute but than the definition for ID would have to be changed. Also, when later through contentEditable a new DT element is inserted above the DT element with an ID attribute the ID attribute would have to be moved. (It is useful to have an ID attribute for FAQs, et cetera where you want to link to the answers.) Using a DI element that is easily solved as the DI element with an ID attribute would identify the definition group. It also makes editing of a definition group easier. Say users may edit a single group, you do: <dl contentEditable="false"> <dt>foo <dt>bar <dd>terms <dt contentEditable="true">HTML <dt contentEditable="true">CSS <dd contentEditable="true">Internet languages </dl> ... however, now you can't insert new definitions like "XML" or new descriptions. Using the opposite does enable that (setting contentEditable to true for the DL element and setting it to false for all elements that shouldn't be editable) but it creates another problem namely that people can insert new definitions. Again, a DI element would solve the issue. -- Anne van Kesteren <http://annevankesteren.nl/> From lachlan.hunt at lachy.id.au Tue Apr 26 05:57:19 2005 From: lachlan.hunt at lachy.id.au (Lachlan Hunt) Date: Tue, 26 Apr 2005 22:57:19 +1000 Subject: [whatwg] text/html flavor conformance checkers and <foo /> In-Reply-To: <6999888fe81645cb9750235153c271d3@iki.fi> References: <6999888fe81645cb9750235153c271d3@iki.fi> Message-ID: <426E3AAF.1040800@lachy.id.au> Henri Sivonen wrote: > What should text/html flavor conformance checkers say about <foo />? > > Silently treat as <foo>> as per SGML? Yes. > Silently treat as <foo> as per real world? Intentionally buggy/broken behaviour should not be carried over into conformance checkers. > Report a warning? Yes. > Report an error? I don't think it should be an error. A warning like the WDG validator issues is appropriate. > What about <foo/>? Same as <foo />. -- Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox From jg307 at cam.ac.uk Tue Apr 26 06:49:00 2005 From: jg307 at cam.ac.uk (James Graham) Date: Tue, 26 Apr 2005 14:49:00 +0100 Subject: [whatwg] text/html flavor conformance checkers and <foo /> In-Reply-To: <426D4C60.6070307@annevankesteren.nl> References: <6999888fe81645cb9750235153c271d3@iki.fi> <6.2.1.2.2.20050425125702.02a303c8@pop.mail.yahoo.com> <426D4C60.6070307@annevankesteren.nl> Message-ID: <426E46CC.7090409@cam.ac.uk> Anne van Kesteren wrote: > Brad Neuberg wrote: > >>> What should text/html flavor conformance checkers say about <foo />? >>> >>> Silently treat as <foo>> as per SGML? >>> Silently treat as <foo> as per real world? >>> Report a warning? >>> Report an error? >>> >>> What about <foo/>? >>> >>> I am leaning towards reporting an error. >> >> >> Unfortunately, <foo /> is the real world way of "hacking" XHTML >> support into IE, since IE will belch if you give <foo/>. You also >> have to serve it up as text/html for IE..... You should probably >> transform it into what people expect it in the real world, which is >> turning <foo /> into <foo>. > > > That was my first though too, until Henri pointed out he was talking > about conformance checkers and not about parsers. Is there a good reason that <foo /> cannot be valid HTML5? Any parser which doesn't support <foo /> also doesn't support much of the web content produced in the last 2 years. In this case a conformance checker could emit a warning (maybe only a strict warning) since it's not impossible that people will expect HTML5 to work in a parser that's incompatible with real-world HTML4. -- "But if science you say still sounds too deep, Just do what Beaker does, just shrug and 'Meep!'" -- Dr. Bunsen Honeydew & Beaker of Muppet Labs From fora at annevankesteren.nl Tue Apr 26 07:04:50 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Tue, 26 Apr 2005 16:04:50 +0200 Subject: [whatwg] text/html flavor conformance checkers and <foo /> In-Reply-To: <426E46CC.7090409@cam.ac.uk> References: <6999888fe81645cb9750235153c271d3@iki.fi> <6.2.1.2.2.20050425125702.02a303c8@pop.mail.yahoo.com> <426D4C60.6070307@annevankesteren.nl> <426E46CC.7090409@cam.ac.uk> Message-ID: <426E4A82.1010600@annevankesteren.nl> James Graham wrote: > Is there a good reason that <foo /> cannot be valid HTML5? Any parser > which doesn't support <foo /> also doesn't support much of the web > content produced in the last 2 years. I'm not sure about "a good reason". Mostly consistency I guess and giving people a single option. Note that parsers most likely have to parse <foo />, <foo/> and <foo> in the same way in order to be compatible with the web. That however, does not make it valid HTML5, that just makes the web work. Same for leaving out non optional end tags. HTML5 should define what should happen to the DOM tree. Leaving them out should be invalid. > In this case a conformance checker could emit a warning (maybe only a > strict warning) since it's not impossible that people will expect > HTML5 to work in a parser that's incompatible with real-world HTML4. Real-world HTML4 is exactly what HTML5 is going to represent. I'm not sure if I understand this correctly. -- Anne van Kesteren <http://annevankesteren.nl/> From olav at olav.dk Tue Apr 26 07:18:11 2005 From: olav at olav.dk (=?UTF-8?B?T2xhdiBKdW5rZXIgS2rDpnI=?=) Date: Tue, 26 Apr 2005 16:18:11 +0200 Subject: [whatwg] text/html flavor conformance checkers and <foo /> In-Reply-To: <426E46CC.7090409@cam.ac.uk> References: <6999888fe81645cb9750235153c271d3@iki.fi> <6.2.1.2.2.20050425125702.02a303c8@pop.mail.yahoo.com> <426D4C60.6070307@annevankesteren.nl> <426E46CC.7090409@cam.ac.uk> Message-ID: <426E4DA3.6050306@olav.dk> James Graham wrote: > Is there a good reason that <foo /> cannot be valid HTML5? Any parser > which doesn't support <foo /> also doesn't support much of the web > content produced in the last 2 years. In this case a conformance checker > could emit a warning (maybe only a strict warning) since it's not > impossible that people will expect HTML5 to work in a parser that's > incompatible with real-world HTML4. A conformance checker should check conformance to the spec, not conformance to the behavior of actual UA's. But new specs should (arguable) be aligned with the behavior of actual UA's if they are to be backwards compatible. There have been discussions about redefining the low-level parsing of HTML to bring it more in alignment with how current UA's works. If we want XHTML 1.0 to be legal HTML, it would make sense to allow the trailing slash in empty elements. That way, you could legally server the same content as both HTML and XHTML. (You can do that now, but it won't validate as HTML which is a drag. If you want to be able to serve the same content as both HTML and XHTML, you would want to make sure that it validates as both HTML and XHTML.) regards Olav Junker Kj?r From hsivonen at iki.fi Tue Apr 26 08:00:14 2005 From: hsivonen at iki.fi (Henri Sivonen) Date: Tue, 26 Apr 2005 18:00:14 +0300 Subject: [whatwg] text/html flavor conformance checkers and <foo /> In-Reply-To: <426E3AAF.1040800@lachy.id.au> References: <6999888fe81645cb9750235153c271d3@iki.fi> <426E3AAF.1040800@lachy.id.au> Message-ID: <426E577E.2080900@iki.fi> Lachlan Hunt wrote: > Henri Sivonen wrote: > >> What should text/html flavor conformance checkers say about <foo />? >> >> Silently treat as <foo>> as per SGML? > > Yes. What useful purpose would be served by doing so? >> Silently treat as <foo> as per real world? > > Intentionally buggy/broken behaviour should not be carried over into > conformance checkers. What do you suggest the parser layer of an text/html conformance checker say about <input checkbox ...>? 1. Silently treat as <input type="checkbox" ...>? 2. Treat as <input type="checkbox" ...> but warn? 3. Treat as <input checkbox="checkbox" ...> causing an error to be reported on a higher layer? 4. Treat as fatal error in the parser? I'm inclined to choose 3. -- Henri Sivonen hsivonen at iki.fi http://hsivonen.iki.fi/ From jax at opera.com Tue Apr 26 09:04:39 2005 From: jax at opera.com (Jonny Axelsson) Date: Tue, 26 Apr 2005 18:04:39 +0200 Subject: [whatwg] text/html flavor conformance checkers and <foo /> In-Reply-To: <426E577E.2080900@iki.fi> References: <6999888fe81645cb9750235153c271d3@iki.fi> <426E3AAF.1040800@lachy.id.au> <426E577E.2080900@iki.fi> Message-ID: <op.spuj91t7oh2a7v@jax-xp.upc.no> On Tue, 26 Apr 2005 17:00:14 +0200, Henri Sivonen <hsivonen at iki.fi> wrote: > Lachlan Hunt wrote: >> Henri Sivonen wrote: >>> What should text/html flavor conformance checkers say about <foo />? >>> Silently treat as <foo>> as per SGML? >> Yes. > > What useful purpose would be served by doing so? HTML never became a SGML application, and though SGML was believed to be on the verge of taking over the world in the middle nineties that never happened. There is no benefit in my opinion for a modern spec to include counter-intuitive SGML features that made sense at the time (or rather in a SGML universe). Neither would SGML dependency be desireable. > I'm inclined to choose 3. Seconded. -- Jonny Axelsson, Documentation, Opera Software ASA From fantasai.lists at inkedblade.net Tue Apr 26 09:08:20 2005 From: fantasai.lists at inkedblade.net (fantasai) Date: Tue, 26 Apr 2005 12:08:20 -0400 Subject: [whatwg] text/html flavor conformance checkers and <foo /> In-Reply-To: <426E577E.2080900@iki.fi> References: <6999888fe81645cb9750235153c271d3@iki.fi> <426E3AAF.1040800@lachy.id.au> <426E577E.2080900@iki.fi> Message-ID: <426E6774.4030308@inkedblade.net> Henri Sivonen wrote: > > What do you suggest the parser layer of an text/html conformance checker > say about <input checkbox ...>? > > 1. Silently treat as <input type="checkbox" ...>? > 2. Treat as <input type="checkbox" ...> but warn? > 3. Treat as <input checkbox="checkbox" ...> causing an error to be > reported on a higher layer? > 4. Treat as fatal error in the parser? > > I'm inclined to choose 3. *Why?* Why of all things would you choose to interpret it like /that/? It's neither reporting a useful error, nor handling it per SGML rules. ~fantasai From fora at annevankesteren.nl Tue Apr 26 09:16:32 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Tue, 26 Apr 2005 18:16:32 +0200 Subject: [whatwg] text/html flavor conformance checkers and <foo /> In-Reply-To: <426E577E.2080900@iki.fi> References: <6999888fe81645cb9750235153c271d3@iki.fi> <426E3AAF.1040800@lachy.id.au> <426E577E.2080900@iki.fi> Message-ID: <426E6960.2010901@annevankesteren.nl> Henri Sivonen wrote: > What do you suggest the parser layer of an text/html conformance checker > say about > <input checkbox ...>? > > 1. Silently treat as <input type="checkbox" ...>? > 2. Treat as <input type="checkbox" ...> but warn? > 3. Treat as <input checkbox="checkbox" ...> causing an error to be > reported on a higher layer? > 4. Treat as fatal error in the parser? A combination of 3 and 4. As |checkbox="checkbox"| is not a valid attribute and not a valid attribute value of the invalid attribute as far as I know. Or did you mean something else by 4? (It might be that we just agree...) -- Anne van Kesteren <http://annevankesteren.nl/> From fora at annevankesteren.nl Tue Apr 26 09:17:20 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Tue, 26 Apr 2005 18:17:20 +0200 Subject: [whatwg] text/html flavor conformance checkers and <foo /> In-Reply-To: <426E6774.4030308@inkedblade.net> References: <6999888fe81645cb9750235153c271d3@iki.fi> <426E3AAF.1040800@lachy.id.au> <426E577E.2080900@iki.fi> <426E6774.4030308@inkedblade.net> Message-ID: <426E6990.2040205@annevankesteren.nl> fantasai wrote: > *Why?* Why of all things would you choose to interpret it like /that/? > It's neither reporting a useful error, nor handling it per SGML rules. Because that is expected. -- Anne van Kesteren <http://annevankesteren.nl/> From bkn3 at columbia.edu Tue Apr 26 09:30:35 2005 From: bkn3 at columbia.edu (Brad Neuberg) Date: Tue, 26 Apr 2005 09:30:35 -0700 Subject: [whatwg] text/html flavor conformance checkers and <foo /> In-Reply-To: <op.spuj91t7oh2a7v@jax-xp.upc.no> References: <6999888fe81645cb9750235153c271d3@iki.fi> <426E3AAF.1040800@lachy.id.au> <426E577E.2080900@iki.fi> <op.spuj91t7oh2a7v@jax-xp.upc.no> Message-ID: <6.2.1.2.2.20050426093007.02af2cc8@pop.mail.yahoo.com> At 09:04 AM 4/26/2005, Jonny Axelsson wrote: >On Tue, 26 Apr 2005 17:00:14 +0200, Henri Sivonen <hsivonen at iki.fi> wrote: >>Lachlan Hunt wrote: >>>Henri Sivonen wrote: > >>>>What should text/html flavor conformance checkers say about <foo />? >>>>Silently treat as <foo>> as per SGML? >>> Yes. >> >>What useful purpose would be served by doing so? > >HTML never became a SGML application, and though SGML was believed to be >on the verge of taking over the world in the middle nineties that never >happened. There is no benefit in my opinion for a modern spec to include >counter-intuitive SGML features that made sense at the time (or rather in >a SGML universe). Neither would SGML dependency be desireable. +1. When will people stop pretending that HTML is not SGML (it's also not currently XML)? It has developed into its own technology with its own set of practices. >>I'm inclined to choose 3. >Seconded. > >-- >Jonny Axelsson, Documentation, Opera Software ASA Brad Neuberg, bkn3 at columbia.edu Senior Software Engineer, Rojo Networks Weblog: http://www.codinginparadise.org ===================================================================== Check out Rojo, an RSS and Atom news aggregator that I work on. Visit http://rojo.com for more info. Feel free to ask me for an invite! Rojo is Hiring! If you're interested in RSS, Weblogs, Social Networking, Java, Open Source, etc... then come work with us at Rojo. If you recommend someone and we hire them you'll get a free iPod! See http://www.rojonetworks.com/JobsAtRojo.html. From bkn3 at columbia.edu Tue Apr 26 10:32:03 2005 From: bkn3 at columbia.edu (Brad Neuberg) Date: Tue, 26 Apr 2005 10:32:03 -0700 Subject: [whatwg] Questions: IE 6 Compatibility, HTML 5, Spec Timeframe, and Implementation Timeframe Message-ID: <6.2.1.2.2.20050426102545.02ab5f10@pop.mail.yahoo.com> I have several questions and concerns. First, what exactly is the stance in regard to IE 6 compatibility for Web Forms 2.0 and Web Applications 1.0? I've been hearing things lately concerning Web Applications 1.0 that seem like they would be very difficult, impossible, or cause slow performance if emulated in IE 6. Whats the exact relationship between these specs and IE 6? Will there be a baseline of support in IE 6, a low water mark? Second, what is the relationship of HTML 5 to these two specs? Who is developing this standard? At first glance it seems like a large dependency. Third, is there a timeframe for completing these two specs and for getting actual implementations out the door? I'm concerned that proprietary web app/rich web app defacto standards will succeed faster than the WHAT-WG, like Flash and Avalon, and one of the things that attracted me to the WHAT-WG was its focus on being real-world and pragmatic, getting it out the door rather than getting it perfect, co-opting and using existing de-facto standards like innerHTML rather than rolling new ivory tower ones. Would hard deadlines on both specs, including deadlines for implementations, help this? I don't want to end up with another SVG, a giant spec that was announced, took years to develop, and still doesn't have real implementations or critical mass. We need this stuff yesterday; it's just too important. ;) Best, Brad Neuberg Brad Neuberg, bkn3 at columbia.edu Senior Software Engineer, Rojo Networks Weblog: http://www.codinginparadise.org ===================================================================== Check out Rojo, an RSS and Atom news aggregator that I work on. Visit http://rojo.com for more info. Feel free to ask me for an invite! Rojo is Hiring! If you're interested in RSS, Weblogs, Social Networking, Java, Open Source, etc... then come work with us at Rojo. If you recommend someone and we hire them you'll get a free iPod! See http://www.rojonetworks.com/JobsAtRojo.html. From hsivonen at iki.fi Tue Apr 26 11:17:20 2005 From: hsivonen at iki.fi (Henri Sivonen) Date: Tue, 26 Apr 2005 21:17:20 +0300 Subject: [whatwg] text/html flavor conformance checkers and <foo /> In-Reply-To: <426E6960.2010901@annevankesteren.nl> References: <6999888fe81645cb9750235153c271d3@iki.fi> <426E3AAF.1040800@lachy.id.au> <426E577E.2080900@iki.fi> <426E6960.2010901@annevankesteren.nl> Message-ID: <260a2ed6009595acb31f973972d6dcba@iki.fi> On Apr 26, 2005, at 19:16, Anne van Kesteren wrote: > Henri Sivonen wrote: >> What do you suggest the parser layer of an text/html conformance >> checker say about >> <input checkbox ...>? >> 1. Silently treat as <input type="checkbox" ...>? >> 2. Treat as <input type="checkbox" ...> but warn? >> 3. Treat as <input checkbox="checkbox" ...> causing an error to be >> reported on a higher layer? >> 4. Treat as fatal error in the parser? > > A combination of 3 and 4. As |checkbox="checkbox"| is not a valid > attribute and not a valid attribute value of the invalid attribute as > far as I know. If you pick 4, you never get to the higher layer. > Or did you mean something else by 4? (It might be that we just > agree...) I meant that in case 4 the error would be reported in the component that has responsibilities similar to the responsibilities of the XML processor in the XHTML case. Since an XML processor would not flag <input checkbox="checkbox"/> as an error, I think requiring the HTML parser to know about particular attributes would be bad design. My vision of a conformance checker looks like this: http://hsivonen.iki.fi/img/what-wg-conformance-checker.png I think the requirements for conformance checkers should be formulated in such a way that the box labeled "Tag-level HTML parser" would not need to know about any particular element or attribute names. -- Henri Sivonen hsivonen at iki.fi http://hsivonen.iki.fi/ From hsivonen at iki.fi Tue Apr 26 11:21:58 2005 From: hsivonen at iki.fi (Henri Sivonen) Date: Tue, 26 Apr 2005 21:21:58 +0300 Subject: [whatwg] text/html flavor conformance checkers and <foo /> In-Reply-To: <426E6774.4030308@inkedblade.net> References: <6999888fe81645cb9750235153c271d3@iki.fi> <426E3AAF.1040800@lachy.id.au> <426E577E.2080900@iki.fi> <426E6774.4030308@inkedblade.net> Message-ID: <3eb7972b01befae4bd976fd969435de3@iki.fi> On Apr 26, 2005, at 19:08, fantasai wrote: > Henri Sivonen wrote: >> What do you suggest the parser layer of an text/html conformance >> checker say about <input checkbox ...>? >> 1. Silently treat as <input type="checkbox" ...>? >> 2. Treat as <input type="checkbox" ...> but warn? >> 3. Treat as <input checkbox="checkbox" ...> causing an error to be >> reported on a higher layer? >> 4. Treat as fatal error in the parser? >> I'm inclined to choose 3. > > *Why?* Why of all things would you choose to interpret it like /that/? > It's neither reporting a useful error, nor handling it per SGML rules. To make the separation of concerns similar to what it would be on the XML side while being real about SGMLness being fiction. That is, the parser does not need to know if an attribute is allowed. That's a job for a higher layer. -- Henri Sivonen hsivonen at iki.fi http://hsivonen.iki.fi/ From dean at edwards.name Tue Apr 26 11:27:34 2005 From: dean at edwards.name (Dean Edwards) Date: Tue, 26 Apr 2005 19:27:34 +0100 Subject: [whatwg] Questions: IE 6 Compatibility, HTML 5, Spec Timeframe, and Implementation Timeframe In-Reply-To: <6.2.1.2.2.20050426102545.02ab5f10@pop.mail.yahoo.com> References: <6.2.1.2.2.20050426102545.02ab5f10@pop.mail.yahoo.com> Message-ID: <426E8816.7040705@edwards.name> Brad Neuberg wrote: > I have several questions and concerns. > > First, what exactly is the stance in regard to IE 6 compatibility for > Web Forms 2.0 and Web Applications 1.0? I've been hearing things > lately concerning Web Applications 1.0 that seem like they would be > very difficult, impossible, or cause slow performance if emulated in > IE 6. Most of WF2 can be implemented in IE6 without a noticeable degradation in performance. Obviously, it will have some limits. A page with hundreds of form controls might cause some slowdown on older spec machines. An IE6 implementation is never going to be perfect but I believe you can script WF2 to a more than acceptable level on this platform. I'm not sure about WA1 as I haven't thought about it so much from an implementer's point of view. What bits of it do you think are difficult to implement? It seems to me that some of it does not need to be implemented at all. > Whats the exact relationship between these specs and IE 6? Will > there be a baseline of support in IE 6, a low water mark? > I don't think we've set a water mark but it has always been the intention to produce a WF2 spec capable of being supported on IE6. > Second, what is the relationship of HTML 5 to these two specs? Who is > developing this standard? At first glance it seems like a large > dependency. > WF2 and WA1 are components of HTML5: http://listserver.dreamhost.com/pipermail/whatwg-whatwg.org/2005-April/003746.html > Third, is there a timeframe for completing these two specs and for > getting actual implementations out the door? > one of the things that attracted me to the WHAT-WG was its focus on > being real-world and pragmatic, getting it out the door rather than > getting it perfect, co-opting and using existing de-facto standards This is pretty much the reason I got involved too. :-) > Would hard deadlines on both specs, including deadlines for > implementations, help this? As a programmer I always hated hard deadlines. > We need this stuff yesterday; it's just too important. ;) > I agree. ;-) Some of the developers on this list are collaborating on a WF2 implementation for IE5/6. It won't be ready yesterday but it will be built. We'll announce more about this development when there is something concrete to demonstrate. Does that satisfy your concerns? -dean From bkn3 at columbia.edu Tue Apr 26 11:49:42 2005 From: bkn3 at columbia.edu (Brad Neuberg) Date: Tue, 26 Apr 2005 11:49:42 -0700 Subject: [whatwg] Questions: IE 6 Compatibility, HTML 5, Spec Timeframe, and Implementation Timeframe In-Reply-To: <426E8816.7040705@edwards.name> References: <6.2.1.2.2.20050426102545.02ab5f10@pop.mail.yahoo.com> <426E8816.7040705@edwards.name> Message-ID: <6.2.1.2.2.20050426114558.02b1b820@pop.mail.yahoo.com> My focus is actually mostly on Web Applications 1.0 rather than Web Forms 2.0. Responses inline. >I'm not sure about WA1 as I haven't thought about it so much from an >implementer's point of view. What bits of it do you think are difficult >to implement? It seems to me that some of it does not need to be >implemented at all. I'll need to think about that. I'll have to read through the spec and think about what might be difficult or slow to emulate on IE. As a start some of the email list discussion on changing the semantics and parsing of basic HTML elements and re-interpreting what they mean concerned me in terms of IE, since doing this might be difficult especially since you can't modify the prototype objects of the DOM in IE. >>Whats the exact relationship between these specs and IE 6? Will >>there be a baseline of support in IE 6, a low water mark? > >I don't think we've set a water mark but it has always been the >intention to produce a WF2 spec capable of being supported on IE6. How about for Web Applications 1.0? If there are SHOULD and MAY portions of the spec, would all SHOULD elements be supported in IE while all MAY elements would not? >>Second, what is the relationship of HTML 5 to these two specs? Who is >> developing this standard? At first glance it seems like a large >> dependency. > >WF2 and WA1 are components of HTML5: > >http://listserver.dreamhost.com/pipermail/whatwg-whatwg.org/2005-April/003746.html > >>Third, is there a timeframe for completing these two specs and for >>getting actual implementations out the door? > >>one of the things that attracted me to the WHAT-WG was its focus on >>being real-world and pragmatic, getting it out the door rather than >>getting it perfect, co-opting and using existing de-facto standards > >This is pretty much the reason I got involved too. :-) > >>Would hard deadlines on both specs, including deadlines for >>implementations, help this? > >As a programmer I always hated hard deadlines. Me too, but they help, especially when you get to define them yourself. ;) I think it's good to a certain degree cuse its easy to get perfectionistic about this stuff, and a hard deadline can force you to accept that something won't be perfect and ship it out the door. >>We need this stuff yesterday; it's just too important. ;) > >I agree. ;-) > >Some of the developers on this list are collaborating on a WF2 >implementation for IE5/6. It won't be ready yesterday but it will be >built. We'll announce more about this development when there is >something concrete to demonstrate. > >Does that satisfy your concerns? A bit; I know that you also share an interest in real world specs that are "good enough", but does the group and the spec writers? Also, I'm mostly interested in Web Apps 1.0 so there are alot of questions still there. Best, Brad >-dean > Brad Neuberg, bkn3 at columbia.edu Senior Software Engineer, Rojo Networks Weblog: http://www.codinginparadise.org ===================================================================== Check out Rojo, an RSS and Atom news aggregator that I work on. Visit http://rojo.com for more info. Feel free to ask me for an invite! Rojo is Hiring! If you're interested in RSS, Weblogs, Social Networking, Java, Open Source, etc... then come work with us at Rojo. If you recommend someone and we hire them you'll get a free iPod! See http://www.rojonetworks.com/JobsAtRojo.html. From ian at hixie.ch Tue Apr 26 11:51:47 2005 From: ian at hixie.ch (Ian Hickson) Date: Tue, 26 Apr 2005 18:51:47 +0000 (UTC) Subject: [whatwg] Questions: IE 6 Compatibility, HTML 5, Spec Timeframe, and Implementation Timeframe In-Reply-To: <6.2.1.2.2.20050426102545.02ab5f10@pop.mail.yahoo.com> References: <6.2.1.2.2.20050426102545.02ab5f10@pop.mail.yahoo.com> Message-ID: <Pine.LNX.4.61.0504261754530.3661@dhalsim.dreamhost.com> On Tue, 26 Apr 2005, Brad Neuberg wrote: > > First, what exactly is the stance in regard to IE 6 compatibility for > Web Forms 2.0 and Web Applications 1.0? Basically: * New features must gracefully fallback to legacy UAs: although that fallback may be simple lack of support for that feature, using new features in legacy UAs must not cause the experience in older UAs to be worse than if the feature was simply not used. Examples: * <object></object> in HTML4 allows graceful fallback, and is fine. * <img alt=""> doesn't allow good fallback, but degrades to nothing at all, so could be considered if there were no other better ideas. * Switching to a different MIME type makes the file unusable in older browsers, so it would be unacceptable. * Ideally, new features should be implementable using shims in WinIE, but there may be cases where that's not possible, and in those cases we're not going to avoid adding the feature just because WinIE can't do it. Example: * a 3D context for <canvas> is probably not something we can realisticly expect to see implemented in IE using JS, but it's still something we've had demand for and thus something we'll likely be working on. > I've been hearing things lately concerning Web Applications 1.0 that > seem like they would be very difficult, impossible, or cause slow > performance if emulated in IE 6. Whats the exact relationship between > these specs and IE 6? Will there be a baseline of support in IE 6, a > low water mark? The relationship is that most people won't use features that don't work in IE, so most features have to bear that in mind. Some people have specific needs (<canvas> for example is something we've heard a lot of demand for from people wanting to write games and the like), which they can't ever expect to really have work in IE, and so for those we need to offer features designed so that they can still provide alternative versions for IE (i.e. fallback). > Second, what is the relationship of HTML 5 to these two specs? Who is > developing this standard? At first glance it seems like a large > dependency. HTML5 is the Web Apps spec. It isn't called that yet in the headings for political reasons. > Third, is there a timeframe for completing these two specs and for > getting actual implementations out the door? Web Forms 2 is basically done and will be going to Call For Implementations shortly. Web Apps 1 has no ETA yet. Implementations of some parts have shipped for years (XMLHttpRequest), implementations of others are likely to ship soon (<canvas>), implementations of other parts aren't likely for a long time (relatively speaking). > I'm concerned that proprietary web app/rich web app defacto standards > will succeed faster than the WHAT-WG, like Flash and Avalon, and one of > the things that attracted me to the WHAT-WG was its focus on being > real-world and pragmatic, getting it out the door rather than getting it > perfect, co-opting and using existing de-facto standards like innerHTML > rather than rolling new ivory tower ones. Would hard deadlines on both > specs, including deadlines for implementations, help this? I agree that we have to move fast. I believe the main ways to do this are to (a) write text at a steady rate (as I am doing), (b) to get feedback on the spec (as is happening), and (c) to stop adding new features. There is one more feature I think we need to add to the spec that isn't there already, namely the session stuff that people have been discussing. Other than that I'm of the opinion that we have enough features for "HTML5" now and so "all" that remains is fleshing the spec out. I don't think deadlines would help, really. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From jim.ley at gmail.com Tue Apr 26 11:53:25 2005 From: jim.ley at gmail.com (Jim Ley) Date: Tue, 26 Apr 2005 19:53:25 +0100 Subject: [whatwg] Questions: IE 6 Compatibility, HTML 5, Spec Timeframe, and Implementation Timeframe In-Reply-To: <6.2.1.2.2.20050426114558.02b1b820@pop.mail.yahoo.com> References: <6.2.1.2.2.20050426102545.02ab5f10@pop.mail.yahoo.com> <426E8816.7040705@edwards.name> <6.2.1.2.2.20050426114558.02b1b820@pop.mail.yahoo.com> Message-ID: <851c8d3105042611532fddb287@mail.gmail.com> On 4/26/05, Brad Neuberg <bkn3 at columbia.edu> wrote: > How about for Web Applications 1.0? If there are SHOULD and MAY portions > of the spec, would all SHOULD elements be supported in IE while all MAY > elements would not? We don't want optional things in specifications, optional bits and profiles etc. just fragment the supported parts even more than the simple incomplete/buggy implementation reality. Jim. From jim.ley at gmail.com Tue Apr 26 11:56:59 2005 From: jim.ley at gmail.com (Jim Ley) Date: Tue, 26 Apr 2005 19:56:59 +0100 Subject: [whatwg] Questions: IE 6 Compatibility, HTML 5, Spec Timeframe, and Implementation Timeframe In-Reply-To: <Pine.LNX.4.61.0504261754530.3661@dhalsim.dreamhost.com> References: <6.2.1.2.2.20050426102545.02ab5f10@pop.mail.yahoo.com> <Pine.LNX.4.61.0504261754530.3661@dhalsim.dreamhost.com> Message-ID: <851c8d3105042611561e65fea@mail.gmail.com> On 4/26/05, Ian Hickson <ian at hixie.ch> wrote: > On Tue, 26 Apr 2005, Brad Neuberg wrote: > Example: > > * a 3D context for <canvas> is probably not something we can > realisticly expect to see implemented in IE using JS, but it's > still something we've had demand for and thus something we'll > likely be working on. A 3D canvas is just, if not more implementable than a 2D one. Once again, rather than invent strange new things which then make us need to add shims to make it work in IE, why not take the existing massively supported on hundreds of millions of desktops and use that? > (<canvas> for example is something we've heard a lot of demand for > from people wanting to write games and the like), Could you provide more details? Surely Flash meets all the use cases for games developers, what's missing? > Web Forms 2 is basically done and will be going to Call For > Implementations shortly. When will we see a last call for comments? Jim. From bkn3 at columbia.edu Tue Apr 26 12:00:36 2005 From: bkn3 at columbia.edu (Brad Neuberg) Date: Tue, 26 Apr 2005 12:00:36 -0700 Subject: [whatwg] Questions: IE 6 Compatibility, HTML 5, Spec Timeframe, and Implementation Timeframe In-Reply-To: <Pine.LNX.4.61.0504261754530.3661@dhalsim.dreamhost.com> References: <6.2.1.2.2.20050426102545.02ab5f10@pop.mail.yahoo.com> <Pine.LNX.4.61.0504261754530.3661@dhalsim.dreamhost.com> Message-ID: <6.2.1.2.2.20050426115802.0297a1d0@pop.mail.yahoo.com> At 11:51 AM 4/26/2005, Ian Hickson wrote: >On Tue, 26 Apr 2005, Brad Neuberg wrote: > > > > First, what exactly is the stance in regard to IE 6 compatibility for > > Web Forms 2.0 and Web Applications 1.0? > >Basically: > > * New features must gracefully fallback to legacy UAs: although that > fallback may be simple lack of support for that feature, using new > features in legacy UAs must not cause the experience in older UAs to > be worse than if the feature was simply not used. > > Examples: > > * <object></object> in HTML4 allows graceful fallback, and is fine. > > * <img alt=""> doesn't allow good fallback, but degrades to nothing > at all, so could be considered if there were no other better ideas. > > * Switching to a different MIME type makes the file unusable in older > browsers, so it would be unacceptable. Nice. I like this policy. Perhaps the spec can specify a new behavior, and then describe how it falls back in IE across all the elements. > * Ideally, new features should be implementable using shims in WinIE, but > there may be cases where that's not possible, and in those cases we're > not going to avoid adding the feature just because WinIE can't do it. > > Example: > > * a 3D context for <canvas> is probably not something we can > realisticly expect to see implemented in IE using JS, but it's > still something we've had demand for and thus something we'll > likely be working on. Yeah, shims are great but I also agree that we shouldn't let IE hold back progress. A middle ground sounds like the best approach, which you have described. > > I've been hearing things lately concerning Web Applications 1.0 that > > seem like they would be very difficult, impossible, or cause slow > > performance if emulated in IE 6. Whats the exact relationship between > > these specs and IE 6? Will there be a baseline of support in IE 6, a > > low water mark? > >The relationship is that most people won't use features that don't work in >IE, so most features have to bear that in mind. Some people have specific >needs (<canvas> for example is something we've heard a lot of demand for >from people wanting to write games and the like), which they can't ever >expect to really have work in IE, and so for those we need to offer >features designed so that they can still provide alternative versions for >IE (i.e. fallback). > > > > Second, what is the relationship of HTML 5 to these two specs? Who is > > developing this standard? At first glance it seems like a large > > dependency. > >HTML5 is the Web Apps spec. It isn't called that yet in the headings for >political reasons. That makes sense. So, Web Forms 2.0 is a response to XForms, since XForms isn't realistic, and Web Applications is basicly a realistic HTML 5, which the W3C won't or can't provide in the terms the web needs today? > > Third, is there a timeframe for completing these two specs and for > > getting actual implementations out the door? > >Web Forms 2 is basically done and will be going to Call For >Implementations shortly. Nice >Web Apps 1 has no ETA yet. Implementations of some parts have shipped for >years (XMLHttpRequest), implementations of others are likely to ship soon >(<canvas>), implementations of other parts aren't likely for a long time >(relatively speaking). > > > > I'm concerned that proprietary web app/rich web app defacto standards > > will succeed faster than the WHAT-WG, like Flash and Avalon, and one of > > the things that attracted me to the WHAT-WG was its focus on being > > real-world and pragmatic, getting it out the door rather than getting it > > perfect, co-opting and using existing de-facto standards like innerHTML > > rather than rolling new ivory tower ones. Would hard deadlines on both > > specs, including deadlines for implementations, help this? > >I agree that we have to move fast. I believe the main ways to do this are >to (a) write text at a steady rate (as I am doing), (b) to get feedback on >the spec (as is happening), and (c) to stop adding new features. There is >one more feature I think we need to add to the spec that isn't there >already, namely the session stuff that people have been discussing. Other >than that I'm of the opinion that we have enough features for "HTML5" now >and so "all" that remains is fleshing the spec out. > >I don't think deadlines would help, really. I agree; I like your approach. Thanks for all the work and being responsive to people's concerns. Thats not easy. :) Best, Brad >-- >Ian Hickson U+1047E )\._.,--....,'``. fL >http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. >Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' Brad Neuberg, bkn3 at columbia.edu Senior Software Engineer, Rojo Networks Weblog: http://www.codinginparadise.org ===================================================================== Check out Rojo, an RSS and Atom news aggregator that I work on. Visit http://rojo.com for more info. Feel free to ask me for an invite! Rojo is Hiring! If you're interested in RSS, Weblogs, Social Networking, Java, Open Source, etc... then come work with us at Rojo. If you recommend someone and we hire them you'll get a free iPod! See http://www.rojonetworks.com/JobsAtRojo.html. From ian at hixie.ch Tue Apr 26 12:12:20 2005 From: ian at hixie.ch (Ian Hickson) Date: Tue, 26 Apr 2005 19:12:20 +0000 (UTC) Subject: [whatwg] Questions: IE 6 Compatibility, HTML 5, Spec Timeframe, and Implementation Timeframe In-Reply-To: <6.2.1.2.2.20050426115802.0297a1d0@pop.mail.yahoo.com> References: <6.2.1.2.2.20050426102545.02ab5f10@pop.mail.yahoo.com> <Pine.LNX.4.61.0504261754530.3661@dhalsim.dreamhost.com> <6.2.1.2.2.20050426115802.0297a1d0@pop.mail.yahoo.com> Message-ID: <Pine.LNX.4.61.0504261902300.3661@dhalsim.dreamhost.com> On Tue, 26 Apr 2005, Brad Neuberg wrote: > > > > > > Second, what is the relationship of HTML 5 to these two specs? Who > > > is developing this standard? At first glance it seems like a large > > > dependency. > > > > HTML5 is the Web Apps spec. It isn't called that yet in the headings > > for political reasons. > > That makes sense. So, Web Forms 2.0 is a response to XForms, since > XForms isn't realistic, and Web Applications is basicly a realistic HTML > 5, which the W3C won't or can't provide in the terms the web needs > today? "No, we are working with the W3C and these drafts are merely proposals that we fully intend to develop with the W3C in due course. XForms and XHTML2 are good technologies and the WHATWG specifications are in no way intended to compete with them." > I agree; I like your approach. Thanks for all the work and being > responsive to people's concerns. Thats not easy. :) Heh, thanks. Please do continue to send comments on the spec, they are very helpful. I reply to the comments as I get to the relevant parts of the spec, so please don't worry if there is a long delay before you get a reply, they are not being ignored... -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From ian at hixie.ch Tue Apr 26 15:56:47 2005 From: ian at hixie.ch (Ian Hickson) Date: Tue, 26 Apr 2005 22:56:47 +0000 (UTC) Subject: [whatwg] Questions: IE 6 Compatibility, HTML 5, Spec Timeframe, and Implementation Timeframe In-Reply-To: <851c8d3105042611561e65fea@mail.gmail.com> References: <6.2.1.2.2.20050426102545.02ab5f10@pop.mail.yahoo.com> <Pine.LNX.4.61.0504261754530.3661@dhalsim.dreamhost.com> <851c8d3105042611561e65fea@mail.gmail.com> Message-ID: <Pine.LNX.4.61.0504262252301.3661@dhalsim.dreamhost.com> On Tue, 26 Apr 2005, Jim Ley wrote: > > > Web Forms 2 is basically done and will be going to Call For > > Implementations shortly. > > When will we see a last call for comments? The first call for "final comments" was last December. That would make the current draft the third "last call", in W3C terminology. See also: http://whatwg.org/news/ -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From fantasai.lists at inkedblade.net Tue Apr 26 18:13:44 2005 From: fantasai.lists at inkedblade.net (fantasai) Date: Tue, 26 Apr 2005 21:13:44 -0400 Subject: [whatwg] text/html flavor conformance checkers and <foo /> In-Reply-To: <3eb7972b01befae4bd976fd969435de3@iki.fi> References: <6999888fe81645cb9750235153c271d3@iki.fi> <426E3AAF.1040800@lachy.id.au> <426E577E.2080900@iki.fi> <426E6774.4030308@inkedblade.net> <3eb7972b01befae4bd976fd969435de3@iki.fi> Message-ID: <426EE748.5020100@inkedblade.net> Henri Sivonen wrote: > On Apr 26, 2005, at 19:08, fantasai wrote: > >> Henri Sivonen wrote: >> >>> What do you suggest the parser layer of an text/html conformance >>> checker say about <input checkbox ...>? >>> 1. Silently treat as <input type="checkbox" ...>? >>> 2. Treat as <input type="checkbox" ...> but warn? >>> 3. Treat as <input checkbox="checkbox" ...> causing an error to be >>> reported on a higher layer? >>> 4. Treat as fatal error in the parser? >>> I'm inclined to choose 3. >> >> >> *Why?* Why of all things would you choose to interpret it like /that/? >> It's neither reporting a useful error, nor handling it per SGML rules. > > To make the separation of concerns similar to what it would be on the > XML side while being real about SGMLness being fiction. That is, the > parser does not need to know if an attribute is allowed. That's a job > for a higher layer. I still don't understand how this interpretation is useful or required. If you want to make <input checkbox> invalid, handle it the same way you'd handle <input foo>. Expanding the attribute from checked to checked="checked" is neither conforming to SGML parsing rules nor helping the author understand what was wrong. I mean, I understand you're disillusioned with the state of HTML parsing in the world, but it doesn't mean you need to be /reactionary/ about it. ~fantasai From hsivonen at iki.fi Wed Apr 27 02:42:31 2005 From: hsivonen at iki.fi (Henri Sivonen) Date: Wed, 27 Apr 2005 12:42:31 +0300 Subject: [whatwg] text/html flavor conformance checkers and <foo /> In-Reply-To: <426EE748.5020100@inkedblade.net> References: <6999888fe81645cb9750235153c271d3@iki.fi> <426E3AAF.1040800@lachy.id.au> <426E577E.2080900@iki.fi> <426E6774.4030308@inkedblade.net> <3eb7972b01befae4bd976fd969435de3@iki.fi> <426EE748.5020100@inkedblade.net> Message-ID: <8a441b56e25d97379ae0bd537dbb887e@iki.fi> On Apr 27, 2005, at 04:13, fantasai wrote: > Henri Sivonen wrote: >> On Apr 26, 2005, at 19:08, fantasai wrote: >>> Henri Sivonen wrote: >>> >>>> What do you suggest the parser layer of an text/html conformance >>>> checker say about <input checkbox ...>? >>>> 1. Silently treat as <input type="checkbox" ...>? >>>> 2. Treat as <input type="checkbox" ...> but warn? >>>> 3. Treat as <input checkbox="checkbox" ...> causing an error to be >>>> reported on a higher layer? >>>> 4. Treat as fatal error in the parser? >>>> I'm inclined to choose 3. >>> >>> >>> *Why?* Why of all things would you choose to interpret it like >>> /that/? >>> It's neither reporting a useful error, nor handling it per SGML >>> rules. >> To make the separation of concerns similar to what it would be on the >> XML side while being real about SGMLness being fiction. That is, the >> parser does not need to know if an attribute is allowed. That's a job >> for a higher layer. > > I still don't understand how this interpretation is useful or required. It is useful, because it doesn't require knowledge of allowable minimizable attributes on the lowest parser level. > If you want to make <input checkbox> invalid, handle it the same way > you'd handle <input foo>. That's what I am suggesting. The parser would treat <input foo> as <input foo="foo">, which would be caught on the RELAX NG validation layer in my diagram. > Expanding the attribute from checked to checked="checked" is neither > conforming to SGML parsing rules ITYM checkbox to checkbox="checkbox". > nor helping the author understand what was wrong. Would "Attribute 'checkbox' not allowed here." or something along those lines be any more incomprehensible that validation errors in general? > I mean, I understand you're disillusioned with the state of HTML > parsing in the world, but it doesn't mean you need to be /reactionary/ > about it. Authors get constantly confused when validator.w3.org feeds them SGML fiction. Why shouldn't the QA tools be better aligned with reality? -- Henri Sivonen hsivonen at iki.fi http://hsivonen.iki.fi/ From ian at hixie.ch Wed Apr 27 03:09:48 2005 From: ian at hixie.ch (Ian Hickson) Date: Wed, 27 Apr 2005 10:09:48 +0000 (UTC) Subject: [whatwg] how to handle minimised attributes in HTML5 In-Reply-To: <426E577E.2080900@iki.fi> References: <6999888fe81645cb9750235153c271d3@iki.fi> <426E3AAF.1040800@lachy.id.au> <426E577E.2080900@iki.fi> Message-ID: <Pine.LNX.4.61.0504271008220.9723@dhalsim.dreamhost.com> On Tue, 26 Apr 2005, Henri Sivonen wrote: > > What do you suggest the parser layer of an text/html conformance checker > say about <input checkbox ...>? > > 1. Silently treat as <input type="checkbox" ...>? > 2. Treat as <input type="checkbox" ...> but warn? > 3. Treat as <input checkbox="checkbox" ...> causing an error to be reported on > a higher layer? > 4. Treat as fatal error in the parser? 5. Treat as <input checkbox=""> The only exception, I believe, would be for <table border>, which would instead be treated as <table border="1">. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From fora at annevankesteren.nl Wed Apr 27 03:13:56 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Wed, 27 Apr 2005 12:13:56 +0200 Subject: [whatwg] how to handle minimised attributes in HTML5 In-Reply-To: <Pine.LNX.4.61.0504271008220.9723@dhalsim.dreamhost.com> References: <6999888fe81645cb9750235153c271d3@iki.fi> <426E3AAF.1040800@lachy.id.au> <426E577E.2080900@iki.fi> <Pine.LNX.4.61.0504271008220.9723@dhalsim.dreamhost.com> Message-ID: <426F65E4.1020308@annevankesteren.nl> Ian Hickson wrote: > 5. Treat as <input checkbox=""> > > The only exception, I believe, would be for <table border>, which would > instead be treated as <table border="1">. But as the BORDER attribute is not part of HTML5 that is for someone else to specify. Not? -- Anne van Kesteren <http://annevankesteren.nl/> From ian at hixie.ch Wed Apr 27 03:25:52 2005 From: ian at hixie.ch (Ian Hickson) Date: Wed, 27 Apr 2005 10:25:52 +0000 (UTC) Subject: [whatwg] how to handle minimised attributes in HTML5 In-Reply-To: <426F65E4.1020308@annevankesteren.nl> References: <6999888fe81645cb9750235153c271d3@iki.fi> <426E3AAF.1040800@lachy.id.au> <426E577E.2080900@iki.fi> <Pine.LNX.4.61.0504271008220.9723@dhalsim.dreamhost.com> <426F65E4.1020308@annevankesteren.nl> Message-ID: <Pine.LNX.4.61.0504271024500.9723@dhalsim.dreamhost.com> On Wed, 27 Apr 2005, Anne van Kesteren wrote: > Ian Hickson wrote: > > 5. Treat as <input checkbox=""> > > > > The only exception, I believe, would be for <table border>, which would > > instead be treated as <table border="1">. > > But as the BORDER attribute is not part of HTML5 that is for someone > else to specify. Not? True. We might want to include an optional section that describes how UAs should act around obsolete features, though, even if using them is non-compliant. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From bzbarsky at mit.edu Wed Apr 27 09:58:28 2005 From: bzbarsky at mit.edu (Boris Zbarsky) Date: Wed, 27 Apr 2005 11:58:28 -0500 Subject: [whatwg] Re: HTTP 205 response In-Reply-To: <Pine.LNX.4.61.0504260831060.25513@dhalsim.dreamhost.com> References: <426D659E.9020907@mit.edu> <Pine.LNX.4.61.0504252317260.25513@dhalsim.dreamhost.com> <426DAF2C.2090906@mit.edu> <Pine.LNX.4.61.0504260831060.25513@dhalsim.dreamhost.com> Message-ID: <426FC4B4.1070607@mit.edu> Ian Hickson wrote: > The terminology section says: Ah, ok. > Addressed the above points. > > http://whatwg.org/specs/web-forms/current-work/#form-submission > > Let me know if you can find any other holes! :-) ... the document from which the submission initiated (or, if there is a target attribute, the document in the appropriate frame or window) is left in place, and all the form elements in the document are reset ... I think it would make more sense to say something more like: ... the document in the frame or window targeted by the form submission is left in place and all form elements in it are reset ... This makes it clearer that the form elements are reset in the _target_ document. I also think that "document in the frame or window targeted by the form submission" is clearer than "the document from which the submission initiated (or, if there is a target attribute, the document in the appropriate frame or window)". In fact, it may be even clearer to define the term "target document" up front in this section and then use it throughout (with links back to the definition). > Those cases will be defined in the Web Apps spec in due course, but are > out of scope of the Web Forms spec. I don't really know where to put the > note in the WF2 spec; putting it in the middle of the forms submission > algorithm seems a bit weird (obviously that stuff doesn't apply to things > other than form submission, it's right in the middle of sections that are > exclusively about form submission). Yeah.... Perhaps include a note here anyway indicating that this specification is not trying to define behavior of 205 responses in cases other than a form submission? At this point, though, the spec looks like it would be reasonably straightforward to implement interoperably. One other drive-by comment: Otherwise, how the UA responds to a response would be better as: Otherwise, how the UA handles a response -Boris From jim.ley at gmail.com Wed Apr 27 12:29:22 2005 From: jim.ley at gmail.com (Jim Ley) Date: Wed, 27 Apr 2005 20:29:22 +0100 Subject: [whatwg] Re: HTTP 205 response In-Reply-To: <426FC4B4.1070607@mit.edu> References: <426D659E.9020907@mit.edu> <Pine.LNX.4.61.0504252317260.25513@dhalsim.dreamhost.com> <426DAF2C.2090906@mit.edu> <Pine.LNX.4.61.0504260831060.25513@dhalsim.dreamhost.com> <426FC4B4.1070607@mit.edu> Message-ID: <851c8d31050427122935df4a94@mail.gmail.com> On 4/27/05, Boris Zbarsky <bzbarsky at mit.edu> wrote: > This makes it clearer that the form elements are reset in the _target_ document. > I also think that "document in the frame or window targeted by the form > submission" is clearer than "the document from which the submission initiated What if the document in the target window has changed? what if the document in the target window is in a different domain, what if another document with a form in is partially way through being rendered in the the other window? What about the situation where 2 seperate form posts target the same window, one of which sends a replace values, the other a reset - which is honoured, what does it depend on, the order of submission, the order of recieving, random? Cheers, Jim. From hsivonen at iki.fi Wed Apr 27 12:37:37 2005 From: hsivonen at iki.fi (Henri Sivonen) Date: Wed, 27 Apr 2005 22:37:37 +0300 Subject: [whatwg] Re: how to handle minimised attributes in HTML5 In-Reply-To: <Pine.LNX.4.61.0504271008220.9723@dhalsim.dreamhost.com> References: <6999888fe81645cb9750235153c271d3@iki.fi> <426E3AAF.1040800@lachy.id.au> <426E577E.2080900@iki.fi> <Pine.LNX.4.61.0504271008220.9723@dhalsim.dreamhost.com> Message-ID: <56b5567d5d1186b888bbd40ee2730892@iki.fi> On Apr 27, 2005, at 13:09, Ian Hickson wrote: > On Tue, 26 Apr 2005, Henri Sivonen wrote: >> >> What do you suggest the parser layer of an text/html conformance >> checker >> say about <input checkbox ...>? >> >> 1. Silently treat as <input type="checkbox" ...>? >> 2. Treat as <input type="checkbox" ...> but warn? >> 3. Treat as <input checkbox="checkbox" ...> causing an error to be >> reported on >> a higher layer? >> 4. Treat as fatal error in the parser? > > 5. Treat as <input checkbox=""> Why? XHTML requires "boolean attributes" to be represented as foo='foo'. If <input checked ...> was treated as <input checked='' ...>, one could not reuse XHTML schemas on top a minimal text/html flavor parser. > The only exception, I believe, would be for <table border>, which would > instead be treated as <table border="1">. Do you mean <table border> should pass a conformance check? -- Henri Sivonen hsivonen at iki.fi http://hsivonen.iki.fi/ From jim.ley at gmail.com Wed Apr 27 14:11:50 2005 From: jim.ley at gmail.com (Jim Ley) Date: Wed, 27 Apr 2005 22:11:50 +0100 Subject: [whatwg] Re: HTTP 205 response In-Reply-To: <851c8d31050427122935df4a94@mail.gmail.com> References: <426D659E.9020907@mit.edu> <Pine.LNX.4.61.0504252317260.25513@dhalsim.dreamhost.com> <426DAF2C.2090906@mit.edu> <Pine.LNX.4.61.0504260831060.25513@dhalsim.dreamhost.com> <426FC4B4.1070607@mit.edu> <851c8d31050427122935df4a94@mail.gmail.com> Message-ID: <851c8d310504271411237394@mail.gmail.com> On 4/27/05, Jim Ley <jim.ley at gmail.com> wrote: > On 4/27/05, Boris Zbarsky <bzbarsky at mit.edu> wrote: > > This makes it clearer that the form elements are reset in the _target_ document. > > I also think that "document in the frame or window targeted by the form > > submission" is clearer than "the document from which the submission initiated > > What if the document in the target window has changed? what if the > document in the target window is in a different domain, what if > another document with a form in is partially way through being > rendered in the the other window? What about the situation where 2 > seperate form posts target the same window, one of which sends a > replace values, the other a reset - which is honoured, what does it > depend on, the order of submission, the order of recieving, random? Oh, and the other thing, what's the use case for the 205, I realise it's mostly tidying up the hinted at HTTP spec, but I'm not really sure there's much of a use case, especially as you can achieve the same with a replace post which uses almost the same amount of bandwidth on typical pages. I can't think of a single good case where just reseting is appropriate, a result with no feedback doesn't strike me as useful - especially when there's replace which can provide the same not reloading page, but can provide feedback in an output element. I really think this is complicating the specification without providing anything of use. Jim. From rikkert at rikkertkoppes.com Thu Apr 28 00:27:50 2005 From: rikkert at rikkertkoppes.com (R.J.Koppes) Date: Thu, 28 Apr 2005 09:27:50 +0200 Subject: [whatwg] text/html flavor conformance checkers and <foo /> References: <6999888fe81645cb9750235153c271d3@iki.fi><426E3AAF.1040800@lachy.id.au> <426E577E.2080900@iki.fi><426E6774.4030308@inkedblade.net><3eb7972b01befae4bd976fd969435de3@iki.fi><426EE748.5020100@inkedblade.net> <8a441b56e25d97379ae0bd537dbb887e@iki.fi> Message-ID: <001701c54bc3$c8d44e70$0401a8c0@s446964> I'd say the "/" in <foo /> should be treated as an invalid character by conformance checkers, I guess something like <foo ?> is treated that way too? If not it should. So it might raise an error reporting an illegal character and it might raise another error in a further stage if the </foo> closing tag is mandatory (in the case of <script> for instance) Alternatively, if one allows "/" (and "?") characters in attributes (is there a passage on that anyway? since HTML only allows predefined attributes, it should not be nescesary anyway)), than <foo /> and <foo ?> should raise an error reporting an invalid attribute, another error reporting a missing attribute value and possibly raising an third error reporting a missing closing tag. UA's however should either treat the "/" as invalid character and discard it (preferred error checking, say) or apply SGML rules and treat the trailing ">" as redundant character (SGML based error checking). Either way <foo /> is treated as <foo> and the DOM tree should be built as if that were the case. I am not sure which rule UA's are applying at the moment Rikkert Koppes www.rikkertkoppes.com ----- Original Message ----- From: "Henri Sivonen" <hsivonen at iki.fi> To: "WHAT WG List" <whatwg at whatwg.org> Sent: Wednesday, April 27, 2005 11:42 AM Subject: Re: [whatwg] text/html flavor conformance checkers and <foo /> > On Apr 27, 2005, at 04:13, fantasai wrote: > > > Henri Sivonen wrote: > >> On Apr 26, 2005, at 19:08, fantasai wrote: > >>> Henri Sivonen wrote: > >>> > >>>> What do you suggest the parser layer of an text/html conformance > >>>> checker say about <input checkbox ...>? > >>>> 1. Silently treat as <input type="checkbox" ...>? > >>>> 2. Treat as <input type="checkbox" ...> but warn? > >>>> 3. Treat as <input checkbox="checkbox" ...> causing an error to be > >>>> reported on a higher layer? > >>>> 4. Treat as fatal error in the parser? > >>>> I'm inclined to choose 3. > >>> > >>> > >>> *Why?* Why of all things would you choose to interpret it like > >>> /that/? > >>> It's neither reporting a useful error, nor handling it per SGML > >>> rules. > >> To make the separation of concerns similar to what it would be on the > >> XML side while being real about SGMLness being fiction. That is, the > >> parser does not need to know if an attribute is allowed. That's a job > >> for a higher layer. > > > > I still don't understand how this interpretation is useful or required. > > It is useful, because it doesn't require knowledge of allowable > minimizable attributes on the lowest parser level. > > > If you want to make <input checkbox> invalid, handle it the same way > > you'd handle <input foo>. > > That's what I am suggesting. The parser would treat <input foo> as > <input foo="foo">, which would be caught on the RELAX NG validation > layer in my diagram. > > > Expanding the attribute from checked to checked="checked" is neither > > conforming to SGML parsing rules > > ITYM checkbox to checkbox="checkbox". > > > nor helping the author understand what was wrong. > > Would "Attribute 'checkbox' not allowed here." or something along those > lines be any more incomprehensible that validation errors in general? > > > I mean, I understand you're disillusioned with the state of HTML > > parsing in the world, but it doesn't mean you need to be /reactionary/ > > about it. > > Authors get constantly confused when validator.w3.org feeds them SGML > fiction. Why shouldn't the QA tools be better aligned with reality? > > -- > Henri Sivonen > hsivonen at iki.fi > http://hsivonen.iki.fi/ > > From mint at franklinmint.fm Thu Apr 28 11:44:51 2005 From: mint at franklinmint.fm (Robert Sayre) Date: Thu, 28 Apr 2005 14:44:51 -0400 Subject: [whatwg] base/xml:base Message-ID: <42712F23.4020602@franklinmint.fm> I'm not sure where this fits in the WhatWG backwards compatibility requirements, but would it be possible to allow finer-grained control over the baseURI in sections of a page? I gather that Mozilla already does this with xml:base and that sticking base elements in the HTML body is a hack that seems to work in some browsers (ick). I believe it's quite likely page authors will want to aggregate content with disparate baseURIs, whether from syndication, dashboard widgets, or something else. So, could one of the new elements in WA 1.0 grow a base attribute and explicit support for xml:base? Robert Sayre From mattraymond at earthlink.net Thu Apr 28 12:12:11 2005 From: mattraymond at earthlink.net (Matthew Raymond) Date: Thu, 28 Apr 2005 15:12:11 -0400 Subject: [whatwg] Web Applications and 3D Message-ID: <4271358B.9050309@earthlink.net> I've been pondering how someone would have 3D graphics inside a Web application using current web standards and some in development (XBL2, HTML5, et cetera), and while I have a general idea, I'm not exactly sure how it would work. One method would be to give <canvas> a "3d" rendering context. This would solve some problems, but what happens when you want objects for your 3D world to exist in the DOM? What happens when you want 3D effects that change when you use a different stylesheet? Don't we need a method of including 3D graphics for styling that doesn't use Javascript? Let's look at possible solutions: 1) <canvas> - This requires you to manage your 3D objects in Javascript or some other scripting language. It also means defining a "3d" context, which could get complicated _really_ fast. 2) XHTML + CSS + XBL2 + X3D - This would allow the greatest flexibility, but it comes with a serious learning curve. Also, it wouldn't work with HTML. 3) HTML + "CSS3D" - The idea is to extend CSS to allow for 3D backgrounds and such. The trouble with this is that it's hard to change the 3D content dynamically. I'm leaning toward either 1) or 2). I suspect the second choice would be better in the long run, but what I don't understand is what a page using all these standards would look like. If someone is up to the challenge, I'd like to see someone come up with examples for the following: 1) A Web standards version of Microsoft's "Flipin' CD Button" example. 2) An example of something similar to Quake done entirely as a web application, with a HUD. 3) An example of a simple 2D GUI with 3D effects as a web application. Not that I'm looking for very basic proof-of-concept examples and not fully developed web apps. Any takers? From fora at annevankesteren.nl Thu Apr 28 12:22:56 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Thu, 28 Apr 2005 21:22:56 +0200 Subject: [whatwg] base/xml:base In-Reply-To: <42712F23.4020602@franklinmint.fm> References: <42712F23.4020602@franklinmint.fm> Message-ID: <42713810.8030100@annevankesteren.nl> Robert Sayre wrote: > I'm not sure where this fits in the WhatWG backwards compatibility > requirements, but would it be possible to allow finer-grained control > over the baseURI in sections of a page? I gather that Mozilla already > does this with xml:base and that sticking base elements in the HTML body > is a hack that seems to work in some browsers (ick). I believe it's > quite likely page authors will want to aggregate content with disparate > baseURIs, whether from syndication, dashboard widgets, or something > else. So, could one of the new elements in WA 1.0 grow a base attribute > and explicit support for xml:base? <http://whatwg.org/specs/web-apps/current-work/#the-base> States that for XML documents you must use xml:base and must not use xhtml:base. -- Anne van Kesteren <http://annevankesteren.nl/> From ian at hixie.ch Thu Apr 28 13:00:44 2005 From: ian at hixie.ch (Ian Hickson) Date: Thu, 28 Apr 2005 20:00:44 +0000 (UTC) Subject: [whatwg] Web Applications and 3D In-Reply-To: <4271358B.9050309@earthlink.net> References: <4271358B.9050309@earthlink.net> Message-ID: <Pine.LNX.4.61.0504281942480.20679@dhalsim.dreamhost.com> On Thu, 28 Apr 2005, Matthew Raymond wrote: > > I've been pondering how someone would have 3D graphics inside a Web > application using current web standards and some in development (XBL2, > HTML5, et cetera), and while I have a general idea, I'm not exactly sure > how it would work. The current idea is to do the same for '3d' as for '2d', probably using an OpenGL ES API subset, tweaked to be appropriate for use from JavaScript. Unfortunately I know very little about 3D graphics myself so someone else is going to have to actually define the API. > ...what happens when you want objects for your 3D world to exist in the > DOM? What happens when you want 3D effects that change when you use a > different stylesheet? What's the use case? The use cases that people have raised for 3D so far are primarily games (as in Quake-like things). In those, you don't really need to have a DOM representation, and stylesheets are unlikely to be used for styling them. Having said that, there are probably use cases for declarative 3D, just like there are with declarative 2D. And for those you would use a dedicated markup language, just like you use SVG for 2D graphics. > 1) A Web standards version of Microsoft's "Flipin' CD Button" example. The markup for that is easy: <input type="button"> ...or some such. Making it actually look like something 3D would involve CSS, XBL, and either X3D or <canvas> (or some other 3D solution). > 2) An example of something similar to Quake done entirely as a web > application, with a HUD. That's pure <canvas>, with a 3D context for the 3D, and a 2D context for the HUD. > 3) An example of a simple 2D GUI with 3D effects as a web application. Not sure what you mean there. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From rikkert at rikkertkoppes.com Thu Apr 28 13:38:06 2005 From: rikkert at rikkertkoppes.com (R.J.Koppes) Date: Thu, 28 Apr 2005 22:38:06 +0200 Subject: [whatwg] Web Applications and 3D References: <4271358B.9050309@earthlink.net> <Pine.LNX.4.61.0504281942480.20679@dhalsim.dreamhost.com> Message-ID: <008301c54c32$2ee25db0$0401a8c0@s446964> one usecase for "generic" 3d applications I can think of is an implementation of cml. There could be other applications, like technical drawings (which might have an xsl to transform it to 2d svg drawings and another to make it some generic 3d picture). So apart from high end application like games, I think it could be useful to have some generic 3d drawing canvas Rikkert Koppes www.rikkertkoppes.com ----- Original Message ----- From: "Ian Hickson" <ian at hixie.ch> To: "Matthew Raymond" <mattraymond at earthlink.net> Cc: "WHAT WG List" <whatwg at whatwg.org> Sent: Thursday, April 28, 2005 10:00 PM Subject: Re: [whatwg] Web Applications and 3D > On Thu, 28 Apr 2005, Matthew Raymond wrote: > > > > I've been pondering how someone would have 3D graphics inside a Web > > application using current web standards and some in development (XBL2, > > HTML5, et cetera), and while I have a general idea, I'm not exactly sure > > how it would work. > > The current idea is to do the same for '3d' as for '2d', probably using an > OpenGL ES API subset, tweaked to be appropriate for use from JavaScript. > > Unfortunately I know very little about 3D graphics myself so someone else > is going to have to actually define the API. > > > > ...what happens when you want objects for your 3D world to exist in the > > DOM? What happens when you want 3D effects that change when you use a > > different stylesheet? > > What's the use case? The use cases that people have raised for 3D so far > are primarily games (as in Quake-like things). In those, you don't really > need to have a DOM representation, and stylesheets are unlikely to be used > for styling them. > > Having said that, there are probably use cases for declarative 3D, just > like there are with declarative 2D. And for those you would use a > dedicated markup language, just like you use SVG for 2D graphics. > > > > 1) A Web standards version of Microsoft's "Flipin' CD Button" example. > > The markup for that is easy: > > <input type="button"> > > ...or some such. Making it actually look like something 3D would involve > CSS, XBL, and either X3D or <canvas> (or some other 3D solution). > > > > 2) An example of something similar to Quake done entirely as a web > > application, with a HUD. > > That's pure <canvas>, with a 3D context for the 3D, and a 2D context for > the HUD. > > > > 3) An example of a simple 2D GUI with 3D effects as a web application. > > Not sure what you mean there. > > -- > Ian Hickson U+1047E )\._.,--....,'``. fL > http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. > Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' > From bkn3 at columbia.edu Thu Apr 28 15:03:14 2005 From: bkn3 at columbia.edu (Brad Neuberg) Date: Thu, 28 Apr 2005 15:03:14 -0700 Subject: [whatwg] Web Applications and 3D In-Reply-To: <Pine.LNX.4.61.0504281942480.20679@dhalsim.dreamhost.com> References: <4271358B.9050309@earthlink.net> <Pine.LNX.4.61.0504281942480.20679@dhalsim.dreamhost.com> Message-ID: <6.2.1.2.2.20050428150242.02b2e800@pop.mail.yahoo.com> Sounds like scope creep to me, and outside the purview of WHAT. Brad At 01:00 PM 4/28/2005, Ian Hickson wrote: >On Thu, 28 Apr 2005, Matthew Raymond wrote: > > > > I've been pondering how someone would have 3D graphics inside a Web > > application using current web standards and some in development (XBL2, > > HTML5, et cetera), and while I have a general idea, I'm not exactly sure > > how it would work. > >The current idea is to do the same for '3d' as for '2d', probably using an >OpenGL ES API subset, tweaked to be appropriate for use from JavaScript. > >Unfortunately I know very little about 3D graphics myself so someone else >is going to have to actually define the API. > > > > ...what happens when you want objects for your 3D world to exist in the > > DOM? What happens when you want 3D effects that change when you use a > > different stylesheet? > >What's the use case? The use cases that people have raised for 3D so far >are primarily games (as in Quake-like things). In those, you don't really >need to have a DOM representation, and stylesheets are unlikely to be used >for styling them. > >Having said that, there are probably use cases for declarative 3D, just >like there are with declarative 2D. And for those you would use a >dedicated markup language, just like you use SVG for 2D graphics. > > > > 1) A Web standards version of Microsoft's "Flipin' CD Button" example. > >The markup for that is easy: > > <input type="button"> > >...or some such. Making it actually look like something 3D would involve >CSS, XBL, and either X3D or <canvas> (or some other 3D solution). > > > > 2) An example of something similar to Quake done entirely as a web > > application, with a HUD. > >That's pure <canvas>, with a 3D context for the 3D, and a 2D context for >the HUD. > > > > 3) An example of a simple 2D GUI with 3D effects as a web application. > >Not sure what you mean there. > >-- >Ian Hickson U+1047E )\._.,--....,'``. fL >http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. >Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' Brad Neuberg, bkn3 at columbia.edu Senior Software Engineer, Rojo Networks Weblog: http://www.codinginparadise.org ===================================================================== Check out Rojo, an RSS and Atom news aggregator that I work on. Visit http://rojo.com for more info. Feel free to ask me for an invite! Rojo is Hiring! If you're interested in RSS, Weblogs, Social Networking, Java, Open Source, etc... then come work with us at Rojo. If you recommend someone and we hire them you'll get a free iPod! See http://www.rojonetworks.com/JobsAtRojo.html. From mattraymond at earthlink.net Thu Apr 28 18:44:21 2005 From: mattraymond at earthlink.net (Matthew Raymond) Date: Thu, 28 Apr 2005 21:44:21 -0400 Subject: [whatwg] Web Applications and 3D In-Reply-To: <Pine.LNX.4.61.0504281942480.20679@dhalsim.dreamhost.com> References: <4271358B.9050309@earthlink.net> <Pine.LNX.4.61.0504281942480.20679@dhalsim.dreamhost.com> Message-ID: <42719175.9010103@earthlink.net> Ian Hickson wrote: > On Thu, 28 Apr 2005, Matthew Raymond wrote: >>I've been pondering how someone would have 3D graphics inside a Web >>application using current web standards and some in development (XBL2, >>HTML5, et cetera), and while I have a general idea, I'm not exactly sure >>how it would work. > > The current idea is to do the same for '3d' as for '2d', probably using an > OpenGL ES API subset, tweaked to be appropriate for use from JavaScript. > > Unfortunately I know very little about 3D graphics myself so someone else > is going to have to actually define the API. I've done some work with OpenGL. I'd be happy to write a first draft. >>...what happens when you want objects for your 3D world to exist in the >>DOM? What happens when you want 3D effects that change when you use a >>different stylesheet? > > What's the use case? The use cases that people have raised for 3D so far > are primarily games (as in Quake-like things). In those, you don't really > need to have a DOM representation, and stylesheets are unlikely to be used > for styling them. The problem with a <canvas> solution is that the entirety of the 3D data has to exist within the <canvas> element. If you want multiple elements in the markup to map to a single 3D window, then <canvas> doesn't really work. (Well, you could have them as "display: none" with XBL bindings that map to Javascript code which adds the object to a canvas, but at that point, you're implementing something like X3D using XBL + Javascript + <canvas>, which really doesn't make sense.) > Having said that, there are probably use cases for declarative 3D, just > like there are with declarative 2D. And for those you would use a > dedicated markup language, just like you use SVG for 2D graphics. My point was that I'd like to see a CDF (not the CAD kind, but the W3C kind) that uses XHTML + X3D, or XHTML + CSS+ XBL2 + X3D. While I think it has a lot of potential, I don't know enough about how the respective standards to determine would work together. (This is partly because of my lack of knowledge of XBL2 and X3D...) >>1) A Web standards version of Microsoft's "Flipin' CD Button" example. > > The markup for that is easy: > > <input type="button"> > > ...or some such. Making it actually look like something 3D would involve > CSS, XBL, and either X3D or <canvas> (or some other 3D solution). I already knew the HTML. I was kinda hoping to see the CSS/XBL2 part of that equation. That's the part I'm confused about. Does XBL2 have a CSS binding property like XBL 1.0? >>2) An example of something similar to Quake done entirely as a web >>application, with a HUD. > > That's pure <canvas>, with a 3D context for the 3D, and a 2D context for > the HUD. Well, that depends on whether you're using <canvas> or X3D. Personally, I'd like to see how X3D would be used in a compound document. I'm thinking that you could use X3D in combination with XBL to implement LOD and similar features so that 3D models can degrade gracefully into simpler models with fewer features if hardware doesn't support all the features and polygons. >>3) An example of a simple 2D GUI with 3D effects as a web application. > > Not sure what you mean there. I mean stuff like having windows that get smaller when they're further back in the Z-order. Perhaps there's a fog effect. You could have various <section> elements rendered within a 3D environment, where the user looks in a specific direction or in a specific place to see the <section> inside a 3D environment. Stuff like that. From mattraymond at earthlink.net Thu Apr 28 18:45:23 2005 From: mattraymond at earthlink.net (Matthew Raymond) Date: Thu, 28 Apr 2005 21:45:23 -0400 Subject: [whatwg] Web Applications and 3D In-Reply-To: <6.2.1.2.2.20050428150242.02b2e800@pop.mail.yahoo.com> References: <4271358B.9050309@earthlink.net> <Pine.LNX.4.61.0504281942480.20679@dhalsim.dreamhost.com> <6.2.1.2.2.20050428150242.02b2e800@pop.mail.yahoo.com> Message-ID: <427191B3.4000905@earthlink.net> Brad Neuberg wrote: > Sounds like scope creep to me, and outside the purview of WHAT. Why? Because you don't consider programs that use 3D graphics are applications? If a motorcycle manufacturer creates an app that lets you order a custom bike, and it displays the bike in 3D as you change various options for the order, is that not a valid web application? Remember, people used to think that 2D graphics were only for games. In an age where every computer ships with 3D graphics acceleration built-in, why would we limit web applications to 2D? From ian at hixie.ch Fri Apr 29 01:06:01 2005 From: ian at hixie.ch (Ian Hickson) Date: Fri, 29 Apr 2005 08:06:01 +0000 (UTC) Subject: [whatwg] Web Applications and 3D In-Reply-To: <42719175.9010103@earthlink.net> References: <4271358B.9050309@earthlink.net> <Pine.LNX.4.61.0504281942480.20679@dhalsim.dreamhost.com> <42719175.9010103@earthlink.net> Message-ID: <Pine.LNX.4.61.0504290755080.1177@dhalsim.dreamhost.com> On Thu, 28 Apr 2005, Matthew Raymond wrote: > > > > The current idea is to do the same for '3d' as for '2d', probably > > using an OpenGL ES API subset, tweaked to be appropriate for use from > > JavaScript. > > > > Unfortunately I know very little about 3D graphics myself so someone > > else is going to have to actually define the API. > > I've done some work with OpenGL. I'd be happy to write a first draft. That would be great. > > > ...what happens when you want objects for your 3D world to exist in > > > the DOM? What happens when you want 3D effects that change when you > > > use a different stylesheet? > > > > What's the use case? The use cases that people have raised for 3D so > > far are primarily games (as in Quake-like things). In those, you don't > > really need to have a DOM representation, and stylesheets are unlikely > > to be used for styling them. > > The problem with a <canvas> solution is that the entirety of the 3D data > has to exist within the <canvas> element. If you want multiple elements in the > markup to map to a single 3D window, then <canvas> doesn't really work. Right, but my question is what's the use case for having objects for your 3D world exist in the DOM? > > Having said that, there are probably use cases for declarative 3D, > > just like there are with declarative 2D. And for those you would use a > > dedicated markup language, just like you use SVG for 2D graphics. > > My point was that I'd like to see a CDF (not the CAD kind, but the W3C > kind) that uses XHTML + X3D, or XHTML + CSS + XBL2 + X3D. While I think > it has a lot of potential, I don't know enough about how the respective > standards to determine would work together. (This is partly because of > my lack of knowledge of XBL2 and X3D...) If it wouldn't work together, it indicates a problem in the X3D spec (or the lack of an appropriate 3D declarative markup language). Creating a 3D markup language is somewhat outside the purview of this working group, though. > I already knew the HTML. I was kinda hoping to see the CSS/XBL2 part of > that equation. That's the part I'm confused about. Does XBL2 have a CSS > binding property like XBL 1.0? XBL2 doesn't exist yet, but the idea is it will have that, yes. > > > 2) An example of something similar to Quake done entirely as a web > > > application, with a HUD. > > > > That's pure <canvas>, with a 3D context for the 3D, and a 2D context > > for the HUD. > > Well, that depends on whether you're using <canvas> or X3D. I don't see people writing 3D games using a declarative format. Maybe for the models, as external files that are slurped in (just like external bitmaps are used as sprites with 2D canvas), but that's very different from having the 3D in the document. > I mean stuff like having windows that get smaller when they're further > back in the Z-order. Perhaps there's a fog effect. You could have > various <section> elements rendered within a 3D environment, where the > user looks in a specific direction or in a specific place to see the > <section> inside a 3D environment. Stuff like that. That'd just be up to the UA, really. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From jim.ley at gmail.com Fri Apr 29 01:21:18 2005 From: jim.ley at gmail.com (Jim Ley) Date: Fri, 29 Apr 2005 09:21:18 +0100 Subject: [whatwg] Web Applications and 3D In-Reply-To: <4271358B.9050309@earthlink.net> References: <4271358B.9050309@earthlink.net> Message-ID: <851c8d31050429012167d20b9c@mail.gmail.com> On 4/28/05, Matthew Raymond <mattraymond at earthlink.net> wrote: > I've been pondering how someone would have 3D graphics inside a Web > application using current web standards and some in development (XBL2, > HTML5, et cetera), and while I have a general idea, I'm not exactly sure > how it would work. There are hundreds of millions of browsers that support 3D graphics in their default configuration, it's been successfully deployed with implementation experience going back over 6 years. Please do not re-invent the wheel, but standardise this (or a subset) functionality. The supposed motivation of WHAT-WG is compatibility with IE6, VML and DirectAnimation provide 2D and 3D drawing contexts that are compatibile with Internet Explorer, use them, or start coming up with some reasons why not to. As always, I'm still waiting to hear the use cases for both 2D and 3D javascript drawing - "Quake like games" which is the only example I've heard so far, may be a use case, but it's not yet been explained why an HTML document is appropriate for such a game. Jim. From mattraymond at earthlink.net Fri Apr 29 06:14:37 2005 From: mattraymond at earthlink.net (Matthew Raymond) Date: Fri, 29 Apr 2005 09:14:37 -0400 Subject: [whatwg] Web Applications and 3D In-Reply-To: <Pine.LNX.4.61.0504290755080.1177@dhalsim.dreamhost.com> References: <4271358B.9050309@earthlink.net> <Pine.LNX.4.61.0504281942480.20679@dhalsim.dreamhost.com> <42719175.9010103@earthlink.net> <Pine.LNX.4.61.0504290755080.1177@dhalsim.dreamhost.com> Message-ID: <4272333D.1080807@earthlink.net> Ian Hickson wrote: > On Thu, 28 Apr 2005, Matthew Raymond wrote: >>The problem with a <canvas> solution is that the entirety of the 3D data >>has to exist within the <canvas> element. If you want multiple elements in the >>markup to map to a single 3D window, then <canvas> doesn't really work. > > Right, but my question is what's the use case for having objects for your > 3D world exist in the DOM? Well, in situations with Javascript off, the benefits are obvious. There's also the potential to use XBL to apply special behavior to specific tags. For instance, instead of having a static Sun in the sky, you could have it rise and set by using XBL to pull in code that moves the model and lighting around. >>>Having said that, there are probably use cases for declarative 3D, >>>just like there are with declarative 2D. And for those you would use a >>>dedicated markup language, just like you use SVG for 2D graphics. >> >>My point was that I'd like to see a CDF (not the CAD kind, but the W3C >>kind) that uses XHTML + X3D, or XHTML + CSS + XBL2 + X3D. While I think >>it has a lot of potential, I don't know enough about how the respective >>standards to determine would work together. (This is partly because of >>my lack of knowledge of XBL2 and X3D...) > > If it wouldn't work together, it indicates a problem in the X3D spec (or > the lack of an appropriate 3D declarative markup language). > > Creating a 3D markup language is somewhat outside the purview of this > working group, though. I'm not saying there's a problem with X3D. I'm just trying to make sure there is a clear idea of how to make XHTML + X3D compound documents. In other words, I'm trying to find the weak link, if there is one, and at the moment that seems to be a lack of examples on the Internet. >>I already knew the HTML. I was kinda hoping to see the CSS/XBL2 part of >>that equation. That's the part I'm confused about. Does XBL2 have a CSS >>binding property like XBL 1.0? > > XBL2 doesn't exist yet, but the idea is it will have that, yes. Good. I don't see nearly as strong a use case for XBL without such binding. > I don't see people writing 3D games using a declarative format. Maybe for > the models, as external files that are slurped in (just like external > bitmaps are used as sprites with 2D canvas), but that's very different > from having the 3D in the document. My thinking is that a "3d" context for <canvas> may require Javascript as complex as a 3D rendering engine built on top of OpenGL. By contrast, something like X3D would require only DOM manipulation, because the rendering engine would be either a plug-in or part of the UA. X3D could also use XBL to achieve special effects that a programmer would otherwise have to code into their <canvas>-based engine. Imagine LOD, particle effects, fog, et cetera, turned on and off by simply selecting an alternate stylesheet. (Well, I suppose you could do that stylesheet thing with <canvas> and XBL, but it wouldn't be pretty.) >>I mean stuff like having windows that get smaller when they're further >>back in the Z-order. Perhaps there's a fog effect. You could have >>various <section> elements rendered within a 3D environment, where the >>user looks in a specific direction or in a specific place to see the >><section> inside a 3D environment. Stuff like that. > > That'd just be up to the UA, really. No, I meant as in the web author implementing that with web standards, not the UA adding those effects to vanilla HTML5. From ian at hixie.ch Fri Apr 29 06:25:23 2005 From: ian at hixie.ch (Ian Hickson) Date: Fri, 29 Apr 2005 13:25:23 +0000 (UTC) Subject: [whatwg] Re: HTTP 205 response In-Reply-To: <426FC4B4.1070607@mit.edu> References: <426D659E.9020907@mit.edu> <Pine.LNX.4.61.0504252317260.25513@dhalsim.dreamhost.com> <426DAF2C.2090906@mit.edu> <Pine.LNX.4.61.0504260831060.25513@dhalsim.dreamhost.com> <426FC4B4.1070607@mit.edu> Message-ID: <Pine.LNX.4.61.0504291234010.21216@dhalsim.dreamhost.com> On Wed, 27 Apr 2005, Boris Zbarsky wrote: > >| ... the document from which the submission initiated (or, if there is a >| target attribute, the document in the appropriate frame or window) is >| left in place, and all the form elements in the document are reset ... > > I think it would make more sense to say something more like: > > ... the document in the frame or window targeted by the form submission is > left in place and all form elements in it are reset ... Done. > In fact, it may be even clearer to define the term "target document" up > front in this section and then use it throughout (with links back to the > definition). I'm trying to avoid doing much with the "target" attribute in WF2. It'll be defined in more depth in WA1. > Yeah.... Perhaps include a note here anyway indicating that this > specification is not trying to define behavior of 205 responses in cases > other than a form submission? Ok. > At this point, though, the spec looks like it would be reasonably > straightforward to implement interoperably. Great! > One other drive-by comment: > > Otherwise, how the UA responds to a response > > would be better as: > > Otherwise, how the UA handles a response Fixed. Thanks! -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From ian at hixie.ch Fri Apr 29 06:43:37 2005 From: ian at hixie.ch (Ian Hickson) Date: Fri, 29 Apr 2005 13:43:37 +0000 (UTC) Subject: [whatwg] Web Applications and 3D In-Reply-To: <4272333D.1080807@earthlink.net> References: <4271358B.9050309@earthlink.net> <Pine.LNX.4.61.0504281942480.20679@dhalsim.dreamhost.com> <42719175.9010103@earthlink.net> <Pine.LNX.4.61.0504290755080.1177@dhalsim.dreamhost.com> <4272333D.1080807@earthlink.net> Message-ID: <Pine.LNX.4.61.0504291326030.21216@dhalsim.dreamhost.com> On Fri, 29 Apr 2005, Matthew Raymond wrote: > > > > Right, but my question is what's the use case for having objects for > > your 3D world exist in the DOM? > > Well, in situations with Javascript off, the benefits are obvious. I don't mean to be obtuse, but: they aren't to me. I guess I could imagine wanting declarative 3D for when you want to show someone around your office or something like that, but I can't say I've seen much demand for that, and even less integrated with HTML. In any case, that would be something to be addressed by another specification, like X3D. HTML (specifically XHTML) already supports integrating with other namespaces. > There's also the potential to use XBL to apply special behavior to > specific tags. For instance, instead of having a static Sun in the sky, > you could have it rise and set by using XBL to pull in code that moves > the model and lighting around. What sky? :-) I haven't seen many applications with skies... > I'm not saying there's a problem with X3D. I'm just trying to make sure > there is a clear idea of how to make XHTML + X3D compound documents. In > other words, I'm trying to find the weak link, if there is one, and at > the moment that seems to be a lack of examples on the Internet. The biggest problem with integrating X3D and XHTML is, as far as I can tell, the lack of a namespace to identify X3D content. (This is similar to the problem preventing Docbook integration.) > My thinking is that a "3d" context for <canvas> may require Javascript > as complex as a 3D rendering engine built on top of OpenGL. By contrast, > something like X3D would require only DOM manipulation, because the > rendering engine would be either a plug-in or part of the UA. X3D could > also use XBL to achieve special effects that a programmer would > otherwise have to code into their <canvas>-based engine. Imagine LOD, > particle effects, fog, et cetera, turned on and off by simply selecting > an alternate stylesheet. (Well, I suppose you could do that stylesheet > thing with <canvas> and XBL, but it wouldn't be pretty.) I doubt it would be that simple, but sure. If you want declarative 3D integrated into the Web browser pipeline, alongside the DOM, JS, XHTML, SVG, CSS, XBL, etc, I encourage you to bring this up with the Web3D consortium. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From mattraymond at earthlink.net Fri Apr 29 07:04:28 2005 From: mattraymond at earthlink.net (Matthew Raymond) Date: Fri, 29 Apr 2005 10:04:28 -0400 Subject: [whatwg] Web Applications and 3D In-Reply-To: <851c8d31050429012167d20b9c@mail.gmail.com> References: <4271358B.9050309@earthlink.net> <851c8d31050429012167d20b9c@mail.gmail.com> Message-ID: <42723EEC.8040302@earthlink.net> Jim Ley wrote: > Please do not re-invent the wheel, but standardise this (or a subset) > functionality. > > The supposed motivation of WHAT-WG is compatibility with IE6, VML and > DirectAnimation provide 2D and 3D drawing contexts that are > compatibile with Internet Explorer, use them, or start coming up with > some reasons why not to. The examples I've seen with regard to DirectAnimation are done through an <object> and use an ActiveX control, so standardizing such an interface isn't appropriate. It may be useful to examine the APIs, though. We may want to be able to implement the "3d" context for <canvas> on top of DirectAnimation. > As always, I'm still waiting to hear the use cases for both 2D and 3D > javascript drawing - "Quake like games" which is the only example > I've heard so far, may be a use case, but it's not yet been explained > why an HTML document is appropriate for such a game. I've already suggested the use of 3D for previewing a custom ordered product such as a motorcycle. I also brought up the "Flippin' CD Button" example from Microsoft. Also, imagine Mapquest with a 3D animation of your route from start to end. Travelocity or Expedia may have animations showing the cities you'll be passing over on your flight. Perhaps you want to see a 3D representation of the hotel room you plan to book. Same for real estate. If you're ordering a ticket from a concert, wouldn't it be nice to see what the stage will look like from your seat? Need I go on? From mattraymond at earthlink.net Fri Apr 29 07:25:02 2005 From: mattraymond at earthlink.net (Matthew Raymond) Date: Fri, 29 Apr 2005 10:25:02 -0400 Subject: [whatwg] XHTML + X3D (was Re: Web Applications and 3D) In-Reply-To: <Pine.LNX.4.61.0504291326030.21216@dhalsim.dreamhost.com> References: <4271358B.9050309@earthlink.net> <Pine.LNX.4.61.0504281942480.20679@dhalsim.dreamhost.com> <42719175.9010103@earthlink.net> <Pine.LNX.4.61.0504290755080.1177@dhalsim.dreamhost.com> <4272333D.1080807@earthlink.net> <Pine.LNX.4.61.0504291326030.21216@dhalsim.dreamhost.com> Message-ID: <427243BE.7010109@earthlink.net> Ian Hickson wrote: > On Fri, 29 Apr 2005, Matthew Raymond wrote: >>Well, in situations with Javascript off, the benefits are obvious. > > I don't mean to be obtuse, but: they aren't to me. I guess I could imagine > wanting declarative 3D for when you want to show someone around your > office or something like that, but I can't say I've seen much demand for > that, and even less integrated with HTML. > > In any case, that would be something to be addressed by another > specification, like X3D. HTML (specifically XHTML) already supports > integrating with other namespaces. I'm not suggesting integration with HTML5. I'm perfectly happy with using X3D (or some other separate language, like XGL). My concern is the lack of analysis of how these technologies fit together. It's like fitting an engine to an airframe. I don't want the engine to necessarily be part of the airframe design, but they still have to work together, and you won't know where the problems are until you try fitting them together. >>There's also the potential to use XBL to apply special behavior to >>specific tags. For instance, instead of having a static Sun in the sky, >>you could have it rise and set by using XBL to pull in code that moves >>the model and lighting around. > > What sky? :-) I haven't seen many applications with skies... I'll try to come up with a less game-like example next time... Question: Game != Application? >>I'm not saying there's a problem with X3D. I'm just trying to make sure >>there is a clear idea of how to make XHTML + X3D compound documents. In >>other words, I'm trying to find the weak link, if there is one, and at >>the moment that seems to be a lack of examples on the Internet. > > The biggest problem with integrating X3D and XHTML is, as far as I can > tell, the lack of a namespace to identify X3D content. (This is similar to > the problem preventing Docbook integration.) Good, now we're getting somewhere. Let's say X3D did have a namespace, like "x3d". Could we use <x3d:x3d> or <x3d:scene> as the container/viewport? > If you want declarative 3D integrated into the Web browser pipeline, > alongside the DOM, JS, XHTML, SVG, CSS, XBL, etc, I encourage you to bring > this up with the Web3D consortium. Very well. I'll also look into competing languages being developed. From ian at hixie.ch Fri Apr 29 07:38:16 2005 From: ian at hixie.ch (Ian Hickson) Date: Fri, 29 Apr 2005 14:38:16 +0000 (UTC) Subject: [whatwg] Re: XHTML + X3D (was Re: Web Applications and 3D) In-Reply-To: <427243BE.7010109@earthlink.net> References: <4271358B.9050309@earthlink.net> <Pine.LNX.4.61.0504281942480.20679@dhalsim.dreamhost.com> <42719175.9010103@earthlink.net> <Pine.LNX.4.61.0504290755080.1177@dhalsim.dreamhost.com> <4272333D.1080807@earthlink.net> <Pine.LNX.4.61.0504291326030.21216@dhalsim.dreamhost.com> <427243BE.7010109@earthlink.net> Message-ID: <Pine.LNX.4.61.0504291427490.21216@dhalsim.dreamhost.com> On Fri, 29 Apr 2005, Matthew Raymond wrote: > > I'm not suggesting integration with HTML5. I'm perfectly happy with > using X3D (or some other separate language, like XGL). My concern is the > lack of analysis of how these technologies fit together. It's like > fitting an engine to an airframe. I don't want the engine to necessarily > be part of the airframe design, but they still have to work together, > and you won't know where the problems are until you try fitting them > together. I guess I don't understand what you mean by "fit together" if you don't mean "integrate". Any format can "fit" with XHTML, including PDF, Flash, PNG, SVG, MP3, AVI, MPEG, etc, and including X3D and its predecessor VRML, if integration isn't the point. > > > There's also the potential to use XBL to apply special behavior to > > > specific tags. For instance, instead of having a static Sun in the > > > sky, you could have it rise and set by using XBL to pull in code > > > that moves the model and lighting around. > > > > What sky? :-) I haven't seen many applications with skies... > > I'll try to come up with a less game-like example next time... Would you really expect a game to be written with declarative 3D? I guess it's possible, but my impression based on talking with 3D people and game designers asking for Web-deployed 3D games that re-use the existing framework (HTML) is that they really just want access to the underlying APIs so that they can make their own, optimised 3D engines that do what _they_ want, as opposed to having a particular framework. (Note that DOM manipulation is relatively expensive, by the way, in terms of runtime performance.) > Question: Game != Application? No, not at all -- games are in fact often the leading edge of applications, and often have even more extreme needs. Games are definitiely part of the WHATWG target application segment. > > The biggest problem with integrating X3D and XHTML is, as far as I can > > tell, the lack of a namespace to identify X3D content. (This is > > similar to the problem preventing Docbook integration.) > > Good, now we're getting somewhere. Let's say X3D did have a namespace, > like "x3d". Could we use <x3d:x3d> or <x3d:scene> as the > container/viewport? Assuming X3D defined how that worked, yes. (It would basically need to define a the contents of, and dimensions of, a 2D rectangular area that represented the X3D content. That would then be a replaced element and would fit into the CSS model directly.) > > If you want declarative 3D integrated into the Web browser pipeline, > > alongside the DOM, JS, XHTML, SVG, CSS, XBL, etc, I encourage you to > > bring this up with the Web3D consortium. > > Very well. I'll also look into competing languages being developed. Cool. (Note that X3D is on the ISO standards track, which gives it a lot of weight.) -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From jim.ley at gmail.com Fri Apr 29 07:55:52 2005 From: jim.ley at gmail.com (Jim Ley) Date: Fri, 29 Apr 2005 15:55:52 +0100 Subject: [whatwg] Web Applications and 3D In-Reply-To: <42723EEC.8040302@earthlink.net> References: <4271358B.9050309@earthlink.net> <851c8d31050429012167d20b9c@mail.gmail.com> <42723EEC.8040302@earthlink.net> Message-ID: <851c8d310504290755578658bf@mail.gmail.com> On 4/29/05, Matthew Raymond <mattraymond at earthlink.net> wrote: > Jim Ley wrote: > > Please do not re-invent the wheel, but standardise this (or a subset) > > functionality. > > > > The supposed motivation of WHAT-WG is compatibility with IE6, VML and > > DirectAnimation provide 2D and 3D drawing contexts that are > > compatibile with Internet Explorer, use them, or start coming up with > > some reasons why not to. > > The examples I've seen with regard to DirectAnimation are done > through an <object> and use an ActiveX control, so standardizing such an > interface isn't appropriate. Could you explain why? ActiveX is just the mechanism windows uses for componentisation - WHAT-WG is already standardising things implemented as ActiveX in IE. If you're saying that the creation mechanism for a 3D canvas is wrong - there's something wrong with using OBJECT, and we need to use CANVAS3D instead, then perhaps you might have a point, I'd like to hear a lot more motivation for inventing new elements for this, given the problems with new elements highlighted so often by Ian and others. However the creation is one minor part of the 3D API, and it's the API I was talking about. > We may want to be able to implement the "3d" context for > <canvas> on top of DirectAnimation. Could you describe why this might be a motivation, what do you see as so lacking in the current implementation that it's not takeable as a whole? > > As always, I'm still waiting to hear the use cases for both 2D and 3D > > javascript drawing - "Quake like games" which is the only example > > I've heard so far, may be a use case, but it's not yet been explained > > why an HTML document is appropriate for such a game. > > I've already suggested the use of 3D for previewing a custom ordered > product such as a motorcycle. All drawn in client-side javascript? - remember the use cases I'm looking for are not use cases for 3D, but for use cases for a 3D canvas in a webpage, that has no state, and relies wholly on all the information being drawn by javascript onload or later? I do not accept that the above is a practical use case. > Perhaps you > want to see a 3D representation of the hotel room you plan to book. Same > for real estate. If you're ordering a ticket from a concert, wouldn't it > be nice to see what the stage will look like from your seat? > > Need I go on? Yes, because none of these are being addressed by a 3d drawable canvas and a javascript API, the simple creation of any of these is not appropriate to a programming language, they are all declaritive, and the WHAT-WG individual has made it clear that a declaritive 3D mechanism is not on the agenda. If that is all that we get, then none of those use cases will be fulfilled. So I'm still searching for what use cases a javascript API to a 3D canvas provides, it's been possible in IE since 1997, I've done lots with it in that time, yet I've never come across a real wbe situation that has used it - I used it once to write some very quick pages that were 3D to be used on some notebooks at a trade show, back when notebooks having 3D graphics cards was a selling point. Jim. From fora at annevankesteren.nl Fri Apr 29 08:11:24 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Fri, 29 Apr 2005 17:11:24 +0200 Subject: [whatwg] [html5] 2.20.1. The datagrid element Message-ID: <42724E9C.80105@annevankesteren.nl> Some initial comments on possible problems I spotted. # Columns, rows, and cells can each have specific classes applied to # them by the data provider. Classes is nowhere defined. Is this about the HTML CLASS attribute? If so, could that be more clearly stated. If otherwise, could it be elaborated for a bit to make it more understandable. # getRowCount(): The number of rows returned by the default data # provider must be the number of tr elements that are children of tbody # elements that are children of the table, if there are any tbody # elements. If there are no tbody elements then the number of rows # returned must be the number of tr elements that are children of the # table. What happens here: <table> <xhtmlfoo:content> <tr> ... ... should it return 0? Or should it look for all descendents of TABLE when there is neither a TBODY or TR child element. # getColumnCount(): If the table has a thead element child, and the # first such element has a tr element child, then the number of columns # returned by the default data provider must be the number of th # element children in the first such tr element, if there are any such # th elements. This 'messes up' perfectly valid tables like: <table> <thead> <tr> <th colspan="2">Male <th colspan="2">Female <tr> <th>Alcoholic <th>Suicidel ... ... not? # getCaptionText(i): If the table has no thead element child, or if its # first thead element child has no tr element child, the default data # provider must return the empty string for all captions. Otherwise, # the value of the textContent attribute of the ith th element child # of the first tr element child of the first thead element child of the # table element must be returned. If there is no such th element, the # empty string must be returned. How about trying to select the value of the CAPTION element[1] first? The same might apply to getCaptionClasses(i, classes). By the way, it would make more sense to say: <datagrid sortable=""> ... or: <datagrid sortable="sortable"> ... or: <datagrid class="sortable"> ... and that it then applies to all columns. Like some implementations have implemented it[2]. [1]<http://www.w3.org/TR/1999/REC-html401-19991224/struct/tables.html#h-11.2.2> [2]<http://www.letselplein.nl/~exemplarisch/sort-table/sort-table-rows.html> -- Anne van Kesteren <http://annevankesteren.nl/> From dhtmlkitchen at gmail.com Fri Apr 29 22:08:36 2005 From: dhtmlkitchen at gmail.com (Garrett Smith) Date: Fri, 29 Apr 2005 22:08:36 -0700 Subject: [whatwg] Fragment Loading (not xmlhttp and iframe buffers) Message-ID: <c9e126605042922083f46ce02@mail.gmail.com> There is no current standard way to load content into an element. There is no way to load content into an element without using javascript. Everyone wants to use XmlHttp now and not really caring much about accessibility. It is a desirable effect, and not one that is easy to acheive gracefully. I propose a simple way to load content into an element by using an a href and giving the target an IDREF value (of a node in the containing document). If the node-finding operation fails (due to the node not being found or the browser not supporting the operation), the browser will open a new window (this is what browsers do now) <a href="ch2.html#part1" target="#section" fragment="part1.html">part 1</a> Attributes: href - The user agent downloads the file in href. If a hash is specified, the browser loads the document fragment contained by the IDREF specified in the hash. The user agent may optionally download only the fragment, to increase performance. target - the target can now be an IDREF of a node in the document. If the target attribute begins with a hash mark, the contents of the element matching that IDREF will be cleared and new contents will be loaded into the element. fragment - If the fragment attribute is specified, the user agent ignores the href and downloads the content specified for the value of the fragment attribute. Example: <a href="ch2.html#part1" target="#section" fragment="part1.html">part 1</a> <div id="section"> <h1>This is some content that will be cleared</h1> </div> If a user clicks on the link, the file "part1.html" will load into the div with the id="section". If the operation fails, the browser opens a new window and loads the file "ch2.html#part1". The reason for having a fragment attribute is so that authors can specify a document fragment and then have a fallback for user-agents which do not support fragment loading. There you have it, loading document fragments without javascript. What more could you ask for? From dhtmlkitchen at gmail.com Sat Apr 30 14:09:38 2005 From: dhtmlkitchen at gmail.com (Garrett Smith) Date: Sat, 30 Apr 2005 14:09:38 -0700 Subject: [whatwg] Styling form controls Message-ID: <c9e1266050430140959a9b738@mail.gmail.com> I want to be able to style form controls. For example <button style="display: block; border:1px solid red;padding:0;margin:0"><div>content</div></button> Safari is the only browser that renders the above example correctly: A button with form element behavior, styled as specified. Browsers should all do this, but none (except safari) do. Moz, Opera, and IE do some sort of compromise (Moz & Op just blindly mimic IE to some degree). Perhaps display: auto would describe what most UA's do now; they just use their own native-type of gui. I want to use my gui and have the button funtion as a button. If I want to submit or reset the form, I'll use the appropriate type attribute. What do page authors do now? Well, most will use something as inaccessible as this w/o even blinking: <div style="..."><a href="javascript:submitForm()"></div> Javascript should not be relied upon for page submissions and its up to the browser vendors to give page authors more flexibility. So how about letting us style form controls. -- http://dhtmlkitchen.com/ From ian at hixie.ch Sat Apr 30 15:51:06 2005 From: ian at hixie.ch (Ian Hickson) Date: Sat, 30 Apr 2005 22:51:06 +0000 (UTC) Subject: [whatwg] Styling form controls In-Reply-To: <c9e1266050430140959a9b738@mail.gmail.com> References: <c9e1266050430140959a9b738@mail.gmail.com> Message-ID: <Pine.LNX.4.61.0504302250200.26870@dhalsim.dreamhost.com> On Sat, 30 Apr 2005, Garrett Smith wrote: > > I want to be able to style form controls. Nothing in HTML4 or in the WHATWG specs would preclude that. CSS should be better defined to handle this case, maybe; that would be an issue to raise with the www-style at w3.org mailing list, though. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From tato at fureai.or.jp Sat Apr 30 20:24:59 2005 From: tato at fureai.or.jp (Toshirou Takahashi) Date: Sun, 01 May 2005 12:24:59 +0900 Subject: [whatwg] charset attribute of HTMLScriptElement Message-ID: <20050501122151.C07C.TATO@fureai.or.jp> i hope to add the charset attribute to HTMLScriptElement, on 2.12.1. The script element of The Web Applications 1.0 http://whatwg.org/specs/web-apps/current-work/#the-script now :(Working Draft ? 29 April 2005) interface HTMLScriptElement : HTMLElement { attribute DOMString text; attribute DOMString src; attribute DOMString type; }; i hope : interface HTMLScriptElement : HTMLElement { attribute DOMString text; attribute DOMString src; attribute DOMString type; attribute DOMString charset; }; Because the person who made .js file doesn't know whether the file is used with what charset all over the world. For instance, there is someone using the file written with utf-8 on the page of shift_JIS and others. By the way, DOM 1 http://www.w3.org/TR/DOM-Level-1/level-one-html.html#ID-81598695 interface HTMLScriptElement : HTMLElement { attribute DOMString text; attribute DOMString htmlFor; attribute DOMString event; attribute DOMString charset; attribute boolean defer; attribute DOMString src; attribute DOMString type; }; HTML4.0 http://www.w3.org/TR/REC-html40/interact/scripts.html#h-18.2.1 <!ELEMENT SCRIPT - - %Script; -- script statements --> <!ATTLIST SCRIPT charset %Charset; #IMPLIED -- char encoding of linked resource -- type %ContentType; #REQUIRED -- content type of script language -- src %URI; #IMPLIED -- URI for an external script -- defer (defer) #IMPLIED -- UA may defer execution of script -- > Regards, -- Toshirou Takahashi <http://jsgt.org/mt/01/> From ian at hixie.ch Fri Apr 1 01:57:03 2005 From: ian at hixie.ch (Ian Hickson) Date: Fri, 1 Apr 2005 09:57:03 +0000 (UTC) Subject: [whatwg] <h1> to <h6> in <body> In-Reply-To: <424CD1C4.4090607@myrealbox.com> References: <Pine.LNX.4.61.0503302359150.25644@dhalsim.dreamhost.com> <424BCBBE.2040308@cam.ac.uk> <Pine.LNX.4.61.0503311009300.25644@dhalsim.dreamhost.com> <424CAB13.1040709@myrealbox.com> <Pine.LNX.4.61.0504010246180.32456@dhalsim.dreamhost.com> <424CD1C4.4090607@myrealbox.com> Message-ID: <Pine.LNX.4.61.0504010955040.32456@dhalsim.dreamhost.com> On Thu, 31 Mar 2005, dolphinling wrote: > > | <ol> > | <li><h3>F</h3></li> 2.2. F > | <li><h3>G</h3></li> 2.3. G > | <li><h3>H</h3></li> 2.4. H > | </ol> (part of section started by H) > | <p>...</p> (part of section started by H) > > If one were to explicitly include section tags around H here, where > would they go? It can't start before the <ol>, because then it would > include F and G, but it can't start inside the <ol> because then it > would break nesting. Oh, sure. You can't (always) use section elements to indicate the sectioning of legacy headers. Is it a requirement that you should be able to? What's the use case? -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From mpt at myrealbox.com Fri Apr 1 02:17:44 2005 From: mpt at myrealbox.com (Matthew Thomas) Date: Fri, 01 Apr 2005 22:17:44 +1200 Subject: [whatwg] <h1> to <h6> in <body> In-Reply-To: <Pine.LNX.4.61.0503311540350.13120@dhalsim.dreamhost.com> References: <Pine.LNX.4.61.0503302359150.25644@dhalsim.dreamhost.com> <424BCBBE.2040308@cam.ac.uk> <Pine.LNX.4.61.0503311009300.25644@dhalsim.dreamhost.com> <424BEBFF.1080302@myrealbox.com> <Pine.LNX.4.61.0503311228200.25644@dhalsim.dreamhost.com> <424C177E.5030508@myrealbox.com> <Pine.LNX.4.61.0503311540350.13120@dhalsim.dreamhost.com> Message-ID: <424D1FC7.4000705@myrealbox.com> Ian Hickson wrote: >... > Note that the difference between <title> and <h1> is not that <title> > is expected to include author information or whatever. You personally may not expect it, but that is the inevitable and unsurprising effect of it being used as "a context-free label to be used to describe the page elsewhere", in the absence of simply-specified and -supported markup for author, publisher, parent, and so on. > The example I gave earlier, of a Wikipedia page, shows the difference > I meant: > > <title>Main Page - Wikipedia, the Free Encyclopedia</title> > ... > <h1>Main Page</h1> That example shows what I was talking about: <title> being used to contain non-title data -- the publisher in this case -- separated by arbitrary (and therefore difficult-to-parse) punctuation from the title itself. > Another example: > > <title>Introduction to the mating rituals of bees</title> > ... > <h1>Introduction</h1> And that's an unrealistic example, because it's treating two definitions of the word "Introduction" as if they were the same. (As a heading by itself, "Introduction" means an introductory section; but "Introduction to X" means a basic presentation of X.) As you collect more realistic examples, you'll find that they follow the pattern I described. > The point is that the <title> has to stand alone and represent the > document when taken out of context, whereas the <h1> is the header of > a document _in the context of the page_, i.e. when people already know > what the basic subject area is. > > Thus the <title> is not in any sense the parent of the <h1> or other > headers. Not in Web pages designed to work with HTML 4 browsers, no. But if you're requiring new browsers to present some rel= values, you could take advantage of that to let <title> really be a title. > > It is a bad idea for the meaning of an element to be markedly > > different from the meaning of its name. That is likely to cause > > confusion, non-conformance, and disrespect for the spec in general. > > While I agree with this in general, and while I am aware of a huge > number of cases where the HTML language faito follow ls this design > principle, I don't see its relevance in this particular case. The relevance is that it is exactly what you were planning to do with <title>. > > Authors have been encouraged to misuse <title> so far for a > > different reason: the lack of a well-defined standard for presenting > > the other information they want shown in document summaries. So a > > better idea would be to explicitly define a very limited number of > > rel= attributes (as you already plan to do) to contain the non-title > > data that authors most often put in <title> -- mainly author and > > publisher -- and perhaps allow the rel= attribute to be placed in > > elements other than <link> and <a>. > > While this sounds like a good idea in principle, I don't see how it > affects my point (in terms of the examples above). The point is that you can do that to avoid entrenching a mismatch between the meaning of the <title> element and the meaning of its name. -- Matthew Thomas http://mpt.net.nz/ From ian at hixie.ch Fri Apr 1 02:58:12 2005 From: ian at hixie.ch (Ian Hickson) Date: Fri, 1 Apr 2005 10:58:12 +0000 (UTC) Subject: [whatwg] <h1> to <h6> in <body> In-Reply-To: <424D1FC7.4000705@myrealbox.com> References: <Pine.LNX.4.61.0503302359150.25644@dhalsim.dreamhost.com> <424BCBBE.2040308@cam.ac.uk> <Pine.LNX.4.61.0503311009300.25644@dhalsim.dreamhost.com> <424BEBFF.1080302@myrealbox.com> <Pine.LNX.4.61.0503311228200.25644@dhalsim.dreamhost.com> <424C177E.5030508@myrealbox.com> <Pine.LNX.4.61.0503311540350.13120@dhalsim.dreamhost.com> <424D1FC7.4000705@myrealbox.com> Message-ID: <Pine.LNX.4.61.0504011028380.32456@dhalsim.dreamhost.com> On Fri, 1 Apr 2005, Matthew Thomas wrote: > > > Another example: > > > > <title>Introduction to the mating rituals of bees</title> > > ... > > <h1>Introduction</h1> > > And that's an unrealistic example, because it's treating two definitions > of the word "Introduction" as if they were the same. (As a heading by > itself, "Introduction" means an introductory section; but "Introduction > to X" means a basic presentation of X.) Sorry, that was a bad example indeed. I should have written: <title>Introduction to The Mating Rituals of Bees</title> ... <h1>Introduction</h1> ...(as in, the site is "The Mating Rituals of Bees"). Another related example: <title>Dances used during bee mating rituals</title> ... <h1>The Dances</h1> The point is the <title> is doing a completely different job than the <h1>. Their jobs are related, naturally, but they one cannot be replaced by the other. > As you collect more realistic examples, you'll find that they follow the > pattern I described. While I agree that many real-world examples include author and publisher metadata in their titles, I do not agree that this is the be all and end all of differences between <h1> and <title>. > > Thus the <title> is not in any sense the parent of the <h1> or other > > headers. > > Not in Web pages designed to work with HTML 4 browsers, no. But if > you're requiring new browsers to present some rel= values, you could > take advantage of that to let <title> really be a title. <title> _is_ a title. I don't understand what is wrong with the situation as it stands now. Why would we want to change the semantics of <title> between HTML4 and HTML5? How is what I describe <title> to be, not a title? Also, note that the backwards-compatibility thing is very relevant here. People aren't going to stop using <title> to include information that is important out-of-context simply because in newer UAs you might be lucky and have the UA generate that information for you. Legacy UAs still need that infotmation in the <title>. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From mpt at myrealbox.com Sat Apr 2 02:34:17 2005 From: mpt at myrealbox.com (Matthew Thomas) Date: Sat, 02 Apr 2005 22:34:17 +1200 Subject: [whatwg] <h1> to <h6> in <body> In-Reply-To: <Pine.LNX.4.61.0504011028380.32456@dhalsim.dreamhost.com> References: <Pine.LNX.4.61.0503302359150.25644@dhalsim.dreamhost.com> <424BCBBE.2040308@cam.ac.uk> <Pine.LNX.4.61.0503311009300.25644@dhalsim.dreamhost.com> <424BEBFF.1080302@myrealbox.com> <Pine.LNX.4.61.0503311228200.25644@dhalsim.dreamhost.com> <424C177E.5030508@myrealbox.com> <Pine.LNX.4.61.0503311540350.13120@dhalsim.dreamhost.com> <424D1FC7.4000705@myrealbox.com> <Pine.LNX.4.61.0504011028380.32456@dhalsim.dreamhost.com> Message-ID: <424E7529.1050802@myrealbox.com> Ian Hickson wrote: >... > Sorry, that was a bad example indeed. I should have written: > > <title>Introduction to The Mating Rituals of Bees</title> > ... > <h1>Introduction</h1> > > ....(as in, the site is "The Mating Rituals of Bees"). > > Another related example: > > <title>Dances used during bee mating rituals</title> > ... > <h1>The Dances</h1> This requires that the site be small enough for humans to bother assembling the <title> in every page (rather than it being assembled by a CMS that doesn't know whether to use "to" or "used during" or "in" or whatever else), *and* that the author's carefulness and boredom thresholds are such that they will adapt the necessary context in the <title> for every page. That's highly implausible. Much more likely is what I described: the name of the site/subsite (which I too-loosely referred to as the "publisher"), either before or after the title of the page (and a parser can't tell which, making the document less useful), separated by some arbitrary punctuation (and a parser might well get that wrong if there's other punctuation in the components, making the document less useful again). > The point is the <title> is doing a completely different job than the > <h1>. Their jobs are related, naturally, but they one cannot be > replaced by the other. I wasn't suggesting they should be. >... > While I agree that many real-world examples include author and > publisher metadata in their titles, I do not agree that this is the be > all and end all of differences between <h1> and <title>. Good, that's a start. >... > > Not in Web pages designed to work with HTML 4 browsers, no. But if > > you're requiring new browsers to present some rel= values, you could > > take advantage of that to let <title> really be a title. > > <title> _is_ a title. I don't understand what is wrong with the > situation as it stands now. Why would we want to change the semantics > of <title> between HTML4 and HTML5? Because one day, I'd like search engines to be able to show me the title of a page in the same consistent position in a search result, and the name of the site (if available) in the same consistent position in a search result, and the name of the author (if available) in the same consistent position in a search result. They can't do that as long as <title> contains a subset of those components randomly chosen, randomly ordered, and randomly formatted. For that to happen, it would help slightly if the HTML specification stopped SHOULD-ing the current <title> behavior. It would help more if the HTML specification contained clear, straightforward markup for author and site name (and encouraged UAs to present this information when the document is taken out of context). > How is what I describe <title> to be, not a title? It's not not a title. (Awkward answer for an awkward question.) But what you describe <title> to be is only a subset of titles. > Also, note that the backwards-compatibility thing is very relevant > here. People aren't going to stop using <title> to include information > that is important out-of-context simply because in newer UAs you might > be lucky and have the UA generate that information for you. > Legacy UAs still need that infotmation in the <title>. Sure, it'll take a few years. I can wait. -- Matthew Thomas http://mpt.net.nz/ From ian at hixie.ch Sat Apr 2 02:52:42 2005 From: ian at hixie.ch (Ian Hickson) Date: Sat, 2 Apr 2005 10:52:42 +0000 (UTC) Subject: [whatwg] <h1> to <h6> in <body> In-Reply-To: <424E7529.1050802@myrealbox.com> References: <Pine.LNX.4.61.0503302359150.25644@dhalsim.dreamhost.com> <424BCBBE.2040308@cam.ac.uk> <Pine.LNX.4.61.0503311009300.25644@dhalsim.dreamhost.com> <424BEBFF.1080302@myrealbox.com> <Pine.LNX.4.61.0503311228200.25644@dhalsim.dreamhost.com> <424C177E.5030508@myrealbox.com> <Pine.LNX.4.61.0503311540350.13120@dhalsim.dreamhost.com> <424D1FC7.4000705@myrealbox.com> <Pine.LNX.4.61.0504011028380.32456@dhalsim.dreamhost.com> <424E7529.1050802@myrealbox.com> Message-ID: <Pine.LNX.4.61.0504021046080.26585@dhalsim.dreamhost.com> On Sat, 2 Apr 2005, Matthew Thomas wrote: > > > > [titles should include more context than h1s] > > This requires that the site be small enough for humans to bother > assembling the <title> in every page (rather than it being assembled by > a CMS that doesn't know whether to use "to" or "used during" or "in" or > whatever else), *and* that the author's carefulness and boredom > thresholds are such that they will adapt the necessary context in the > <title> for every page. That's highly implausible. Actually it happens all the time. Certainly it is as plausible as the fact that authors are going to be writing, say, valid markup. > I'd like search engines to be able to show me the title of a page in the > same consistent position in a search result, and the name of the site > (if available) in the same consistent position in a search result, and > the name of the author (if available) in the same consistent position in > a search result. > > For that to happen, it would help slightly if the HTML specification > stopped SHOULD-ing the current <title> behavior. It would help more if > the HTML specification contained clear, straightforward markup for > author and site name (and encouraged UAs to present this information > when the document is taken out of context). There are several options here, some of the easiest would be: <title site="" publisher="" author="">Page Title</title> <title>Page Title - <site></site> - <author></author> (<publisher></publisher>)</title> ...or if people want to also provide links: <title>Page Title</title> <link rel="top" title="" href=""> <link rel="publisher" title="" href=""> <link rel="author" title="" href=""> I've noted your request and these options. Am I right in assuming that this request does not affect the headers discussion? -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From mattraymond at earthlink.net Mon Apr 4 07:11:05 2005 From: mattraymond at earthlink.net (Matthew Raymond) Date: Mon, 04 Apr 2005 10:11:05 -0400 Subject: [whatwg] <h1> to <h6> in <body> In-Reply-To: <Pine.LNX.4.61.0503302359150.25644@dhalsim.dreamhost.com> References: <Pine.LNX.4.61.0503302359150.25644@dhalsim.dreamhost.com> Message-ID: <42514AF9.9040606@earthlink.net> Okay, here's my two cents on the heading/section issue... The element <h1> can be used in HTML4 multiple times. Therefore, it is not by default the title of a document. The most natural thing to assume is that <title> is the title of the document, regardless of how people might abuse it. At best, you could say that when there is only one <h1> element, it might be the title. Even that is not a certainty. There are already <meta> values for much of the stuff that people abusively put in the <title> element. For example, "author" metadata is pretty much a standard already: | <meta name="author" content="Space Dog"> Therefore, why not just standardize it and deprecate the use of such values in <title> while giving <title> more specific semantics? Something like this: | <meta name="author" content="Ian Hickson"> | <meta name="sitename" content="WHATWG"> | <meta name="publisher" content="Hixie Industries"> The <link> element can be used for the stuff that requires a URL or hyperlink of some kind. As for sections, in my opinion there are two types of sections. The first is what we have now, an implied section system that is difficult to define but essentially goes from the beginning of one heading to the beginning of the next. The second type of section is one defined by markup such as <section>. This type should be the only type that can be styled and affect rendering. Generally, implied sections should begin at the beginning of a <h#> element and end at either the end of the document or at the beginning of another <h#> element. Allowing exceptions makes describing implied sections much more complicated. If developers need flexibility with regard to this, we can use language that says developers *should* start and end sections in such a manner rather than *must*. Importance (given by the number of the <h#> element) determines styling, and it implies structure, but the level of importance should not create missing sections within the document outline. If the importance level of a heading implies a missing parent section, the outline tree should first be constructed as if the implied nodes existed, then the children of missing sections should be collapsed into the position of their parents. That said, this is how I would process the sample markup: <body> <p>...</p> <unnamed section> <h1>A</h1> 1 A (importance level 1) <h2>B</h2> 1.1 B (importance level 2) <h3>C</h3> 1.1.1 C (importance level 3) <h2>D</h2> 1.2 D (importance level 2) <h3>E</h3> 1.2.1 E (importance level 3) <p>...</p> E <ol> E <li> E <h3>F</h3> 1.2.2 F (importance level 3) </li> F <li> F <h3>G</h3> 1.2.3 G (importance level 3) </li> G <li> G <h3>H</h3> 1.2.4 H (importance level 3) </li> H </ol> H <p>...</p> H <h4>I</h4> 1.2.4.1 I (importance level 4) <h2>J</h2> 1.3 J (importance level 2) <div> J <p>...</p> J <h2>K</h2> 1.4 K (importance level 2) <p>...</p> K </div> K <p>...</p> K <h3>L</h3> 1.4.1 L (importance level 3) <h2>M</h2> 1.5 M (importance level 2) <h4>N</h4> 1.5.1 N (importance level 4) <h3>O</h3> 1.5.2 O (importance level 3) <h1>P</h1> 2 P (importance level 1) <h1>Q</h1> 3 Q (importance level 1) <h2>R</h2> 3.1 R (importance level 2) </body> This would be the outline: Document | +-- <unnamed section> | +-- 1 A | | | +-- 1.1 B | | | | | +-- 1.1.1 C | | | +-- 1.2 D | | | | | +-- 1.2.1 E | | | | | +-- 1.2.2 F | | | | | +-- 1.2.3 G | | | | | +-- 1.2.4 H | | | | | +-- 1.2.4.1 I | | | +-- 1.3 J | | | +-- 1.4 K | | | | | +-- 1.4.1 L | | | +-- 1.5 M | | | +-- 1.5.1 N | | | +-- 1.5.2 O | +-- 2 P | +-- 3 Q | +-- 3.1 R From ian at hixie.ch Mon Apr 4 07:24:57 2005 From: ian at hixie.ch (Ian Hickson) Date: Mon, 4 Apr 2005 14:24:57 +0000 (UTC) Subject: [whatwg] <h1> to <h6> in <body> In-Reply-To: <42514AF9.9040606@earthlink.net> References: <Pine.LNX.4.61.0503302359150.25644@dhalsim.dreamhost.com> <42514AF9.9040606@earthlink.net> Message-ID: <Pine.LNX.4.61.0504041420020.27693@dhalsim.dreamhost.com> On Mon, 4 Apr 2005, Matthew Raymond wrote: > > That said, this is how I would process the sample markup: > > <body> > <p>...</p> <unnamed section> > <h1>A</h1> 1 A (importance level 1) I agree with most of what you said but the problem I have with the above is that it means almost every document will have an anonymous section at the top, and I don't think that makes sense. Even in the case of: <body> <h1>...</h1> ...there's an anonymous section, because you have a whitespace text node before the element. That doesn't really work for me. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From mattraymond at earthlink.net Mon Apr 4 21:25:40 2005 From: mattraymond at earthlink.net (Matthew Raymond) Date: Tue, 05 Apr 2005 00:25:40 -0400 Subject: [whatwg] <h1> to <h6> in <body> In-Reply-To: <Pine.LNX.4.61.0504041420020.27693@dhalsim.dreamhost.com> References: <Pine.LNX.4.61.0503302359150.25644@dhalsim.dreamhost.com> <42514AF9.9040606@earthlink.net> <Pine.LNX.4.61.0504041420020.27693@dhalsim.dreamhost.com> Message-ID: <42521344.2060304@earthlink.net> Ian Hickson wrote: > On Mon, 4 Apr 2005, Matthew Raymond wrote: > >> That said, this is how I would process the sample markup: >> >> <body> >> <p>...</p> <unnamed section> >> <h1>A</h1> 1 A (importance level 1) > > > I agree with most of what you said but the problem I have with the above > is that it means almost every document will have an anonymous section at > the top, and I don't think that makes sense. If "<p>...</p>" were instead a list of hyperlinks to different sections of the document, should that list be part of the first section? If the paragraph inside the <p> element starts with "I'd like to thank such-and-such for sticking by me while I wrote this...", is that part of the first section? The way I see it, if a heading starts a section, it should always be the start of a section. To do otherwise breaks consistency and may introduce semantics that are not backwards compatible in some situations. Better to use something like "[Top of the document]" that denotes that describes the position of the content without naming it, and also identifies that there is content before the first heading. | <body> | <p>...</p> | <Top> (importance level 1) | <h1>A</h1> | 1 A (importance level 1) > Even in the case of: > > <body> > <h1>...</h1> > > ...there's an anonymous section, because you have a whitespace text node > before the element. That doesn't really work for me. Why do outline generators need to worry about text nodes at the beginning that contain only whitespace? You're talking about content that won't be rendered, so for all intents and purposes, the heading is the first item in the <body>. Such whitespace can simply be ignored by outliners. However, if you are suggesting that such unrendered whitespace be associated with the first section, I have no problem with that. ;) From fora at annevankesteren.nl Tue Apr 5 01:36:55 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Tue, 05 Apr 2005 10:36:55 +0200 Subject: [whatwg] [html5] tags, elements and generated DOM Message-ID: <42524E27.6060006@annevankesteren.nl> I was wondering if HTML5 (WA1, at the moment) is going to define which tags are optional and which elements are implied. (This is of course only for text/html documents.) For example, what is the resulting DOM of this document: <title>Foo</title> <script type="text/javascript" src="bar"></script> ... and this: <script type="text/javascript" src="bar"></script> <title>Foo</title> ..? Are both part of the implied HEAD element or is the SCRIPT element in the first example perhaps part of the BODY element? I believe both are possible. Is there a BODY element in this document (or, is there always a body element?): <style type="text/css"> body{ background:lime } </style> ... or this: <title>Bar</title> Is HTML5 going to list which start- and endtags are optional and how the resulting DOM tree should look like in situations were there are multiple options? -- Anne van Kesteren <http://annevankesteren.nl/> From lachlan.hunt at lachy.id.au Tue Apr 5 03:20:54 2005 From: lachlan.hunt at lachy.id.au (Lachlan Hunt) Date: Tue, 05 Apr 2005 20:20:54 +1000 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <42524E27.6060006@annevankesteren.nl> References: <42524E27.6060006@annevankesteren.nl> Message-ID: <42526686.6050001@lachy.id.au> Anne van Kesteren wrote: > I was wondering if HTML5 (WA1, at the moment) is going to define which > tags are optional and which elements are implied. (This is of course > only for text/html documents.) > > For example, what is the resulting DOM of this document: > > <title>Foo</title> > <script type="text/javascript" src="bar"></script> For this, there is no implied body, as there is no element to imply it. SGML rules apply here, as they are expressed in the DTD, and I don't think HTML 5 should change them. The resulting DOM will be the same as that for an HTML 4 document, which is: html | +-head | +-title +-script > <script type="text/javascript" src="bar"></script> > <title>Foo</title> Same as above, with the title and script elements swapped. > ..? Are both part of the implied HEAD element Yes. > or is the SCRIPT element in the first example perhaps part of the BODY element? No. > I believe both are possible. Both are possible, but since script is allowed within the content of the head element, its presence does not imply </head> and <body>. End tags are implied after encountering content which is not allowed within the element. > Is there a BODY element in this document (or, is there always a body > element?): > > <style type="text/css"> > body{ background:lime } > </style> > > ... or this: > > <title>Bar</title> No, there is no implied body element in either of those fragments. Run all of your examples through the validator, with the the Show Parse Tree option selected and see for yourself. The rules for an HTML 5 document will be the same as HTML 4. http://validator.w3.org/fragment-upload -- Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox From fora at annevankesteren.nl Tue Apr 5 03:37:27 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Tue, 05 Apr 2005 12:37:27 +0200 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <42526686.6050001@lachy.id.au> References: <42524E27.6060006@annevankesteren.nl> <42526686.6050001@lachy.id.au> Message-ID: <42526A67.9030907@annevankesteren.nl> Lachlan Hunt wrote: > No, there is no implied body element in either of those fragments. I appreciate your comments but I was wondering if you have taken into account what existing user agents do. Since that, not some out-of-date-not-followed SGML standard, should be standardized in my humble opinion. That also means that: <data:text/html,<style>body{background:lime}</style>> ... generates: HTML HEAD STYLE #text BODY ... whether you like it or not. Same for the other cases. I do not think it makes sense to say all current UAs are non-compliant as many pages may rely on the kind of DOM they generate. -- Anne van Kesteren <http://annevankesteren.nl/> From ian at hixie.ch Tue Apr 5 04:12:58 2005 From: ian at hixie.ch (Ian Hickson) Date: Tue, 5 Apr 2005 11:12:58 +0000 (UTC) Subject: [whatwg] <h1> to <h6> in <body> In-Reply-To: <42521344.2060304@earthlink.net> References: <Pine.LNX.4.61.0503302359150.25644@dhalsim.dreamhost.com> <42514AF9.9040606@earthlink.net> <Pine.LNX.4.61.0504041420020.27693@dhalsim.dreamhost.com> <42521344.2060304@earthlink.net> Message-ID: <Pine.LNX.4.61.0504051059320.20461@dhalsim.dreamhost.com> On Tue, 5 Apr 2005, Matthew Raymond wrote: > > > > > > That said, this is how I would process the sample markup: > > > > > > <body> > > > <p>...</p> <unnamed section> > > > <h1>A</h1> 1 A (importance level 1) > > > > I agree with most of what you said but the problem I have with the > > above is that it means almost every document will have an anonymous > > section at the top, and I don't think that makes sense. > > If "<p>...</p>" were instead a list of hyperlinks to different > sections of the document, should that list be part of the first section? > If the paragraph inside the <p> element starts with "I'd like to thank > such-and-such for sticking by me while I wrote this...", is that part of > the first section? If you maintain (as I do) that the first <h1> is the document's title -- the same as the <title> element but without the requirement that it be phrased so that it can be quoted out of context -- then yes. The first section is the <body>, the <body> is the document's content, and the spec currently says: # The first heading in a sectioning element gives the header for that # section. The content at the top of the <body> is part of the <body>, and thus it is associated with the <body>'s heading. Why would you _not_ want the navigation links, or the byline, or the dedication, etc, to be associated with the document's first section? It seems correct to me. > The way I see it, if a heading starts a section, it should always be the > start of a section. To do otherwise breaks consistency and may introduce > semantics that are not backwards compatible in some situations. Do you have any examples? As far as I can tell we always want the first heading of a section (assuming it isn't preceeded by any subsections) to be the heading of the section. > Better to use something like "[Top of the document]" that denotes that > describes the position of the content without naming it, and also > identifies that there is content before the first heading. But this will be happening all over the place. <body> <p>Fox Publications Presents:</p> <h1>The Big Newspaper</h1> <article> <h2>Flood in town</h3> <section> <h2>Geography</h2> ... </section> </article> The first <p> is clearly part of the same section as the first <h1>. The whitespace node before the two <h2> elements are similarly obviously part of their <section>, and the <h2>s clearly don't start a separate section that is independent of the <article> and <section> elements. > > Even in the case of: > > > > <body> > > <h1>...</h1> > > > > ...there's an anonymous section, because you have a whitespace text > > node before the element. That doesn't really work for me. > > Why do outline generators need to worry about text nodes at the > beginning that contain only whitespace? Because the spec is defined in terms of nodes, and introducing special rules for nodes that only contain space characters is a recipe for confusion and lack of interoperability (I'm talking from experience here). > You're talking about content that won't be rendered, so for all intents > and purposes, the heading is the first item in the <body>. It might well be rendered (e.g. due to 'whitespace: pre'). > Such whitespace can simply be ignored by outliners. However, if you are > suggesting that such unrendered whitespace be associated with the first > section, I have no problem with that. ;) I am suggesting that, and by extension, I'm suggesting that the first node (whatever it is) be associated with te first section, and that that be associated with the first heading. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From ian at hixie.ch Tue Apr 5 04:17:04 2005 From: ian at hixie.ch (Ian Hickson) Date: Tue, 5 Apr 2005 11:17:04 +0000 (UTC) Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <42524E27.6060006@annevankesteren.nl> References: <42524E27.6060006@annevankesteren.nl> Message-ID: <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> On Tue, 5 Apr 2005, Anne van Kesteren wrote: > > I was wondering if HTML5 (WA1, at the moment) is going to define which > tags are optional and which elements are implied. (This is of course > only for text/html documents.) Yes. > For example, what is the resulting DOM of this document: > > <title>Foo</title> > <script type="text/javascript" src="bar"></script> > > ... and this: > > <script type="text/javascript" src="bar"></script> > <title>Foo</title> > > ..? If I am not mistaken: <html><head><script.../> <title.../></head><body></body></html> > Are both part of the implied HEAD element or is the SCRIPT element in > the first example perhaps part of the BODY element? I believe both are > possible. This is not ambiguous in SGML, which defines this in detail. > Is there a BODY element in this document (or, is there always a body > element?): > > <style type="text/css"> > body{ background:lime } > </style> > > ... or this: > > <title>Bar</title> In HTML4 those are invalid (<body> can't be empty). The <body> will always e implied, though. (For backwards compatibility with legacy parsers, the <head> probably won't be.) > Is HTML5 going to list which start- and endtags are optional and how the > resulting DOM tree should look like in situations were there are > multiple options? In HTML4 there are never multiple options, but the answer to your question is yes. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From ian at hixie.ch Tue Apr 5 05:38:42 2005 From: ian at hixie.ch (Ian Hickson) Date: Tue, 5 Apr 2005 12:38:42 +0000 (UTC) Subject: [whatwg] Web Forms 2.0 Feedback In-Reply-To: <20050324234336.7855.qmail@web50908.mail.yahoo.com> References: <20050324234336.7855.qmail@web50908.mail.yahoo.com> Message-ID: <Pine.LNX.4.61.0504051224350.20461@dhalsim.dreamhost.com> On Thu, 24 Mar 2005, Csaba Gabor wrote: > > > > [simulating img clicks] > > What was your use case for wanting the event handler to trigger? > > 1. I had asked for the ability to simulate a REAL click complete with > simulated coordinates. Ah! You can do that by simply creating an event using the createEvent() method and then dispatching it into the DOM via dispatchEvent(). That will work for any event. > 2. Repetition model. > The Draft has a huge amount of space devoted to this, > but I haven't been able to think of a single compelling > argument for it. Most of the control enhancements such > as validation are conveniences, after all, but what they > have going for them is that they are very compact. This > repetition model is huge and messy and there are simple > javascript programming methods that allow you to do the > same thing. This developer's opinion is that I would > far rather roll my own and not even have the possibility > of using this construct. Yeah, several people have said that. We're thinking about removing it. On the other hand, several people have said that it is a godsend and that they are so happy it is there because they are fed up of rolling their own. At the moment it's about equally matched, in fact. The model is pretty simple and relatively easy to implement, so I'm leaning towards keeping it. > B) But I can't twist my mind about all this stuff with > allowing/not allowing block level contents inside DIVs > unless it's an odd numbered Tuesday of the month. Could > the document maybe provide some argument for this? This is just allowing you to do: <ol> <li> <form> <input> </form> </li> </ol> ...which would otherwise be illegal (it is illegal in HTML4). Currently you have to do: <ol> <li> <form> <p><input></p> </form> </li> </ol> > It states: > > The children of a form element must be block-level elements, unless one > of the ancestors of the form element is an element other than div whose > content model includes both block- and inline-level content, in which > case either block-level or inline-level content is allowed (but not > both). input elements of type hidden may be placed anywhere (both in > inline contexts and block contexts). > > But isn't the ancestor of every form (in an html document) > a body element (which is not a div element)? And I'm pretty > sure I've put both inline and block content into body elements. <body> only accepts block-level content in HTML4 Strict. > So now I can only have block or inline elements in my forms, but not > both (like I've gotten accustomed to doing)? What happened to backwards > compatibility and why should spec developers even be concerned about > this one? I just don't get it. In HTML4 Strict you can only have block-level content in <form> elements. This is simply relaxing this to allow inline-level content as well in certain cases where that makes semantic sense. > To my mind, a FORM element is a convenient way of saying, "unless > otherwise noted, every control within me will be submitted when I am > submitted." As such, why should it have any interest in the bock/inline > types of its descendents? I agree with you. The way it is defined in WF2 effectively makes <form> transparent to all this, letting the ancestors and descendants figure it out between themselves. > I have two points that are not explicitly adressed: > A) There is mentioned a maximum length of about 1K for this > data type (in the RFC 2397). Couldn't this be extended? This will be extended in the Web Apps spec. > B) Security: Shouldn't it be mentioned that if the > the destination window gets a page like this, it should be > run in the context of the submitter? In general it is best to leave security concerns of this nature out of the normative definitions of the spec, in case new problems arise that were not considered during the development of the spec. However, the concern you raise has indeed been considered and is what UAs implement, I believe. > 5) When I first read the replace attribute of a form I thought good, > that is a useful innovation. Why destroy the document just to > repopulate a small section of it? So section 8 of form submission tells > me I should go see the section on: seeding a form with initial values to > find out how this is done. For a non XML person like me, that is scary > stuff there. Trying to figure out how ultra long strings with seemingly > random digits might be applicable to me (What I'm saying is, the HTML > person is going to be scratching his head upon reading it). Yeah, I expect we will need tutorials to make this understandable. The problem is the processing model as to be detailed, so the spec can't really be both simple for authors and implementors, and the latter take priority generally. :-) > And then my eyes alight on section > 6.2.4, 3rd paragraph, about image controls. > It says: > For image controls, instead of using the name given by the name attribute, the field's name is > checked against two names, the first being the value of the name attribute with the string .x > appended to it, and the second being the same but with .y appended instead. Thus image controls > are handled as if they were two controls. > > So, how does this make sense in a form seeding sense? It's a minor detail to do with keeping track of the controls being filled -- the above does not say that image inputs can be seeded. > Also, in step 4 of form submission, it is mentioned that: > Image buttons, during this step, are handled as if they were two controls, one with the > control's name with .x appended, whose value is the x coordinate selected by the user, and the > other with the control's name with .y appended, whose value is the y coordinate selected by the > user. The indices of these two virtual controls are handled separately and could, depending on > the values of other controls, end up with different values. > > I would say that these coordinates are not selected, but rather clicked They could be selected via some other means, UAs are not required to need a mouse for htis. > and shouldn't it be mentioned that they are relative to the control itself > (as opposed to the window or some other object). That is unchanged from, and therefore covered in, the HTML4 spec. > But more importantly, how could this .x and .y wind up with different > values (I assume you don't mean from each other) depending on the values > of other controls. I must say, I was sitting on the edge of my seat > with excitement upon seeing the 'For example' just below this, which > turned out not to give it away. It's an edge case. Say you have: <input name="i.x"> <input type="image" name="i"> ...then the image will generate an "i.x" and an "i.y" but not there are two "i.x"s and only one "i.y". This is just taking care of that. > 6) One thing I didn't think of before, but that replace attribute > reminded me... > Wouldn't it make sense to specify a way for a form or output contol, > IF IT REQUESTED, to be updated from the server on a continuing basis > (push technology years ago, if I remember right). I know it's late > in the game for this, but perhaps you will hear me out. This will be covered by the "remote events" part of the Web Apps spec: http://whatwg.org/specs/web-apps/current-work/#server-sent > 7. Finally, a curiosity question. SELECT elements are lacking > in this spec. Now, back in the summer it was pointed out to me > (Ian) that Hierachical menus will be available in Web Apps 1.0 > What I don't understand is why they are not part of this spec. > Isn't this their natural resting place? <optgroup>s can be nested in Web Forms 2. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From ian at hixie.ch Tue Apr 5 05:44:33 2005 From: ian at hixie.ch (Ian Hickson) Date: Tue, 5 Apr 2005 12:44:33 +0000 (UTC) Subject: [whatwg] WhatWG spec addition? Message-ID: <Pine.LNX.4.61.0504051240290.20461@dhalsim.dreamhost.com> UJS Contact US wrote: > > I gave the specs a quick scan - specifically for one element which I have an > interest in... that of the standard "select tag"... > > I believe this list selector should be updated to provide columnar data > formatting and enable properties that include: Greenbar (alternating colors > - odd rows/even rows)... This can be done using CSS and W3C Selector's :nth-child() pseudo-class. As a presentational detail, it should be out of scope of Web Forms. > ...header row, header column. > > I have a very rough "whitepaper" on my website showing an example... Please > take a look - it is a short read. > > http://www.aujsproduction.com/samples/wishlist/revampedselector.asp I agree that something like this is probably needed. We'll be looking at things like this in the Web Apps draft. > I will take a closer look at the entire doc to see what else I might be able > to "suggest". I look forward to it. Cheers, -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From ian at hixie.ch Tue Apr 5 06:45:19 2005 From: ian at hixie.ch (Ian Hickson) Date: Tue, 5 Apr 2005 13:45:19 +0000 (UTC) Subject: [whatwg] [WF2] The <icomplex> element In-Reply-To: <42495D8C.1080007@earthlink.net> References: <420A34FD.5040705@earthlink.net> <Pine.LNX.4.61.0503201827110.880@dhalsim.dreamhost.com> <423ED662.2070805@earthlink.net> <Pine.LNX.4.61.0503231203510.12561@dhalsim.dreamhost.com> <42495D8C.1080007@earthlink.net> Message-ID: <Pine.LNX.4.61.0504051244510.20461@dhalsim.dreamhost.com> To summarise my position: <icomplex> solves some problems, and introduces others. Just like <input>, it is not perfect. Since I do not consider the problems that it solves to be serious problems, and since I do not consider the problems it introduces to be any less important than the ones it sets out to solve, I do not see the advantage of introducing it. On Tue, 29 Mar 2005, Matthew Raymond wrote: > > > > If it uses scripting, <icomplex> isn't needed. > > Not true. See the jscalendar example. In that situation, it's far and > away easier to use <dataentry> (formerly <icomplex>) than it is to > modify the script, especially if the author knows little or nothing > about Javascript and is simply using someone else's work. I wouldn't expect people to try to go from jscalendar to jscalendar + icomplex. I would expect them to go from jscalendar1 to jscalendar2, the second of which provides for WF2 UAs. > > > Can you explain exactly why it's so difficult to create server-side > > > scripts to deal with this issue? > > > > It's not, particularly; certainly no harder than supporting multiple > > date formats. The problem is mostly that it involves having multiple > > codepaths, which means more likelihood of errors (authors frequently > > only test in their UA), as well as opportunities for vulnerabilities > > (e.g. if the script doesn't expect to receive both date arguments at > > once). > > Nonsense. Here's the pseudocode: > > | if (exists(WF2_date_string)) { > | date1 = WF2_date_string; > | } else { > | date1 = select_year + "-" + select_month + "-" + select_day; > | } Sure. I've also seen code like: if (exists(WF2_date_string)) date1 = WF2_date_string; if (exists(select_year)) date1 = select_year + "-" + select_month + "-" + select_day; // later in the script if (exists(select_year)) date1 = select_year + "-" + select_month + "-" + select_day; if (exists(WF2_date_string)) date1 = WF2_date_string; > Then you just validate "date1" as if it where coming from a WF2 client. > This is the kind of problem they give programmers at a job interview for > people fresh out of college. Many Web developers are self-employed, or employed by people who hired them based on the fact that the demo Web page they were shown has a cool <blink> bit and funky use of <marquee>. Sure, the professionals won't do this kind of mistake. > > > > It doesn't solve the problem of the default (simplest authoring) > > > > being zero fallback for legacy UAs. > > > > > > The simplest thing to author would be to use <input>, so I don't see > > > your point. > > > > My point is it would be possible (and therefore, by Murphy's law, > > common) for authors to do: > > > > [ <dataentry .../>] > > Exactly how would that work? In WF2-compliant HTML, nothing in the page > would show up after the <dataentry> element. Are you saying it's a > problem because XHTML parsers allow the more compact form even when a > closing tag is *required*? Eh? In XML, <foo/> and <foo></foo> are equivalent. > > > The problem here was that supporting <noframes> is a huge pain in > > > the a$$, especially if you're a hand coder like myself. It involves > > > a massive amount of copying content and it's a pain to test because > > > you need a browser without frames support to check it. So most > > > people just said, "Screw it, let them get a browser that supports > > > frames!" > > > > Frames, scripting, alt text on images, fallback on <object>, > > All of which require additional effort on the part of the author. > > > "best viewed at 800x600", > > Additional effort required for testing on multiple devices and > resolutions. > > > "optimized for IE", > > The page may, in fact, use features that only exist in IE, or it may > have been designed before competing W3C standards were implemented on IE > and other browsers. It also indicates ignorance on the part of the > author regarding other methods. > > > "Your browser is not supported", > > Nonspecific. I have no way of knowing the context of the message above. > > > there are any number of examples of this mentality. > > The mentality you describe is simply a matter of laziness. To drop > <font>, an author has to learn CSS. To make a page work with multiple > screen sizes requires additional testing. If an author sees a sample > script that uses MS-proprietary stuff, they just stick it in and you get > "This site only works with IE". Lazyness and ignorance, and copy-and-pasting from other sites, yes. > The use of <dataentry> over <input> represents more than laziness. It > represents a conscious choice to avoid providing fallback. Even if you > were to assume that people believed <input type="unknown"> had no > fallback (<input type="text">), it would be trivial, a simple cut and > paste job, to add textbox fallback: > > | <dataentry type="unknown" [attributes to copy/paste]> > | <input type="text" [attributes to copy/paste]> > | </dataentry> > > Can you come up with even one scenario that excludes all malicious > intent on that part of all parties involved? One of my mottos is: don't blame on malice what can be blamed on incompetence. People who understand the specs will do the right thing, of course. But the majority won't and we have to at least reduce the chances of them screwing things up. This isn't a huge point -- see the first paragaph of this e-mail. But if the main concern of <dataentry> is to allow for decent fallback for legacy UAs, then it should most definitely _not_ allow _no_ fallback, IMHO. It should make things better in all cases, not potentially better and also potentially a lot worse. > > Murphy's law strongly applies to Web authoring. If there are two ways > > to do something, people _will_ pick the bad one. It is our > > responsibility, as designers of Web standards, to make it as hard as > > possible for authors to do the wrong thing. > > You aren't arguing for sound architecture. You're arguing for an end to > freedom of choice. If we're going to put limitations on people, we have > to have minimal justification. Can you suggest any criteria for that > threshold? Um, let's keep things in proportion. Arguing that not having a feature is a limitation on people and is an end to freedom of choice is a slippery slope to including everything in the spec. Let's please not go _there_. > > Ah! I see your mistake. You are assuming that WF2 will only be used by > > serious professionals. > > No, I assume that people who intentionally make a**es of themselves will > find themselves without an audience. The markup of most of the Web would tend to disagree with you. (Look at the source of Yahoo, MSN, and Google, the three most popular sites.) > > HTML (including WF2, we can hope) is used by millions of people, only > > a small fraction of which can be called "professionals". (And even > > many of those would probably pick the example 1 versions of our > > examples above.) > > If you honestly believe that, then you're screwed, because the people > you describe would willingly use Microsoft-proprietary solutions instead > of WF2. They would also willingly use WF2 instead of Microsoft-proprietary solutions -- the source is irrelevant. We have to make the standards-based solutions more appealing, that's all. (That and marketing.) > By the way, if you don't recommend WF2 UA detection, how are people > supposed to add those wonderful scripting enhancements on legacy clients > that are supposed to make up for the fallback shortcomings of <input>? I recommend feature detection, not WF2 UA detection. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From ian at hixie.ch Tue Apr 5 07:53:46 2005 From: ian at hixie.ch (Ian Hickson) Date: Tue, 5 Apr 2005 14:53:46 +0000 (UTC) Subject: [whatwg] Re: <section> and headings and other threads In-Reply-To: <424C9E03.9030107@inkedblade.net> References: <Pine.LNX.4.61.0503302359150.25644@dhalsim.dreamhost.com> <424BCBBE.2040308@cam.ac.uk> <424C9E03.9030107@inkedblade.net> Message-ID: <Pine.LNX.4.61.0504051411220.2016@dhalsim.dreamhost.com> Ok, the spec has been updated to define headings and sections: http://whatwg.org/specs/web-apps/current-work/#sectioning (Only section 2.4 and its subsections; ignore sections from 2.5 onwards.) Comments? Below is my response to all the header-related feedback received so far. On Sat, 13 Nov 2004, Laurens Holst wrote: > > > > Well, <h> wouldn't be backwards compatible at all. At least <h1> would > > look like a heading of sorts. > > I give you one abbreviation: CSS. Lynx doesn't support CSS. > > > <h1>Foo</h1> > > > <section> > > > <h3>Bar</h3> > > > <h6>Quuz</h6> > > > </section> > > > > > > Would be the same as H1, H2, H2, right? > > > > Yes. Actually in the model now in the spec that would be equivalent to three nested sections with H1, H2, H3 headers. > Arbitrary heading elements (1 out of 6) are incredibly verbose to express in > CSS, and you'd have to place h1|h2|h3|h4|h5|h6 in any XPath expression as > well. So in practice, I don't think this is a good option. > > section h1, section h2, section h3, section h4, section h5, section h6 { > font-size: xx-large; > } > section section h1, section section h2, section section h3, section section > h4, section section h5, section section h6 { > font-size: xx-large; > } > > etc. > > This should visually be the same as h1, h3, h6 and semantically the same as > sections with weird headings inside. I haven't looked into the styling solution yet but it is definitely by opinion that CSS should adapt to fit the markup and not the other way around. Since I'm on the CSSWG and an editor of the Selectors spec, I can work directly with the CSSWG on this. :-) > > And if we don't redefine <h1> (and <h2> to <h6>), then you end up with > > the weird situation of having six elements which could easily be used > > but end up with meaningless semantics. (And they would be inline > > elements in legacy UAs, which is even worse.) > > XHTML 2.0 does this. I disagree with many of XHTML2's design decisions. > > e.g. at the moment, this: > > > > <body> > > <h1>A</h1> > > <section> > > <h2>A.1</h2> > > <section> > > <h3>A.1.1</h3> > > </section> > > </section> > > </body> > > > > ...makes sense, but if we say you have to use a new element for > > headers, then the above is now meaningless and trying to make an > > outline from it would not do anything useful. > > That's just not true, or I'm missing your point. > > Try making a tree view of a document based on h1...h6 headings. > CSS: euh... > XSLT: euh... I can't speak for XSLT, but for CSS it would be something like: section { padding: 2em; border-left: 2px solid red; } ...which is in fact exactly what you wrote for the <h> version: > Now try making a tree view based on h headings. > CSS: section { padding: 2em; border-left: 2px solid red; } I'm not sure what the problem is. > > 3. It shouldn't be too easy to end up with meaningless markup when > > doing either of the above. So a random <h4> in the middle of an > > <h2> and an <h3> has to be defined as meaning _something_. Note that the current definitions do indeed define every possible use of <hx> headers, I think. > This is no different than the existing spec. The existing spec is silent on this. > This would mean a 4th level heading between a second- and a third-level > heading. Inside sections one could let the section level determine the > heading level and treat all headings the same, or use the highest level > of either the section or the heading. I don't see a need to define this > more specificly, as h1...h6 just don't go very well with sections. > That's the way it is, and it won't really harm anyone. Except those trying to create outliners that interoperate. For example for documents contents pages, for jumping between sections (like PDF viewers), etc etc. > I think [the spec proposals from back then are] needlessly complicated. > > Note that for navigation XHTML 2.0 has <nl> Navigation Lists, which would > correspond to your <navigation> tag. A sidebar (which side? how is it > different from navigation and why is navigation not a sidebar?) usually > consists out of links, and on places where it doesn't it is conte. And > <article> (content) is implied (everything not navigation). All in all this > set of tags you proposed sounds too specific to me. Please look at the current spec draft and let me know if you still have those concerns. Note that the tags in the spec come directly from research I did into what markup people use for typical sites (especially looking into <div> abuse). > > The other advantage of using the existing <hX> elements is that > > Assistive Technologies will continue working, reporting the section > > headers, instead of saying there are no headers on the page. > > Assistive Technologies don't work on pages using headers created with > font tags or styled divs either. Those pages are broken. > Assistive technologies can be updated. For technologies such as those, > section tags actually make much more sense than headings as they're > currently used. I think the current definition (as of a few days ago) should take core of this. On Thu, 18 Nov 2004, Henri Sivonen wrote: > > <h> and <section> allow na?ve inclusions, so that the content author or > the CMS does not need to deal with heading level shifting. > > IMO <h> and <section> are better than <h1> through <h6>, but I'm not > convince that they are better enough to warrant the incompatibility. > Besides, when you have both, the required CMS code gets even uglier than > what is needed with only <h1> through <h6>. <h1> through <h6> in <section> are equivalent to <h> in XHTML2 (mostly -- they are better defined than in XHTML2). They only imply relative header relations, not fixed ones. <h3> doesn't always mean "third level header", what it means depends on context, in the way described in the spec, just like <h> does. On Wed, 17 Nov 2004, James Graham wrote: > > > > This is also why I feel that <section> should define headings such > > that there is no way to end up with a "missing level". Not by making > > such constructs non-conforming, but by simply defining them so that it > > isn't a problem and the headings are automatically nested > > appropriately. Note that this is now done. > > I do like this idea, but it isn't really workable. We need authors to > > be able to use HTML5 markup and yet still have it render correctly in > > HTML4 UAs, which basically means that we need <h2>-<h6> to mean > > exactly what they do in HTML4, or at least mean that as much as > > anything else. So we couldn't say that <h3> meant a minor heading, > > since otherwise the following: > > > > <h1>...</h1> > > <section> > > <h2>...</h2> > > <section> > > <h3>...</h3> > > > > ...would not be exactly equivalent to: > > > > <h1>...</h1> > > <h2>...</h2> > > <h3>...</h3> > > > > ...which we want. > > Why are those two inequivalent under my definition? Under the current proposed spec, as under your definition, they are in fact equivalent now. > As far as I can tell, the differences come when one looks at fragments > like: > > <section> > <h1>..</h1> > <section> > <h1>..</h1> > <section> > <h1>..</h1> > > Unless I have missed something, in the current webapps spec, this is (in > HTML5) exactly equivalent to the two examples that you gave, Correct. > and indeed authors are encouraged to use this form. The spec now says "Sections may contain headers of any rank, but authors are strongly encouraged to either use only h1 elements, or to use elements of the appropriate rank for the section's nesting level". > Clearly this is not equivalent to the HTML4ised version: > > <h1>..</h1> > <h1>..</h1> > <h1>..</h1> > > My proposal would make this example semantically different to your > examples in both HTML4 and HTML5, and would retain the letter of the > HTML4 spec (and, indeed, the sense in which many people have interpreted > it). It therefore makes authors more likely to use markup that will > behave as expected in HTML4 UAs. I don't see any way we can have nested <section> elements _not_ mean nested sections. That strikes at the very core of what nesting a <section> element would mean, IMHO. On Sat, 20 Nov 2004, fantasai wrote: > > I would define things as follows: > > - The first header in a <section> is that section's top-level header > - Depth of section increases: > - when heading number increases > - when <section> nesting increases--but this increments from > the last top-level <section> header rather than the last header > - Depth of section does not decrease with a header number that is higher > than the section's top-level header's number. (This means all > subsequent header number increments increment based on this header's > number instead of the top-level header's number.) That's roughly what the spec says now (albeit in more detail and coping with nested sections better). > - Section header immediately following a section header of the same level > is considered a subtitle. That's what <header> is for. I see no reason to disallow empty sections, and I have problems defining anything of this nature because of the differences between: <h1/><h1/> <h1/> <h1/> <div><h1/></div><div><h1/></div> <h1/>x<h1/> <h1/><p/><h1/> Those should IMHO all be exactly identical as far as the outline goes. > Example of double header: > http://www.alistapart.com/ > (ISSN bit is <h6>, but is semantically a top-level header for the whole > section) Perfect example of the use case for <header>. On Mon, 15 Nov 2004, Matthew Raymond wrote: > > The following steps COMBINED should solve all problems related to > section headers: > > 1) The <h#> elements should be [deprecated]. > 4) The <h> element will be the only way to create a semantically valid header > for a section. I strongly disagree with this. I don't see the point. Introducing a new element just to replace an old one with near-identical semantics seems silly, especially in light of the fact that we want an easy migration path with a good backwards compatibility story. > 2) The <h#> elements will have no SEMANTIC meaning when inside a <section> > header. Their presentation, however, will remain the same. The spec defines their semantics now. > 3) Within an <h> element, <h#> elements (but not their contents) will be > ignored entirely. > > 5) There should only be one <h> element for each section. Any <h> element > after the first <h> element will have no semantic meaning, but can still have > the same presentation as the first <h> element. > > 6) The only way to create semantically valid subsections within a <section> > element is to create child <section> elements within the <section> element. That seems overly strict given that people will be doing these bad things anyway. I don't see the point in making it illegal (or saying an element "has no semantics", which I guess is the same thing) when we can just define what it means and make it ok. > I still feel that, structurally speaking, there should be a <section> > element for every section and subsection, even for sections that are > both leaves and immediate siblings. I agree, but I don't see that we can enforce it. > Therefore, I'm amending my previous > position with the following: > > 1) Nested headers are ignored. Therefore, this markup... > > <h1><h2>Header</h2></h1> > > ...Is the same as... > > <h1>Header</h1> No, it's the same as <h1></h1><h2>Header</h2> > 2) <h1>-<h6> have the same semantic value as in HTML 4.01, but are > additionally defined as not having any semantic meaning related to > document _structure_. Not sure what this means. HTML4 doesn't define them really, and I don't see what the second half of your sentence means. > 3) The <h> element is defined as being the same as <h1>-<h6>, except that the > importance level is obtained by the parent <section>, and <h> can only be used > within a <section>. Therefore, the following to example... Counter proposal: Just define <h1>-<h6> that way. This is what the current spec does. On Sun, 21 Nov 2004, fantasai wrote: > James Graham wrote: > > Backwards compatibility must be maintained. <h1> to <h6> must represent > > headings. Given the abuse of headings-as-structure on the existing web there > > may be some leeway in (re)defining the way that the headings interact to > > give e.g. an outline/toc. > > ... > > Multiple headings per section will probably happen anyway. So we may as well > > allow them. > > ... > > Many documents on the web do not have a formal structure of the sort that > > would be edxpected in a legal report. The heading model should be able to > > cope with that. > > ... > > It has to be possible to get an unambigous structure from the headings of a > > document. This means having an algorithm in the spec that UAs can implement > > that will give a 'tree view' of the document structure. Agreed. The spec has been updated to match this. Comments welcome! On Thu, 25 Nov 2004, dolphinling wrote: > > With respect to <section>, <h>, and <hn>, I would suggest the following: > > For any <hn>, if n is less than or equal to the number of sections it is > nested inside, it is semantically equivelant to <h>; > > <section> > <h1>1st level header</h1> > <p>content</p> > </section> > > <section> > <h>1st level header</h> > <p>content</p> > <section> > <h2>2nd level header</h2> > <p>content</p> > </section> > <section> > <h1>_Also_ 2nd level header</h1> > <p>content</p> > </section> > </section> > > Around any hn with n greater than the number of sections, there are implied > semantic sections. These implied sections end at the end of the containing > explicit section (or other containing block) or at the start of the next hn > with an equal or lower value of n; > > <section> > <h1>1st level header</h1> > <p>content</p> > <!-- section --> > <h2>2nd level header</h2> > <p>content</p> > <!-- /section --> > </section> Agreed. > <section> > <h1>1st level header</h1> > <p>content</p> > <!-- section --> > <!-- section --> > <h3>3rd level header</h3> > <p>content</p> > <!-- /section --> > <!-- /section --> > </section> Disagreed; the <h3> simply gets treated as an <h2> in this case, IMHO. I don't see the advantage of having deeper sections here. > For a legacy document: > > <!-- section --> > <h1>1st level header</h1> > <p>content</p> > <!-- section --> > <h2>2nd level header</h2> > <p>content</p> > <!-- section --> > <h3>3rd level header</h3> > <p>content</p> > <!-- end section --> > <!-- end section --> > <!-- /section --> Agreed. > A more complex example, with h and hn chosen off the top of my head: > > <section> > <h>1st level header</h> > <p>content</p> > <section> > <h1>2nd level header</h1> > <p>content</p> > <!-- /section --> > <!-- section --> <!-- This implied split I'm not sure about, but > it seems to be best [1] [2] --> > <h2>2nd level header</h2> > <p>content</p> > <section> > <h>3rd level header</h> > <p>content</p> > <section> > ... > > [1] This also answers the question of what happens if you have two headers in > a section. The possibilities are assume the second one is a subsection, assume > they're both subsections, or assume they're both normal sections, with an > implied split. I think the implied split is best... > > [2] ...Or it could just be declared invalid, and there could be a limit of one > header per section. Can you have content before the header, though? How about > subsections before the header? And what about implied subsections? Hmm... have > to think about it, but it might work. (Too lazy to revise my big long example, > though) The current spec takes care of these cases too. On Thu, 25 Nov 2004, Matthew Raymond wrote: > > If there is any difference in presentation or the level of importance, > then this contradicts the HTML 4.01 specification when the header > element is a child of a <section>. If you assume your <h> elements are > set up the way mine are, then this is the case, since in my model, <h> > elements on level "n" are semantically and presentationally identical to > <hn>. It looks to me like you're using <section> to enforce a minimum > importance level, and possibly to alter presentation. If so, I oppose > this. Why? > > Around any hn with n greater than the number of sections, there are implied > > semantic sections. These implied sections end at the end of the containing > > explicit section (or other containing block) or at the start of the next hn > > with an equal or lower value of n; > > > > <section> > > <h1>1st level header</h1> > > <p>content</p> > > <!-- section --> > > <h2>2nd level header</h2> > > <p>content</p> > > <!-- /section --> > > </section> > > Let's add a <section>, then: > > | <section> > | <section> > | <h1>2nd level header</h1> > | <p>content</p> > | <!-- /section --> > | <!-- section --> > | <h2>2nd level header</h2> > | <p>content</p> > | </section> > | </section> Indeed. The spec takes care of the above (the two examples above are semantically equivalent to the first, not the second). > The more complicated we make the rules with regards to implied sections, > the more likely we'll have the following problems: > > a) Webmasters will get confused and create markup that doesn't have the > structure or presentation they desire. Hopefully the rules are based on something simple enough to avoid that. (Someone should probably write a five line summary for the intro to the spec which can actually be understood by authors. My current summary is terse and to the point but probably hard to understand.) > b) The UA programmers will overlook certain cases, resulting in the > creation of outlines that violate the specification. Hopefully the way it is defined, in terms of an algorithm, should sidestep that issue. It is easy to test each point in the algorithm. > c) There will be specific cases where it may be impossible for > webmasters and vendors to determine how an outline should be generated, > resulting in intentional differences in the way markup is written for > these cases and how UAs handle it. In theory the algorithm covers every possible case. (Including odd cases like the element not being in the DOM.) On Thu, 31 Mar 2005, fantasai wrote: > James Graham wrote: > > Ian Hickson wrote: > > > > > There are two big issues here: > > > > > > 1. What do <h1> to <h6> mean in a <body>? > > > > > > 2. What do <h1> to <h6> mean in a <section>? > > > > Incidentially, unless I was convinced otherwise in some way that I've > > now forgotten, I believe that question 1 and 2 should be the same i.e. > > I second this. As Anne noted once on IRC, it should be possible to > copy-paste the article-text of an existing HTML document into a > <section> element and have all the elements inside retain the same > relative semantics. The spec has taken that into account and (with a few exceptions that are the entire point of <section>) the two are defined equivalently. In fact the spec only has one definition, which is shared by the two. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From lachlan.hunt at lachy.id.au Tue Apr 5 09:01:07 2005 From: lachlan.hunt at lachy.id.au (Lachlan Hunt) Date: Wed, 06 Apr 2005 02:01:07 +1000 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> Message-ID: <4252B643.6030308@lachy.id.au> Ian Hickson wrote: > On Tue, 5 Apr 2005, Anne van Kesteren wrote: >> <script type="text/javascript" src="bar"></script> >> <title>Foo</title> >> >>..? > > If I am not mistaken: > > <html><head><script.../> > <title.../></head><body></body></html> I believe you are mistaken. A conforming SGML parser will not imply the body element without any content to make it do so. >>Is there a BODY element in this document (or, is there always a body >>element?): >> >> <style type="text/css"> >> body{ background:lime } >> </style> >> >>... or this: >> >> <title>Bar</title> > > The <body> will always be implied, though. Not in a conforming SGML parser, though it seems to be in Mozilla, Opera and IE, as I checked using your DOM viewer [1]. Although Opera seems to have a bug in standards comliant mode (at least, according to the DOM viewer script) because neither the head or body elements appeared in the DOM using this markup: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <title>Foo</title> <script type="text/javascript" src="bar"></script> However, if the <body> element were to be automatically implied regardless, then the same would be true of the <tbody> element since both are required elements of <html> and <table>, respectively, and both have optional start- and end-tags,the rules for both must be the same. Neither Mozilla or Opera implies the missing tbody element within <table></table>, although IE does. However, OpenSP does not imply the missing elements in either case. The only documentation I could find that supports this, given the short amount of time I have to look, is this paragraph from section 9.2.3 of Martin Bryan's SGML and HTML Explained [2] that was explaining how the associated example should be parsed. | The start-tag can be omitted because the absence of this compulsory | first embedded subelement could be implied by the parser from the | content model... As soon as it sees a character other than a | start-tag delimiter (<) it will recognize that the character should be | preceded by [the start tag]. > (For backwards compatibility with legacy parsers, the <head> probably won't be.) The head element seems to be implied by Mozilla and IE. Opera and OpenSP correctly don't imply the missing head element. [1] http://www.hixie.ch/tests/adhoc/html/parsing/compat/viewer.html [2] http://www.is-thought.co.uk/book/sgml-9.htm#Omitting -- Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox From ian at hixie.ch Tue Apr 5 10:12:00 2005 From: ian at hixie.ch (Ian Hickson) Date: Tue, 5 Apr 2005 17:12:00 +0000 (UTC) Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <4252B643.6030308@lachy.id.au> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> <4252B643.6030308@lachy.id.au> Message-ID: <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> On Wed, 6 Apr 2005, Lachlan Hunt wrote: > > > > > > <script type="text/javascript" src="bar"></script> > > > <title>Foo</title> > > > > > > ..? > > > > If I am not mistaken: > > > > <html><head><script.../> > > <title.../></head><body></body></html> > > I believe you are mistaken. A conforming SGML parser will not imply the > body element without any content to make it do so. I meant in existing UAs, not in the spec. According to the HTML spec, the handling of the above is completely undefined since it is invalid. (Note that something being invalid or non-conformant does _not_ make the rendering undefined in most cases in Web Apps 1 / HTML5. That's one of the main things I'm making sure of.) > > > Is there a BODY element in this document (or, is there always a body > > > element?): > > > > > > <style type="text/css"> > > > body{ background:lime } > > > </style> > > > > > > ... or this: > > > > > > <title>Bar</title> > > > > The <body> will always be implied, though. > > Not in a conforming SGML parser, though it seems to be in Mozilla, Opera and > IE, as I checked using your DOM viewer [1]. Yeah, I meant in browsers, not per SGML. > However, if the <body> element were to be automatically implied > regardless, then the same would be true of the <tbody> element since > both are required elements of <html> and <table>, respectively, and both > have optional start- and end-tags,the rules for both must be the same. > Neither Mozilla or Opera implies the missing tbody element within > <table></table>, although IE does. However, OpenSP does not imply the > missing elements in either case. <tbody> is implied if there is a <tr> there. The history behind all these quirks is long and confused. <body> in particular has had an especially colourful past. > > (For backwards compatibility with legacy parsers, the <head> probably > > won't be.) > > The head element seems to be implied by Mozilla and IE. Even when there are no elements that imply a <head>? I meant, e.g., when parsing the empty string as HTML. My understanding was that no <head> element was generated in that case. > Opera and OpenSP correctly don't imply the missing head element. I'm not sure what you mean by "correctly" here since an HTML4 document without a <title> is invalid and thus parsing is undefined in HTML4. If there is a <title> then the <head> must be implied per SGML. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From fora at annevankesteren.nl Tue Apr 5 12:15:44 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Tue, 05 Apr 2005 21:15:44 +0200 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> <4252B643.6030308@lachy.id.au> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> Message-ID: <4252E3E0.6040705@annevankesteren.nl> Ian Hickson wrote: >> The head element seems to be implied by Mozilla and IE. > > Even when there are no elements that imply a <head>? I meant, e.g., > when parsing the empty string as HTML. My understanding was that no > <head> element was generated in that case. <data:text/html,> ... generates both in Firefox 1.0 and in recent nightlies: HTML HEAD BODY ... I haven't tested in other browsers. -- Anne van Kesteren <http://annevankesteren.nl/> From ian at hixie.ch Tue Apr 5 12:19:41 2005 From: ian at hixie.ch (Ian Hickson) Date: Tue, 5 Apr 2005 19:19:41 +0000 (UTC) Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <4252E3E0.6040705@annevankesteren.nl> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> <4252B643.6030308@lachy.id.au> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <4252E3E0.6040705@annevankesteren.nl> Message-ID: <Pine.LNX.4.61.0504051919320.27724@dhalsim.dreamhost.com> On Tue, 5 Apr 2005, Anne van Kesteren wrote: > Ian Hickson wrote: > > > The head element seems to be implied by Mozilla and IE. > > > > Even when there are no elements that imply a <head>? I meant, e.g., > > when parsing the empty string as HTML. My understanding was that no > > <head> element was generated in that case. > > <data:text/html,> > > ... generates both in Firefox 1.0 and in recent nightlies: > > HTML > HEAD > BODY I stand corrected. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From ian at hixie.ch Tue Apr 5 15:50:17 2005 From: ian at hixie.ch (Ian Hickson) Date: Tue, 5 Apr 2005 22:50:17 +0000 (UTC) Subject: [whatwg] Web Forms 2.0 In-Reply-To: <3f1451f505032521032e169afc@mail.gmail.com> References: <3f1451f505032521032e169afc@mail.gmail.com> Message-ID: <Pine.LNX.4.61.0504052249410.27724@dhalsim.dreamhost.com> On Sat, 26 Mar 2005, Joe Gregorio wrote: > In the Web Forms 2.0 Working Draft dated 16 March 2005 > > 5.6. Submitting the encoded form data set > > "If the specified method is not one of get, post, > put, or delete then it is treated as get in the tables below." > > It would be much better if just one word of that sentence was changed: > > "If the specified method is not one of get, post, > put, or delete then it is treated as *post* in the tables below." I agree. Sadly, doing this would break compatibility with existing implementations, which all treat unknown values as "get". -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From dean at edwards.name Tue Apr 5 15:55:38 2005 From: dean at edwards.name (Dean Edwards) Date: Tue, 05 Apr 2005 23:55:38 +0100 Subject: [whatwg] Web Forms 2.0 Feedback In-Reply-To: <Pine.LNX.4.61.0504051224350.20461@dhalsim.dreamhost.com> References: <20050324234336.7855.qmail@web50908.mail.yahoo.com> <Pine.LNX.4.61.0504051224350.20461@dhalsim.dreamhost.com> Message-ID: <4253176A.7090300@edwards.name> Ian Hickson wrote: > On Thu, 24 Mar 2005, Csaba Gabor wrote: >>2. Repetition model. >>The Draft has a huge amount of space devoted to this, >>but I haven't been able to think of a single compelling >>argument for it. Most of the control enhancements such >>as validation are conveniences, after all, but what they >>have going for them is that they are very compact. This >>repetition model is huge and messy and there are simple >>javascript programming methods that allow you to do the >>same thing. This developer's opinion is that I would >>far rather roll my own and not even have the possibility >>of using this construct. > I'd be interested to know what your home-rolled solution would look like. If we can cater for your requirements then we have a flexible model. Yes, there are already JavaScript alternatives but they are difficult to produce and become even more complex when trying for a cross-browser solution. What I like about the WF2 Repetition Model is that caters for 99% of cases. There will always be edge cases but existing DOM methods, as you say, provide a means for building particular models already. In other words, if you feel that the Repetition Model is inadequate, please specify... > > Yeah, several people have said that. We're thinking about removing it. On > the other hand, several people have said that it is a godsend and that > they are so happy it is there because they are fed up of rolling their > own. At the moment it's about equally matched, in fact. > > The model is pretty simple and relatively easy to implement, so I'm > leaning towards keeping it. > Ian, I thought we'd sorted this out. We had exactly the same discussion a few weeks back and nobody came up with any objections to the current model. I quite like Olav's idea to separate the Repetition Model from the existing WF2 spec. This would give us time to discuss it a bit more without impacting the rest of WF2. Maybe the Repetition Model should be separate anyway? Personally, if I was considering using it on a site, I'd prefer to print off a separate spec to read. But that's just me. I /do/ recognise that this is a bit of an editorial headache however... ;-) -dean From ian at hixie.ch Tue Apr 5 16:15:14 2005 From: ian at hixie.ch (Ian Hickson) Date: Tue, 5 Apr 2005 23:15:14 +0000 (UTC) Subject: [whatwg] Web Forms 2.0 Feedback In-Reply-To: <4253176A.7090300@edwards.name> References: <20050324234336.7855.qmail@web50908.mail.yahoo.com> <Pine.LNX.4.61.0504051224350.20461@dhalsim.dreamhost.com> <4253176A.7090300@edwards.name> Message-ID: <Pine.LNX.4.61.0504052307560.27724@dhalsim.dreamhost.com> On Tue, 5 Apr 2005, Dean Edwards wrote: > > > > Yeah, several people have said that. We're thinking about removing it. > > On the other hand, several people have said that it is a godsend and > > that they are so happy it is there because they are fed up of rolling > > their own. At the moment it's about equally matched, in fact. > > > > The model is pretty simple and relatively easy to implement, so I'm > > leaning towards keeping it. > > Ian, I thought we'd sorted this out. We had exactly the same discussion > a few weeks back and nobody came up with any objections to the current > model. Someone just did - Csaba. :-) > I quite like Olav's idea to separate the Repetition Model from > the existing WF2 spec. This would give us time to discuss it a bit more > without impacting the rest of WF2. Maybe the Repetition Model should be > separate anyway? Personally, if I was considering using it on a site, > I'd prefer to print off a separate spec to read. But that's just me. I > /do/ recognise that this is a bit of an editorial headache however... > ;-) There are basically three reasons for which I'd rather not split that bit out. First, as you say, it would be a pain to do. Second, it wouldn't be very clean. While the spec _looks_ like it's neatly organised and cutting it out would just mean cutting out section 3, it really isn't that simple. The repetition model is deeply embedded in the DOM sections and the form submission and seeding sections. (And rightfully so -- the repetition model integrates with those sections so as to provide the features that can't be easily provided if people implement it by hand.) The third reason is that I don't see why we need "more time" to discuss it. We've had the last two months to discuss it and there's been nothing really said. If it was really being discussed and some deadline was coming up, then I would agree -- but unless that actually happens, then I don't see how a delay would help. Anyway, I've removed the "open issue" in the status section about whether the repetition model should be kept. As you pointed out, the views in favour of keeping it are stronger than the views suggesting it be removed. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From joe.gregorio at gmail.com Tue Apr 5 17:27:13 2005 From: joe.gregorio at gmail.com (Joe Gregorio) Date: Tue, 5 Apr 2005 20:27:13 -0400 Subject: [whatwg] Web Forms 2.0 In-Reply-To: <Pine.LNX.4.61.0504052249410.27724@dhalsim.dreamhost.com> References: <3f1451f505032521032e169afc@mail.gmail.com> <Pine.LNX.4.61.0504052249410.27724@dhalsim.dreamhost.com> Message-ID: <3f1451f505040517273e0e6c1f@mail.gmail.com> On Apr 5, 2005 6:50 PM, Ian Hickson <ian at hixie.ch> wrote: > On Sat, 26 Mar 2005, Joe Gregorio wrote: > > > In the Web Forms 2.0 Working Draft dated 16 March 2005 > > > > 5.6. Submitting the encoded form data set > > > > "If the specified method is not one of get, post, > > put, or delete then it is treated as get in the tables below." > > > > It would be much better if just one word of that sentence was changed: > > > > "If the specified method is not one of get, post, > > put, or delete then it is treated as *post* in the tables below." > > I agree. Sadly, doing this would break compatibility with existing > implementations, which all treat unknown values as "get". Would that really 'break' anything? If that is the default behaviour today then clients would expect not to be able to send a request body with a method outside POST and PUT. Adding that capability won't break their code, will it? Thanks, -joe -- Joe Gregorio http://bitworking.org From ian at hixie.ch Tue Apr 5 17:36:53 2005 From: ian at hixie.ch (Ian Hickson) Date: Wed, 6 Apr 2005 00:36:53 +0000 (UTC) Subject: [whatwg] Web Forms 2.0 In-Reply-To: <3f1451f505040517273e0e6c1f@mail.gmail.com> References: <3f1451f505032521032e169afc@mail.gmail.com> <Pine.LNX.4.61.0504052249410.27724@dhalsim.dreamhost.com> <3f1451f505040517273e0e6c1f@mail.gmail.com> Message-ID: <Pine.LNX.4.61.0504060033350.27724@dhalsim.dreamhost.com> On Tue, 5 Apr 2005, Joe Gregorio wrote: > > > > > > "If the specified method is not one of get, post, > > > put, or delete then it is treated as *post* in the tables > > > below." > > > > I agree. Sadly, doing this would break compatibility with existing > > implementations, which all treat unknown values as "get". > > Would that really 'break' anything? If that is the default behaviour > today then clients would expect not to be able to send a request body > with a method outside POST and PUT. Adding that capability won't break > their code, will it? If anyone has a form that says: <form method="ge"> ...then at the moment it'll be treated as GET. If you change the default to "post", it'll no longer be treated as GET. I really don't feel comfortable changing things that all browsers do. If all the browsers interoperate on something, we should celebrate that thing and leave it well alone... It's so rare... -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From joe.gregorio at gmail.com Tue Apr 5 18:21:12 2005 From: joe.gregorio at gmail.com (Joe Gregorio) Date: Tue, 5 Apr 2005 21:21:12 -0400 Subject: [whatwg] Web Forms 2.0 In-Reply-To: <Pine.LNX.4.61.0504060033350.27724@dhalsim.dreamhost.com> References: <3f1451f505032521032e169afc@mail.gmail.com> <Pine.LNX.4.61.0504052249410.27724@dhalsim.dreamhost.com> <3f1451f505040517273e0e6c1f@mail.gmail.com> <Pine.LNX.4.61.0504060033350.27724@dhalsim.dreamhost.com> Message-ID: <3f1451f505040518216a5702c3@mail.gmail.com> On Apr 5, 2005 8:36 PM, Ian Hickson <ian at hixie.ch> wrote: > On Tue, 5 Apr 2005, Joe Gregorio wrote: > > > > > > > > "If the specified method is not one of get, post, > > > > put, or delete then it is treated as *post* in the tables > > > > below." > > > > > > I agree. Sadly, doing this would break compatibility with existing > > > implementations, which all treat unknown values as "get". > > > > Would that really 'break' anything? If that is the default behaviour > > today then clients would expect not to be able to send a request body > > with a method outside POST and PUT. Adding that capability won't break > > their code, will it? > > If anyone has a form that says: > > <form method="ge"> > > ...then at the moment it'll be treated as GET. If you change the default > to "post", it'll no longer be treated as GET. I knew there must be a case that I was over-looking. That makes sense. > I really don't feel comfortable changing things that all browsers do. If > all the browsers interoperate on something, we should celebrate that thing > and leave it well alone... It's so rare... I can't argue with that :) Thanks, -joe -- Joe Gregorio http://bitworking.org From lachlan.hunt at lachy.id.au Tue Apr 5 19:49:40 2005 From: lachlan.hunt at lachy.id.au (Lachlan Hunt) Date: Wed, 06 Apr 2005 12:49:40 +1000 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> <4252B643.6030308@lachy.id.au> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> Message-ID: <42534E44.8080101@lachy.id.au> Ian Hickson wrote: > On Wed, 6 Apr 2005, Lachlan Hunt wrote: >>>The <body> will always be implied, though. >> >>Not in a conforming SGML parser... > > Yeah, I meant in browsers, not per SGML. Ok, fair enough. But can you explain why Opera doesn't when in standards-compliant mode, as I explained in my previous e-mail. Is it a bug or intentional? > According to the HTML spec, the > handling of the above is completely undefined since it is invalid. (Note > that something being invalid or non-conformant does _not_ make the > rendering undefined in most cases in Web Apps 1 / HTML5. That's one of the > main things I'm making sure of.) Ok, if the spec is going to address this, then I think it should say something like: "If a required element with an optional start-tag is entirely missing from the document, a user agent *may* imply it and include it within the DOM. Missing elements with required start-tags *must not* be automatically implied. "Note: It is common for existing user agents to automatically imply both the head and body elements, even when those sections are omitted entirely from the document markup." I used "may", because if "must" or "should" were used instead, it may conflict with anything the SGML spec says on the matter and it would make OpenSP, and thus the validator, non-conformant. I would stick with "may" because, as I showed previously, existing UAs don't do the same for <tbody>. I included the part about start-tags because elements like <li> (which require a start-tag) do not be implied by existing UAs when they are missing. Also, while on the topic of handling invalid documents, is this spec going to attempt to address the <x><y></x></y> problem? >>However, if the <body> element were to be automatically implied >>regardless, then the same would be true of the <tbody> element... >>Neither Mozilla or Opera implies the missing tbody element within >><table></table>, although IE does. However, OpenSP does not imply the >>missing elements in either case. > > <tbody> is implied if there is a <tr> there. Yes, exactly, just like <body> is implied if there is a <p>, <div>, or other element/content there; but not if there isn't. >>Opera and OpenSP correctly don't imply the missing head element. > > I'm not sure what you mean by "correctly" here Well, I read somewhere that OpenSP is "the reference implementation" of SGML, so I assumed that means what it does is correct. In this case, Opera showed the same behaviour so I called it correct as well. However, if this behaviour is not defined in SGML at all, then I should not have said "correctly" either. > since an HTML4 document without a <title> is invalid and thus parsing > is undefined in HTML4. Is it not defined by SGML either? I really must get a copy of Goldfarb's SGML Handbook later and check for sure. > If there is a <title> then the <head> must be implied per SGML. Agreed. -- Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox From ian at hixie.ch Tue Apr 5 20:07:51 2005 From: ian at hixie.ch (Ian Hickson) Date: Wed, 6 Apr 2005 03:07:51 +0000 (UTC) Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <42534E44.8080101@lachy.id.au> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> <4252B643.6030308@lachy.id.au> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> Message-ID: <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> On Wed, 6 Apr 2005, Lachlan Hunt wrote: > > > > > > > > The <body> will always be implied, though. > > > > > > Not in a conforming SGML parser... > > > > Yeah, I meant in browsers, not per SGML. > > Ok, fair enough. But can you explain why Opera doesn't when in > standards- compliant mode, as I explained in my previous e-mail. Is it > a bug or intentional? Bug. > Ok, if the spec is going to address this, then I think it should say > something like: > > "If a required element with an optional start-tag is entirely missing > from the document, a user agent *may* imply it and include it within > the DOM. Missing elements with required start-tags *must not* be > automatically implied. > > "Note: It is common for existing user agents to automatically imply > both the head and body elements, even when those sections are omitted > entirely from the document markup." I'll investigate this in more detail when I write the section on how to parse HTML. Backwards-compatibility with the common subset of what is actually implemented is my top priority though. > I used "may", because if "must" or "should" were used instead, it may > conflict with anything the SGML spec says on the matter and it would > make OpenSP, and thus the validator, non-conformant. I would stick with > "may" because, as I showed previously, existing UAs don't do the same > for <tbody>. OpenSP is already non-conformant to HTML5. See: http://whatwg.org/specs/web-apps/current-work/#conformance In any case, assuming I'm still the editor when the parsing section gets written, HTML5 will most likely stop the pretense of HTML being an SGML application. > Also, while on the topic of handling invalid documents, is this spec > going to attempt to address the <x><y></x></y> problem? Probably not, as there is no generally accepted solution. In fact there is no known solution (to my knowledge) that is entirely satisfactory. > > since an HTML4 document without a <title> is invalid and thus parsing > > is undefined in HTML4. > > Is it not defined by SGML either? I really must get a copy of > Goldfarb's SGML Handbook later and check for sure. SGML doesn't define error handling rules either as far as I recall from the last time I read Goldfarb. But either way, HTML4 overrides SGML in several places and explicitly states that handling of invalid HTML documents is undefined and UA-dependent. (Well, actually, it's about as vague about this as about everything else. But relative to how explicit it is about everything else, it's pretty clear about this.) -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From lachlan.hunt at lachy.id.au Wed Apr 6 03:22:57 2005 From: lachlan.hunt at lachy.id.au (Lachlan Hunt) Date: Wed, 06 Apr 2005 20:22:57 +1000 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> <4252B643.6030308@lachy.id.au> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> Message-ID: <4253B881.3090206@lachy.id.au> Ian Hickson wrote: > OpenSP is already non-conformant to HTML5. See: > > http://whatwg.org/specs/web-apps/current-work/#conformance Actually I believe OpenSP is just the parser, and the validator is the conformance checker which uses OpenSP. Thus, OpenSP is not non-conformant according to that, but the validator is. However, I disagree with that statement anyway. Validators should not be non-conformant simply because they only do their job to validate a document and nothing else. I don't see any reason why such a statement needs to be included at all. If OpenSP was non-conformant, then any current or future UA that is built with OpenSP as the parser would be non-conformant also, which should not be the case. Since HTML is, and IMHO should remain, an application of SGML, the use of a conformant SGML parser should not make the user agent non-conformant. > In any case, assuming I'm still the editor when the parsing section gets > written, Why wouldn't you be? > HTML5 will most likely stop the pretense of HTML being an SGML application. What the? I disagree with that. HTML should remain an application of SGML, and browser's should be built to conform properly. Aside from the unimplemented SHORTTAG features (which can be turned off in the DTD anyway) and the mostly undefined error handling, what about HTML 5 will be so incompatible with SGML to warrant such a decision? >>Also, while on the topic of handling invalid documents, is this spec >>going to attempt to address the <x><y></x></y> problem? > > Probably not, as there is no generally accepted solution. In fact there is > no known solution (to my knowledge) that is entirely satisfactory. Agreed, since no existing browser I know of handles it in the most logical and, IMHO, the most correct way (ie. when a parent element is closed, all unclosed children elements should be closed and not reopened after); and no two browsers that I know of create completely compatible DOMs with any other method. -- Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox From fora at annevankesteren.nl Wed Apr 6 03:41:14 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Wed, 06 Apr 2005 12:41:14 +0200 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <4253B881.3090206@lachy.id.au> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> <4252B643.6030308@lachy.id.au> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> Message-ID: <4253BCCA.6090405@annevankesteren.nl> Lachlan Hunt wrote: >> HTML5 will most likely stop the pretense of HTML being an SGML >> application. +1. > and the mostly undefined error handling, what about HTML 5 will > be so incompatible with SGML to warrant such a decision? One example: <http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2005-January/002993.html> <http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2005-January/002999.html> <http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2005-January/003001.html> ... there are more I believe. -- Anne van Kesteren <http://annevankesteren.nl/> From jim.ley at gmail.com Wed Apr 6 03:48:16 2005 From: jim.ley at gmail.com (Jim Ley) Date: Wed, 6 Apr 2005 11:48:16 +0100 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <4253B881.3090206@lachy.id.au> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> <4252B643.6030308@lachy.id.au> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> Message-ID: <851c8d31050406034866ff215c@mail.gmail.com> On Apr 6, 2005 11:22 AM, Lachlan Hunt <lachlan.hunt at lachy.id.au> wrote: > However, I > disagree with that statement anyway. Validators should not be > non-conformant simply because they only do their job to validate a > document and nothing else. Absolutely, if there is a continued use of a doctype, then a validator is absolutely correct to validate to it, so either the validator should remain conformant, or the doctype should be dropped. (or explicitly marked as this is not an SGML or XML doctype it is simply some cargo cult you should include as your first line) > I don't see any reason why such a statement > needs to be included at all. Neither do I, it's completely unreasonable to say that an incredibly useful QA tool is non-conformant, simply because the editor doesn't consider those benefits in the same way. > > In any case, assuming I'm still the editor when the parsing section gets > > written, > > Why wouldn't you be? Because they might present the work to a standards body who gets a new editor? or some disgruntled reader may ... hmm, no, let's not go there... > > HTML5 will most likely stop the pretense of HTML being an SGML application. > > What the? I disagree with that. HTML should remain an application of > SGML, and browser's should be built to conform properly. Fully agree. Jim. From jim.ley at gmail.com Wed Apr 6 03:51:48 2005 From: jim.ley at gmail.com (Jim Ley) Date: Wed, 6 Apr 2005 11:51:48 +0100 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <4253BCCA.6090405@annevankesteren.nl> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> <4252B643.6030308@lachy.id.au> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> <4253BCCA.6090405@annevankesteren.nl> Message-ID: <851c8d310504060351c1cfe5@mail.gmail.com> On Apr 6, 2005 11:41 AM, Anne van Kesteren <fora at annevankesteren.nl> wrote: > Lachlan Hunt wrote: > > and the mostly undefined error handling, what about HTML 5 will > > be so incompatible with SGML to warrant such a decision? > > One example: > > <http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2005-January/002993.html> the specication has not currently taken this into the specification, and there has been no other support in the mailing list for doing this? This is clearly an example of how existing browsers are non-conformant, and simply making it conformant just blesses browsers in the future to continue violating specs safe in the knowledge that the spec will get changed to suit them, rather than the reverse. Exactly what's happened with CSS, do we really want to do it with HTML too? Cheers, Jim. From fora at annevankesteren.nl Wed Apr 6 03:52:02 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Wed, 06 Apr 2005 12:52:02 +0200 Subject: Issues (was: Re: [whatwg] Web Forms 2.0 Feedback) In-Reply-To: <Pine.LNX.4.61.0504052307560.27724@dhalsim.dreamhost.com> References: <20050324234336.7855.qmail@web50908.mail.yahoo.com> <Pine.LNX.4.61.0504051224350.20461@dhalsim.dreamhost.com> <4253176A.7090300@edwards.name> <Pine.LNX.4.61.0504052307560.27724@dhalsim.dreamhost.com> Message-ID: <4253BF52.4080309@annevankesteren.nl> Ian Hickson wrote: > Anyway, I've removed the "open issue" in the status section about whether > the repetition model should be kept. As you pointed out, the views in > favour of keeping it are stronger than the views suggesting it be removed. The other issue - about the form content model - has been solved as well IMHO. (And I personally think the first mentioned issue - about fallback - isn't really one either.) -- Anne van Kesteren <http://annevankesteren.nl/> From fora at annevankesteren.nl Wed Apr 6 03:58:35 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Wed, 06 Apr 2005 12:58:35 +0200 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <851c8d310504060351c1cfe5@mail.gmail.com> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> <4252B643.6030308@lachy.id.au> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> <4253BCCA.6090405@annevankesteren.nl> <851c8d310504060351c1cfe5@mail.gmail.com> Message-ID: <4253C0DB.2010808@annevankesteren.nl> Jim Ley wrote: > This is clearly an example of how existing browsers are > non-conformant, Doing otherwise would result in a lot of broken pagges and probably less market share for the browser. > and simply making it conformant just blesses browsers in the future > to continue violating specs safe in the knowledge that the spec will > get changed to suit them, rather than the reverse. I don't think that is true. Although specifications will evolve when they get feedback that particular sections just don't work. > Exactly what's happened with CSS, do we really want to do it with > HTML too? I guess. As we can't really change the behavior of HTML anymore on todays web. We can standardize it though so that the results you get are not "huh", but explainable. -- Anne van Kesteren <http://annevankesteren.nl/> From lachlan.hunt at lachy.id.au Wed Apr 6 03:58:47 2005 From: lachlan.hunt at lachy.id.au (Lachlan Hunt) Date: Wed, 06 Apr 2005 20:58:47 +1000 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <4253BCCA.6090405@annevankesteren.nl> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> <4252B643.6030308@lachy.id.au> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> <4253BCCA.6090405@annevankesteren.nl> Message-ID: <4253C0E7.30902@lachy.id.au> Anne van Kesteren wrote: > Lachlan Hunt wrote: > >>> HTML5 will most likely stop the pretense of HTML being an SGML >>> application. > > +1. -1 >> and the mostly undefined error handling, what about HTML 5 will be so >> incompatible with SGML to warrant such a decision? > > One example: > > <http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2005-January/002993.html> > <http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2005-January/002999.html> > <http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2005-January/003001.html> Documents that contain </ within script and style elements, that are not </script> and </style> respectively (or the SHORTTAG version </>) are broken. I see no problem with defining error handling for broken documents, but no need to break conformance with SGML in the process. HTML is an application of SGML, regardless of all the broken implementations and documents we currently have, and I don't want to see that changed. -- Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox From olav at olav.dk Wed Apr 6 04:02:06 2005 From: olav at olav.dk (=?UTF-8?B?T2xhdiBKdW5rZXIgS2rDpnI=?=) Date: Wed, 06 Apr 2005 13:02:06 +0200 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <4253C0E7.30902@lachy.id.au> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> <4252B643.6030308@lachy.id.au> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> <4253BCCA.6090405@annevankesteren.nl> <4253C0E7.30902@lachy.id.au> Message-ID: <4253C1AE.7050407@olav.dk> Lachlan Hunt wrote: > see no problem with defining error handling for broken > documents, but no need to break conformance with SGML in the process. > HTML is an application of SGML, regardless of all the broken > implementations and documents we currently have, and I don't want to see > that changed. An innocent question (no flamewar intended): What is the benefit of having HTML defined as an application of SGML ? regards Olav Junker Kj?r From olav at olav.dk Wed Apr 6 04:39:54 2005 From: olav at olav.dk (=?UTF-8?B?T2xhdiBKdW5rZXIgS2rDpnI=?=) Date: Wed, 06 Apr 2005 13:39:54 +0200 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <4253B881.3090206@lachy.id.au> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> <4252B643.6030308@lachy.id.au> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> Message-ID: <4253CA8A.1070608@olav.dk> Lachlan Hunt wrote: > Validators should not be > non-conformant simply because they only do their job to validate a > document and nothing else. I don't see any reason why such a statement > needs to be included at all. I like the requirement! The intention is (I assume) to prevent validators to claim "this document is valid HTML5" while the document might very well be invalid according to the spec. The problem is that validators use the term "valid" in a very limited sense, but web authors without a through understanding of DTD-validation would naturally assume that "valid" would mean "valid according to the spec". regards Olav Junker Kj?r From lachlan.hunt at lachy.id.au Wed Apr 6 05:07:40 2005 From: lachlan.hunt at lachy.id.au (Lachlan Hunt) Date: Wed, 06 Apr 2005 22:07:40 +1000 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <4253CA8A.1070608@olav.dk> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> <4252B643.6030308@lachy.id.au> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> <4253CA8A.1070608@olav.dk> Message-ID: <4253D10C.5000700@lachy.id.au> Olav Junker Kj?r wrote: > Lachlan Hunt wrote: > >> Validators should not be non-conformant simply because they only do >> their job to validate a document and nothing else. I don't see any >> reason why such a statement needs to be included at all. > > I like the requirement! > The intention is (I assume) to prevent validators to claim "this > document is valid HTML5" while the document might very well be invalid > according to the spec. No, you are using the term "invalid" incorrectly in this case. Validity has a fairly strict definition as it applies to SGML document validation, meaning something like "valid according to the formal definition expressed in the DTD". However, you are correct in that "valid" HTML 5 document may be *non-coformant* (not invalid) according to HTML5, as is the case for all other versions of (X)HTML. > The problem is that validators use the term "valid" in a very limited > sense, but web authors without a through understanding of DTD-validation > would naturally assume that "valid" would mean "valid according to the > spec". Lack of understanding by document authors about the terminology used is no reason to make a validator non-conformant. A validator is not lying by saying that a document is "valid", even if it's non-conformant. It is simply doing its job correctly, and the spec should allow it to do so without being non-coformant itself. -- Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox From lachlan.hunt at lachy.id.au Wed Apr 6 05:10:44 2005 From: lachlan.hunt at lachy.id.au (Lachlan Hunt) Date: Wed, 06 Apr 2005 22:10:44 +1000 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <4253C1AE.7050407@olav.dk> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> <4252B643.6030308@lachy.id.au> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> <4253BCCA.6090405@annevankesteren.nl> <4253C0E7.30902@lachy.id.au> <4253C1AE.7050407@olav.dk> Message-ID: <4253D1C4.3080507@lachy.id.au> Olav Junker Kj?r wrote: > Lachlan Hunt wrote: >> see no problem with defining error handling for broken documents, but >> no need to break conformance with SGML in the process. HTML is an >> application of SGML, regardless of all the broken implementations and >> documents we currently have, and I don't want to see that changed. > > An innocent question (no flamewar intended): Of course not, I try not to flame. :-) > What is the benefit of having HTML defined as an application of SGML ? So that it may be processed with SGML tools, and validated with an SGML based validator, and possibly even generated using XSLT. (I know XSLT can generate HTML4, but I don't know if it would be able to do HTML5 or not, even if it did remain an SGML application). Even if it is decided that HTML 5 is not formally an application of SGML, it must at least remain fully compatible with SGML, and thus a conformant HTML 5 document must be a conformant SGML document. XHTML variants of HTML 5 must be a conformant XML document instead, though I noticed that is not the case with square brackets in ID attributes in section 3.7.2 of WF2 (are there no other character(s) than can be used instead?). So, I guess, there's already no hope of HTML 5 conforming to anything. However, I would like to request that any defined error handling behaviour designed to cope with malformed documents that directly violates SGML, be made optional (but recommended) so that a user agent with a conforming SGML parser may still be conform to HTML 5. -- Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox From lachlan.hunt at lachy.id.au Wed Apr 6 05:10:52 2005 From: lachlan.hunt at lachy.id.au (Lachlan Hunt) Date: Wed, 06 Apr 2005 22:10:52 +1000 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <4253C0DB.2010808@annevankesteren.nl> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> <4252B643.6030308@lachy.id.au> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> <4253BCCA.6090405@annevankesteren.nl> <851c8d310504060351c1cfe5@mail.gmail.com> <4253C0DB.2010808@annevankesteren.nl> Message-ID: <4253D1CC.2000402@lachy.id.au> Anne van Kesteren wrote: > Jim Ley wrote: > >> This is clearly an example of how existing browsers are non-conformant, > > Doing otherwise would result in a lot of broken pagges Those pages are already broken. Authors just don't know it because the browsers are even more broken by being forced to deal with them. > and probably less market share for the browser. I thought this was about standardisation, not some marketing gimmick for brower vendors! -- Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox From fora at annevankesteren.nl Wed Apr 6 05:12:58 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Wed, 06 Apr 2005 14:12:58 +0200 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <4253D10C.5000700@lachy.id.au> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> <4252B643.6030308@lachy.id.au> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> <4253CA8A.1070608@olav.dk> <4253D10C.5000700@lachy.id.au> Message-ID: <4253D24A.8050308@annevankesteren.nl> Lachlan Hunt wrote: > Olav Junker Kj?r wrote: > >> Lachlan Hunt wrote: >> >>> Validators should not be non-conformant simply because they only do >>> their job to validate a document and nothing else. I don't see any >>> reason why such a statement needs to be included at all. I don't see anything about validators. I only read about "Conformance checkers". -- Anne van Kesteren <http://annevankesteren.nl/> From fora at annevankesteren.nl Wed Apr 6 05:15:13 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Wed, 06 Apr 2005 14:15:13 +0200 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <4253D1C4.3080507@lachy.id.au> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> <4252B643.6030308@lachy.id.au> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> <4253BCCA.6090405@annevankesteren.nl> <4253C0E7.30902@lachy.id.au> <4253C1AE.7050407@olav.dk> <4253D1C4.3080507@lachy.id.au> Message-ID: <4253D2D1.2010808@annevankesteren.nl> Lachlan Hunt wrote: > Even if it is decided that HTML 5 is not formally an application of > SGML, it must at least remain fully compatible with SGML, and thus a > conformant HTML 5 document must be a conformant SGML document. XHTML > variants of HTML 5 must be a conformant XML document instead, though I > noticed that is not the case with square brackets in ID attributes in > section 3.7.2 of WF2 (are there no other character(s) than can be used > instead?). So, I guess, there's already no hope of HTML 5 conforming to > anything. That is conforming to the XML syntax. It is just not valid. -- Anne van Kesteren <http://annevankesteren.nl/> From fora at annevankesteren.nl Wed Apr 6 05:20:27 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Wed, 06 Apr 2005 14:20:27 +0200 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <4253D1CC.2000402@lachy.id.au> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> <4252B643.6030308@lachy.id.au> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> <4253BCCA.6090405@annevankesteren.nl> <851c8d310504060351c1cfe5@mail.gmail.com> <4253C0DB.2010808@annevankesteren.nl> <4253D1CC.2000402@lachy.id.au> Message-ID: <4253D40B.4010303@annevankesteren.nl> Lachlan Hunt wrote: >>> This is clearly an example of how existing browsers are >>> non-conformant, >> >> Doing otherwise would result in a lot of broken pagges > > Those pages are already broken. Authors just don't know it because > the browsers are even more broken by being forced to deal with them. You could also argue that they interoparate pretty well. And that it would be nonsense to break that. (Especially since no browser does it the other way around.) >> and probably less market share for the browser. > > I thought this was about standardisation, not some marketing gimmick > for brower vendors! O common. I just meant that nobody would win anything if a browser became conformant here. It would be a lot better to fix the specification for these instances and make HTML a more logical language. -- Anne van Kesteren <http://annevankesteren.nl/> From lachlan.hunt at lachy.id.au Wed Apr 6 05:36:26 2005 From: lachlan.hunt at lachy.id.au (Lachlan Hunt) Date: Wed, 06 Apr 2005 22:36:26 +1000 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <4253D24A.8050308@annevankesteren.nl> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> <4252B643.6030308@lachy.id.au> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> <4253CA8A.1070608@olav.dk> <4253D10C.5000700@lachy.id.au> <4253D24A.8050308@annevankesteren.nl> Message-ID: <4253D7CA.2010807@lachy.id.au> Anne van Kesteren wrote: > Lachlan Hunt wrote: > >> Olav Junker Kj?r wrote: >> >>> Lachlan Hunt wrote: >>> >>>> Validators should not be non-conformant simply because they only do >>>> their job to validate a document and nothing else. I don't see any >>>> reason why such a statement needs to be included at all. > > I don't see anything about validators. I only read about "Conformance > checkers". In the note in that section [1]: | Conformance checkers that only perform validation are non-conformant, In fact, now that I've read it again, it seems rather contradictory. Just before the note, it states: | Conformance checkers are exempt from detecting errors that require | interpretation of the author's intent (for example, while a document | is non-conformant if the content of a blockquote element is not a | quote, conformance checkers do not have to check that blockquote | elements only contain quoted material). I would argue that conformance requirements that cannot be expressed by a DTD *are* constraints that require interpretation by the author. Therefore, that section seems to be saying that validators are exempt from checking some things, but are non-conformant for not checking them anyway. -- Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox From ian at hixie.ch Wed Apr 6 05:45:07 2005 From: ian at hixie.ch (Ian Hickson) Date: Wed, 6 Apr 2005 12:45:07 +0000 (UTC) Subject: [whatwg] Re: <section> and headings and other threads In-Reply-To: <op.sos4l6jk602458@localhost> References: <Pine.LNX.4.61.0503302359150.25644@dhalsim.dreamhost.com> <424BCBBE.2040308@cam.ac.uk> <424C9E03.9030107@inkedblade.net> <Pine.LNX.4.61.0504051411220.2016@dhalsim.dreamhost.com> <op.sos4l6jk602458@localhost> Message-ID: <Pine.LNX.4.61.0504061236230.28334@dhalsim.dreamhost.com> [Redirected to whatwg at whatwg.org. According to the mail headers in the message I received, you sent it to www-style at w3.org. I can't find it in the archives of either www-style nor whatwg, though.] On Wed, 6 Apr 2005, Kornel Lesinski wrote: > > If <address> applies only to the element it's in, > some duplication may be needed: > > My articles on my page: > <body> > <article> > <address>me!</address> > </article> > <article> > <address>me!</address> > </article> > <address>me!</address> > </body> > > I think best would be <address for=IDREFS> I don't really understand. Why would you want to give the contact information for the inner articles if it is the same as for the section that contains them? The inner <article>s are part of the <body>. Contact information for the <body> applies to the whole <body>. > Is text in <header> part of an article? Sure, any element that is a descendant of an <article> is part of that <article>, even if it is also part of something else (such as a <header>). > Is the following correct use of <header>? > > <article class="breakingNews"> > <header> > <h1>Something!</h1> > <p>Introduction to the news, usually in bold</p> > </header> > <p>More info on the subject goes here</p> > </article> Seems reasonable to me. > How about inline <aside>? > For inline comments, explanations, translators notes, etc. > > <p>Put the disc in the cd drive <aside>(that cup holder thingie)</aside></p> <aside> is for what are typically rendered in printed media as floating sidebars. Short inline comments are catered for by the "title" attribute: <p>Put the disc in the <span title="that cup holder thingie">cd drive</span></p> ...or, more typically, simply by marking the comment with parentheses, as you did in your example: <p>Put the disc in the cd drive (that cup holder thingie)</p> -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From fora at annevankesteren.nl Wed Apr 6 05:48:19 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Wed, 06 Apr 2005 14:48:19 +0200 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <4253D7CA.2010807@lachy.id.au> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> <4252B643.6030308@lachy.id.au> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> <4253CA8A.1070608@olav.dk> <4253D10C.5000700@lachy.id.au> <4253D24A.8050308@annevankesteren.nl> <4253D7CA.2010807@lachy.id.au> Message-ID: <4253DA93.8030606@annevankesteren.nl> Lachlan Hunt wrote: >>>>> Validators should not be non-conformant simply because they >>>>> only do their job to validate a document and nothing else. I >>>>> don't see any reason why such a statement needs to be >>>>> included at all. >> >> I don't see anything about validators. I only read about >> "Conformance checkers". > > In the note in that section [1]: > > | Conformance checkers that only perform validation are > non-conformant, So? That doesn't make it a validator. A conformance checker might do things validators do too, but that doesn't make it one. > In fact, now that I've read it again, it seems rather contradictory. How? > I would argue that conformance requirements that cannot be expressed > by a DTD *are* constraints that require interpretation by the author. Not really. Think about: <http://annevankesteren.nl/archives/2003/09/invalid-after-validated> > Therefore, that section seems to be saying that validators are exempt > from checking some things, but are non-conformant for not checking > them anyway. Note that this is about more than just validating and isn't about validators. -- Anne van Kesteren <http://annevankesteren.nl/> From kornel at ldreams.net Wed Apr 6 06:24:22 2005 From: kornel at ldreams.net (Kornel Lesinski) Date: Wed, 06 Apr 2005 14:24:22 +0100 Subject: [whatwg] Re: <section> and headings and other threads In-Reply-To: <Pine.LNX.4.61.0504061236230.28334@dhalsim.dreamhost.com> References: <Pine.LNX.4.61.0503302359150.25644@dhalsim.dreamhost.com> <424BCBBE.2040308@cam.ac.uk> <424C9E03.9030107@inkedblade.net> <Pine.LNX.4.61.0504051411220.2016@dhalsim.dreamhost.com> <op.sos4l6jk602458@localhost> <Pine.LNX.4.61.0504061236230.28334@dhalsim.dreamhost.com> Message-ID: <op.sotbiwty602458@idlaptop02.ideadesigners.local> On Wed, 06 Apr 2005 13:45:07 +0100, Ian Hickson <ian at hixie.ch> wrote: > [Redirected to whatwg at whatwg.org. According to the mail headers in the > message I received, you sent it to www-style at w3.org. I can't find it in > the archives of either www-style nor whatwg, though.] Oops :) >> If <address> applies only to the element it's in, >> some duplication may be needed: >> >> My articles on my page: >> <body> >> <article> >> <address>me!</address> >> </article> >> <article> >> <address>me!</address> >> </article> >> <address>me!</address> >> </body> >> >> I think best would be <address for=IDREFS> > > I don't really understand. Why would you want to give the contact > information for the inner articles if it is the same as for the section > that contains them? The inner <article>s are part of the <body>. Contact > information for the <body> applies to the whole <body>. "The article element represents a section of a page that consists of a composition that forms an independent part of a document" I assumed that because of this independence it needs its own <address> element. >> How about inline <aside>? >> For inline comments, explanations, translators notes, etc. >> >> <p>Put the disc in the cd drive <aside>(that cup holder >> thingie)</aside></p> > > <aside> is for what are typically rendered in printed media as floating > sidebars. Short inline comments are catered for by the "title" attribute: > > <p>Put the disc in the <span title="that cup holder thingie">cd > drive</span></p> Title attribute is not immediately visible on page and requires reader to pause and wait for it to appear. > ...or, more typically, simply by marking the comment with parentheses, as > you did in your example: > > <p>Put the disc in the cd drive (that cup holder thingie)</p> I think good use of aside element is possiblity to 'clean up' articles from comments: article aside {display: none;} This also may be useful for search engines - they could omit <aside> in quoted page fragments. That element could play role as opposite of <em> and <strong>. -- regards, Kornel Lesinski From lachlan.hunt at lachy.id.au Wed Apr 6 06:32:47 2005 From: lachlan.hunt at lachy.id.au (Lachlan Hunt) Date: Wed, 06 Apr 2005 23:32:47 +1000 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <4253DA93.8030606@annevankesteren.nl> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> <4252B643.6030308@lachy.id.au> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> <4253CA8A.1070608@olav.dk> <4253D10C.5000700@lachy.id.au> <4253D24A.8050308@annevankesteren.nl> <4253D7CA.2010807@lachy.id.au> <4253DA93.8030606@annevankesteren.nl> Message-ID: <4253E4FF.2090306@lachy.id.au> Anne van Kesteren wrote: > Lachlan Hunt wrote: >> | Conformance checkers that only perform validation are non-conformant, > > So? That doesn't make it a validator. What is a validator, if it is not a form of "conformance checker that only peforms validation" then? Or, the other way around, what is a "conformance checker that only performs validation" if it is not a validator? > A conformance checker might do things validators do too, but that > doesn't make it one. I belive such conformance checkers are often called lints and they are usually not true validators, despite what many claim, so you are correct in that a conformance checker may not be a validator. But, from what I understand of the wording in the spec, a validator is a form of conformance checker. Basically, metaphorically speaking, it's like a square is a rectangle, but a rectangle is not always a square. >> In fact, now that I've read it again, it seems rather contradictory. > > How? Did I not explain it well enough before? See below. >> I would argue that conformance requirements that cannot be expressed >> by a DTD *are* constraints that require interpretation by the author. > > Not really. Yes, really. > Think about: > <http://annevankesteren.nl/archives/2003/09/invalid-after-validated> Exactly, the conformance constraints violated in those examples cannot be expressed in an XML DTD (some can, and are, by the HTML4 DTD though), and require interpretation by the author. This merely illustrates the difference between "valid" and "conformant". >> Therefore, that section seems to be saying that validators are exempt >> from checking some things, but are non-conformant for not checking >> them anyway. That is how the spec is contradictory, except s/validators/conformance checkers/ and with "some things" meaning "errors that require interpretation of the author's intent" Because, if I am understanding correctly and a validator is a form of conformance checker, a validator cannot check constraints that are not expressed in the DTD and require them to be interpreted by the author. Therefore, validators are exempt from checking such constraints, but are non-conformant for not checking them anyway, as stated in the note. (well done if you are not totally confused by that, I tried to make it as clear as possible :-)) > Note that this is about more than just validating and isn't about > validators. Yes, but "Conformance checkers that only perform validation" are, unless I am mistaken, validators. Hixie, can you please clarify what that means, if I am mistaken? -- Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox From ian at hixie.ch Wed Apr 6 07:33:14 2005 From: ian at hixie.ch (Ian Hickson) Date: Wed, 6 Apr 2005 14:33:14 +0000 (UTC) Subject: [whatwg] Re: <section> and headings and other threads In-Reply-To: <op.sotbiwty602458@idlaptop02.ideadesigners.local> References: <Pine.LNX.4.61.0503302359150.25644@dhalsim.dreamhost.com> <424BCBBE.2040308@cam.ac.uk> <424C9E03.9030107@inkedblade.net> <Pine.LNX.4.61.0504051411220.2016@dhalsim.dreamhost.com> <op.sos4l6jk602458@localhost> <Pine.LNX.4.61.0504061236230.28334@dhalsim.dreamhost.com> <op.sotbiwty602458@idlaptop02.ideadesigners.local> Message-ID: <Pine.LNX.4.61.0504061423510.28334@dhalsim.dreamhost.com> On Wed, 6 Apr 2005, Kornel Lesinski wrote: > > > > I don't really understand. Why would you want to give the contact > > information for the inner articles if it is the same as for the > > section that contains them? The inner <article>s are part of the > > <body>. Contact information for the <body> applies to the whole > > <body>. > > "The article element represents a section of a page that consists of a > composition that forms an independent part of a document" > > I assumed that because of this independence it needs its own <address> > element. Ah, hmm. Ok, added: Note: An article element is "independent" in that its contents could stand alone, for example in syndication. However, the element is still associated with its ancestors; for instance, contact information that applies to a parent body element still covers the article as well. > > <aside> is for what are typically rendered in printed media as > > floating sidebars. Short inline comments are catered for by the > > "title" attribute: > > > > <p>Put the disc in the <span title="that cup holder thingie">cd > > drive</span></p> > > Title attribute is not immediately visible on page and requires reader > to pause and wait for it to appear. Where does the spec say that? There is nothing in the spec that requires that "title" attributes be rendered as tooltips. It is entirely up to the UA and the author's styling hints what it looks like. For instance with CSS an author could do: [title]:after { content: '(' attr(title) ')'; } > > ...or, more typically, simply by marking the comment with parentheses, > > as you did in your example: > > > > <p>Put the disc in the cd drive (that cup holder thingie)</p> > > I think good use of aside element is possiblity to 'clean up' articles > from comments: > > article aside {display: none;} > > This also may be useful for search engines - they could omit <aside> in > quoted page fragments. > > That element could play role as opposite of <em> and <strong>. I imagine we'll be using <small> for this purpose in due course. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From olav at olav.dk Wed Apr 6 07:41:27 2005 From: olav at olav.dk (=?UTF-8?B?T2xhdiBKdW5rZXIgS2rDpnI=?=) Date: Wed, 06 Apr 2005 16:41:27 +0200 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <4253E4FF.2090306@lachy.id.au> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> <4252B643.6030308@lachy.id.au> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> <4253CA8A.1070608@olav.dk> <4253D10C.5000700@lachy.id.au> <4253D24A.8050308@annevankesteren.nl> <4253D7CA.2010807@lachy.id.au> <4253DA93.8030606@annevankesteren.nl> <4253E4FF.2090306@lachy.id.au> Message-ID: <4253F517.3040409@olav.dk> Lachlan Hunt wrote: > Because, if I am understanding correctly and a validator is a form of > conformance checker, a validator cannot check constraints that are not > expressed in the DTD and require them to be interpreted by the author. > Therefore, validators are exempt from checking such constraints, but are > non-conformant for not checking them anyway, as stated in the note. > (well done if you are not totally confused by that, I tried to make it > as clear as possible :-)) I dont think that is correct. There are three types of conformance criteria: (1) Criteria that can be expressed in a DTD (2) Criteria that cannot be expressed by a DTD, but can still be checked by a machine. (3) Criteria that can only be checked by a human. A conformance checker must check (1) and (2). A simple validator which only checks (1) is therefore not conformant. regards From jim.ley at gmail.com Wed Apr 6 08:20:40 2005 From: jim.ley at gmail.com (Jim Ley) Date: Wed, 6 Apr 2005 16:20:40 +0100 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <4253F517.3040409@olav.dk> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> <4253CA8A.1070608@olav.dk> <4253D10C.5000700@lachy.id.au> <4253D24A.8050308@annevankesteren.nl> <4253D7CA.2010807@lachy.id.au> <4253DA93.8030606@annevankesteren.nl> <4253E4FF.2090306@lachy.id.au> <4253F517.3040409@olav.dk> Message-ID: <851c8d3105040608202cdc0819@mail.gmail.com> On Apr 6, 2005 3:41 PM, Olav Junker Kj?r <olav at olav.dk> wrote: > Lachlan Hunt wrote: > There are three types of conformance criteria: > (1) Criteria that can be expressed in a DTD > (2) Criteria that cannot be expressed by a DTD, but can still be checked > by a machine. > (3) Criteria that can only be checked by a human. > > A conformance checker must check (1) and (2). A simple validator which > only checks (1) is therefore not conformant. One of the motivations of the WHAT-WG stuff, is that existing users don't have to change their existing tools, processes and understanding, now all of sudden we're removing one of the most valuable QA tools available today, based on some spurious notion that all these existing users don't understand the QA tools limitations. Firstly I think the conclusions that the audience for WHAT-WG stuff doesn't understand the limitations of the validator is sustainable - where's the evidence? And secondly, there won't be any QA tools at all if the validator isn't one of them, so we'll be getting even more crap published, and far from cleaning up the correctness, we'll just have a whole new load of crud to rubber stamp as valid in WF2, now I realise it's to the advantage of existing browser manufacturers to rubber stamp complicated heuristic behaviour they've already solved into a spec (it prevents new entrants from coming along) but how is it to the advantage to the rest of us - understanding specifications becomes harder and harder and relies on the fact that we knew what happened before... I simply cannot see the point in removing one of the few QA tools that actually exists for HTML, and would like to hear the actual argument for doing so. (as this is a seperate issue to if application of SGML is something that it would be) Jim. From lachlan.hunt at lachy.id.au Wed Apr 6 08:35:12 2005 From: lachlan.hunt at lachy.id.au (Lachlan Hunt) Date: Thu, 07 Apr 2005 01:35:12 +1000 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <4253F517.3040409@olav.dk> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> <4252B643.6030308@lachy.id.au> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> <4253CA8A.1070608@olav.dk> <4253D10C.5000700@lachy.id.au> <4253D24A.8050308@annevankesteren.nl> <4253D7CA.2010807@lachy.id.au> <4253DA93.8030606@annevankesteren.nl> <4253E4FF.2090306@lachy.id.au> <4253F517.3040409@olav.dk> Message-ID: <425401B0.3040205@lachy.id.au> Olav Junker Kj?r wrote: > There are three types of conformance criteria: > (1) Criteria that can be expressed in a DTD > (2) Criteria that cannot be expressed by a DTD, but can still be checked > by a machine. Such as...? > (3) Criteria that can only be checked by a human. > > A conformance checker must check (1) and (2). A simple validator which > only checks (1) is therefore not conformant. Which is exactly what I'm complaining about. A user agent *must not* be automatically non-conformant for doing it's job correctly!!! -- Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox From fora at annevankesteren.nl Wed Apr 6 08:37:53 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Wed, 06 Apr 2005 17:37:53 +0200 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <425401B0.3040205@lachy.id.au> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> <4252B643.6030308@lachy.id.au> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> <4253CA8A.1070608@olav.dk> <4253D10C.5000700@lachy.id.au> <4253D24A.8050308@annevankesteren.nl> <4253D7CA.2010807@lachy.id.au> <4253DA93.8030606@annevankesteren.nl> <4253E4FF.2090306@lachy.id.au> <4253F517.3040409@olav.dk> <425401B0.3040205@lachy.id.au> Message-ID: <42540251.4080405@annevankesteren.nl> Lachlan Hunt wrote: >> (2) Criteria that cannot be expressed by a DTD, but can still be >> checked by a machine. > > Such as...? <a><em><a/></em></a> (Can also be expressed using RelaxNG or XML Schema.) You did read my entry, didn't you? -- Anne van Kesteren <http://annevankesteren.nl/> From olav at olav.dk Wed Apr 6 11:53:30 2005 From: olav at olav.dk (=?UTF-8?B?T2xhdiBKdW5rZXIgS2rDpnI=?=) Date: Wed, 06 Apr 2005 20:53:30 +0200 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <425401B0.3040205@lachy.id.au> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> <4252B643.6030308@lachy.id.au> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> <4253CA8A.1070608@olav.dk> <4253D10C.5000700@lachy.id.au> <4253D24A.8050308@annevankesteren.nl> <4253D7CA.2010807@lachy.id.au> <4253DA93.8030606@annevankesteren.nl> <4253E4FF.2090306@lachy.id.au> <4253F517.3040409@olav.dk> <425401B0.3040205@lachy.id.au> Message-ID: <4254302A.7040806@olav.dk> Lachlan Hunt wrote: >> (2) Criteria that cannot be expressed by a DTD, but can still be >> checked by a machine. > > Such as...? Some examples: The syntax of the numeric and date/time-values or the pattern attribute. The constraint that values of the min and max attributes must be valid according to the type of the control. The constraint that the for-attribute of a label must point to the id of an existing element. It's much more important for the functionality of a WF2 page that the values are valid according to type of the control, than that the page is valid according to the DTD. > A user agent *must not* be automatically non-conformant for doing it's > job correctly!!! A user agent which only supports some small parts of the spec should not claim to be compliant with the spec. regards Olav Junker Kj?r From hsivonen at iki.fi Wed Apr 6 13:53:53 2005 From: hsivonen at iki.fi (Henri Sivonen) Date: Wed, 6 Apr 2005 23:53:53 +0300 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <851c8d31050406034866ff215c@mail.gmail.com> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> <4252B643.6030308@lachy.id.au> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> <851c8d31050406034866ff215c@mail.gmail.com> Message-ID: <7b69ebc7357b4ca00fcca34d51135519@iki.fi> On Apr 6, 2005, at 13:48, Jim Ley wrote: > (or explicitly marked as this is not an SGML or XML doctype it is > simply > some cargo cult you should include as your first line) +1 -- Henri Sivonen hsivonen at iki.fi http://hsivonen.iki.fi/ From hsivonen at iki.fi Wed Apr 6 13:55:05 2005 From: hsivonen at iki.fi (Henri Sivonen) Date: Wed, 6 Apr 2005 23:55:05 +0300 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <4253B881.3090206@lachy.id.au> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> <4252B643.6030308@lachy.id.au> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> Message-ID: <78f32994657502e0c7098780f8e6476b@iki.fi> On Apr 6, 2005, at 13:22, Lachlan Hunt wrote: > If OpenSP was non-conformant, then any current or future UA that is > built with OpenSP as the parser would be non-conformant also, which > should not be the case. What OpenSP-based UAs are there besides validators? -- Henri Sivonen hsivonen at iki.fi http://hsivonen.iki.fi/ From hsivonen at iki.fi Wed Apr 6 14:05:42 2005 From: hsivonen at iki.fi (Henri Sivonen) Date: Thu, 7 Apr 2005 00:05:42 +0300 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <4253D1C4.3080507@lachy.id.au> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> <4252B643.6030308@lachy.id.au> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> <4253BCCA.6090405@annevankesteren.nl> <4253C0E7.30902@lachy.id.au> <4253C1AE.7050407@olav.dk> <4253D1C4.3080507@lachy.id.au> Message-ID: <804fb1fad3de4e31de31e1991dc3aaf4@iki.fi> On Apr 6, 2005, at 15:10, Lachlan Hunt wrote: > Olav Junker Kj?r wrote: >> What is the benefit of having HTML defined as an application of SGML ? > > So that it may be processed with SGML tools, Can we focus on real use cases, please? Who would anyone want to use SGML tools (except perhaps for feel-good validation pending proper conformance checkers) now that tag soup tools and XML tools exist? > and possibly even generated using XSLT. An XSLT transformer is an XML tool--not an SGML tool. You can generate HTML 4 or What WG HTML using XSLT by writing your transformation to produce XHTML, taking SAX output from the transformer and using an HTML serializer at the end of the SAX pipeline. > Even if it is decided that HTML 5 is not formally an application of > SGML, it must at least remain fully compatible with SGML, and thus a > conformant HTML 5 document must be a conformant SGML document. At least I am still unconvinced about your "must". > XHTML variants of HTML 5 must be a conformant XML document instead, > though I noticed that is not the case with square brackets in ID > attributes in section 3.7.2 of WF2 That's not a problem if you don't claim they are ID attributes but attributes that happen to be named id. -- Henri Sivonen hsivonen at iki.fi http://hsivonen.iki.fi/ From jim.ley at gmail.com Wed Apr 6 14:50:18 2005 From: jim.ley at gmail.com (Jim Ley) Date: Wed, 6 Apr 2005 22:50:18 +0100 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <804fb1fad3de4e31de31e1991dc3aaf4@iki.fi> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> <4253BCCA.6090405@annevankesteren.nl> <4253C0E7.30902@lachy.id.au> <4253C1AE.7050407@olav.dk> <4253D1C4.3080507@lachy.id.au> <804fb1fad3de4e31de31e1991dc3aaf4@iki.fi> Message-ID: <851c8d31050406145017ec4373@mail.gmail.com> On Apr 6, 2005 10:05 PM, Henri Sivonen <hsivonen at iki.fi> wrote: > On Apr 6, 2005, at 15:10, Lachlan Hunt wrote: > > XHTML variants of HTML 5 must be a conformant XML document instead, > > though I noticed that is not the case with square brackets in ID > > attributes in section 3.7.2 of WF2 > > That's not a problem if you don't claim they are ID attributes but > attributes that happen to be named id. Which would mean we also have to start redfining DOM, so document.getElementById(...) is defined to work against things that happen to be named id and not just things that are ID's. Is it really worth going down this road? Jim. From lachlan.hunt at lachy.id.au Wed Apr 6 16:25:02 2005 From: lachlan.hunt at lachy.id.au (Lachlan Hunt) Date: Thu, 07 Apr 2005 09:25:02 +1000 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <42540251.4080405@annevankesteren.nl> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> <4252B643.6030308@lachy.id.au> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> <4253CA8A.1070608@olav.dk> <4253D10C.5000700@lachy.id.au> <4253D24A.8050308@annevankesteren.nl> <4253D7CA.2010807@lachy.id.au> <4253DA93.8030606@annevankesteren.nl> <4253E4FF.2090306@lachy.id.au> <4253F517.3040409@olav.dk> <425401B0.3040205@lachy.id.au> <42540251.4080405@annevankesteren.nl> Message-ID: <42546FCE.5070900@lachy.id.au> Anne van Kesteren wrote: > Lachlan Hunt wrote: > >>> (2) Criteria that cannot be expressed by a DTD, but can still be >>> checked by a machine. >> >> Such as...? > > <a><em><a/></em></a> That can be, and is expressed in the HTML4 DTD with: <!ELEMENT A - - (%inline;)* -(A) -- anchor --> Though, I don't beleive it can be expressed with an XML DTD. > (Can also be expressed using RelaxNG or XML Schema.) Of course, schema's are also included within my use of DTD above when talking about XML versions (though I was originally only referring to SGML), so the above would be something that can be checked by a machine. -- Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox From ian at hixie.ch Wed Apr 6 17:01:13 2005 From: ian at hixie.ch (Ian Hickson) Date: Thu, 7 Apr 2005 00:01:13 +0000 (UTC) Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <42546FCE.5070900@lachy.id.au> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> <4252B643.6030308@lachy.id.au> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> <4253CA8A.1070608@olav.dk> <4253D10C.5000700@lachy.id.au> <4253D24A.8050308@annevankesteren.nl> <4253D7CA.2010807@lachy.id.au> <4253DA93.8030606@annevankesteren.nl> <4253E4FF.2090306@lachy.id.au> <4253F517.3040409@olav.dk> <425401B0.3040205@lachy.id.au> <42540251.4080405@annevankesteren.nl> <42546FCE.5070900@lachy.id.au> Message-ID: <Pine.LNX.4.61.0504062335130.20461@dhalsim.dreamhost.com> I'll be replying to the other parts of this thread in due course, but just to jump in here: On Thu, 7 Apr 2005, Lachlan Hunt wrote: > Olav Junker Kj?r wrote: > > > > Criteria that cannot be expressed by a DTD, but can still be checked > > by a machine. > > Such as...? [...] > > Of course, schema's are also included within my use of DTD above when > talking about XML versions (though I was originally only referring to > SGML), so the above would be something that can be checked by a machine. Here is something that could easily be checked by a machine but could not be checked by any of the above, to my knowledge: "The <foo> element must have three attributes, a, b, and c. The attributes must have integer values. The total of the values given by a+b must equal c plus the number of <foo> elements in the document." Ok, it's a contrived case. Here's a less contrived one: <input> elements with a "type" attribute set to "radio" are part of radio button groups that consist of all those <input type="radio"> elements that are associated with a particular form (either via the form="" attribute or by being descendants of a <form>) and that have the same value for their "name" attribute. Only one such <input> element per radio button group may have the "checked" attribute set. The point is that while DTDs, schemas, and so forth, might be getting more expressive, at the end of the day they still can't express everything that the language might require. A conformance checker that doesn't check for all the machine-checkable things is not compliant, just like a browser that doesn't support everything in the spec is not compliant. Existing DTD and schema languages can't express enough to be conformant conformance chckers on their own. That doesn't mean they can't be used as one part of a complete conformance checking solution, of course. But it does mean that as it stands now, validator.w3.org (or a version suitably altered to support HTML5 elements) could not be called a conformance checker for HTML5. This is not a bad thing. One hopes that HTML5's more detailed conformance requirements will encourage the development of truly useful conformance checkers that don't mislead people into thinking they have written correct documents when in fact they have just fixed the small subset of errors that the limited validator catches. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From ian at hixie.ch Wed Apr 6 18:07:07 2005 From: ian at hixie.ch (Ian Hickson) Date: Thu, 7 Apr 2005 01:07:07 +0000 (UTC) Subject: [whatwg] <p> elements containing other block-level elements Message-ID: <Pine.LNX.4.61.0504051557200.2016@dhalsim.dreamhost.com> One thing that XHTML2 does which makes a lot of sense to me is allow nesting of certain elements within <p> elements, as in: <p> For this recipe you need <ul> <li>an egg,</li> <li>flour, and</li> <li>butter.</li> </ul> Mix it all together and so forth. </p> Other elements that I could see being nested inside a paragraph are: * <ol> * <ul> * <dl> * <menu> * <table> * <pre> Now, one question is how exactly should this work with respect to nesting. I think the following should be allowed: <p> ... <table> <tr> <td> <p>...</p> </td> </tr> </table> </p> <p> ... <ol> <li>...</li> </ol> </p> <ol> <li> <p> ... <ol> <li> ... <pre> <p>...</p> <p>...</p> </pre> <p> ... <pre>...</pre> </p> I think the following should not: <p> ... <p>...</p> </p> <p> ... <ol> <li> ... <p>...</p> </li> </ol> </p> <pre> ... <pre>...</pre> </pre> <p> ... <table> <tr> <td> <section> ... <p> ... <ol> <li> <h4> ... I'm trying to work out exactly what the rules that describe the above actually are, but I'm interested in hearing whether people agree or disagree with my "good" and "bad" examples above. I'm especially interested in what use cases I may have missed (please don't say "I think this should be allowed" without giving a real-world example), and whether anyone thinks any of the cases I think should be allowed should not. Note that all of this would only be relevant to XHTML content (i.e. in an XML context), since in text/html HTML we are pretty much stuck with the existing parsing models which do things like close <p> elements upon hitting another block-level element. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From lachlan.hunt at lachy.id.au Wed Apr 6 18:36:55 2005 From: lachlan.hunt at lachy.id.au (Lachlan Hunt) Date: Thu, 07 Apr 2005 11:36:55 +1000 Subject: [whatwg] <p> elements containing other block-level elements In-Reply-To: <Pine.LNX.4.61.0504051557200.2016@dhalsim.dreamhost.com> References: <Pine.LNX.4.61.0504051557200.2016@dhalsim.dreamhost.com> Message-ID: <42548EB7.8080209@lachy.id.au> Ian Hickson wrote: > One thing that XHTML2 does which makes a lot of sense to me is allow > nesting of certain elements within <p> elements, as in: > ... > I think the following should be allowed: > > <p> > ... > <table> > <tr> > <td> > <p>...</p> > </td> > </tr> > </table> > </p> As you said below... ?I'm especially interested in what use cases I may have missed (please don't say "I think this should be allowed" without giving a real-world example), and whether anyone thinks any of the cases I think should be allowed should not.? however, you did not provide a use case. What is the use case for this? I can't think of any reason to allow tables to be nested inside <p>? > I'm trying to work out exactly what the rules that describe the above > actually are, but I'm interested in hearing whether people agree or > disagree with my "good" and "bad" examples above. I'm especially > interested in what use cases I may have missed (please don't say "I think > this should be allowed" without giving a real-world example), and whether > anyone thinks any of the cases I think should be allowed should not. You missed <p><blockquote/></p>. Do I really have to give a real world example for this? Well, ok... <p>As you said below: <blockquote>I'm especially interested in what use cases I may have missed (please don't say "I think this should be allowed" without giving a real-world example), and whether anyone thinks any of the cases I think should be allowed should not." </blockquote> however, you did not provide a use case. What is the use case for this? I can't think of any reason to allow tables to be nested inside &lt;p&gt;?</p> :-) <blockcode> should probably be allowed too, though it doesn't seem to be included in web apps. Oh well, that's probably a discussion for another thread anyway, if it hasn't already been discussed (I'll search the archives later). > Note that all of this would only be relevant to XHTML content (i.e. in an > XML context), since in text/html HTML we are pretty much stuck with the > existing parsing models which do things like close <p> elements upon > hitting another block-level element. It's a shame no browser actually reads the DTD, this wouldn't be a problem if they did :-(. This is one reason why HTML should be a true SGML application, and why browsers should have been built to conform. -- Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox From lachlan.hunt at lachy.id.au Wed Apr 6 23:09:23 2005 From: lachlan.hunt at lachy.id.au (Lachlan Hunt) Date: Thu, 07 Apr 2005 16:09:23 +1000 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <Pine.LNX.4.61.0504062335130.20461@dhalsim.dreamhost.com> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> <4252B643.6030308@lachy.id.au> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> <4253CA8A.1070608@olav.dk> <4253D10C.5000700@lachy.id.au> <4253D24A.8050308@annevankesteren.nl> <4253D7CA.2010807@lachy.id.au> <4253DA93.8030606@annevankesteren.nl> <4253E4FF.2090306@lachy.id.au> <4253F517.3040409@olav.dk> <425401B0.3040205@lachy.id.au> <42540251.4080405@annevankesteren.nl> <42546FCE.5070900@lachy.id.au> <Pine.LNX.4.61.0504062335130.20461@dhalsim.dreamhost.com> Message-ID: <4254CE93.4000403@lachy.id.au> Ian Hickson wrote: > Ok, it's a contrived case. Here's a less contrived one: <input> elements > with a "type" attribute set to "radio" are part of radio button groups > that consist of all those <input type="radio"> elements that are > associated with a particular form (either via the form="" attribute or by > being descendants of a <form>) and that have the same value for their > "name" attribute. Only one such <input> element per radio button group may > have the "checked" attribute set. Yes, that probably could be checked by a program. So, just for the fun of it (and to /prove my earlier comments wrong/), I quickly wrote a script that actually does (partially) check that. It's not perfect, it's quick and dirty and doesn't work in IE, but it's a good proof of concept and anyone actually writing a conformance checker can steal it if they like. :-D function checkRadio() { var radio, i; var radioButtons = getRadioButtons(); for (radio in radioButtons) { var checked = 0, buttons = radioButtons[radio]; for (i = 0; i < buttons.length; i++) { if (buttons[i].hasAttribute("checked")) { checked++; } } if (checked > 1) { alert("Warning: " + checked + " input elements in the radio " + "button group: \"" + radio + "\" have a checked attribute. " + "Only 1 is allowed per radio button group"); } } } function getRadioButtons(inputs) { inputs = inputs || document.getElementsByTagName("input"); var radio = new Array(); for (i = 0; i < inputs.length; i++) { if (inputs.item(i).getAttribute("type").toLowerCase() == "radio" && inputs.item(i).hasAttribute("name") && (name = inputs.item(i).getAttribute("name")) != "") { /* Checks for radio buttons with a valid name, non-empty name */ if (!radio[name]) radio[name] = new Array(); radio[name].push(inputs.item(i)); } } return radio; } window.onload = checkRadio; > A conformance checker that doesn't check for all the machine-checkable > things is not compliant, just like a browser that doesn't support > everything in the spec is not compliant. Fair enough, but is the spec going to specify exactly which conformance criteria fits into which of the 3 categories you've now added, or is expected that implementors will be able to make an educated guess to decide for themselves? > Existing DTD and schema languages > can't express enough to be conformant conformance chckers on their own. > That doesn't mean they can't be used as one part of a complete conformance > checking solution, of course. But it does mean that as it stands now, > validator.w3.org [...] could not be called a conformance checker for HTML5. I guess so, since validators don't claim document conformance anyway, only validity. > (or a version suitably altered to support HTML5 elements) It doesn't need to be altered, it only needs to be pointed to an HTML 5 DTD, with the system identifier (the URI) in the DOCTYPE. > This is not a bad thing. One hopes that HTML5's more detailed conformance > requirements will encourage the development of truly useful conformance > checkers that don't mislead people into thinking they have written correct > documents when in fact they have just fixed the small subset of errors > that the limited validator catches. I hope so, cause existing conformance checkers (often called "lints" [1]) for HTML aren't really useful cause they're often only subjective and issue bogus errors or don't catch all errors. [1] http://arealvalidator.com/real-validation.html -- Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox From hsivonen at iki.fi Wed Apr 6 23:22:25 2005 From: hsivonen at iki.fi (Henri Sivonen) Date: Thu, 7 Apr 2005 09:22:25 +0300 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <851c8d31050406145017ec4373@mail.gmail.com> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> <4253BCCA.6090405@annevankesteren.nl> <4253C0E7.30902@lachy.id.au> <4253C1AE.7050407@olav.dk> <4253D1C4.3080507@lachy.id.au> <804fb1fad3de4e31de31e1991dc3aaf4@iki.fi> <851c8d31050406145017ec4373@mail.gmail.com> Message-ID: <9482a0e1fe7bf39b23ffa528cb600825@iki.fi> On Apr 7, 2005, at 00:50, Jim Ley wrote: > Which would mean we also have to start redfining DOM, so > document.getElementById(...) is defined to work against things that > happen to be named id and not just things that are ID's. > > Is it really worth going down this road? If you mean: Is it worth going down the road of requiring getElementById to support arbitrary characters in ids? Perhaps not. Depends on what is implemented. If you mean: Is it worth going down the road of requiring getElementById to consider idness based on factors other that the ID type in a DTD? Definitely yes. Browsers don't process DTDs and the W3C already allows the DOM impl to use info other than the DTD to figure out which attributes count as ids. -- Henri Sivonen hsivonen at iki.fi http://hsivonen.iki.fi/ From lachlan.hunt at lachy.id.au Wed Apr 6 23:58:59 2005 From: lachlan.hunt at lachy.id.au (Lachlan Hunt) Date: Thu, 07 Apr 2005 16:58:59 +1000 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <78f32994657502e0c7098780f8e6476b@iki.fi> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> <4252B643.6030308@lachy.id.au> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> <78f32994657502e0c7098780f8e6476b@iki.fi> Message-ID: <4254DA33.3020409@lachy.id.au> Henri Sivonen wrote: > On Apr 6, 2005, at 13:22, Lachlan Hunt wrote: > >> If OpenSP was non-conformant, then any current or future UA that is >> built with OpenSP as the parser would be non-conformant also, which >> should not be the case. > > What OpenSP-based UAs are there besides validators? None that I know of yet, which is why I said current *or future* UAs. There's no reason why a full conformance checker couldn't be based on OpenSP. Infact, it would probably be a good idea for them to do so, since then they'll also be real validators too, which is part of the conformance requirements. -- Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox From fora at annevankesteren.nl Thu Apr 7 00:13:11 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Thu, 07 Apr 2005 09:13:11 +0200 Subject: [whatwg] <p> elements containing other block-level elements In-Reply-To: <Pine.LNX.4.61.0504051557200.2016@dhalsim.dreamhost.com> References: <Pine.LNX.4.61.0504051557200.2016@dhalsim.dreamhost.com> Message-ID: <4254DD87.7010604@annevankesteren.nl> Ian Hickson wrote: > One thing that XHTML2 does which makes a lot of sense to me is allow > nesting of certain elements within <p> elements, as in: > > <p> > For this recipe you need > <ul> > <li>an egg,</li> > <li>flour, and</li> > <li>butter.</li> > </ul> > Mix it all together and so forth. > </p> The problem is that you mix inline with block-level. Unless UL is redefined to be inline level within P I don't think this is a good idea. I like the idea of having either inline or block-level content. > Other elements that I could see being nested inside a paragraph are: > > * <ol> > * <ul> > * <dl> > * <menu> > * <table> I can agree with these, although I wonder about MENU. > * <pre> We have CODE and other nice inline elements for this. > I think the following should be allowed: > > <p> > ... > <table> > <tr> > <td> > <p>...</p> > </td> > </tr> > </table> > </p> That is indirectly nesting P elements, a bit ugly IMHO. It also doesn't make sense. > <p> > ... > <ol> > <li>...</li> > </ol> > </p> If OL is an inline element here, sure. > <ol> > <li> > <p> > ... > <ol> > <li> > ... Why would you want a P element there? > <pre> > <p>...</p> > <p>...</p> > </pre> Ouch! Forbid this. > <p> > ... > <pre>...</pre> > </p> Use case? > I think the following should not: Agreed with all examples. -- Anne van Kesteren <http://annevankesteren.nl/> From olav at olav.dk Thu Apr 7 02:24:55 2005 From: olav at olav.dk (=?ISO-8859-1?Q?Olav_Junker_Kj=E6r?=) Date: Thu, 07 Apr 2005 11:24:55 +0200 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <851c8d3105040608202cdc0819@mail.gmail.com> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> <4253CA8A.1070608@olav.dk> <4253D10C.5000700@lachy.id.au> <4253D24A.8050308@annevankesteren.nl> <4253D7CA.2010807@lachy.id.au> <4253DA93.8030606@annevankesteren.nl> <4253E4FF.2090306@lachy.id.au> <4253F517.3040409@olav.dk> <851c8d3105040608202cdc0819@mail.gmail.com> Message-ID: <4254FC67.9060606@olav.dk> Jim Ley wrote: > Firstly I think the conclusions that the audience for WHAT-WG stuff > doesn't understand the limitations of the validator is sustainable - > where's the evidence? People putting small icons on their pages to indicate that the page is valid. Also, lots of articles on the web about jumping through hoops to e.g. make a flash embed validate. > And secondly, there won't be any QA tools at all if the validator > isn't one of them, so we'll be getting even more crap published, and > far from cleaning up the correctness, we'll just have a whole new load > of crud to rubber stamp as valid in WF2, A conformance checker is a rubber stamp. Therefore its quite important that a conformance checker actually checks conformance to the spec, otherwise it is snake oil. As HTML applications becomes more complex it becomes more important that the markup and code is correct, but DTD-validation becomes even less sufficient to catch errors. A basic validity error like forgetting to close an <b>-tag will not cause the page to stop working. However, a syntax error in the initial value of a date control *will* cause the page to stop working as intended. > now I realise it's to the > advantage of existing browser manufacturers to rubber stamp > complicated heuristic behaviour they've already solved into a spec (it > prevents new entrants from coming along) but how is it to the > advantage to the rest of us - understanding specifications becomes > harder and harder and relies on the fact that we knew what happened > before... If you are referring to the paragraph about parse errors in <http://whatwg.org/specs/web-forms/current-work/#handling> I tend to agree with you. However, I dont think the requirement that conformance checkers should check conformance makes this worse. The reason comparatively few authors validate their pages, is that the immediate practical benefit is quite small. A conformance checker would be much more valuable since it might catch real errors which might cause the page to stop working. Presumably, this added benefit will cause more authors to check their pages. regards Olav Junker Kj?r From jim.ley at gmail.com Thu Apr 7 02:59:15 2005 From: jim.ley at gmail.com (Jim Ley) Date: Thu, 7 Apr 2005 10:59:15 +0100 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <4254FC67.9060606@olav.dk> References: <42524E27.6060006@annevankesteren.nl> <4253CA8A.1070608@olav.dk> <4253D10C.5000700@lachy.id.au> <4253D24A.8050308@annevankesteren.nl> <4253D7CA.2010807@lachy.id.au> <4253DA93.8030606@annevankesteren.nl> <4253E4FF.2090306@lachy.id.au> <4253F517.3040409@olav.dk> <851c8d3105040608202cdc0819@mail.gmail.com> <4254FC67.9060606@olav.dk> Message-ID: <851c8d310504070259217d5477@mail.gmail.com> On Apr 7, 2005 10:24 AM, Olav Junker Kj?r <olav at olav.dk> wrote: > Jim Ley wrote: > > Firstly I think the conclusions that the audience for WHAT-WG stuff > > doesn't understand the limitations of the validator is sustainable - > > where's the evidence? > > People putting small icons on their pages to indicate that the page is > valid. Also, lots of articles on the web about jumping through hoops to > e.g. make a flash embed validate. Which doesn't say anything that these users believe anything more of HTML validation than it is, it's a very important _part_ of QA. Given that there are no complete HTML conformance checkers in existence today for existing HTML technologies. It seems very strange to remove one of the few parts of QA available so what have we then got. Or are the WHAT-WG members going to step up and implement one? > As HTML applications becomes more complex I thought the whole point of the WHAT work was to make HTML applications simpler, not more complex, are you suggesting the current specs are failing in this area? > However, a > syntax error in the initial value of a date control *will* cause the > page to stop working as intended. Could you describe how? My reading of the error handling defined in the spec for that situation does not lead to the failure you describe. However the unclosed <B> element does exactly that. (in the XHTML dialect) > The reason comparatively few authors validate their pages, is that the > immediate practical benefit is quite small. Certainly, but the point is that it is valuable as part of a larger automated QA process, most people rely on non-automated QA methods, that's fine, if you can find and afford the testers. > A conformance checker would > be much more valuable since it might catch real errors which might cause > the page to stop working. But who's going to write it? There's no point talking about perfect tools when no-one's writing it... Jim. From ian at hixie.ch Thu Apr 7 03:44:24 2005 From: ian at hixie.ch (Ian Hickson) Date: Thu, 7 Apr 2005 10:44:24 +0000 (UTC) Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <4254CE93.4000403@lachy.id.au> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> <4252B643.6030308@lachy.id.au> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> <4253CA8A.1070608@olav.dk> <4253D10C.5000700@lachy.id.au> <4253D24A.8050308@annevankesteren.nl> <4253D7CA.2010807@lachy.id.au> <4253DA93.8030606@annevankesteren.nl> <4253E4FF.2090306@lachy.id.au> <4253F517.3040409@olav.dk> <425401B0.3040205@lachy.id.au> <42540251.4080405@annevankesteren.nl> <42546FCE.5070900@lachy.id.au> <Pine.LNX.4.61.0504062335130.20461@dhalsim.dreamhost.com> <4254CE93.4000403@lachy.id.au> Message-ID: <Pine.LNX.4.61.0504071037490.20461@dhalsim.dreamhost.com> On Thu, 7 Apr 2005, Lachlan Hunt wrote: > > > > A conformance checker that doesn't check for all the machine-checkable > > things is not compliant, just like a browser that doesn't support > > everything in the spec is not compliant. > > Fair enough, but is the spec going to specify exactly which conformance > criteria fits into which of the 3 categories you've now added, or is > expected that implementors will be able to make an educated guess to > decide for themselves? This is something I've been pondering myself, actually. I've been trying to think of a way to label the conformance requirements that conformence checkers are exempt from checking. In fact I'd quite like to label every conformance requirements with flags to indicate who it applies to. That's a lot of work though and may get quick messy, so I haven't done it yet. > It doesn't need to be altered, it only needs to be pointed to an HTML 5 > DTD, with the system identifier (the URI) in the DOCTYPE. At the moment I have no intention of personally writing a DTD, schema or similar for WHATWG specs. Fantasai once volunteered to do so, but I don't know the status of this. I am very reluctant to put a particular DTD in the DOCTYPE, though. Given that DTDs are highly inadequate for catching errors, it feels very wrong to me to be giving a particulr DTD any kind of legitimacy at that level. This doesn't stop conformance checker implements from writing DTDs of their own and then placing them in their SGML catalog so that the HTML5 DOCTYPE triggers that DTD, though. The point is that different conformance checker vendors should be able to write their own DTD for HTML5 to complement the rest of the conformance checking process. As the mix between DTD-based and other checking will probably be vendor-dependent, I don't see why we'd want to elevate any particular DTD to official status. > > This is not a bad thing. One hopes that HTML5's more detailed > > conformance requirements will encourage the development of truly > > useful conformance checkers that don't mislead people into thinking > > they have written correct documents when in fact they have just fixed > > the small subset of errors that the limited validator catches. > > I hope so, cause existing conformance checkers (often called "lints" > [1]) for HTML aren't really useful cause they're often only subjective > and issue bogus errors or don't catch all errors. Exactly. By being more precise about what conformance checkers must check, we should sidestep that problem. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From fora at annevankesteren.nl Thu Apr 7 03:48:29 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Thu, 07 Apr 2005 12:48:29 +0200 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <Pine.LNX.4.61.0504071037490.20461@dhalsim.dreamhost.com> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> <4252B643.6030308@lachy.id.au> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> <4253CA8A.1070608@olav.dk> <4253D10C.5000700@lachy.id.au> <4253D24A.8050308@annevankesteren.nl> <4253D7CA.2010807@lachy.id.au> <4253DA93.8030606@annevankesteren.nl> <4253E4FF.2090306@lachy.id.au> <4253F517.3040409@olav.dk> <425401B0.3040205@lachy.id.au> <42540251.4080405@annevankesteren.nl> <42546FCE.5070900@lachy.id.au> <Pine.LNX.4.61.0504062335130.20461@dhalsim.dreamhost.com> <4254CE93.4000403@lachy.id.au> <Pine.LNX.4.61.0504071037490.20461@dhalsim.dreamhost.com> Message-ID: <42550FFD.20201@annevankesteren.nl> Ian Hickson wrote: > This doesn't stop conformance checker implements from writing DTDs of > their own and then placing them in their SGML catalog so that the HTML5 > DOCTYPE triggers that DTD, though. The point is that different conformance > checker vendors should be able to write their own DTD for HTML5 to > complement the rest of the conformance checking process. As the mix > between DTD-based and other checking will probably be vendor-dependent, I > don't see why we'd want to elevate any particular DTD to official status. Entities. Or is that problem going to be solved by: "use UTF-8"? (Which would be something I wouldn't disagree with, although for mathematical symbols it might be a pain to enter them.) -- Anne van Kesteren <http://annevankesteren.nl/> From ian at hixie.ch Thu Apr 7 03:51:45 2005 From: ian at hixie.ch (Ian Hickson) Date: Thu, 7 Apr 2005 10:51:45 +0000 (UTC) Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <42550FFD.20201@annevankesteren.nl> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> <4252B643.6030308@lachy.id.au> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> <4253CA8A.1070608@olav.dk> <4253D10C.5000700@lachy.id.au> <4253D24A.8050308@annevankesteren.nl> <4253D7CA.2010807@lachy.id.au> <4253DA93.8030606@annevankesteren.nl> <4253E4FF.2090306@lachy.id.au> <4253F517.3040409@olav.dk> <425401B0.3040205@lachy.id.au> <42540251.4080405@annevankesteren.nl> <42546FCE.5070900@lachy.id.au> <Pine.LNX.4.61.0504062335130.20461@dhalsim.dreamhost.com> <4254CE93.4000403@lachy.id.au> <Pine.LNX.4.61.0504071037490.20461@dhalsim.dreamhost.com> <42550FFD.20201@annevankesteren.nl> Message-ID: <Pine.LNX.4.61.0504071050580.20461@dhalsim.dreamhost.com> On Thu, 7 Apr 2005, Anne van Kesteren wrote: > > Entities. Or is that problem going to be solved by: "use UTF-8"? (Which > would be something I wouldn't disagree with, although for mathematical > symbols it might be a pain to enter them.) In my world that is solved by no longer claiming that HTML is an SGML application. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From fora at annevankesteren.nl Thu Apr 7 03:54:05 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Thu, 07 Apr 2005 12:54:05 +0200 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <Pine.LNX.4.61.0504071050580.20461@dhalsim.dreamhost.com> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> <4252B643.6030308@lachy.id.au> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> <4253CA8A.1070608@olav.dk> <4253D10C.5000700@lachy.id.au> <4253D24A.8050308@annevankesteren.nl> <4253D7CA.2010807@lachy.id.au> <4253DA93.8030606@annevankesteren.nl> <4253E4FF.2090306@lachy.id.au> <4253F517.3040409@olav.dk> <425401B0.3040205@lachy.id.au> <42540251.4080405@annevankesteren.nl> <42546FCE.5070900@lachy.id.au> <Pine.LNX.4.61.0504062335130.20461@dhalsim.dreamhost.com> <4254CE93.4000403@lachy.id.au> <Pine.LNX.4.61.0504071037490.20461@dhalsim.dreamhost.com> <42550FFD.20201@annevankesteren.nl> <Pine.LNX.4.61.0504071050580.20461@dhalsim.dreamhost.com> Message-ID: <4255114D.10108@annevankesteren.nl> Ian Hickson wrote: > On Thu, 7 Apr 2005, Anne van Kesteren wrote: > >> Entities. Or is that problem going to be solved by: "use UTF-8"? >> (Which would be something I wouldn't disagree with, although for >> mathematical symbols it might be a pain to enter them.) > > In my world that is solved by no longer claiming that HTML is an SGML > application. And how does the XML part of your world feel about that? (I like the idea for HTML.) -- Anne van Kesteren <http://annevankesteren.nl/> From jim.ley at gmail.com Thu Apr 7 03:56:41 2005 From: jim.ley at gmail.com (Jim Ley) Date: Thu, 7 Apr 2005 11:56:41 +0100 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <Pine.LNX.4.61.0504071050580.20461@dhalsim.dreamhost.com> References: <42524E27.6060006@annevankesteren.nl> <4253F517.3040409@olav.dk> <425401B0.3040205@lachy.id.au> <42540251.4080405@annevankesteren.nl> <42546FCE.5070900@lachy.id.au> <Pine.LNX.4.61.0504062335130.20461@dhalsim.dreamhost.com> <4254CE93.4000403@lachy.id.au> <Pine.LNX.4.61.0504071037490.20461@dhalsim.dreamhost.com> <42550FFD.20201@annevankesteren.nl> <Pine.LNX.4.61.0504071050580.20461@dhalsim.dreamhost.com> Message-ID: <851c8d310504070356287eb4b1@mail.gmail.com> On Apr 7, 2005 11:51 AM, Ian Hickson <ian at hixie.ch> wrote: > On Thu, 7 Apr 2005, Anne van Kesteren wrote: > > > > Entities. Or is that problem going to be solved by: "use UTF-8"? (Which > > would be something I wouldn't disagree with, although for mathematical > > symbols it might be a pain to enter them.) > > In my world that is solved by no longer claiming that HTML is an SGML > application. So please state that clearly in the specification. Can you also explain the point of the <!DOCTYPE ... gibberish that the specs require at the top of documents? What are they doing, please remove them, they serve no purpose whatsoever. Or if they do serve a purpose, document what the purpose is. Jim. From ian at hixie.ch Thu Apr 7 03:58:07 2005 From: ian at hixie.ch (Ian Hickson) Date: Thu, 7 Apr 2005 10:58:07 +0000 (UTC) Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <4255114D.10108@annevankesteren.nl> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> <4252B643.6030308@lachy.id.au> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> <4253CA8A.1070608@olav.dk> <4253D10C.5000700@lachy.id.au> <4253D24A.8050308@annevankesteren.nl> <4253D7CA.2010807@lachy.id.au> <4253DA93.8030606@annevankesteren.nl> <4253E4FF.2090306@lachy.id.au> <4253F517.3040409@olav.dk> <425401B0.3040205@lachy.id.au> <42540251.4080405@annevankesteren.nl> <42546FCE.5070900@lachy.id.au> <Pine.LNX.4.61.0504062335130.20461@dhalsim.dreamhost.com> <4254CE93.4000403@lachy.id.au> <Pine.LNX.4.61.0504071037490.20461@dhalsim.dreamhost.com> <42550FFD.20201@annevankesteren.nl> <Pine.LNX.4.61.0504071050580.20461@dhalsim.dreamhost.com> <4255114D.10108@annevankesteren.nl> Message-ID: <Pine.LNX.4.61.0504071056170.20461@dhalsim.dreamhost.com> On Thu, 7 Apr 2005, Anne van Kesteren wrote: > > And how does the XML part of your world feel about [not having a DTD > meaning they can't use entities]? (I like the idea for HTML.) The current draft says that there is no particular DTD for XHTML5. It doesn't stop anyone from using one if they want to use entities. I suppose we could include one that just had the entities and had a known FPI so that UAs could permanently cache it. *shrug* -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From fora at annevankesteren.nl Thu Apr 7 04:01:02 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Thu, 07 Apr 2005 13:01:02 +0200 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <851c8d310504070356287eb4b1@mail.gmail.com> References: <42524E27.6060006@annevankesteren.nl> <4253F517.3040409@olav.dk> <425401B0.3040205@lachy.id.au> <42540251.4080405@annevankesteren.nl> <42546FCE.5070900@lachy.id.au> <Pine.LNX.4.61.0504062335130.20461@dhalsim.dreamhost.com> <4254CE93.4000403@lachy.id.au> <Pine.LNX.4.61.0504071037490.20461@dhalsim.dreamhost.com> <42550FFD.20201@annevankesteren.nl> <Pine.LNX.4.61.0504071050580.20461@dhalsim.dreamhost.com> <851c8d310504070356287eb4b1@mail.gmail.com> Message-ID: <425512EE.9060205@annevankesteren.nl> Jim Ley wrote: >>> Entities. Or is that problem going to be solved by: "use UTF-8"? >>> (Which would be something I wouldn't disagree with, although for >>> mathematical symbols it might be a pain to enter them.) >> >> In my world that is solved by no longer claiming that HTML is an >> SGML application. > > So please state that clearly in the specification. > > Can you also explain the point of the <!DOCTYPE ... gibberish that > the specs require at the top of documents? What are they doing, > please remove them, they serve no purpose whatsoever. Or if they do > serve a purpose, document what the purpose is. You should know the purpose I guess. (Standards mode.) I agree that it should be documentated. -- Anne van Kesteren <http://annevankesteren.nl/> From ian at hixie.ch Thu Apr 7 04:03:01 2005 From: ian at hixie.ch (Ian Hickson) Date: Thu, 7 Apr 2005 11:03:01 +0000 (UTC) Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <851c8d310504070356287eb4b1@mail.gmail.com> References: <42524E27.6060006@annevankesteren.nl> <4253F517.3040409@olav.dk> <425401B0.3040205@lachy.id.au> <42540251.4080405@annevankesteren.nl> <42546FCE.5070900@lachy.id.au> <Pine.LNX.4.61.0504062335130.20461@dhalsim.dreamhost.com> <4254CE93.4000403@lachy.id.au> <Pine.LNX.4.61.0504071037490.20461@dhalsim.dreamhost.com> <42550FFD.20201@annevankesteren.nl> <Pine.LNX.4.61.0504071050580.20461@dhalsim.dreamhost.com> <851c8d310504070356287eb4b1@mail.gmail.com> Message-ID: <Pine.LNX.4.61.0504071058300.20461@dhalsim.dreamhost.com> On Thu, 7 Apr 2005, Jim Ley wrote: > > > > In my world that is solved by no longer claiming that HTML is an SGML > > application. > > So please state that clearly in the specification. Yes, patience boy. All in due course. Like I said earlier in this thread, I haven't gotten that far in the editing yet, which is why I don't have detailed well-thought-through answers to all these questions. When I get around to actually speccing out how this part of things work (probably around the same time I work on a section about how to parse the non-XML serialisation), I'll take a close look at all the e-mails in this thread and reply to them all. > Can you also explain the point of the <!DOCTYPE ... gibberish that the > specs require at the top of documents? What are they doing, please > remove them, they serve no purpose whatsoever. Or if they do serve a > purpose, document what the purpose is. They trigger standards mode in modern browsers. The current one for WHATWG specs is: <!DOCTYPE html PUBLIC "-//WHATWG//NONSGML HTML5//EN"> ...as described in 1.8 of the WA1 spec and also somewhere in the WF2 spec. This will hopefully be explained in more detail in the future. At the moment I'm concentrating on defining all the elements and attributes of the language. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From ian at hixie.ch Thu Apr 7 04:04:21 2005 From: ian at hixie.ch (Ian Hickson) Date: Thu, 7 Apr 2005 11:04:21 +0000 (UTC) Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <425512EE.9060205@annevankesteren.nl> References: <42524E27.6060006@annevankesteren.nl> <4253F517.3040409@olav.dk> <425401B0.3040205@lachy.id.au> <42540251.4080405@annevankesteren.nl> <42546FCE.5070900@lachy.id.au> <Pine.LNX.4.61.0504062335130.20461@dhalsim.dreamhost.com> <4254CE93.4000403@lachy.id.au> <Pine.LNX.4.61.0504071037490.20461@dhalsim.dreamhost.com> <42550FFD.20201@annevankesteren.nl> <Pine.LNX.4.61.0504071050580.20461@dhalsim.dreamhost.com> <851c8d310504070356287eb4b1@mail.gmail.com> <425512EE.9060205@annevankesteren.nl> Message-ID: <Pine.LNX.4.61.0504071103310.20461@dhalsim.dreamhost.com> On Thu, 7 Apr 2005, Anne van Kesteren wrote: > > > > Can you also explain the point of the <!DOCTYPE ... gibberish that > > the specs require at the top of documents? What are they doing, > > please remove them, they serve no purpose whatsoever. Or if they do > > serve a purpose, document what the purpose is. > > You should know the purpose I guess. (Standards mode.) I agree that it > should be documentated. Actually come to think of it there is also a second purpose, namely, telling conformance checkers what version of the specification to check against. (Which I guess is basically the original purpose of the DOCTYPE.) -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From jim.ley at gmail.com Thu Apr 7 04:09:57 2005 From: jim.ley at gmail.com (Jim Ley) Date: Thu, 7 Apr 2005 12:09:57 +0100 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <Pine.LNX.4.61.0504071058300.20461@dhalsim.dreamhost.com> References: <42524E27.6060006@annevankesteren.nl> <42540251.4080405@annevankesteren.nl> <42546FCE.5070900@lachy.id.au> <Pine.LNX.4.61.0504062335130.20461@dhalsim.dreamhost.com> <4254CE93.4000403@lachy.id.au> <Pine.LNX.4.61.0504071037490.20461@dhalsim.dreamhost.com> <42550FFD.20201@annevankesteren.nl> <Pine.LNX.4.61.0504071050580.20461@dhalsim.dreamhost.com> <851c8d310504070356287eb4b1@mail.gmail.com> <Pine.LNX.4.61.0504071058300.20461@dhalsim.dreamhost.com> Message-ID: <851c8d3105040704092d099949@mail.gmail.com> On Apr 7, 2005 12:03 PM, Ian Hickson <ian at hixie.ch> wrote: > They trigger standards mode in modern browsers. The > current one for WHATWG specs is: Will the spec explain this some more, in particular could you document what "standards mode" is, and exactly how user agents should use this doctype to trigger it? Would it not be better to just require WF2/WA user agents to render it in this "standards mode" you talk of? Or at the very least use something that would not confuse people into thinking that it is an application of SGML or XML. Jim. From jim.ley at gmail.com Thu Apr 7 04:11:41 2005 From: jim.ley at gmail.com (Jim Ley) Date: Thu, 7 Apr 2005 12:11:41 +0100 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <Pine.LNX.4.61.0504071103310.20461@dhalsim.dreamhost.com> References: <42524E27.6060006@annevankesteren.nl> <42546FCE.5070900@lachy.id.au> <Pine.LNX.4.61.0504062335130.20461@dhalsim.dreamhost.com> <4254CE93.4000403@lachy.id.au> <Pine.LNX.4.61.0504071037490.20461@dhalsim.dreamhost.com> <42550FFD.20201@annevankesteren.nl> <Pine.LNX.4.61.0504071050580.20461@dhalsim.dreamhost.com> <851c8d310504070356287eb4b1@mail.gmail.com> <425512EE.9060205@annevankesteren.nl> <Pine.LNX.4.61.0504071103310.20461@dhalsim.dreamhost.com> Message-ID: <851c8d31050407041135d65f31@mail.gmail.com> On Apr 7, 2005 12:04 PM, Ian Hickson <ian at hixie.ch> wrote: > On Thu, 7 Apr 2005, Anne van Kesteren wrote: > > You should know the purpose I guess. (Standards mode.) I agree that it > > should be documentated. > > Actually come to think of it there is also a second purpose, namely, > telling conformance checkers what version of the specification to check > against. (Which I guess is basically the original purpose of the DOCTYPE.) Would a version parameter not be more appropriate, simpler, less confusing to users, easier to parse, easier to understand, doesn't confuse users into thinking that it's really an application of SGML. Doesn't cause problems for legacy user agents like the HTML Validator etc. etc. It seems a very poor and odd choice for versioning a document. Jim. From olav at olav.dk Thu Apr 7 04:18:33 2005 From: olav at olav.dk (=?ISO-8859-1?Q?Olav_Junker_Kj=E6r?=) Date: Thu, 07 Apr 2005 13:18:33 +0200 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <Pine.LNX.4.61.0504071037490.20461@dhalsim.dreamhost.com> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> <4252B643.6030308@lachy.id.au> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> <4253CA8A.1070608@olav.dk> <4253D10C.5000700@lachy.id.au> <4253D24A.8050308@annevankesteren.nl> <4253D7CA.2010807@lachy.id.au> <4253DA93.8030606@annevankesteren.nl> <4253E4FF.2090306@lachy.id.au> <4253F517.3040409@olav.dk> <425401B0.3040205@lachy.id.au> <42540251.4080405@annevankesteren.nl> <42546FCE.5070900@lachy.id.au> <Pine.LNX.4.61.0504062335130.20461@dhalsim.dreamhost.com> <4254CE93.4000403@lachy.id.au> <Pine.LNX.4.61.0504071037490.20461@dhalsim.dreamhost.com> Message-ID: <42551709.2060208@olav.dk> Ian Hickson wrote: > I am very reluctant to put a particular DTD in the DOCTYPE, though. Given > that DTDs are highly inadequate for catching errors, it feels very wrong > to me to be giving a particulr DTD any kind of legitimacy at that level. A DTD or schema in the spec would be redundant anyway, since it would only echo what is described in prose. DTD validation would be almost useless in the case of WF2, except perhaps for catching spelling errors in attribute names. A schema in a sufficiently expressive language would go along way, though. There are lots of interdependencies between attributes in WF2, e.g. the value of the type attribute on a input element defines which other attributes may apply and what their syntax and semantics are. I'm not sure what schema languages support this, since they are usually based on the premise that the element name defines what attributes applies. I notice that <input type="text" src="some url" checked="true"> is valid according to the schema for XHTML. > This doesn't stop conformance checker implements from writing DTDs of > their own and then placing them in their SGML catalog so that the HTML5 > DOCTYPE triggers that DTD, though. The point is that different conformance > checker vendors should be able to write their own DTD for HTML5 to > complement the rest of the conformance checking process. As the mix > between DTD-based and other checking will probably be vendor-dependent, I > don't see why we'd want to elevate any particular DTD to official status. Actually I think it would be beneficial for interoperability and perhaps discovery of weaknesses in the spec, if several schemas were developed by independent parties during the call for implementation. regards Olav Junker Kj?r From lachlan.hunt at lachy.id.au Thu Apr 7 04:24:16 2005 From: lachlan.hunt at lachy.id.au (Lachlan Hunt) Date: Thu, 07 Apr 2005 21:24:16 +1000 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <42550FFD.20201@annevankesteren.nl> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> <4252B643.6030308@lachy.id.au> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> <4253CA8A.1070608@olav.dk> <4253D10C.5000700@lachy.id.au> <4253D24A.8050308@annevankesteren.nl> <4253D7CA.2010807@lachy.id.au> <4253DA93.8030606@annevankesteren.nl> <4253E4FF.2090306@lachy.id.au> <4253F517.3040409@olav.dk> <425401B0.3040205@lachy.id.au> <42540251.4080405@annevankesteren.nl> <42546FCE.5070900@lachy.id.au> <Pine.LNX.4.61.0504062335130.20461@dhalsim.dreamhost.com> <4254CE93.4000403@lachy.id.au> <Pine.LNX.4.61.0504071037490.20461@dhalsim.dreamhost.com> <42550FFD.20201@annevankesteren.nl> Message-ID: <42551860.5030409@lachy.id.au> Anne van Kesteren wrote: > Ian Hickson wrote: > >> This doesn't stop conformance checker implements from writing DTDs of >> their own and then placing them in their SGML catalog so that the >> HTML5 DOCTYPE triggers that DTD, though. The point is that different >> conformance checker vendors should be able to write their own DTD for >> HTML5 to complement the rest of the conformance checking process. As >> the mix between DTD-based and other checking will probably be >> vendor-dependent, I don't see why we'd want to elevate any particular >> DTD to official status. If every conformance checker has to implement their own, there's more chance they some of them will make mistakes, and each end up with differing DOCTYPES. If that happens, then chances are each validator would give differing results, which is even more confusing and would result in no-one validating at all! If there is only one official DOCTYPE, then at least all validators would have a chance of giving identical results, and mistakes can be managed from one place by filing errata for it, and updating it as necessary. I realise how difficult DTDs can be to write, especially given the size and complexity of these HTML5 specs, and I doubt I could do one by myself, but if I had time, I would certainly contribute to writing one in any way I could. > Entities. Or is that problem going to be solved by: "use UTF-8"? I wouldn't bother including character entity references in HTML 5, their use should be deprecated, although UAs should be advised to support the HTML4 entities for bugwards compatibility. Numeric character references is all that is needed. However, unicode should be strongly recommended, in which case only &#160; or &#xA0; (no-break space) would ever be useful (though rarely used anyway), simply to distinguish it from a regular space in the source code. Ian Hickson wrote: > In my world that is solved by no longer claiming that HTML is an SGML > application. There is no need to make HTML 5 no longer an SGML application. The only reason one might consider it to not be is due to broken documents, which should be fixed and for which their handling can be mostly defined, and broken UAs which should be fixed also. A fully conformant HTML 5 document will still be a fully conformant SGML document, so I see no need for this change at all. -- Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox From olav at olav.dk Thu Apr 7 04:46:33 2005 From: olav at olav.dk (=?ISO-8859-1?Q?Olav_Junker_Kj=E6r?=) Date: Thu, 07 Apr 2005 13:46:33 +0200 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <851c8d31050407041135d65f31@mail.gmail.com> References: <42524E27.6060006@annevankesteren.nl> <42546FCE.5070900@lachy.id.au> <Pine.LNX.4.61.0504062335130.20461@dhalsim.dreamhost.com> <4254CE93.4000403@lachy.id.au> <Pine.LNX.4.61.0504071037490.20461@dhalsim.dreamhost.com> <42550FFD.20201@annevankesteren.nl> <Pine.LNX.4.61.0504071050580.20461@dhalsim.dreamhost.com> <851c8d310504070356287eb4b1@mail.gmail.com> <425512EE.9060205@annevankesteren.nl> <Pine.LNX.4.61.0504071103310.20461@dhalsim.dreamhost.com> <851c8d31050407041135d65f31@mail.gmail.com> Message-ID: <42551D99.5010903@olav.dk> Jim Ley wrote: > Would a version parameter not be more appropriate, simpler, less > confusing to users, easier to parse, easier to understand, doesn't > confuse users into thinking that it's really an application of SGML. > Doesn't cause problems for legacy user agents like the HTML Validator > etc. etc. Actually, the HTML element has a (deprecated!) version attribute, which could be used for this purpose. I agree it feels cleaner than using the doctype syntax. OTOH authors are going to use doctypes for the forseeable future anyway, since they want to trigger standards compliant mode in browsers, so we might as well put the doctype to some use. regards Olav Junker Kj?r From olav at olav.dk Thu Apr 7 04:54:31 2005 From: olav at olav.dk (=?UTF-8?B?T2xhdiBKdW5rZXIgS2rDpnI=?=) Date: Thu, 07 Apr 2005 13:54:31 +0200 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <42551860.5030409@lachy.id.au> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> <4252B643.6030308@lachy.id.au> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> <4253CA8A.1070608@olav.dk> <4253D10C.5000700@lachy.id.au> <4253D24A.8050308@annevankesteren.nl> <4253D7CA.2010807@lachy.id.au> <4253DA93.8030606@annevankesteren.nl> <4253E4FF.2090306@lachy.id.au> <4253F517.3040409@olav.dk> <425401B0.3040205@lachy.id.au> <42540251.4080405@annevankesteren.nl> <42546FCE.5070900@lachy.id.au> <Pine.LNX.4.61.0504062335130.20461@dhalsim.dreamhost.com> <4254CE93.4000403@lachy.id.au> <Pine.LNX.4.61.0504071037490.20461@dhalsim.dreamhost.com> <42550FFD.20201@annevankesteren.nl> <42551860.5030409@lachy.id.au> Message-ID: <42551F77.8080604@olav.dk> Lachlan Hunt wrote: > If every conformance checker has to implement their own, there's more > chance they some of them will make mistakes, and each end up with > differing DOCTYPES. If that happens, then chances are each validator > would give differing results, which is even more confusing and would > result in no-one validating at all! If there is only one official > DOCTYPE, then at least all validators would have a chance of giving > identical results, and mistakes can be managed from one place by filing > errata for it, and updating it as necessary. The problem with doctypes is they tie the document to one particular type of validation and one particular implementation of the validation constraints. Experience shows that different, competing implementations of a spec has a higher probability of uncovering bugs and weaknesses in the spec and in each other, than a single canonical implementation. Since current browsers dont use DTD validation, the adherence to a single canonical DTD does not guarantee that the document will be parsed correctly by the intended audience anyway. I believe that a document should only declare its adherence to a spec, and then different tools should be allowed to check this adherence using various methods, the same way that different browsers (presumably) uses different parsers to parse the document. Olav Junker Kj?r From fora at annevankesteren.nl Thu Apr 7 05:38:42 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Thu, 07 Apr 2005 14:38:42 +0200 Subject: [whatwg] [wf2] Default submit button determination and autofocus Message-ID: <425529D2.9070104@annevankesteren.nl> Current WF2 defines a way to determinate the default submit button[1]. While it is quite useful it would be even more useful if you could decide which is the default submit button in WF2 compliant UAs: # woo_ who really programs like that though.. "well, the first button # is ALWAYS going to be the button I want to have executed" # woo_ they apparently never had "customers" ASP.NET2 provides quite a useful way[2] to point to the default submit button and the button that should get autofocus. Personally I think declaring them on the FORM element might make more sense. (Not that WF2 currently provides a way to set a default submit button.) That way 'autofocus' wouldn't be an attribute with the name of its value, but an attribute with an ID as value. On page load the first FORM element with an 'autofocus' attribute set would be selected and when someone clicks inside a FORM element with an 'autofocus' attribute set the form control with an ID attribute that has a value the attribute points to would get focus. The other attribute could be called 'defaultsubmit' or so and would work on a per form basis. I know this would require quite some changes to the specification but I think it is worth it and since the specification would get another call for comments... [1]<http://whatwg.org/specs/web-forms/current-work/#enter-submit> [2]<http://weblogs.asp.net/skoganti/archive/2004/11/01/250482.aspx> -- Anne van Kesteren <http://annevankesteren.nl/> From olav at olav.dk Thu Apr 7 05:59:02 2005 From: olav at olav.dk (=?ISO-8859-1?Q?Olav_Junker_Kj=E6r?=) Date: Thu, 07 Apr 2005 14:59:02 +0200 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <851c8d310504070259217d5477@mail.gmail.com> References: <42524E27.6060006@annevankesteren.nl> <4253CA8A.1070608@olav.dk> <4253D10C.5000700@lachy.id.au> <4253D24A.8050308@annevankesteren.nl> <4253D7CA.2010807@lachy.id.au> <4253DA93.8030606@annevankesteren.nl> <4253E4FF.2090306@lachy.id.au> <4253F517.3040409@olav.dk> <851c8d3105040608202cdc0819@mail.gmail.com> <4254FC67.9060606@olav.dk> <851c8d310504070259217d5477@mail.gmail.com> Message-ID: <42552E96.3020203@olav.dk> Jim Ley wrote: >>However, a >>syntax error in the initial value of a date control *will* cause the >>page to stop working as intended. > > Could you describe how? My reading of the error handling defined in > the spec for that situation does not lead to the failure you describe. > However the unclosed <B> element does exactly that. (in the XHTML > dialect) The intention is that the control should show the default value. If the value contains a syntax error (e.g. a missing colon) the value will be ignored and the control will be empty (according to http://whatwg.org/specs/web-forms/current-work/#handling). More subtle errors will result if min or max attributes contain a syntax error. Depending on the type of application, the wrong or missing date might have serious consequences. (It wont prevent the page from showing up, though, it just wont work as intended - which in some circumstances might be worse). The problem might be even more subtle if the date is syntactically correct but invalid, e.g. the 29. of February in a year that is not a leap year. Schema validation using regular expressions wont catch this. A conformance checker should be able to flag these kinds of errors. OTOH a missing </b> might be annoying but wont usually have serious consequences in HTML (XHTML is different, of course). Still, this is the only type of error DTD validation will catch. regards Olav Junker Kj?r From michael at quuxo.com Thu Apr 7 06:04:17 2005 From: michael at quuxo.com (Michael Gratton) Date: Thu, 07 Apr 2005 22:34:17 +0930 Subject: [whatwg] [wf2] Default submit button determination and autofocus In-Reply-To: <425529D2.9070104@annevankesteren.nl> References: <425529D2.9070104@annevankesteren.nl> Message-ID: <1112879058.14764.5.camel@localhost.localdomain> On Thu, 2005-04-07 at 14:38 +0200, Anne van Kesteren wrote: > Current WF2 defines a way to determinate the default submit button[1]. > While it is quite useful it would be even more useful if you could > decide which is the default submit button in WF2 compliant UAs: Yes, I agree. I think Hixie put it on some TODO for the spec. > ASP.NET2 provides quite a useful way[2] to point to the default submit > button and the button that should get autofocus. How does that work? Does it automatically generate and install an onsubmit handler to make sure the correct button is submit-ed? Or does it use an IE extension? > Personally I think declaring them on the FORM element might make more > sense. "+1" -- Michael Gratton, Software Architect. Quuxo Software <http://web.quuxo.com/> -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20050407/bd3cb69d/attachment-0001.pgp> From ian at hixie.ch Thu Apr 7 08:38:04 2005 From: ian at hixie.ch (Ian Hickson) Date: Thu, 7 Apr 2005 15:38:04 +0000 (UTC) Subject: [whatwg] [wf2] Default submit button determination and autofocus In-Reply-To: <425529D2.9070104@annevankesteren.nl> References: <425529D2.9070104@annevankesteren.nl> Message-ID: <Pine.LNX.4.61.0504071532040.6497@dhalsim.dreamhost.com> On Thu, 7 Apr 2005, Anne van Kesteren wrote: > > Current WF2 defines a way to determinate the default submit button[1]. > While it is quite useful it would be even more useful if you could > decide which is the default submit button in WF2 compliant UAs: > > # woo_ who really programs like that though.. "well, the first button > # is ALWAYS going to be the button I want to have executed" > # woo_ they apparently never had "customers" > > ASP.NET2 provides quite a useful way[2] to point to the default submit button I agree, but I think we should wait for WF3 before adding more features. WF2 is a quite big enough spec as it is, we don't want to require too big a jump for implementors to go from WF1 (HTML4+DOM2 HTML) to WF2. Consider CSS2: it introduced too much compared to CSS1, and so implementors never fully implemented it. There is a real danger in overreaching here. Before we add more, we have to work out what parts of WF2 are not actually used enough to warrant their inclusion, IMHO. > Personally I think declaring them on the FORM element might make more sense. There is not always a <form> element. For example, in simple cases that are just use an input field for interaction with some scripted code. > I know this would require quite some changes to the specification but I > think it is worth it and since the specification would get another call > for comments... The idea is to have a call for comments with _no_ comments, not to keep changing the spec. :-) Every time we change the spec, people have to re-check the changes to make sure they agree with them, and if they don't, they comment. So every change increases the likelihood that someone will send a comment. And if they do, and that results in changes, we have to have another call for comments, etc. So just because we're going to have a call for comments doesn't mean it's open season for changes. :-) -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From lachlan.hunt at lachy.id.au Thu Apr 7 09:07:12 2005 From: lachlan.hunt at lachy.id.au (Lachlan Hunt) Date: Fri, 08 Apr 2005 02:07:12 +1000 Subject: [whatwg] <p> elements containing other block-level elements In-Reply-To: <4254DD87.7010604@annevankesteren.nl> References: <Pine.LNX.4.61.0504051557200.2016@dhalsim.dreamhost.com> <4254DD87.7010604@annevankesteren.nl> Message-ID: <42555AB0.5070904@lachy.id.au> Anne van Kesteren wrote: > Ian Hickson wrote: >> <p> >> ... >> <ol> >> <li>...</li> >> </ol> >> </p> > > If OL is an inline element here, sure. Whether or not it is rendered as block or inline within paragraphs can be quite easily handled with CSS. Lists should not be classified as block level or inline level elements within the spec. ol, ul { display: block } li { display: list-item; } p ol, p ul, p li { display: inline } -- Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox From fora at annevankesteren.nl Thu Apr 7 09:13:24 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Thu, 07 Apr 2005 18:13:24 +0200 Subject: [whatwg] <p> elements containing other block-level elements In-Reply-To: <42555AB0.5070904@lachy.id.au> References: <Pine.LNX.4.61.0504051557200.2016@dhalsim.dreamhost.com> <4254DD87.7010604@annevankesteren.nl> <42555AB0.5070904@lachy.id.au> Message-ID: <42555C24.1010800@annevankesteren.nl> Lachlan Hunt wrote: >> If OL is an inline element here, sure. > > Whether or not it is rendered as block or inline within paragraphs > can be quite easily handled with CSS. I am aware of that. > Lists should not be classified as block level or inline level > elements within the spec. I think they should. (Note that block and inline are different here from the definition CSS applies to them.) That way they get another content model that might be more suited for inline situations. -- Anne van Kesteren <http://annevankesteren.nl/> From hsivonen at iki.fi Thu Apr 7 09:51:13 2005 From: hsivonen at iki.fi (Henri Sivonen) Date: Thu, 7 Apr 2005 19:51:13 +0300 Subject: [whatwg] <p> elements containing other block-level elements In-Reply-To: <Pine.LNX.4.61.0504051557200.2016@dhalsim.dreamhost.com> References: <Pine.LNX.4.61.0504051557200.2016@dhalsim.dreamhost.com> Message-ID: <44b7186c56b20eae7e619cbd3cc3c1f8@iki.fi> On Apr 7, 2005, at 04:07, Ian Hickson wrote: > One thing that XHTML2 does which makes a lot of sense to me is allow > nesting of certain elements within <p> elements, as in: I'd agree that would be nice to allow if there was no HTML legacy. > I'm trying to work out exactly what the rules that describe the above > actually are, but I'm interested in hearing whether people agree or > disagree with my "good" and "bad" examples above. I'm especially > interested in what use cases I may have missed (please don't say "I > think > this should be allowed" without giving a real-world example), and > whether > anyone thinks any of the cases I think should be allowed should not. The problem with allowing the HTML flavor and XHTML flavor diverge is that one could no longer use HTML and XHTML serializations interchangeably in apps that do not suffer from the HTML DOM legacy and otherwise could treat the HTML-XHTML distinction as something you deal with on the IO boundary. I use Java XML tools for producing HTML. I use XHTML internally and serialize as HTML. This works great with XHTML 1.0 and HTML 4.01. If the HTML flavor of What WG HTML and the XHTML flavor diverge, I'd need to spec that only an HTML-compatible subset of What WG XHTML that doesn't nest elements in ways prohibited on the text/html side may be put into an app that outputs text/html. I don't know whether this is a reason enough not to allow the XHTML flavor diverge, but I think there is a need to at least specifically flag anything that is not text/html-compatible. -- Henri Sivonen hsivonen at iki.fi http://hsivonen.iki.fi/ From hsivonen at iki.fi Thu Apr 7 10:11:23 2005 From: hsivonen at iki.fi (Henri Sivonen) Date: Thu, 7 Apr 2005 20:11:23 +0300 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <Pine.LNX.4.61.0504071056170.20461@dhalsim.dreamhost.com> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> <4252B643.6030308@lachy.id.au> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> <4253CA8A.1070608@olav.dk> <4253D10C.5000700@lachy.id.au> <4253D24A.8050308@annevankesteren.nl> <4253D7CA.2010807@lachy.id.au> <4253DA93.8030606@annevankesteren.nl> <4253E4FF.2090306@lachy.id.au> <4253F517.3040409@olav.dk> <425401B0.3040205@lachy.id.au> <42540251.4080405@annevankesteren.nl> <42546FCE.5070900@lachy.id.au> <Pine.LNX.4.61.0504062335130.20461@dhalsim.dreamhost.com> <4254CE93.4000403@lachy.id.au> <Pine.LNX.4.61.0504071037490.20461@dhalsim.dreamhost.com> <42550FFD.20201@annevankesteren.nl> <Pine.LNX.4.61.0504071050580.20461@dhalsim.dreamhost.com> <4255114D.10108@annevankesteren.nl> <Pine.LNX.4.61.0504071056170.20461@dhalsim.dreamhost.com> Message-ID: <fb7f3319eb599acbe7429f972d21672c@iki.fi> On Apr 7, 2005, at 13:58, Ian Hickson wrote: > On Thu, 7 Apr 2005, Anne van Kesteren wrote: >> >> And how does the XML part of your world feel about [not having a DTD >> meaning they can't use entities]? (I like the idea for HTML.) > > The current draft says that there is no particular DTD for XHTML5. It > doesn't stop anyone from using one if they want to use entities. I > suppose > we could include one that just had the entities and had a known FPI so > that UAs could permanently cache it. *shrug* I am very hostile towards the idea of requiring UAs to implement any XML parsing features that are in the realm of the XML 1.0 spec but that the XML 1.0 spec does not require. This means processing the DTD beyond checking the internal subset for well-formedness. I would rather suggest that What WG specs explicitly discourage people from using a doctype on the XHTML side and point out that authors should not expect UAs to process the DTD. Those who want to use entities for input, should parse and reserialize as UTF-8 in their own lair and not expose their entity references (or parochial legacy encodings) to the public network. -- Henri Sivonen hsivonen at iki.fi http://hsivonen.iki.fi/ From hsivonen at iki.fi Thu Apr 7 10:27:03 2005 From: hsivonen at iki.fi (Henri Sivonen) Date: Thu, 7 Apr 2005 20:27:03 +0300 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <851c8d3105040704092d099949@mail.gmail.com> References: <42524E27.6060006@annevankesteren.nl> <42540251.4080405@annevankesteren.nl> <42546FCE.5070900@lachy.id.au> <Pine.LNX.4.61.0504062335130.20461@dhalsim.dreamhost.com> <4254CE93.4000403@lachy.id.au> <Pine.LNX.4.61.0504071037490.20461@dhalsim.dreamhost.com> <42550FFD.20201@annevankesteren.nl> <Pine.LNX.4.61.0504071050580.20461@dhalsim.dreamhost.com> <851c8d310504070356287eb4b1@mail.gmail.com> <Pine.LNX.4.61.0504071058300.20461@dhalsim.dreamhost.com> <851c8d3105040704092d099949@mail.gmail.com> Message-ID: <4d793a4ca44b70508a082e60c1264388@iki.fi> On Apr 7, 2005, at 14:09, Jim Ley wrote: > Will the spec explain this some more, in particular could you document > what "standards mode" is, and exactly how user agents should use this > doctype to trigger it? Ideally, UAs would know nothing of that particular doctype and would trigger the standards mode because there is a doctype that is not on the list of doctypes that triggers the quirks mode or the almost standards mode. > Would it not be better to just require WF2/WA user agents to render it > in this "standards mode" you talk of? Yes, in principle, but you can't trigger the layout mode when you hit the first What WG feature. UAs already have code for triggering on doctype. It's not pretty, but it's the reality. > Or at the very least use something that would not confuse people into > thinking that it is an > application of SGML or XML. Do you want to replace "NONSGML" with "THIS-IS-NOT-SGML"? -- Henri Sivonen hsivonen at iki.fi http://hsivonen.iki.fi/ From hsivonen at iki.fi Thu Apr 7 10:59:19 2005 From: hsivonen at iki.fi (Henri Sivonen) Date: Thu, 7 Apr 2005 20:59:19 +0300 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <4254DA33.3020409@lachy.id.au> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> <4252B643.6030308@lachy.id.au> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> <78f32994657502e0c7098780f8e6476b@iki.fi> <4254DA33.3020409@lachy.id.au> Message-ID: <521492f8273c953e36ca9b0957172b6c@iki.fi> On Apr 7, 2005, at 09:58, Lachlan Hunt wrote: > Henri Sivonen wrote: >> On Apr 6, 2005, at 13:22, Lachlan Hunt wrote: >>> If OpenSP was non-conformant, then any current or future UA that is >>> built with OpenSP as the parser would be non-conformant also, which >>> should not be the case. >> What OpenSP-based UAs are there besides validators? > > None that I know of yet, which is why I said current *or future* UAs. Can we, please, focus on real use cases, then? If it wasn't for that kind of SGML theorizing, perhaps HTML spec writers would never have been bothered to even pretend SGML is really involved. > There's no reason why a full conformance checker couldn't be based on > OpenSP. It would be prudent not to use OpenSP in order to avoid accidentally allowing SGMLisms that are alien to real-world tag soup. > Infact, it would probably be a good idea for them to do so, since then > they'll also be real validators too, which is part of the conformance > requirements. I don't think SGML validation is part of What WG conformance requirements. I thought Hixie has specifically said he doesn't bother with DTDs. -- Henri Sivonen hsivonen at iki.fi http://hsivonen.iki.fi/ From jim.ley at gmail.com Thu Apr 7 11:47:56 2005 From: jim.ley at gmail.com (Jim Ley) Date: Thu, 7 Apr 2005 19:47:56 +0100 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <4d793a4ca44b70508a082e60c1264388@iki.fi> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504062335130.20461@dhalsim.dreamhost.com> <4254CE93.4000403@lachy.id.au> <Pine.LNX.4.61.0504071037490.20461@dhalsim.dreamhost.com> <42550FFD.20201@annevankesteren.nl> <Pine.LNX.4.61.0504071050580.20461@dhalsim.dreamhost.com> <851c8d310504070356287eb4b1@mail.gmail.com> <Pine.LNX.4.61.0504071058300.20461@dhalsim.dreamhost.com> <851c8d3105040704092d099949@mail.gmail.com> <4d793a4ca44b70508a082e60c1264388@iki.fi> Message-ID: <851c8d3105040711474e8b3f0@mail.gmail.com> > > Or at the very least use something that would not confuse people into > > thinking that it is an > > application of SGML or XML. > > Do you want to replace "NONSGML" with "THIS-IS-NOT-SGML"? No, I want to replace <!DOCTYPE - with something completely different, the whole point that anything that looks like an SGML (or XHTML) doctype will confuse users into thinking that it is an application of SGML. I see no reason to continue only the odd model of rendering mode switching - especially without what this is exactly being defined in the spec. when as only new implementations will be written supporting WF2 a simple <html WHATversion="2"> like mechanism can be used, this will leave it in a much stronger position for going forward. Jim. From jim.ley at gmail.com Thu Apr 7 11:49:41 2005 From: jim.ley at gmail.com (Jim Ley) Date: Thu, 7 Apr 2005 19:49:41 +0100 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <521492f8273c953e36ca9b0957172b6c@iki.fi> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> <4252B643.6030308@lachy.id.au> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> <78f32994657502e0c7098780f8e6476b@iki.fi> <4254DA33.3020409@lachy.id.au> <521492f8273c953e36ca9b0957172b6c@iki.fi> Message-ID: <851c8d31050407114910d3eb35@mail.gmail.com> On Apr 7, 2005 6:59 PM, Henri Sivonen <hsivonen at iki.fi> wrote: > On Apr 7, 2005, at 09:58, Lachlan Hunt wrote: > I don't think SGML validation is part of What WG conformance > requirements. I thought Hixie has specifically said he doesn't bother > with DTDs. Hixie is simply the editor of the spec, this thread has shown clearly that many people contributing to the WHAT-WG work do use DTD's, indeed we already have a volunteer for creating a doctype, in fact it's only at this (supposedly) late stage that we've suddenly been told there's not one. Jim. From hsivonen at iki.fi Thu Apr 7 12:30:18 2005 From: hsivonen at iki.fi (Henri Sivonen) Date: Thu, 7 Apr 2005 22:30:18 +0300 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <851c8d31050407114910d3eb35@mail.gmail.com> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> <4252B643.6030308@lachy.id.au> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> <78f32994657502e0c7098780f8e6476b@iki.fi> <4254DA33.3020409@lachy.id.au> <521492f8273c953e36ca9b0957172b6c@iki.fi> <851c8d31050407114910d3eb35@mail.gmail.com> Message-ID: <1af9a4478fb947cc0098c0d011abb29a@iki.fi> On Apr 7, 2005, at 21:49, Jim Ley wrote: > this thread has shown clearly that many people contributing to the > WHAT-WG work do use DTD's To me it seemed that you argued that DTD validation is more useful than other conformance checks as long as the other checks are vaporware and Lachlan Hunt was theorizing that maybe someone might want to use OpenSP and that should be catered for. -- Henri Sivonen hsivonen at iki.fi http://hsivonen.iki.fi/ From jim.ley at gmail.com Thu Apr 7 12:52:44 2005 From: jim.ley at gmail.com (Jim Ley) Date: Thu, 7 Apr 2005 20:52:44 +0100 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <1af9a4478fb947cc0098c0d011abb29a@iki.fi> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> <78f32994657502e0c7098780f8e6476b@iki.fi> <4254DA33.3020409@lachy.id.au> <521492f8273c953e36ca9b0957172b6c@iki.fi> <851c8d31050407114910d3eb35@mail.gmail.com> <1af9a4478fb947cc0098c0d011abb29a@iki.fi> Message-ID: <851c8d31050407125264b3598e@mail.gmail.com> On Apr 7, 2005 8:30 PM, Henri Sivonen <hsivonen at iki.fi> wrote: > On Apr 7, 2005, at 21:49, Jim Ley wrote: > > > this thread has shown clearly that many people contributing to the > > WHAT-WG work do use DTD's > > To me it seemed that you argued that DTD validation is more useful than > other conformance checks as long as the other checks are vaporware >From which you can clearly conclude I do use DTD validation as part of my QA process. All the people who have said that DTD validation is absolutely useless haven't bothered to describe their QA processes at all. Maybe we could hear about these QA techniques rather than just saying how crap the existing tools are, rather than the sudden proposal to seriously reduce the amount of automated QA available to WHAT-WG adopters. If there was a different proposal on how WHAT-WG documents be QA'd then I'd certainly be happy to see DTD validation disappear. Jim. From ian at hixie.ch Thu Apr 7 13:22:50 2005 From: ian at hixie.ch (Ian Hickson) Date: Thu, 7 Apr 2005 20:22:50 +0000 (UTC) Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <851c8d31050407125264b3598e@mail.gmail.com> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> <78f32994657502e0c7098780f8e6476b@iki.fi> <4254DA33.3020409@lachy.id.au> <521492f8273c953e36ca9b0957172b6c@iki.fi> <851c8d31050407114910d3eb35@mail.gmail.com> <1af9a4478fb947cc0098c0d011abb29a@iki.fi> <851c8d31050407125264b3598e@mail.gmail.com> Message-ID: <Pine.LNX.4.61.0504072022250.20461@dhalsim.dreamhost.com> On Thu, 7 Apr 2005, Jim Ley wrote: > > From which you can clearly conclude I do use DTD validation as part of > my QA process. All the people who have said that DTD validation is > absolutely useless haven't bothered to describe their QA processes at > all. Nobody is stopping anyone from using DTDs. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From jim.ley at gmail.com Thu Apr 7 13:48:34 2005 From: jim.ley at gmail.com (Jim Ley) Date: Thu, 7 Apr 2005 21:48:34 +0100 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <Pine.LNX.4.61.0504072022250.20461@dhalsim.dreamhost.com> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> <78f32994657502e0c7098780f8e6476b@iki.fi> <4254DA33.3020409@lachy.id.au> <521492f8273c953e36ca9b0957172b6c@iki.fi> <851c8d31050407114910d3eb35@mail.gmail.com> <1af9a4478fb947cc0098c0d011abb29a@iki.fi> <851c8d31050407125264b3598e@mail.gmail.com> <Pine.LNX.4.61.0504072022250.20461@dhalsim.dreamhost.com> Message-ID: <851c8d3105040713487249a063@mail.gmail.com> On Apr 7, 2005 9:22 PM, Ian Hickson <ian at hixie.ch> wrote: > On Thu, 7 Apr 2005, Jim Ley wrote: > > > > From which you can clearly conclude I do use DTD validation as part of > > my QA process. All the people who have said that DTD validation is > > absolutely useless haven't bothered to describe their QA processes at > > all. > > Nobody is stopping anyone from using DTDs. If it's not an SGML applicaiton, you most certainly are. However, the main issue, is How are people going to ensure they're producing valid WHAT-WG documents? Your proposal is to throw away all the existing QA resources and leave a user with none, unless they happen to have the time and the resources to understand a lot of dense prose and author a DTD from it. Something which very few people are going to be able to do. So I'll ask once again, how do the WHAT-WG believe authors of WHAT-WG documents will produce conformant ones? Jim. From dolphinling at myrealbox.com Thu Apr 7 15:32:52 2005 From: dolphinling at myrealbox.com (dolphinling) Date: Thu, 07 Apr 2005 17:32:52 -0500 Subject: [whatwg] Re: <section> and headings and other threads In-Reply-To: <Pine.LNX.4.61.0504051411220.2016@dhalsim.dreamhost.com> References: <Pine.LNX.4.61.0503302359150.25644@dhalsim.dreamhost.com> <424BCBBE.2040308@cam.ac.uk> <424C9E03.9030107@inkedblade.net> <Pine.LNX.4.61.0504051411220.2016@dhalsim.dreamhost.com> Message-ID: <4255B514.8060506@myrealbox.com> Ian Hickson wrote: > On Thu, 25 Nov 2004, dolphinling wrote: > >><section> >> <h1>1st level header</h1> >> <p>content</p> >> <!-- section --> >> <!-- section --> >> <h3>3rd level header</h3> >> <p>content</p> >> <!-- /section --> >> <!-- /section --> >></section> > > > Disagreed; the <h3> simply gets treated as an <h2> in this case, IMHO. I > don't see the advantage of having deeper sections here. Suppose you have an outline like this: Section | +--A | | | +--B | | | | | +--C | | | | | +--D | | | +--E | | | +--F | | | +--G | +--H | +-----I | +-----J ...where I and J are the same level as C, D, F, and G. If there's no way to skip a heading level, then there's no way to convey the fact that they're of the same importance. One real-world example of this that I know of is http://www.mozilla.org/projects/nspr/reference/html/, take a look at chapter 3. Another example would be in taxonomy, where there are lots and lots of sub- and supercategories, but all species should obviously be the same heading level. In the absence of sub/superheadings (which IMO would be a much better solution, but possibly wouldn't be able to be backwards-compatible (or maybe they would, I haven't thought about it quite enough...)) there needs to be some way to skip levels. -- dolphinling <http://dolphinling.net/> From ian at hixie.ch Thu Apr 7 16:11:32 2005 From: ian at hixie.ch (Ian Hickson) Date: Thu, 7 Apr 2005 23:11:32 +0000 (UTC) Subject: [whatwg] Re: <section> and headings and other threads In-Reply-To: <4255B514.8060506@myrealbox.com> References: <Pine.LNX.4.61.0503302359150.25644@dhalsim.dreamhost.com> <424BCBBE.2040308@cam.ac.uk> <424C9E03.9030107@inkedblade.net> <Pine.LNX.4.61.0504051411220.2016@dhalsim.dreamhost.com> <4255B514.8060506@myrealbox.com> Message-ID: <Pine.LNX.4.61.0504072305410.20461@dhalsim.dreamhost.com> On Thu, 7 Apr 2005, dolphinling wrote: > > Suppose you have an outline like this: > > Section > | > +--A [...] > | | > | +--E > | | > | +--F > | | > | +--G > | > +--H > | > +-----I > | > +-----J > > ...where I and J are the same level as C, D, F, and G. Same level in what sense? > If there's no way to skip a heading level, then there's no way to convey > the fact that they're of the same importance. Well, there is one way: nesting <section>s. > One real-world example of this that I know of is > http://www.mozilla.org/projects/nspr/reference/html/, take a look at > chapter 3. Another example would be in taxonomy, where there are lots > and lots of sub- and supercategories, but all species should obviously > be the same heading level. I don't think it's "obvious". Indeed I don't think it's true -- while I could see an argument for consistent styling of the species, I don't consider them to be the same level. In the outline above, I consider I and J to be different levels from F and G. > In the absence of sub/superheadings (which IMO would be a much better > solution, but possibly wouldn't be able to be backwards-compatible (or > maybe they would, I haven't thought about it quite enough...)) there > needs to be some way to skip levels. There are subheadings in HTML5. See the <header> element. And there is a way to skip levels; the <section> element. Are those solutions satisfactory, or do you still want the rank of <h1>-<h6> to imply missing sections? -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From mpt at myrealbox.com Thu Apr 7 16:17:56 2005 From: mpt at myrealbox.com (Matthew Thomas) Date: Fri, 08 Apr 2005 11:17:56 +1200 Subject: [whatwg] <p> elements containing other block-level elements In-Reply-To: <42555C24.1010800@annevankesteren.nl> References: <Pine.LNX.4.61.0504051557200.2016@dhalsim.dreamhost.com> <4254DD87.7010604@annevankesteren.nl> <42555AB0.5070904@lachy.id.au> <42555C24.1010800@annevankesteren.nl> Message-ID: <4255BFA4.4010901@myrealbox.com> Anne van Kesteren wrote: >... >> Lists should not be classified as block level or inline level >> elements within the spec. > > I think they should. (Note that block and inline are different here from > the definition CSS applies to them.) That way they get another content > model that might be more suited for inline situations. You mean perhaps a content model like this? <p>For this recipe you need <ul><li>an egg</li>, <li>flour</li>, and <li>butter</li></ul>. Mix it all together and so forth.</p> I think such a content model would have exactly the same problem as Ian's semantically inferior example (<ul><li>an egg,</li> <li>flour, and</li> <li>butter.</li></ul>): no-one[1] would use it, because they wouldn't get any benefit. Most authors use <ul> and <ol> only because it's an easy way of achieving bulleted and numbered lists -- as shown by their willingness to run to <div> (or worse, <br>) for any list that they don't want bulleted. <p>It makes sense to allow bulleted/numbered lists inside paragraphs, for two reasons:<ul> <li>such lists are already used in typography</li> <li>they would have acceptable presentation in UAs that claim HTML4 support.</li> </ul>But as for inline lists, I think creating markup for them would be a waste of time.</p> Agreed with the rest of what you said, though. The content model for any block element allowed inside paragraphs should be tweaked to not allow paragraphs when it's inside a paragraph, because nested paragraphs don't make sense. [1] By which of course I mean "no-one except the sort of people who write about markup in their Weblogs". :-) -- Matthew Thomas http://mpt.net.nz/ From petrazi at sympatico.ca Thu Apr 7 17:21:10 2005 From: petrazi at sympatico.ca (Petrazickis) Date: Thu, 07 Apr 2005 20:21:10 -0400 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <42551D99.5010903@olav.dk> References: <42524E27.6060006@annevankesteren.nl> <42546FCE.5070900@lachy.id.au> <Pine.LNX.4.61.0504062335130.20461@dhalsim.dreamhost.com> <4254CE93.4000403@lachy.id.au> <Pine.LNX.4.61.0504071037490.20461@dhalsim.dreamhost.com> <42550FFD.20201@annevankesteren.nl> <Pine.LNX.4.61.0504071050580.20461@dhalsim.dreamhost.com> <851c8d310504070356287eb4b1@mail.gmail.com> <425512EE.9060205@annevankesteren.nl> <Pine.LNX.4.61.0504071103310.20461@dhalsim.dreamhost.com> <851c8d31050407041135d65f31@mail.gmail.com> <42551D99.5010903@olav.dk> Message-ID: <4255CE76.3000702@sympatico.ca> Olav Junker Kj?r wrote: > Jim Ley wrote: > >> Would a version parameter not be more appropriate, simpler, less >> confusing to users, easier to parse, easier to understand, doesn't >> confuse users into thinking that it's really an application of SGML. >> Doesn't cause problems for legacy user agents like the HTML Validator >> etc. etc. > > > Actually, the HTML element has a (deprecated!) version attribute, > which could be used for this purpose. I agree it feels cleaner than > using the doctype syntax. > > OTOH authors are going to use doctypes for the forseeable future > anyway, since they want to trigger standards compliant mode in > browsers, so we might as well put the doctype to some use. Wouldn't authors need to use an HTML4 or an XHTML doctype specifically to trigger the standards mode in IE6? In that case, specifying a doctype of our own would be counter-productive to the goal of compatibility with IE6. Perhaps we need to specify that any DOCTYPE will be ignored when there is an <html version="5.0"> present. -- Leons Petrazickis From ian at hixie.ch Thu Apr 7 18:00:41 2005 From: ian at hixie.ch (Ian Hickson) Date: Fri, 8 Apr 2005 01:00:41 +0000 (UTC) Subject: [whatwg] <p> elements containing other block-level elements In-Reply-To: <44b7186c56b20eae7e619cbd3cc3c1f8@iki.fi> References: <Pine.LNX.4.61.0504051557200.2016@dhalsim.dreamhost.com> <44b7186c56b20eae7e619cbd3cc3c1f8@iki.fi> Message-ID: <Pine.LNX.4.61.0504072329390.20461@dhalsim.dreamhost.com> On Thu, 7 Apr 2005, Henri Sivonen wrote: > > The problem with allowing the HTML flavor and XHTML flavor diverge is > that one could no longer use HTML and XHTML serializations > interchangeably in apps that do not suffer from the HTML DOM legacy and > otherwise could treat the HTML-XHTML distinction as something you deal > with on the IO boundary. > > I use Java XML tools for producing HTML. I use XHTML internally and > serialize as HTML. This works great with XHTML 1.0 and HTML 4.01. If the > HTML flavor of What WG HTML and the XHTML flavor diverge, I'd need to > spec that only an HTML-compatible subset of What WG XHTML that doesn't > nest elements in ways prohibited on the text/html side may be put into > an app that outputs text/html. This is a very interesting point. One possible hack is to say that when you serialise this kind of stuff to HTML, you have to wrap the problematic elements in <object> tags, so that for example this XML: <p> <ol>...</ol> </p> ...is serialised to HTML as: <p> <object><ol>...</ol></object> </p> ...or some such. That's rather ugly though, and would make serialising a more costly process. Or we could just say that people should pretend that browsers will parse it as intended: <p> <ol>...</ol> ...but that seems unclean at best (and won't style right either). I don't know what the good solution is. On the other hand, there already are other big differences between HTML5 and XHTML5 (or whatever we end up calling them). For instance, in the XHTML variant you can use embedded MathML. Is this just a case like that? > I don't know whether this is a reason enough not to allow the XHTML > flavor diverge, but I think there is a need to at least specifically > flag anything that is not text/html-compatible. Yeah, there will definitely need to be summaries of this kind of information somewhere in the spec. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From michael at quuxo.com Thu Apr 7 18:33:32 2005 From: michael at quuxo.com (Michael Gratton) Date: Fri, 8 Apr 2005 11:03:32 +0930 Subject: [whatwg] <p> elements containing other block-level elements In-Reply-To: <4255BFA4.4010901@myrealbox.com> References: <Pine.LNX.4.61.0504051557200.2016@dhalsim.dreamhost.com> <4254DD87.7010604@annevankesteren.nl> <42555AB0.5070904@lachy.id.au> <42555C24.1010800@annevankesteren.nl> <4255BFA4.4010901@myrealbox.com> Message-ID: <293809e7622b45b201d5fc8abff2a14e@quuxo.com> On 08/04/2005, at 8:47, Matthew Thomas wrote: > <p>It makes sense to allow bulleted/numbered lists inside paragraphs, > for two reasons:<ul> > <li>such lists are already used in typography</li> > <li>they would have acceptable presentation in UAs that claim HTML4 > support.</li> > </ul>But as for inline lists, I think creating markup for them would > be a waste of time.</p> I wonder if having nested block elements could make CSS author's life harder? As was pointed out elsewhere on this thread (list?), existing UAs would implicitly close any outer block elements upon encountering a nested block element. So the example above would be treated as: <p>...</p> <ul>...</ul> <p>...</p> Or similar. WF2/HTML5 UAs wouldn't do this, of course. If a CSS author for example specified padding for both the P and the UL elements, then wouldn't the results would be different depending on the UA's support for WF2/HTML5? Depending on how the legacy browser works, it might not be possible to work around this problem using child/descendent selectors. Mike. -- Michael Gratton, Software Architect. Quuxo Software <http://web.quuxo.com/> -------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 186 bytes Desc: This is a digitally signed message part URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20050408/ffb7f2c9/attachment-0001.pgp> From lachlan.hunt at lachy.id.au Thu Apr 7 19:28:11 2005 From: lachlan.hunt at lachy.id.au (Lachlan Hunt) Date: Fri, 08 Apr 2005 12:28:11 +1000 Subject: [whatwg] <p> elements containing other block-level elements In-Reply-To: <Pine.LNX.4.61.0504072329390.20461@dhalsim.dreamhost.com> References: <Pine.LNX.4.61.0504051557200.2016@dhalsim.dreamhost.com> <44b7186c56b20eae7e619cbd3cc3c1f8@iki.fi> <Pine.LNX.4.61.0504072329390.20461@dhalsim.dreamhost.com> Message-ID: <4255EC3B.9030705@lachy.id.au> Ian Hickson wrote: > On Thu, 7 Apr 2005, Henri Sivonen wrote: > >>The problem with allowing the HTML flavor and XHTML flavor diverge is >>that one could no longer use HTML and XHTML serializations >>interchangeably in apps that do not suffer from the HTML DOM legacy and >>otherwise could treat the HTML-XHTML distinction as something you deal >>with on the IO boundary. >> >>I use Java XML tools for producing HTML. I use XHTML internally and >>serialize as HTML. This works great with XHTML 1.0 and HTML 4.01. If the >>HTML flavor of What WG HTML and the XHTML flavor diverge, I'd need to >>spec that only an HTML-compatible subset of What WG XHTML that doesn't >>nest elements in ways prohibited on the text/html side may be put into >>an app that outputs text/html. I don't think it's necessary to make HTML and XHTML diverge with relation to the element content models. I think the spec should just provide notes about backwards compatibility for older UAs that won't support such constructs properly; however, they will degrade gracefully. New UAs could be updated to handle <p><ol>...</ol></p> correctly (when an HTML5 doctype is used) as text/html. So, this would produce the following DOM for a current UA: * (any parent element) +-P +-OL But for a new UA, it would produce (just like an XHTML UA will) * +-P +-OL However, I realise that may cause issues with supporting existing HTML4 documents, as it would require further DOCTYPE sniffing (or a proper SGML implementation that reads the DOCTYPE) to produce the correct DOMs in each case, but it might be a solution worth considering. > One possible hack is to say that when you serialise this kind of stuff to > HTML, you have to wrap the problematic elements in <object> tags, so that > for example this XML: > ... > <p> > <object><ol>...</ol></object> > </p> Isn't that just abuse of somewhat semantic element (representing external content that should be embedded within the document), for a completely non-semantic hack? If it were this, it would be more acceptable <p>... <object type="image/png" data="list.png"><ol>...</ol></object> <p> > On the other hand, there already are other big differences between HTML5 > and XHTML5 (or whatever we end up calling them). Calling it XHTML5 would be very confusing, as people won't understand that this version is on a track and for a purpose that is different from XHTML2. I'd call it something like (X)HTML Applications 1.0 (maybe it could be shortened to XHTML Apps and HTML Apps 1, or (even shorter) HAppy 1.0). That name would, of course, include web-apps, web-forms and web-controls. > For instance, in the XHTML variant you can use embedded MathML. > Is this just a case like that? I don't think so. MathML can't be used in HTML because there are no namespaces. Whereas, the only reason <p><ol/></p> can't be used in HTML is for bugwards compatibility. -- Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox From lachlan.hunt at lachy.id.au Thu Apr 7 23:23:31 2005 From: lachlan.hunt at lachy.id.au (Lachlan Hunt) Date: Fri, 08 Apr 2005 16:23:31 +1000 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <521492f8273c953e36ca9b0957172b6c@iki.fi> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> <4252B643.6030308@lachy.id.au> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> <78f32994657502e0c7098780f8e6476b@iki.fi> <4254DA33.3020409@lachy.id.au> <521492f8273c953e36ca9b0957172b6c@iki.fi> Message-ID: <42562363.8050400@lachy.id.au> Henri Sivonen wrote: > On Apr 7, 2005, at 09:58, Lachlan Hunt wrote: >> There's no reason why a full conformance checker couldn't be based on >> OpenSP. > > It would be prudent not to use OpenSP in order to avoid accidentally > allowing SGMLisms that are alien to real-world tag soup. If I ever get around to writing any form of conformance checker, true SGML validation (most likely using OpenSP) or XML validation (probably using Xerces or other XML parser) is at the top of my list. Personally, I probably wouldn't make use of a full conformance checker too often during my normal publishing process, as I understand semantic documents and most likely wouldn't end up writing non-conformant documents in that regard anyway. However, I do make mistakes and forget to close elements, misspell attributes and tag-names or whatever, in which case an SGML validator catches most of those mistakes for me. Yes, I know there are some things like conditionally required attributes that cannot be expressed by a DTD, but that doesn't make _true SGML or XML_ validation any less of a *very useful conformance tool*. >> Infact, it would probably be a good idea for them to do so, since then >> they'll also be real validators too, which is part of the conformance >> requirements. > > I don't think SGML validation is part of What WG conformance > requirements. Considering it seems to be part of the conformance criteria, | Conformance checkers *must* verify that a document conforms to the | applicable conformance criteria described in this specification... | | The term "validation" specifically refers to a subset of conformance | checking... | | 1. Criteria that can be expressed in a DTD. validation is a critical part of conformance checking. > I thought Hixie has specifically said he doesn't bother with DTDs. Just because his authoring practices may not involve their use, doesn't mean many other authors don't make use of them. As real usecase for DTD validation, consider this. There are increasing calls for CMSs to produce strictly conformant markup. There have been many complaints that such conformance is not enforced, which results in many invalid and non-conformant websites. Users should not be required to check all of these conformance criteria manually before submitting content through a CMS, as experience shows that simply doesn't happen. If CMSs are ever going to enforce strinctly conformant code, then DTD validation will be a core component of that process. Why re-invent the wheel when it comes to that, when a perfectly suitable and proven method already exists? Experience has shown, with all the lints available, that validation/conformance checking without a DTD is often incorrect, which makes them very useless conformance tools. This is why HTML must remain an application of SGML, the XHTML version *must* be a *valid* application of XML, and why DTDs are so important. The only thing we are waiting for in this field is CMSs that actually do enforce conformance, which we won't have a chance with if DTDs (or Schemas for XML) are not retained. -- Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox From hsivonen at iki.fi Fri Apr 8 00:18:54 2005 From: hsivonen at iki.fi (Henri Sivonen) Date: Fri, 8 Apr 2005 10:18:54 +0300 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <4255CE76.3000702@sympatico.ca> References: <42524E27.6060006@annevankesteren.nl> <42546FCE.5070900@lachy.id.au> <Pine.LNX.4.61.0504062335130.20461@dhalsim.dreamhost.com> <4254CE93.4000403@lachy.id.au> <Pine.LNX.4.61.0504071037490.20461@dhalsim.dreamhost.com> <42550FFD.20201@annevankesteren.nl> <Pine.LNX.4.61.0504071050580.20461@dhalsim.dreamhost.com> <851c8d310504070356287eb4b1@mail.gmail.com> <425512EE.9060205@annevankesteren.nl> <Pine.LNX.4.61.0504071103310.20461@dhalsim.dreamhost.com> <851c8d31050407041135d65f31@mail.gmail.com> <42551D99.5010903@olav.dk> <4255CE76.3000702@sympatico.ca> Message-ID: <4a00dff456500be7f31696555e2f0da8@iki.fi> On Apr 8, 2005, at 03:21, Petrazickis wrote: > Wouldn't authors need to use an HTML4 or an XHTML doctype specifically > to trigger the standards mode in IE6? No. The proposed doctype <!DOCTYPE html PUBLIC "-//WHATWG//NONSGML HTML5//EN"> activates the standards mode in IE6. http://www.macsanomat.com/%7Ehsivonen/test-quirks.php? doctype=%3C%21DOCTYPE+html+PUBLIC+%22- %2F%2FWHATWG%2F%2FNONSGML+HTML5%2F%2FEN%22%3E -- Henri Sivonen hsivonen at iki.fi http://hsivonen.iki.fi/ From hsivonen at iki.fi Fri Apr 8 00:29:52 2005 From: hsivonen at iki.fi (Henri Sivonen) Date: Fri, 8 Apr 2005 10:29:52 +0300 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <42562363.8050400@lachy.id.au> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> <4252B643.6030308@lachy.id.au> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> <78f32994657502e0c7098780f8e6476b@iki.fi> <4254DA33.3020409@lachy.id.au> <521492f8273c953e36ca9b0957172b6c@iki.fi> <42562363.8050400@lachy.id.au> Message-ID: <32130a61ba34c8ada9f4a431d879bdef@iki.fi> On Apr 8, 2005, at 09:23, Lachlan Hunt wrote: > If I ever get around to writing any form of conformance checker, true > SGML validation (most likely using OpenSP) or XML validation (probably > using Xerces or other XML parser) is at the top of my list. If I ever got around to it, DTD validation wouldn't be my approach. I'd use Jing with Relax NG and a hand-written SAX filter for checking what Jing cannot check. (text/html could be handled by substituting a parser that inferred optional tags and appeared to the app as a parser parsing XHTML--like TagSoup without error recovery.) > | 1. Criteria that can be expressed in a DTD. > > validation is a critical part of conformance checking. You could check the same criteria either manually or using Relax NG. Using DTDs is not required. > If CMSs are ever going to enforce strinctly conformant code, then DTD > validation will be a core component of that process. Why bother with DTDs now that Relax NG exists? -- Henri Sivonen hsivonen at iki.fi http://hsivonen.iki.fi/ From jim.ley at gmail.com Fri Apr 8 01:05:01 2005 From: jim.ley at gmail.com (Jim Ley) Date: Fri, 8 Apr 2005 09:05:01 +0100 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <4a00dff456500be7f31696555e2f0da8@iki.fi> References: <42524E27.6060006@annevankesteren.nl> <42550FFD.20201@annevankesteren.nl> <Pine.LNX.4.61.0504071050580.20461@dhalsim.dreamhost.com> <851c8d310504070356287eb4b1@mail.gmail.com> <425512EE.9060205@annevankesteren.nl> <Pine.LNX.4.61.0504071103310.20461@dhalsim.dreamhost.com> <851c8d31050407041135d65f31@mail.gmail.com> <42551D99.5010903@olav.dk> <4255CE76.3000702@sympatico.ca> <4a00dff456500be7f31696555e2f0da8@iki.fi> Message-ID: <851c8d3105040801051334945e@mail.gmail.com> On Apr 8, 2005 8:18 AM, Henri Sivonen <hsivonen at iki.fi> wrote: > No. The proposed doctype <!DOCTYPE html PUBLIC "-//WHATWG//NONSGML > HTML5//EN"> activates the standards mode in IE6. The proposed string that MUST appear as the first line of a WHAT-WG document is... please do not call it a doctype unless it is a doctype, see even people on the list are confused by using this! Jim. From hsivonen at iki.fi Fri Apr 8 01:18:00 2005 From: hsivonen at iki.fi (Henri Sivonen) Date: Fri, 8 Apr 2005 11:18:00 +0300 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <851c8d3105040801051334945e@mail.gmail.com> References: <42524E27.6060006@annevankesteren.nl> <42550FFD.20201@annevankesteren.nl> <Pine.LNX.4.61.0504071050580.20461@dhalsim.dreamhost.com> <851c8d310504070356287eb4b1@mail.gmail.com> <425512EE.9060205@annevankesteren.nl> <Pine.LNX.4.61.0504071103310.20461@dhalsim.dreamhost.com> <851c8d31050407041135d65f31@mail.gmail.com> <42551D99.5010903@olav.dk> <4255CE76.3000702@sympatico.ca> <4a00dff456500be7f31696555e2f0da8@iki.fi> <851c8d3105040801051334945e@mail.gmail.com> Message-ID: <b8aee879bcbe9c114a4641f86c50e8f9@iki.fi> On Apr 8, 2005, at 11:05, Jim Ley wrote: > The proposed string that MUST appear as the first line of a WHAT-WG > document is... please do not call it a doctype unless it is a doctype, > see even people on the list are confused by using this! Well, it could be defined as a tag soup construct called "doctype", which is neither an SGML doctype nor an XML doctype. :-) -- Henri Sivonen hsivonen at iki.fi http://hsivonen.iki.fi/ From fora at annevankesteren.nl Fri Apr 8 01:44:44 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Fri, 08 Apr 2005 10:44:44 +0200 Subject: [whatwg] <p> elements containing other block-level elements In-Reply-To: <293809e7622b45b201d5fc8abff2a14e@quuxo.com> References: <Pine.LNX.4.61.0504051557200.2016@dhalsim.dreamhost.com> <4254DD87.7010604@annevankesteren.nl> <42555AB0.5070904@lachy.id.au> <42555C24.1010800@annevankesteren.nl> <4255BFA4.4010901@myrealbox.com> <293809e7622b45b201d5fc8abff2a14e@quuxo.com> Message-ID: <4256447C.3010706@annevankesteren.nl> Michael Gratton wrote: > I wonder if having nested block elements could make CSS author's life > harder? No. > As was pointed out elsewhere on this thread (list?), existing UAs would > implicitly close any outer block elements upon encountering a nested > block element. So the example above would be treated as: > > <p>...</p> > <ul>...</ul> > <p>...</p> > > Or similar. WF2/HTML5 UAs wouldn't do this, of course. No, that is not true. We are talking about the XML situation here. Not about the tag soup situation. In XML your markup is treated as you write it. -- Anne van Kesteren <http://annevankesteren.nl/> From fora at annevankesteren.nl Fri Apr 8 01:49:55 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Fri, 08 Apr 2005 10:49:55 +0200 Subject: [whatwg] <p> elements containing other block-level elements In-Reply-To: <4255EC3B.9030705@lachy.id.au> References: <Pine.LNX.4.61.0504051557200.2016@dhalsim.dreamhost.com> <44b7186c56b20eae7e619cbd3cc3c1f8@iki.fi> <Pine.LNX.4.61.0504072329390.20461@dhalsim.dreamhost.com> <4255EC3B.9030705@lachy.id.au> Message-ID: <425645B3.6030009@annevankesteren.nl> Lachlan Hunt wrote: > New UAs could be updated to handle <p><ol>...</ol></p> correctly (when > an HTML5 doctype is used) as text/html. Ouch, that would break everything and no UA would agree with such a descision. Making even more tag soup hacks would be very bad for the real world. > <p>... > <object type="image/png" data="list.png"><ol>...</ol></object> > <p> Why would you replace text with an image here? >> For instance, in the XHTML variant you can use embedded MathML. >> Is this just a case like that? > > I don't think so. MathML can't be used in HTML because there are no > namespaces. Whereas, the only reason <p><ol/></p> can't be used in HTML > is for bugwards compatibility. I assume you mean backwards compatibility as the HTML4 specification states how this should work. I think MathML is an excellent example of something that is easy to introduce in XHTML documents but near impossible in HTML documents (although you could use the OBJECT element with the data URI scheme). -- Anne van Kesteren <http://annevankesteren.nl/> From fora at annevankesteren.nl Fri Apr 8 01:51:20 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Fri, 08 Apr 2005 10:51:20 +0200 Subject: [whatwg] <p> elements containing other block-level elements In-Reply-To: <Pine.LNX.4.61.0504072329390.20461@dhalsim.dreamhost.com> References: <Pine.LNX.4.61.0504051557200.2016@dhalsim.dreamhost.com> <44b7186c56b20eae7e619cbd3cc3c1f8@iki.fi> <Pine.LNX.4.61.0504072329390.20461@dhalsim.dreamhost.com> Message-ID: <42564608.1060901@annevankesteren.nl> Ian Hickson wrote: >>I don't know whether this is a reason enough not to allow the XHTML >>flavor diverge, but I think there is a need to at least specifically >>flag anything that is not text/html-compatible. > > Yeah, there will definitely need to be summaries of this kind of > information somewhere in the spec. You removed it now but I think that the 'XML content model' approach made it quite obvious that is not the HTML content model. -- Anne van Kesteren <http://annevankesteren.nl/> From fora at annevankesteren.nl Fri Apr 8 01:53:29 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Fri, 08 Apr 2005 10:53:29 +0200 Subject: [whatwg] <p> elements containing other block-level elements In-Reply-To: <4255BFA4.4010901@myrealbox.com> References: <Pine.LNX.4.61.0504051557200.2016@dhalsim.dreamhost.com> <4254DD87.7010604@annevankesteren.nl> <42555AB0.5070904@lachy.id.au> <42555C24.1010800@annevankesteren.nl> <4255BFA4.4010901@myrealbox.com> Message-ID: <42564689.9030808@annevankesteren.nl> Matthew Thomas wrote: >>> Lists should not be classified as block level or inline level >>> elements within the spec. >> >> I think they should. (Note that block and inline are different here from >> the definition CSS applies to them.) That way they get another content >> model that might be more suited for inline situations. > > You mean perhaps a content model like this? <p>For this recipe you need > <ul><li>an egg</li>, <li>flour</li>, and <li>butter</li></ul>. Mix it > all together and so forth.</p> 'an' should be outside the LI element I guess and I'm not sure if this is the right approach but it looks cool. (Agreed that only a few would use it.) -- Anne van Kesteren <http://annevankesteren.nl/> From ian at hixie.ch Fri Apr 8 03:14:07 2005 From: ian at hixie.ch (Ian Hickson) Date: Fri, 8 Apr 2005 10:14:07 +0000 (UTC) Subject: [whatwg] <p> elements containing other block-level elements In-Reply-To: <4255EC3B.9030705@lachy.id.au> References: <Pine.LNX.4.61.0504051557200.2016@dhalsim.dreamhost.com> <44b7186c56b20eae7e619cbd3cc3c1f8@iki.fi> <Pine.LNX.4.61.0504072329390.20461@dhalsim.dreamhost.com> <4255EC3B.9030705@lachy.id.au> Message-ID: <Pine.LNX.4.61.0504081005310.20461@dhalsim.dreamhost.com> On Fri, 8 Apr 2005, Lachlan Hunt wrote: > > New UAs could be updated to handle <p><ol>...</ol></p> correctly (when an > HTML5 doctype is used) as text/html. They could, but unfortunately the reality is they won't. Just introducing new elements in their HTML parsers gives implementors headaches; I wouldn't dare suggest they should introduce yet another parsing mode. > > One possible hack is to say that when you serialise this kind of stuff > > to HTML, you have to wrap the problematic elements in <object> tags, > > so that for example this XML: > > > > <p> <object><ol>...</ol></object> </p> > > Isn't that just abuse of somewhat semantic element (representing > external content that should be embedded within the document), for a > completely non-semantic hack? Yeah; like I said, it's a hack. > > For instance, in the XHTML variant you can use embedded MathML. Is > > this just a case like that? > > I don't think so. MathML can't be used in HTML because there are no > namespaces. Whereas, the only reason <p><ol/></p> can't be used in HTML > is for bugwards compatibility. Effectively, yes, if you consider HTML to be an SGML application. (Note that HTML1 was not an SGML application; HTML2 was retrofitted into the SGML world for theoretical reasons, but the real world never really caught up with that theory.) In practice, though, the reason is the same as for MathML: The XML parser is a generic parser, the HTML parser is not. We can change content models and add concepts like namespaces to the XML parser easily; we can at best add new elements when it comes to the HTML parser. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From ian at hixie.ch Fri Apr 8 03:27:33 2005 From: ian at hixie.ch (Ian Hickson) Date: Fri, 8 Apr 2005 10:27:33 +0000 (UTC) Subject: [whatwg] <p> elements containing other block-level elements In-Reply-To: <4255BFA4.4010901@myrealbox.com> References: <Pine.LNX.4.61.0504051557200.2016@dhalsim.dreamhost.com> <4254DD87.7010604@annevankesteren.nl> <42555AB0.5070904@lachy.id.au> <42555C24.1010800@annevankesteren.nl> <4255BFA4.4010901@myrealbox.com> Message-ID: <Pine.LNX.4.61.0504081015180.20461@dhalsim.dreamhost.com> On Fri, 8 Apr 2005, Matthew Thomas wrote: > > <p>It makes sense to allow bulleted/numbered lists inside paragraphs, for two > reasons:<ul> > <li>such lists are already used in typography</li> > [see below] > </ul>But as for inline lists, I think creating markup for them would be a > waste of time.</p> Agreed. > <li>they would have acceptable presentation in UAs that claim HTML4 > support.</li> Even in HTML5 UAs, in the HTML parser this: <p><ul><li></li></ul></p> ...will become this: <p></p><ul><li></li></ul> That's part of the problems. To get truly nested elements, only the XML parser would be an option. (Well, that or a scripted solution that poked the elements into the DOM in the right place.) The question is whether: a) We don't allow any of this. b) We allow it in XML and the DOM but disallow it in the HTML serialisation c) We allow it in XML and the DOM and say that authors may do it in HTML but that parsers must (effectively) misunderstand them d) We allow it in XML and the DOM and say that authors may use the <object> hack to us it in HTML I don't see any other realistic options. I don't like c. I'm reluctant to do a. For me, that leaves b and d. Of b and d I prefer b. That, along with embedding MathML and other XML vocabularies, would be a reason to migrate to XML, if we consider that a good thing. At the end of the day this would just be saying "in XML you can also do this". Avoiding those options for people who serialise to both XML and HTML is relatively easy, just like avoiding xml:base and MathML. > The content model for any block element allowed inside paragraphs should > be tweaked to not allow paragraphs when it's inside a paragraph, because > nested paragraphs don't make sense. Agreed. (Including inside nested <tables> and <li>s, I assume? But obviously excluding inside nested <blockquote>s.) -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From lachlan.hunt at lachy.id.au Fri Apr 8 04:05:21 2005 From: lachlan.hunt at lachy.id.au (Lachlan Hunt) Date: Fri, 08 Apr 2005 21:05:21 +1000 Subject: [whatwg] <p> elements containing other block-level elements In-Reply-To: <Pine.LNX.4.61.0504081005310.20461@dhalsim.dreamhost.com> References: <Pine.LNX.4.61.0504051557200.2016@dhalsim.dreamhost.com> <44b7186c56b20eae7e619cbd3cc3c1f8@iki.fi> <Pine.LNX.4.61.0504072329390.20461@dhalsim.dreamhost.com> <4255EC3B.9030705@lachy.id.au> <Pine.LNX.4.61.0504081005310.20461@dhalsim.dreamhost.com> Message-ID: <42566571.9020300@lachy.id.au> Ian Hickson wrote: > (Note that HTML1 was not an SGML application; HTML2 was retrofitted into the > SGML world for theoretical reasons, but the real world never really caught > up with that theory.) Yes, I'm aware of what HTML 1 was (Martin Bryan explains it well [1], for anyone that doesn't know) and, IMO, it was a very good decision to formalise it as SGML. However, as you say, the real world never caught on, and, sadly, probably never will (at least not in any mainstream browser). :-( > In practice, though, the reason is the same as for MathML: The XML parser > is a generic parser, the HTML parser is not. I assume you mean tag-soup parser? :-) Yes, I understand the problem. > We can change content models and add concepts like namespaces to the XML > parser easily; we can at best add new elements when it comes to the HTML > parser. Fair enough. I guess this is one reason why XHTML is so good ? the mistakes of the past with SGML/HTML won't be repeated, and progress won't be held up so much by buggy browsers. it's just a pity it's not yet supported in IE. I'm also starting to understand why you don't consider HTML an application of SGML, although I still don't like it. :-| [1] http://www.is-thought.co.uk/book/home.htm -- Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox From lachlan.hunt at lachy.id.au Fri Apr 8 04:10:04 2005 From: lachlan.hunt at lachy.id.au (Lachlan Hunt) Date: Fri, 08 Apr 2005 21:10:04 +1000 Subject: [whatwg] <p> elements containing other block-level elements In-Reply-To: <425645B3.6030009@annevankesteren.nl> References: <Pine.LNX.4.61.0504051557200.2016@dhalsim.dreamhost.com> <44b7186c56b20eae7e619cbd3cc3c1f8@iki.fi> <Pine.LNX.4.61.0504072329390.20461@dhalsim.dreamhost.com> <4255EC3B.9030705@lachy.id.au> <425645B3.6030009@annevankesteren.nl> Message-ID: <4256668C.7030201@lachy.id.au> Anne van Kesteren wrote: > Lachlan Hunt wrote: >> <p>... >> <object type="image/png" data="list.png"><ol>...</ol></object> >> <p> > > Why would you replace text with an image here? It was an example of how the markup Ian provided would not be an abuse of the object element. However, there is a perfectly valid reason for it. The image could be a scanned in image of a handwritten shopping list (or whatever), and the list within is just the alternate content. -- Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox From lachlan.hunt at lachy.id.au Fri Apr 8 04:54:09 2005 From: lachlan.hunt at lachy.id.au (Lachlan Hunt) Date: Fri, 08 Apr 2005 21:54:09 +1000 Subject: [whatwg] <p> elements containing other block-level elements In-Reply-To: <Pine.LNX.4.61.0504081015180.20461@dhalsim.dreamhost.com> References: <Pine.LNX.4.61.0504051557200.2016@dhalsim.dreamhost.com> <4254DD87.7010604@annevankesteren.nl> <42555AB0.5070904@lachy.id.au> <42555C24.1010800@annevankesteren.nl> <4255BFA4.4010901@myrealbox.com> <Pine.LNX.4.61.0504081015180.20461@dhalsim.dreamhost.com> Message-ID: <425670E1.20107@lachy.id.au> Ian Hickson wrote: > To get truly nested elements, only the XML parser would be an option. > > The question is whether: > > a) We don't allow any of this. I don't think progress should be held up any more than it already is by broken browsers, so let's not let a limitation with HTML affect an XHTML implementation. > b) We allow it in XML and the DOM but disallow it in the HTML > serialisation Yes, this makes the most sense to me. > c) We allow it in XML and the DOM and say that authors may do it in HTML > but that parsers must (effectively) misunderstand them It makes no sense to allow authors to do something and then force all implementations to remain intentionally broken. > d) We allow it in XML and the DOM and say that authors may use the > <object> hack to us it in HTML This is exactly the same as b, except it's encouraging the use of non-semantic hacks. > I don't see any other realistic options. I don't like c. I'm reluctant to > do a. For me, that leaves b and d. That leaves b as the only valid choice, IMHO. > Of b and d I prefer b. That, along with embedding MathML and other XML > vocabularies, would be a reason to migrate to XML, if we consider that a > good thing. Absolutely! Given the incredibly broken SGML/HTML implementations that will never get any better, Migrating to XML is certainly the best way to actually progress into the future. I'm sure no-one wants to be stuck with HTML forever, which is really more of a lost-cause when it comes to any real enhancements. >>The content model for any block element allowed inside paragraphs should >>be tweaked to not allow paragraphs when it's inside a paragraph, because >>nested paragraphs don't make sense. > > Agreed. (Including inside nested <tables> and <li>s, I assume? But > obviously excluding inside nested <blockquote>s.) I don't think the spec should limit nested content too much because, as is shown by the <p><blockquote><p/></blockquote></p> example, there are valid reasons to nest paragraphs, and possibly others we haven't thought of. Also, as history has shown, HTML4 never thought lists within paragraphs would be needed, though they are now allowed. By placing too much restriction on the content models, we risk locking out legitimate use-cases which we haven't thought of, but which authors may find in the future. I'm not saying we should just allow anything within anything, but we should be careful about being too restrictive. -- Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox From mpt at myrealbox.com Fri Apr 8 05:28:52 2005 From: mpt at myrealbox.com (Matthew Thomas) Date: Sat, 09 Apr 2005 00:28:52 +1200 Subject: [whatwg] <p> elements containing other block-level elements In-Reply-To: <Pine.LNX.4.61.0504081015180.20461@dhalsim.dreamhost.com> References: <Pine.LNX.4.61.0504051557200.2016@dhalsim.dreamhost.com> <4254DD87.7010604@annevankesteren.nl> <42555AB0.5070904@lachy.id.au> <42555C24.1010800@annevankesteren.nl> <4255BFA4.4010901@myrealbox.com> <Pine.LNX.4.61.0504081015180.20461@dhalsim.dreamhost.com> Message-ID: <42567904.8010808@myrealbox.com> Ian Hickson wrote: >... > > <li>they would have acceptable presentation in UAs that claim HTML4 > > support.</li> > > Even in HTML5 UAs, in the HTML parser this: > > <p><ul><li></li></ul></p> > > ....will become this: > > <p></p><ul><li></li></ul> That's why I said "acceptable", rather than "perfect". (Others misunderstood what I meant too, so I should have used "readable". Access via the DOM is something I personally care less about.) >... > Of b and d I prefer b. That, along with embedding MathML and other XML > vocabularies, would be a reason to migrate to XML, if we consider that a > good thing. It will perhaps be a good thing once a future version of XML gives authors the option of more graceful error-handling. >... > > The content model for any block element allowed inside paragraphs should > > be tweaked to not allow paragraphs when it's inside a paragraph, because > > nested paragraphs don't make sense. > > Agreed. (Including inside nested <tables> and <li>s, I assume? Yes. (<li>s were the main element I was thinking of. There are lists where each item is one or more paragraphs, lists that are completely inside paragraphs, and lists that have nothing to do with paragraphs. Those sets don't intersect.) > But obviously excluding inside nested <blockquote>s.) What? I can't think of any legitimate use case for that exception. -- Matthew Thomas http://mpt.net.nz/ From hsivonen at iki.fi Fri Apr 8 05:34:38 2005 From: hsivonen at iki.fi (Henri Sivonen) Date: Fri, 08 Apr 2005 15:34:38 +0300 Subject: [whatwg] <p> elements containing other block-level elements In-Reply-To: <Pine.LNX.4.61.0504081015180.20461@dhalsim.dreamhost.com> References: <Pine.LNX.4.61.0504051557200.2016@dhalsim.dreamhost.com> <4254DD87.7010604@annevankesteren.nl> <42555AB0.5070904@lachy.id.au> <42555C24.1010800@annevankesteren.nl> <4255BFA4.4010901@myrealbox.com> <Pine.LNX.4.61.0504081015180.20461@dhalsim.dreamhost.com> Message-ID: <42567A5E.50307@iki.fi> Ian Hickson wrote: > At the end of the day this would just be saying "in XML you can also do > this". Avoiding those options for people who serialise to both XML and > HTML is relatively easy, just like avoiding xml:base and MathML. Detecting stuff in non-XHTML namespaces is significantly easier than detecting incompatible use of XHTML elements. -- Henri Sivonen hsivonen at iki.fi http://hsivonen.iki.fi/ From lachlan.hunt at lachy.id.au Fri Apr 8 07:01:35 2005 From: lachlan.hunt at lachy.id.au (Lachlan Hunt) Date: Sat, 09 Apr 2005 00:01:35 +1000 Subject: [whatwg] [WF2] Fixing Repetition Template Degradation in IE without Scripting Message-ID: <42568EBF.6060003@lachy.id.au> Hi, I've just done some experements with the repetition templates, and tried to devise a way to help IE end up with usable submit buttons, rather than useless push buttons. The solution I came up with involves a little (read: extremely evil and dirty) hack with IE's proprietary conditional comments. However, it doesn't quite work as expected, and I thought someone may be able to figure out a way to extend this idea a little more to make it work. For the remove button, this displays the correct button for IE 5 and 6. <!--[if IE 1]>--><button type="remove" name="remove" value="[player]"> Remove</button><!--<![endif]--> <!--[if IE]><button name="remove" value="[player]" type="submit"> Remove</button><![endif]--> Note: This: <!--[if IE 1]>-->...<!--<![endif]--> is a validating version of the so-called "downlevel-revealed" conditional comment: <![if expression]> HTML <![endif]> (which should probaby be nick-named "uplevel-revealed" :-)). For the add button, this code works as intended, but still buggy like remove is (as I will explain later): <!--[if IE 1]>--><button type="add" name="add" value="add"> Add Player</button><!--<![endif]--> <!--[if IE]><button type="submit" name="add" value="add"> Add Player</button><![endif]--> Ok, the problem with the solution is that IE still sends the name/value pair for both the add and remove button regardless of which one was clicked (ie. "successful") and sends the button label as the value, rather than the value attribute. This can be seen by looking at the resultant query string from the submission: ...&remove=Remove+IE&add=Add+Player+%28IE%29 This seems to works as intended for the add button because the add name/value pair must be detected and used in the server-side script, before the remove. So, it ends up adding a field regardless of which button was pressed. The only solution I could think of was to change the <button>s to <input>s, however the buttons would then be labeled with the text from the value attribute (ie. "[player]" and "add" for remove and add buttons, respectively). And changing that value attribute, at least for the remove button, would stop server-side script form working correctly to remove the correct fields. Lastly, for anyone wondering how this solution would work after IE7 is released, and if IE fixes their <button> implementation, then the conditonal comments can be altered as follows: Change: <!--[if IE 1]>--> To: <!--[if IE 7]><!-- -- --> Change: <!--[if IE]> To: <!--[if lt IE 7]> However, even without these alterations the IE 5/6 version of the buttons should still work in IE7 anyway. Without the special <!-- -- --> pseudo-comment [1], IE7 would end up outputting the "-->" from the original "if IE 1" version. The 3 double-hyphens "--" ensures that the enitire comment remains valid in SGML. [1] I called it a pseudo comment because it's not really a full comment in SGML terms, it only looks like one. The real SGML comment is the full thing including: <!-- ... -- -- --> -- Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox From ian at hixie.ch Fri Apr 8 07:11:27 2005 From: ian at hixie.ch (Ian Hickson) Date: Fri, 8 Apr 2005 14:11:27 +0000 (UTC) Subject: [whatwg] <p> elements containing other block-level elements In-Reply-To: <42567A5E.50307@iki.fi> References: <Pine.LNX.4.61.0504051557200.2016@dhalsim.dreamhost.com> <4254DD87.7010604@annevankesteren.nl> <42555AB0.5070904@lachy.id.au> <42555C24.1010800@annevankesteren.nl> <4255BFA4.4010901@myrealbox.com> <Pine.LNX.4.61.0504081015180.20461@dhalsim.dreamhost.com> <42567A5E.50307@iki.fi> Message-ID: <Pine.LNX.4.61.0504081351400.25142@dhalsim.dreamhost.com> On Fri, 8 Apr 2005, Henri Sivonen wrote: > Ian Hickson wrote: > > At the end of the day this would just be saying "in XML you can also > > do this". Avoiding those options for people who serialise to both XML > > and HTML is relatively easy, just like avoiding xml:base and MathML. > > Detecting stuff in non-XHTML namespaces is significantly easier than > detecting incompatible use of XHTML elements. Very true. But you have to do the checking anyway. Say someone wrote this (non-conforming) markup: ... <p> <input> Test </input> </p> ... You wouldn't be able to serialise it to HTML. Or this: <style> <em> { color: red; } </style> Again, you need special serialisation code for that. (In fact you need special code for <style> in general, since it's PCDATA in XHTML and CDATA in HTML.) Come to think of it, you also need special processing for <script> -- processing that actually changes the script, since for legacy UAs you need the non-namespaced methods but in XML you have to use the namespaced ones. So I don't think the situation is as clear cut as all that. Is catching <ul>s inside <p>s something that crosses the line? -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From ian at hixie.ch Fri Apr 8 08:12:59 2005 From: ian at hixie.ch (Ian Hickson) Date: Fri, 8 Apr 2005 15:12:59 +0000 (UTC) Subject: [whatwg] <p> elements containing other block-level elements In-Reply-To: <42567904.8010808@myrealbox.com> References: <Pine.LNX.4.61.0504051557200.2016@dhalsim.dreamhost.com> <4254DD87.7010604@annevankesteren.nl> <42555AB0.5070904@lachy.id.au> <42555C24.1010800@annevankesteren.nl> <4255BFA4.4010901@myrealbox.com> <Pine.LNX.4.61.0504081015180.20461@dhalsim.dreamhost.com> <42567904.8010808@myrealbox.com> Message-ID: <Pine.LNX.4.61.0504081440250.25142@dhalsim.dreamhost.com> On Sat, 9 Apr 2005, Matthew Thomas wrote: > > That's why I said "acceptable", rather than "perfect". (Others > misunderstood what I meant too, so I should have used "readable". Access > via the DOM is something I personally care less about.) Access via the DOM also affects styling. Also, if UAs have to parse it in the old way, what's the point? It's not increasing the semantics, since the UAs have to parse it the old way. > > Of b and d I prefer b. That, along with embedding MathML and other XML > > vocabularies, would be a reason to migrate to XML, if we consider that > > a good thing. > > It will perhaps be a good thing once a future version of XML gives > authors the option of more graceful error-handling. Quite. > > > The content model for any block element allowed inside paragraphs > > > should be tweaked to not allow paragraphs when it's inside a > > > paragraph, because nested paragraphs don't make sense. > > > > Agreed. (Including inside nested <tables> and <li>s, I assume? > > Yes. (<li>s were the main element I was thinking of. There are lists > where each item is one or more paragraphs, lists that are completely > inside paragraphs, and lists that have nothing to do with paragraphs. > Those sets don't intersect.) I agree. > > But obviously excluding inside nested <blockquote>s.) > > What? I can't think of any legitimate use case for that exception. The whole point of a <_block_ quote> (as opposed to an inline <q>uote) is that it contains block-level elements, not inline content. If I want to quote someone who said: Hello in one paragraph. World in the next. ...then I'm obviously going to need two paragraphs. Indeed these last eight lines are an example of this. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From olav at olav.dk Fri Apr 8 08:38:54 2005 From: olav at olav.dk (=?ISO-8859-1?Q?Olav_Junker_Kj=E6r?=) Date: Fri, 08 Apr 2005 17:38:54 +0200 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <4255CE76.3000702@sympatico.ca> References: <42524E27.6060006@annevankesteren.nl> <42546FCE.5070900@lachy.id.au> <Pine.LNX.4.61.0504062335130.20461@dhalsim.dreamhost.com> <4254CE93.4000403@lachy.id.au> <Pine.LNX.4.61.0504071037490.20461@dhalsim.dreamhost.com> <42550FFD.20201@annevankesteren.nl> <Pine.LNX.4.61.0504071050580.20461@dhalsim.dreamhost.com> <851c8d310504070356287eb4b1@mail.gmail.com> <425512EE.9060205@annevankesteren.nl> <Pine.LNX.4.61.0504071103310.20461@dhalsim.dreamhost.com> <851c8d31050407041135d65f31@mail.gmail.com> <42551D99.5010903@olav.dk> <4255CE76.3000702@sympatico.ca> Message-ID: <4256A58E.2020106@olav.dk> Petrazickis wrote: > Wouldn't authors need to use an HTML4 or an XHTML doctype specifically > to trigger the standards mode in IE6? In that case, specifying a doctype > of our own would be counter-productive to the goal of compatibility with > IE6. Standards mode is triggered by any doctype tag, except some specific doctypes which is defined as triggering quirks mode. More specificly, it seems that standards mode is triggered by the string <!DOCTYPE in the beginning of the document. It doesn't even have to be closed :-) If the <!DOCTYPE is preceded by anything other than whitespace, quirks mode is used. (That way, quirks mode can be forced on any document by preceding the doctype with a comment.) regards Olav Junker Kj?r From hsivonen at iki.fi Fri Apr 8 09:26:33 2005 From: hsivonen at iki.fi (Henri Sivonen) Date: Fri, 8 Apr 2005 19:26:33 +0300 Subject: [whatwg] <p> elements containing other block-level elements In-Reply-To: <Pine.LNX.4.61.0504081351400.25142@dhalsim.dreamhost.com> References: <Pine.LNX.4.61.0504051557200.2016@dhalsim.dreamhost.com> <4254DD87.7010604@annevankesteren.nl> <42555AB0.5070904@lachy.id.au> <42555C24.1010800@annevankesteren.nl> <4255BFA4.4010901@myrealbox.com> <Pine.LNX.4.61.0504081015180.20461@dhalsim.dreamhost.com> <42567A5E.50307@iki.fi> <Pine.LNX.4.61.0504081351400.25142@dhalsim.dreamhost.com> Message-ID: <31627ca7224496bef9b832bae071a7b1@iki.fi> On Apr 8, 2005, at 17:11, Ian Hickson wrote: > On Fri, 8 Apr 2005, Henri Sivonen wrote: >> Ian Hickson wrote: >>> At the end of the day this would just be saying "in XML you can also >>> do this". Avoiding those options for people who serialise to both XML >>> and HTML is relatively easy, just like avoiding xml:base and MathML. >> >> Detecting stuff in non-XHTML namespaces is significantly easier than >> detecting incompatible use of XHTML elements. > > Very true. But you have to do the checking anyway. The issue is how and at what time. > Say someone wrote this > (non-conforming) markup: > > ... > <p> > <input> Test </input> > </p> > ... > > You wouldn't be able to serialise it to HTML. No, but that wouldn't be conforming as the XHTML flavor, either. Therefore, that kind of content should not enter a CMS regardless of serialization. > Or this: > > <style> > <em> { color: red; } > </style> > > Again, you need special serialisation code for that. Again, that does not make sense in either flavor. > (In fact you need special code for <style> in general, since it's > PCDATA in XHTML and CDATA > in HTML.) I know. I intend to deal with <style> and <script> later--just for completeness. Currently, I am dodging the issue by avoiding embedded styles and scripts. > Come to think of it, you also need special processing for <script> -- > processing that actually changes the script, since for legacy UAs you > need > the non-namespaced methods but in XML you have to use the namespaced > ones. I would prefer to say that scripts ought to be external and their writers more aware of HTML vs. XHTML issues that casual content writers. > So I don't think the situation is as clear cut as all that. > > Is catching <ul>s inside <p>s something that crosses the line? It changes assumptions rather significantly if you need to know at the input stage what output flavor is going to be used. I see the option are: a) Banning XHTML divergence for everyone. b) Behaving as if a) was the case and barfing at XHTML that cannot be serialized as HTML. c) Bending over backwards in order to track whether a given piece of data can be serialized as HTML and whether there is a future need for a given piece of data to be serialized as HTML. Option a) doesn't seem popular and implementing c) would be a pain, which seems to leave b) for those who serialize as HTML. Of course, the reason why one would want to serialize as HTML is IE (and Lynx). -- Henri Sivonen hsivonen at iki.fi http://hsivonen.iki.fi/ From hsivonen at iki.fi Fri Apr 8 09:53:00 2005 From: hsivonen at iki.fi (Henri Sivonen) Date: Fri, 8 Apr 2005 19:53:00 +0300 Subject: [whatwg] text/html conformance checkers and optional tag inference Message-ID: <fe9d57b0be138e4b025b4719f5f6140c@iki.fi> Does any What WG document specify what optional tag inference features a conformance checker for the text/html flavor is required to implement and what elements are required to be considered empty? Should What WG require tags that were optional in HTML 4 to be mandatory? -- Henri Sivonen hsivonen at iki.fi http://hsivonen.iki.fi/ From lachlan.hunt at lachy.id.au Fri Apr 8 20:42:04 2005 From: lachlan.hunt at lachy.id.au (Lachlan Hunt) Date: Sat, 09 Apr 2005 13:42:04 +1000 Subject: [whatwg] [WA1] Title Element Content Model Message-ID: <42574F0C.4010106@lachy.id.au> Hi, The current draft states [1]: | In HTML (as opposed to XHTML), the title element must not contain | content other than text and entities; user agents must parse the | element so that entities are recognised and processed, but all other | markup is interpreted as literal text. I think that should be changed to state: "... but, for backwards compatibility, all other markup (such as elements and comments) should be interpreted as literal text." I don't think intentionally broken behaviour should ever be a strict requirement, only a strong recommendation for backwards compatibility. Although, are there any valid reasons as to why this requirement must be retained, even in standards compliant mode? Would many sites break if it were fixed in standards mode? | In XHTML, the title element must not contain any elements. I disagree with this. XHTML 2 has been updated to allow markup within the title element and I think this XHTML should too. Since we can change the content models for XHTML, I see no reason not too. Here are some use cases I can think of: <title><span xml:lang="pt-BR">Brasil Futebol</span>: Brazil - Football World Champions</title> (Real example I found [2], though I added the language markup, and the primary language appeared to be "en"). <title> Eric's Archived Thoughts: <em>Really</em> Undoing html.css </title> (Note: Was a real example from meyerweb, but the WP bug that initally allowed it seems to have been fixed. This was also an example of why the requirement for HTML parsers to treat the element as plain text (at least in standards mode) is bad [2]) <title><abbr title="Hypertext Markup Language">HTML</abbr> Tutorial</title> Although current visual browsers may not be able to show things like emphasis or abbr expansions (eg. tooltips) visually in the window's title bar (though, that would probably depend on the OS), non-visual UAs (eg. aural) may still be able to indicate emphsis, expand abbr, etc. (eg. when speaking it).0 [1] http://www.whatwg.org/specs/web-apps/current-work/#the-title [2] http://www.the-football.com/brasil_2.html [3] http://meyerweb.com/eric/thoughts/2004/09/15/when-blog-software-attacks/ -- Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox From lachlan.hunt at lachy.id.au Fri Apr 8 23:29:49 2005 From: lachlan.hunt at lachy.id.au (Lachlan Hunt) Date: Sat, 09 Apr 2005 16:29:49 +1000 Subject: [whatwg] [WA1] Specifying Character Encoding Message-ID: <4257765D.1080009@lachy.id.au> In the current draft, for specifying the character encoding [1], it is stated: | In XHTML, the XML declaration should be used for inline character | encoding information. | | Authors should avoid including inline character encoding information. | Character encoding information should instead be included at the | transport level (e.g. using the HTTP Content-Type header). The second paragraph should only apply to HTML using the meta element, not XHTML using the XML declaration. For X(HT)ML, according to the Architecture of the World Wide Web, Volume One - Media types for XML [2]: | In general, a representation provider SHOULD NOT specify the character | encoding for XML data in protocol headers since the data is | self-describing. I think it should also be noted that authors who omit the XML declaration (or include it but don't specify the encoding attribute) *must* use UTF-8 or UTF-16, as described in the XML recommendation. [1] http://www.whatwg.org/specs/web-apps/current-work/#charset [2] http://www.w3.org/TR/2004/REC-webarch-20041215/#xml-media-types -- Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox From fora at annevankesteren.nl Fri Apr 8 23:55:45 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Sat, 09 Apr 2005 08:55:45 +0200 Subject: [whatwg] [WA1] Specifying Character Encoding In-Reply-To: <4257765D.1080009@lachy.id.au> References: <4257765D.1080009@lachy.id.au> Message-ID: <42577C71.7050807@annevankesteren.nl> Lachlan Hunt wrote: > | In XHTML, the XML declaration should be used for inline character > | encoding information. > | > | Authors should avoid including inline character encoding information. > | Character encoding information should instead be included at the > | transport level (e.g. using the HTTP Content-Type header). > > The second paragraph should only apply to HTML using the meta element, > not XHTML using the XML declaration. Why? If people are still using text/xml for example you really want them to use the HTTP Content-Type header. Otherwise its US-ASCII. > I think it should also be noted that authors who omit the XML > declaration (or include it but don't specify the encoding attribute) > *must* use UTF-8 or UTF-16, as described in the XML recommendation. Where did you read that in the XML specification? You can always specify encoding using the 'charset' parameter. That it is not recommended because "webarch" things documents should be self-describing doesn't matter. Also note that when the document is served using text/xml they could use UTF-8 but it wouldn't work. -- Anne van Kesteren <http://annevankesteren.nl/> From fora at annevankesteren.nl Sat Apr 9 00:06:01 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Sat, 09 Apr 2005 09:06:01 +0200 Subject: [whatwg] [WA1] Title Element Content Model In-Reply-To: <42574F0C.4010106@lachy.id.au> References: <42574F0C.4010106@lachy.id.au> Message-ID: <42577ED9.4060207@annevankesteren.nl> Lachlan Hunt wrote: > | In HTML (as opposed to XHTML), the title element must not contain > | content other than text and entities; user agents must parse the > | element so that entities are recognised and processed, but all other > | markup is interpreted as literal text. > > I think that should be changed to state: > > "... but, for backwards compatibility, all other markup (such as > elements and comments) should be interpreted as literal text." Why? Its content model is #PCDATA: <http://www.w3.org/TR/html401/struct/global.html#h-7.4.2> You also don't want to introduce this in standards mode or so as you don't want to make parsing documents harder. You do not want to introduce more quirks. > | In XHTML, the title element must not contain any elements. > > I disagree with this. XHTML 2 has been updated to allow markup within > the title element and I think this XHTML should too. Since we can > change the content models for XHTML, I see no reason not too. It would work as current UAs (I tested in Mozilla) ignore elements inside TITLE. -- Anne van Kesteren <http://annevankesteren.nl/> From lachlan.hunt at lachy.id.au Sat Apr 9 00:23:55 2005 From: lachlan.hunt at lachy.id.au (Lachlan Hunt) Date: Sat, 09 Apr 2005 17:23:55 +1000 Subject: [whatwg] [WA1] Title Element Content Model In-Reply-To: <42577ED9.4060207@annevankesteren.nl> References: <42574F0C.4010106@lachy.id.au> <42577ED9.4060207@annevankesteren.nl> Message-ID: <4257830B.5000305@lachy.id.au> Anne van Kesteren wrote: > Lachlan Hunt wrote: > >> | In HTML (as opposed to XHTML), the title element must not contain >> | content other than text and entities; user agents must parse the >> | element so that entities are recognised and processed, but all other >> | markup is interpreted as literal text. >> >> I think that should be changed to state: >> >> "... but, for backwards compatibility, all other markup (such as >> elements and comments) should be interpreted as literal text." > > Why? Its content model is #PCDATA: I know, so for HTML 4, current browsers shouldn't interpret markup as plain text and display it in the title bar, but they do. eg. <title><em>Hello</em> World!</title> Will be displayed by current UAs in the title as "<em>Hello</em> World!", instead of just "Hello World!". As you can see in the quote above, the current draft makes this incorrect behaviour a requirement by stating that: "user agents must parse the element so that [...] all other markup is interpreted as literal text." I am only requesting that that requirement be changed from a *must* to a *should* for backwards compatibility, because that's what current UAs do now, but not what strictly conforming SGML/HTML 4 UAs are supposed do. -- Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox From hsivonen at iki.fi Sat Apr 9 01:18:11 2005 From: hsivonen at iki.fi (Henri Sivonen) Date: Sat, 9 Apr 2005 11:18:11 +0300 Subject: [whatwg] [WA1] Specifying Character Encoding In-Reply-To: <4257765D.1080009@lachy.id.au> References: <4257765D.1080009@lachy.id.au> Message-ID: <27564017cc36afcbdf21eca341ddf5cd@iki.fi> On Apr 9, 2005, at 09:29, Lachlan Hunt wrote: > In the current draft, for specifying the character encoding [1], it is > stated: ... > | Authors should avoid including inline character encoding information. Since many current UAs do not reserialize docs with inline character encoding information when saving to disk, I think it is appropriate and mostly harmless to specify UTF-8 both in the HTTP header and inline. > For X(HT)ML, according to the Architecture of the World Wide Web, > Volume One - Media types for XML [2]: > > | In general, a representation provider SHOULD NOT specify the > character > | encoding for XML data in protocol headers since the data is > | self-describing. Too bad RFC 3023 gives bad advice and insists on harmful defaults for text/*. -- Henri Sivonen hsivonen at iki.fi http://hsivonen.iki.fi/ From lachlan.hunt at lachy.id.au Sat Apr 9 01:29:26 2005 From: lachlan.hunt at lachy.id.au (Lachlan Hunt) Date: Sat, 09 Apr 2005 18:29:26 +1000 Subject: [whatwg] [WA1] Specifying Character Encoding In-Reply-To: <42577C71.7050807@annevankesteren.nl> References: <4257765D.1080009@lachy.id.au> <42577C71.7050807@annevankesteren.nl> Message-ID: <42579266.6080901@lachy.id.au> Anne van Kesteren wrote: > Lachlan Hunt wrote: > >> | In XHTML, the XML declaration should be used for inline character >> | encoding information. >> | >> | Authors should avoid including inline character encoding information. >> | Character encoding information should instead be included at the >> | transport level (e.g. using the HTTP Content-Type header). >> >> The second paragraph should only apply to HTML using the meta element, >> not XHTML using the XML declaration. > > Why? If people are still using text/xml for example you really want them > to use the HTTP Content-Type header. Otherwise its US-ASCII. I didn't consider text/xml because the current draft states in the conformance requirements. | XML documents [...] that are served over the wire (e.g. by HTTP) must | be sent using an XML MIME type such as application/xml or | application/xhtml+xml... I had initially interpreted that as meaning authors must use application/*+xml and must not use text/xml; however, that interpretation may be incorrect. Perhaps it should be explicitly stated that text/xml should not be used, with a reference to the webarch recommendation. In any case, my statement about the second paragraph still stands for XML served as application/*+xml, though it should probably apply to XML served as text/xml too. It is unclear whether or not a document served as text/xml;charset=whatever, should include the XML encoding declaration or not, but probably not because: "Transcoding may make the self-description false..." (as described in webarch). >> I think it should also be noted that authors who omit the XML >> declaration (or include it but don't specify the encoding attribute) >> *must* use UTF-8 or UTF-16, as described in the XML recommendation. > > Where did you read that in the XML specification? Appendix F.1. states [1]: | Because each XML entity not accompanied by external encoding | information and not in UTF-8 or UTF-16 encoding must begin with an XML | encoding declaration > You can always specify encoding using the 'charset' parameter. ...although I had forgotten it was acceptable to use an encoding other than UTF-8 or UTF-16 without the xml declaration when "accompanied by external encoding information", as well as being somewhat misinformed by the statement in XHTML 1.0 Appendix C [2]: | Remember, however, that when the XML declaration is not included in a | document, the document can only use the default character encodings | UTF-8 or UTF-16. Which fails to mention the condition of extenal encoding information. [1] http://www.w3.org/TR/REC-xml/#sec-guessing [2] http://www.w3.org/TR/xhtml1/#C_1 -- Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox From fora at annevankesteren.nl Sat Apr 9 02:28:54 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Sat, 09 Apr 2005 11:28:54 +0200 Subject: [whatwg] [WA1] Specifying Character Encoding In-Reply-To: <42579266.6080901@lachy.id.au> References: <4257765D.1080009@lachy.id.au> <42577C71.7050807@annevankesteren.nl> <42579266.6080901@lachy.id.au> Message-ID: <4257A056.50000@annevankesteren.nl> Lachlan Hunt wrote: > Perhaps it should be explicitly stated that text/xml should not be > used, with a reference to the webarch recommendation. Should not does not forbid it. Also, WHATWG shouldn't say anything about the MIME type you MUST use for XML IMHO. An update for RFC 3023 is in process which deprecates text/xml, but still not forbids it. So WHATWG shouldn't make assumptions about that IMHO. >>> I think it should also be noted that authors who omit the XML >>> declaration (or include it but don't specify the encoding >>> attribute) *must* use UTF-8 or UTF-16, as described in the XML >>> recommendation. >> >> Where did you read that in the XML specification? > > Appendix F.1. states [1]: Appendix F, as a whole, is non-normative. -- Anne van Kesteren <http://annevankesteren.nl/> From lachlan.hunt at lachy.id.au Sat Apr 9 03:04:53 2005 From: lachlan.hunt at lachy.id.au (Lachlan Hunt) Date: Sat, 09 Apr 2005 20:04:53 +1000 Subject: [whatwg] [WA1] Specifying Character Encoding In-Reply-To: <4257A056.50000@annevankesteren.nl> References: <4257765D.1080009@lachy.id.au> <42577C71.7050807@annevankesteren.nl> <42579266.6080901@lachy.id.au> <4257A056.50000@annevankesteren.nl> Message-ID: <4257A8C5.4000105@lachy.id.au> Anne van Kesteren wrote: > Also, WHATWG shouldn't say anything about the MIME type you MUST use for XML IMHO. Agreed, but there's nothing wrong with stating that this version of XHTML must not be served as text/html and that an XML MIME type must be used instead, without specifying exactly which one. The current wording provides application/xhtml+xml and application/xml as examples only, which I think is acceptable. -- Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox From olav at olav.dk Sun Apr 10 10:32:18 2005 From: olav at olav.dk (=?ISO-8859-1?Q?Olav_Junker_Kj=E6r?=) Date: Sun, 10 Apr 2005 19:32:18 +0200 Subject: [whatwg] multiple forms submit Message-ID: <42596322.5060603@olav.dk> A submit button may be associated with multiple forms through the form attribute. Theoretically, this should allow the button to submit several forms at the same time when pressed. This could get really messy, so I propose that a submit button should only be allowed to be associated with one form at a time. (Along the same line, hitting enter when focus is in a text field should only submit one form.) regards Olav Junker Kj?r From ian at hixie.ch Sun Apr 10 16:44:46 2005 From: ian at hixie.ch (Ian Hickson) Date: Sun, 10 Apr 2005 23:44:46 +0000 (UTC) Subject: [whatwg] multiple forms submit In-Reply-To: <42596322.5060603@olav.dk> References: <42596322.5060603@olav.dk> Message-ID: <Pine.LNX.4.61.0504102310200.20461@dhalsim.dreamhost.com> On Sun, 10 Apr 2005, Olav Junker Kj?r wrote: > > A submit button may be associated with multiple forms through the form > attribute. Theoretically, this should allow the button to submit several > forms at the same time when pressed. This could get really messy, so I > propose that a submit button should only be allowed to be associated > with one form at a time. (Along the same line, hitting enter when focus > is in a text field should only submit one form.) I have tweaked the spec to hopefully fix this. Please let me know if it is still broken. :-) Thanks, -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From olav at olav.dk Mon Apr 11 00:50:59 2005 From: olav at olav.dk (=?ISO-8859-1?Q?Olav_Junker_Kj=E6r?=) Date: Mon, 11 Apr 2005 09:50:59 +0200 Subject: [whatwg] multiple forms submit In-Reply-To: <Pine.LNX.4.61.0504102310200.20461@dhalsim.dreamhost.com> References: <42596322.5060603@olav.dk> <Pine.LNX.4.61.0504102310200.20461@dhalsim.dreamhost.com> Message-ID: <425A2C63.20203@olav.dk> Ian Hickson wrote: > I have tweaked the spec to hopefully fix this. Please let me know if it is > still broken. :-) "Submission buttons only submit the first form they are associated with. Reset buttons must submit all the forms they are associated with." You probably meant "Reset buttons must *reset* all the forms they are associated with." :-) Olav Junker Kj?r From ian at hixie.ch Mon Apr 11 02:11:28 2005 From: ian at hixie.ch (Ian Hickson) Date: Mon, 11 Apr 2005 09:11:28 +0000 (UTC) Subject: [whatwg] multiple forms submit In-Reply-To: <425A2C63.20203@olav.dk> References: <42596322.5060603@olav.dk> <Pine.LNX.4.61.0504102310200.20461@dhalsim.dreamhost.com> <425A2C63.20203@olav.dk> Message-ID: <Pine.LNX.4.61.0504110911170.20461@dhalsim.dreamhost.com> On Mon, 11 Apr 2005, Olav Junker Kj?r wrote: > > "Submission buttons only submit the first form they are associated with. > Reset buttons must submit all the forms they are associated with." > > You probably meant "Reset buttons must *reset* all the forms they are > associated with." :-) Oops, fixed. Thanks. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From ian at hixie.ch Mon Apr 11 09:25:00 2005 From: ian at hixie.ch (Ian Hickson) Date: Mon, 11 Apr 2005 16:25:00 +0000 (UTC) Subject: [whatwg] Image maps: should we drop <a coords="">? Message-ID: <Pine.LNX.4.61.0504111531560.172@dhalsim.dreamhost.com> There are fours ways of doing image maps in HTML4: Server-side with form submit: <form ...> <input type="image" ...> </form> Server-side with hyperlink: <a ...> <img ismap ...> </a> Client-side with <area>: <img usemap="#foo"> (or <object usemap="#foo"></object>) <map id="foo"> ... <area coords="..." ...> </map> Client-side with <a> (doesn't work in WinIE6, works in Moz, Opera): <img usemap="#foo"> (or <object usemap="#foo"></object>) <map id="foo"> ... <a coords="..." ...></a> </map> It seems type="image" is used a lot. ismap="" is also used quite a bit -- roughly 2% of Web sites seem to use it. <area> is used a lot -- almost all image maps use it. I couldn't find any uses of <a coords="">. (Data based on a sample of over 600,000 randomly chosen sites.) I propose we drop <a coords=""> from HTML5. While it is definitely a better design than <area>, it isn't a substantially better design, and having both is confusing. Since here we have a case where one of the options is rarely used (if at all), I believe we can take the opportunity to prune the spec without ill effect. (In contrast, in the <button> vs <input type="submit"> case, we couldn't drop either because they were both heavily used.) Anyone want us to keep <a coords="">? -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From ian at hixie.ch Mon Apr 11 09:50:17 2005 From: ian at hixie.ch (Ian Hickson) Date: Mon, 11 Apr 2005 16:50:17 +0000 (UTC) Subject: [whatwg] <p> elements containing other block-level elements In-Reply-To: <31627ca7224496bef9b832bae071a7b1@iki.fi> References: <Pine.LNX.4.61.0504051557200.2016@dhalsim.dreamhost.com> <4254DD87.7010604@annevankesteren.nl> <42555AB0.5070904@lachy.id.au> <42555C24.1010800@annevankesteren.nl> <4255BFA4.4010901@myrealbox.com> <Pine.LNX.4.61.0504081015180.20461@dhalsim.dreamhost.com> <42567A5E.50307@iki.fi> <Pine.LNX.4.61.0504081351400.25142@dhalsim.dreamhost.com> <31627ca7224496bef9b832bae071a7b1@iki.fi> Message-ID: <Pine.LNX.4.61.0504111627190.172@dhalsim.dreamhost.com> On Thu, 7 Apr 2005, Lachlan Hunt wrote: > > What is the use case for [allowing] tables to be nested inside <p>? For instance: When you look at x | 1 | 2 | ---+---+---+ 1 | 1 | 2 | ---+---+---+ 2 | 2 | 4 | ---+---+---+ ...it is clear that [bla bla bla]. I agree that it doesn't seem to make much sense to nest paragraphs inside those tables though. > > I'm trying to work out exactly what the rules that describe the above > > actually are, but I'm interested in hearing whether people agree or > > disagree with my "good" and "bad" examples above. I'm especially > > interested in what use cases I may have missed (please don't say "I > > think this should be allowed" without giving a real-world example), > > and whether anyone thinks any of the cases I think should be allowed > > should not. > > You missed <p><blockquote/></p>. Oops, yep. Added. > <blockcode> should probably be allowed too, though it doesn't seem to be > included in web apps. Oh well, that's probably a discussion for another > thread anyway, if it hasn't already been discussed (I'll search the > archives later). We haven't discussed it yet. I hadn't really thought about it but given: <pre><code> ... </code></pre> <blockcode> ... </blockcode> ...and given that the former would work in all existing UAs and the second wouldn't, and the former has the same semantics as the second, I don't see much of an advantage to the second. > > Note that all of this would only be relevant to XHTML content (i.e. in > > an XML context), since in text/html HTML we are pretty much stuck with > > the existing parsing models which do things like close <p> elements > > upon hitting another block-level element. > > It's a shame no browser actually reads the DTD, this wouldn't be a > problem if they did :-(. This is one reason why HTML should be a true > SGML application, and why browsers should have been built to conform. Yeah, well. In the words of Syndrome: "Too late. 15 years too late." On Thu, 7 Apr 2005, Anne van Kesteren wrote: > > Ian Hickson wrote: > > One thing that XHTML2 does which makes a lot of sense to me is allow nesting > > of certain elements within <p> elements, as in: > > > > <p> > > For this recipe you need > > <ul> > > <li>an egg,</li> > > <li>flour, and</li> > > <li>butter.</li> > > </ul> > > Mix it all together and so forth. > > </p> > > The problem is that you mix inline with block-level. Unless UL is > redefined to be inline level within P I don't think this is a good idea. > I like the idea of having either inline or block-level content. The spec now has block-level, structured inline-level, and strictly inline-level concepts. I'm not overly fond of the names (better suggestions welcome), but I hope it addresses your concerns. > > * <pre> > > We have CODE and other nice inline elements for this. I'll look at <pre> again when it comes to specifying it. I'm not really happy with its semantics myself either. There is a difference between <pre> (or <pre><code>) and <code>, though; the former is much more block- like than the latter. I feel that's somewhat important. > That is indirectly nesting P elements, a bit ugly IMHO. It also doesn't > make sense. Agreed. > > <ol> > > <li> > > <p> > > ... > > <ol> > > <li> > > ... > > Why would you want a P element there? It would probably be part of something bigger, as in: <ol> <li> <p>...</p> <p>...</p> <p>...</p> <p> ... <ol> <li>... > > <pre> > > <p>...</p> > > <p>...</p> > > </pre> > > Ouch! Forbid this. I probably agree with this, but I'm not 100% sure. What about <pre> blocks around e-mails: <pre> <p>Access via the DOM also affects styling.</p> <p>Also, if UAs have to parse it in the old way, what's the point? It's not increasing the semantics, since the UAs have to parse it the old way.</p> </pre> ...or something. Then again, that does look pretty bad. > > <p> > > ... > > <pre>...</pre> > > </p> > > Use case? An inline example, as in: <p> An inline example, as in: <pre> &lt;p&gt;An inline example.&lt;/p&gt; </pre> ...is one use case. </p> ...is one use case. (Sorry.) On Fri, 8 Apr 2005, Michael Gratton wrote: > > As was pointed out elsewhere on this thread (list?), existing UAs would > implicitly close any outer block elements upon encountering a nested > block element. In text/html, yeah. I propose we don't change that for HTML5 UAs. It would only be in XHTML documents that you could use these new features (that and by direct DOM manipulation). On Fri, 8 Apr 2005, Anne van Kesteren wrote: > > You removed it now but I think that the 'XML content model' approach > made it quite obvious that is not the HTML content model. I'll be putting that back in due course. I want to first get the basic language done before starting to add the HTML vs XML exceptions. :-) On Fri, 8 Apr 2005, Lachlan Hunt wrote: > > > > The question is whether: > > > > a) We don't allow any of this. > > I don't think progress should be held up any more than it already is by > broken browsers, so let's not let a limitation with HTML affect an XHTML > implementation. Agreed. > > b) We allow it in XML and the DOM but disallow it in the HTML > > serialisation > > Yes, this makes the most sense to me. Cool, it seems we are in agreement then. > Absolutely! Given the incredibly broken SGML/HTML implementations that > will never get any better, Migrating to XML is certainly the best way to > actually progress into the future. I'm sure no-one wants to be stuck > with HTML forever, which is really more of a lost-cause when it comes to > any real enhancements. I think we'll probably be "stuck" with HTML for a very long time -- at least as long as it takes for XML to have a variant created that has well-defined error handling rules other than the author-hostile "abort processing immediately". > I don't think the spec should limit nested content too much because, as > is shown by the <p><blockquote><p/></blockquote></p> example, there are > valid reasons to nest paragraphs, and possibly others we haven't thought > of. Agreed. I've made the spec not restrict the content models per se, just say "this element can contain this category of elements" and made sure the elements are in the right categories. > Also, as history has shown, HTML4 never thought lists within paragraphs > would be needed, though they are now allowed. By placing too much > restriction on the content models, we risk locking out legitimate > use-cases which we haven't thought of, but which authors may find in the > future. I'm not saying we should just allow anything within anything, > but we should be careful about being too restrictive. I agree. We should be careful not to allow too much too, though -- it's easier to allow new things previously disallowed than remove old things previously allowed. On Fri, 8 Apr 2005, Henri Sivonen wrote: > > > > (In fact you need special code for <style> in general, since it's > > PCDATA in XHTML and CDATA in HTML.) > > I know. I intend to deal with <style> and <script> later--just for > completeness. Currently, I am dodging the issue by avoiding embedded > styles and scripts. I would suggest that in that case the solution would be to avoid nesting elements in this way as well. > > Is catching <ul>s inside <p>s something that crosses the line? > > It changes assumptions rather significantly if you need to know at the > input stage what output flavor is going to be used. > > I see the option are: > a) Banning XHTML divergence for everyone. > b) Behaving as if a) was the case and barfing at XHTML that cannot be > serialized as HTML. > c) Bending over backwards in order to track whether a given piece of > data can be serialized as HTML and whether there is a future need for a > given piece of data to be serialized as HTML. > > Option a) doesn't seem popular and implementing c) would be a pain, > which seems to leave b) for those who serialize as HTML. Of course, the > reason why one would want to serialize as HTML is IE (and Lynx). Agreed. Is option b acceptable to you? -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From fora at annevankesteren.nl Mon Apr 11 12:36:20 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Mon, 11 Apr 2005 21:36:20 +0200 Subject: [whatwg] Image maps: should we drop <a coords="">? In-Reply-To: <Pine.LNX.4.61.0504111531560.172@dhalsim.dreamhost.com> References: <Pine.LNX.4.61.0504111531560.172@dhalsim.dreamhost.com> Message-ID: <425AD1B4.8060803@annevankesteren.nl> Ian Hickson wrote: > Anyone want us to keep <a coords="">? The reason I especially liked it was: <object data="foo" usemap="#foo"> <map id="foo"> <ul> <li><a coords="...">...</a> ... ... but I never really used it for something as it wasn't supported by IE... By the way, will it be deprecated, not mentioned or forbidden? Will Mozilla and Opera drop support for it? -- Anne van Kesteren <http://annevankesteren.nl/> From ian at hixie.ch Mon Apr 11 13:16:58 2005 From: ian at hixie.ch (Ian Hickson) Date: Mon, 11 Apr 2005 20:16:58 +0000 (UTC) Subject: [whatwg] Web Forms 2.0 submission to W3C Message-ID: <Pine.LNX.4.61.0504112004530.20461@dhalsim.dreamhost.com> FYI, the W3C has just acknowledged receipt of the Web Forms 2.0 draft that Mozilla and Opera submitted (on behalf of the WHATWG). Web Forms 2 draft http://www.w3.org/Submission/web-forms2/ W3C Team Comment http://www.w3.org/Submission/2005/02/Comment We'll be publishing another call for comments that takes into account the technical comments that W3C staff sent to us privately as very soon. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From fantasai.lists at inkedblade.net Mon Apr 11 13:46:05 2005 From: fantasai.lists at inkedblade.net (fantasai) Date: Mon, 11 Apr 2005 16:46:05 -0400 Subject: [whatwg] <p> elements containing other block-level elements In-Reply-To: <Pine.LNX.4.61.0504111627190.172@dhalsim.dreamhost.com> References: <Pine.LNX.4.61.0504051557200.2016@dhalsim.dreamhost.com> <4254DD87.7010604@annevankesteren.nl> <42555AB0.5070904@lachy.id.au> <42555C24.1010800@annevankesteren.nl> <4255BFA4.4010901@myrealbox.com> <Pine.LNX.4.61.0504081015180.20461@dhalsim.dreamhost.com> <42567A5E.50307@iki.fi> <Pine.LNX.4.61.0504081351400.25142@dhalsim.dreamhost.com> <31627ca7224496bef9b832bae071a7b1@iki.fi> <Pine.LNX.4.61.0504111627190.172@dhalsim.dreamhost.com> Message-ID: <425AE20D.10605@inkedblade.net> Ian Hickson wrote: > I agree that it doesn't seem to make much sense to nest paragraphs inside > those tables though. Agreed. > <pre><code> ... </code></pre> > <blockcode> ... </blockcode> > > ...and given that the former would work in all existing UAs and the second > wouldn't, and the former has the same semantics as the second, I don't see > much of an advantage to the second. It's similar to the distinction between <div><q> ... </q></div> and <blockquote> ... </blockquote> >>That is indirectly nesting P elements, a bit ugly IMHO. It also doesn't >>make sense. > > Agreed. > >>> <ol> >>> <li> >>> <p> >> >>Why would you want a P element there? > > It would probably be part of something bigger, as in: > > <ol> > <li> > <p>...</p> > <p>...</p> > <p>...</p> > <p> > ... > <ol> > <li>... You're still indirectly nesting paragraphs here. Although I agree that you get nested paragraphs with blockquote, I don't think that the author's own text would have a paragraph within a paragraph, list markers notwithstanding. >>> <pre> >>> <p>...</p> >>> <p>...</p> >>> </pre> >> >>Ouch! Forbid this. > > I probably agree with this, but I'm not 100% sure. What about <pre> > blocks around e-mails: <pre> means <preformatted> not <preserve whitespace>. You should not have block-level markup within <pre>; block-level distinctions within <preformatted> text (such as plaintext emails) are given by the previous formatting (e.g. whitespace). (Yes, I meant 'e.g.'; C code is preformatted, too, but its block level distinctions are given by braces and the like.) ~fantasai From fantasai.lists at inkedblade.net Mon Apr 11 13:59:20 2005 From: fantasai.lists at inkedblade.net (fantasai) Date: Mon, 11 Apr 2005 16:59:20 -0400 Subject: [whatwg] Image maps: should we drop <a coords="">? In-Reply-To: <Pine.LNX.4.61.0504111531560.172@dhalsim.dreamhost.com> References: <Pine.LNX.4.61.0504111531560.172@dhalsim.dreamhost.com> Message-ID: <425AE528.2070809@inkedblade.net> Ian Hickson wrote: > Client-side with <a> (doesn't work in WinIE6, works in Moz, Opera): > > <img usemap="#foo"> (or <object usemap="#foo"></object>) > <map id="foo"> > ... > <a coords="..." ...></a> > </map> > > I couldn't find any uses of <a coords="">. (Data based > on a sample of over 600,000 randomly chosen sites.) I'd guess that's because of the WinIE6 holdup. Hardly anyone designs a site that won't work in WinIE6. > I propose we drop <a coords=""> from HTML5. While it is definitely a > better design than <area>, it isn't a substantially better design, and > having both is confusing. Since here we have a case where one of the > options is rarely used (if at all), I believe we can take the opportunity > to prune the spec without ill effect. (In contrast, in the <button> vs > <input type="submit"> case, we couldn't drop either because they were > both heavily used.) > > Anyone want us to keep <a coords="">? If Moz and Opera support it, then it already passes CR criteria. Besides, you shouldn't be obsoleting things without letting them go through the deprecation stage. No? ~fantasai From ian at hixie.ch Mon Apr 11 15:26:21 2005 From: ian at hixie.ch (Ian Hickson) Date: Mon, 11 Apr 2005 22:26:21 +0000 (UTC) Subject: [whatwg] Image maps: should we drop <a coords="">? In-Reply-To: <425AD1B4.8060803@annevankesteren.nl> References: <Pine.LNX.4.61.0504111531560.172@dhalsim.dreamhost.com> <425AD1B4.8060803@annevankesteren.nl> Message-ID: <Pine.LNX.4.61.0504112221170.20461@dhalsim.dreamhost.com> On Mon, 11 Apr 2005, Anne van Kesteren wrote: > Ian Hickson wrote: > > Anyone want us to keep <a coords="">? > > The reason I especially liked it was: > > <object data="foo" usemap="#foo"> > <map id="foo"> > <ul> > <li><a coords="...">...</a> > ... Yup, it is indeed nice; if image maps had been designed that way from the start it would make sense. But it's not _that_ much nicer than <area>, which we could define as allowing: <object data="foo" usemap="#foo"> <map id="foo"> <ul> <li><area coords="..." href="..."><a href="...">...</a> ... ...which isn't much worse, and has the very important benefit of actually working in IE6. > By the way, will it be deprecated, not mentioned or forbidden? Will > Mozilla and Opera drop support for it? My proposal is to not mention it (and thus make its use non-conforming in HTML5 documents). UAs would be within their rights to keep on supporting it, though. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From ian at hixie.ch Mon Apr 11 15:40:27 2005 From: ian at hixie.ch (Ian Hickson) Date: Mon, 11 Apr 2005 22:40:27 +0000 (UTC) Subject: [whatwg] <p> elements containing other block-level elements In-Reply-To: <425AE20D.10605@inkedblade.net> References: <Pine.LNX.4.61.0504051557200.2016@dhalsim.dreamhost.com> <4254DD87.7010604@annevankesteren.nl> <42555AB0.5070904@lachy.id.au> <42555C24.1010800@annevankesteren.nl> <4255BFA4.4010901@myrealbox.com> <Pine.LNX.4.61.0504081015180.20461@dhalsim.dreamhost.com> <42567A5E.50307@iki.fi> <Pine.LNX.4.61.0504081351400.25142@dhalsim.dreamhost.com> <31627ca7224496bef9b832bae071a7b1@iki.fi> <Pine.LNX.4.61.0504111627190.172@dhalsim.dreamhost.com> <425AE20D.10605@inkedblade.net> Message-ID: <Pine.LNX.4.61.0504112226280.20461@dhalsim.dreamhost.com> On Mon, 11 Apr 2005, fantasai wrote: > > > > <pre><code> ... </code></pre> > > <blockcode> ... </blockcode> > > > > ...and given that the former would work in all existing UAs and the > > second wouldn't, and the former has the same semantics as the second, > > I don't see much of an advantage to the second. > > It's similar to the distinction between > <div><q> ... </q></div> > and > <blockquote> ... </blockquote> Yes, except that <blockquote> works, and <blockcode> doesn't. Also, <blockquote>'s content model is further block-level elements, whereas <q>s isn't; whereas <pre>'s content model is inline content, the same as <code>. So <pre><code> is actually closer to <p><q> than <div><q>, from a syntax point of view. > > <ol> > > <li> > > <p>...</p> > > <p>...</p> > > <p>...</p> > > <p> > > ... > > <ol> > > <li>... > > You're still indirectly nesting paragraphs here. Could you explain? I don't see any nested paragraphs there, nor in the definition in the spec (which is more important I guess). > Although I agree that you get nested paragraphs with blockquote, I don't > think that the author's own text would have a paragraph within a > paragraph, list markers notwithstanding. I agree. > <pre> means <preformatted> not <preserve whitespace>. You should not > have block-level markup within <pre>; block-level distinctions within > <preformatted> text (such as plaintext emails) are given by the previous > formatting (e.g. whitespace). > > (Yes, I meant 'e.g.'; C code is preformatted, too, but its block level > distinctions are given by braces and the like.) Fair enough. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From ian at hixie.ch Mon Apr 11 15:53:37 2005 From: ian at hixie.ch (Ian Hickson) Date: Mon, 11 Apr 2005 22:53:37 +0000 (UTC) Subject: [whatwg] Image maps: should we drop <a coords="">? In-Reply-To: <425AE528.2070809@inkedblade.net> References: <Pine.LNX.4.61.0504111531560.172@dhalsim.dreamhost.com> <425AE528.2070809@inkedblade.net> Message-ID: <Pine.LNX.4.61.0504112240410.20461@dhalsim.dreamhost.com> On Mon, 11 Apr 2005, fantasai wrote: > > > > Anyone want us to keep <a coords="">? > > If Moz and Opera support it, then it already passes CR criteria. Yeah, but so what? It's not used, it's redundant with another (more widely implemented, not must worse) feature, and it makes the spec more complicated. Would you mind if it was dropped? > Besides, you shouldn't be obsoleting things without letting them go > through the deprecation stage. No? What's the point of the deprecation stage? All it seems to do is legitimise things that we don't want people using. ("Well, I'm only using it temporarily until the spec obsoletes it." "It's only deprecated." "It's deprecated but you can still use it.") Browsers will continue supporting features WELL after the spec obsoletes the feature, let alone deprecates it. People still support <plaintext>... -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From lachlan.hunt at lachy.id.au Mon Apr 11 19:02:06 2005 From: lachlan.hunt at lachy.id.au (Lachlan Hunt) Date: Tue, 12 Apr 2005 12:02:06 +1000 Subject: [whatwg] <p> elements containing other block-level elements In-Reply-To: <Pine.LNX.4.61.0504111627190.172@dhalsim.dreamhost.com> References: <Pine.LNX.4.61.0504051557200.2016@dhalsim.dreamhost.com> <4254DD87.7010604@annevankesteren.nl> <42555AB0.5070904@lachy.id.au> <42555C24.1010800@annevankesteren.nl> <4255BFA4.4010901@myrealbox.com> <Pine.LNX.4.61.0504081015180.20461@dhalsim.dreamhost.com> <42567A5E.50307@iki.fi> <Pine.LNX.4.61.0504081351400.25142@dhalsim.dreamhost.com> <31627ca7224496bef9b832bae071a7b1@iki.fi> <Pine.LNX.4.61.0504111627190.172@dhalsim.dreamhost.com> Message-ID: <425B2C1E.8080008@lachy.id.au> Ian Hickson wrote: >><blockcode> should probably be allowed too, though it doesn't seem to be >>included in web apps. Oh well, that's probably a discussion for another >>thread anyway, if it hasn't already been discussed (I'll search the >>archives later). > > We haven't discussed it yet. I hadn't really thought about it but given: > > <pre><code> ... </code></pre> > <blockcode> ... </blockcode> To use <pre><code> like <blockcode>, one would have to style it with pre>code:only-child { display: block; } Although, there is a very small use case that would make <pre><code> unusable for that purpose. eg. in a marked up e-mail (or other plain text document), one may use <code> to marup code samples. But when there is only one occurance of code in the whole document surrounded only by plain text and no other elements then :only-child would still match it, causing a potentially undesired effect. Though, the chances of that happening are slim and probably not worth worrying about. > ...and given that the former would work in all existing UAs and the second > wouldn't, and the former has the same semantics as the second, I don't see > much of an advantage to the second. You could introduce <blockcode> as an XML only element, but then I guess there's not much stopping me from using <xhtml2:blockcode> instead. >>It's a shame no browser actually reads the DTD, this wouldn't be a >>problem if they did :-(. This is one reason why HTML should be a true >>SGML application, and why browsers should have been built to conform. > > Yeah, well. In the words of Syndrome: "Too late. 15 years too late." hehe. :-) That's one reason why I now consider HTML to be a dying langauge and only being retained for backwards compatibility where XHTML support is unavailable. >>> b) We allow it in XML and the DOM but disallow it in the HTML >>>serialisation >> >>Yes, this makes the most sense to me. > > Cool, it seems we are in agreement then. Wow, really!? This must be a first. :-) > I think we'll probably be "stuck" with HTML for a very long time -- at > least as long as it takes for XML to have a variant created that has > well-defined error handling rules other than the author-hostile "abort > processing immediately". I don't understand what's wrong with the XML error handling. I think it's great because errors should be caught and handled during the authoring process and by the CMS, which XML essentially forces. I don't think user agents should have to gracefully handle errors when it's trivial for authors to fix them. Hopefully, one day CMSs will be built as real XML tools, and people will stop complaining about accidental errors causing a catastrophy. The history of HTML has shown us that unobvious errors simply don't get fixed because many authors are too lazy to even bother checking, and many are even lazier to fix things when they do. I've lost count of the number of posts to www-validator stating something like: "I think the validator should ignore X... I don't know how/want to fix it... It works, so it is not invalid... The validator is wrong/broken." If XML were to allow more graceful error handling, I see nothing but the possibility of history repeating all over again. >>I don't think the spec should limit nested content too much because... > > Agreed. OMG! Twice in the same e-mail! What are the odds of that? :-) > I've made the spec not restrict the content models per se, just > say "this element can contain this category of elements" and made sure the > elements are in the right categories. That seems like the most appropriate way to handle it. -- Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox From lachlan.hunt at lachy.id.au Mon Apr 11 19:02:33 2005 From: lachlan.hunt at lachy.id.au (Lachlan Hunt) Date: Tue, 12 Apr 2005 12:02:33 +1000 Subject: [whatwg] Image maps: should we drop <a coords="">? In-Reply-To: <Pine.LNX.4.61.0504111531560.172@dhalsim.dreamhost.com> References: <Pine.LNX.4.61.0504111531560.172@dhalsim.dreamhost.com> Message-ID: <425B2C39.7010405@lachy.id.au> Ian Hickson wrote: > Client-side with <a> (doesn't work in WinIE6, works in Moz, Opera): > > <img usemap="#foo"> (or <object usemap="#foo"></object>) > <map id="foo"> > ... > <a coords="..." ...></a> > </map> I've never seen that used at all either, most likely because it doesn't work in IE and because every single tutorial I've ever seen only teaches area. > While it is definitely a better design than <area>,it isn't a > substantially better design, How so? Although <a> might have a slightly less presentational name than <area>, the semantics of both are identical when used for an image map. > I believe we can take the opportunity to prune the spec without ill effect. I don't see any harm in either keeping it or removing, but there's not much point to having it either. > Anyone want us to keep <a coords="">? No. One request though. When this section of the spec gets written, can you provide an example with less presentational abuse than HTML 4 does. Using it just to provide a navigational toolbar is innappropriate, because the same can be, and has been, achieved with CSS. Image maps should be used to describe the structure of an image and to indicate significant areas within it. The simplest and most often used non-presentational example I've seen is a world map, but perhaps something like highlighting sections of a photo, for which there are close-up pictures available. eg. <img src="/images/park" usemap="park" alt="..."> <map id="park"> <area coords="..." shape="rect" href="swings" alt="Swing Set" title="Close up photo of the swing set"> <area coords="..." shape="poly" href="tree" alt="Old Willow Tree" title="Close up photo of the old, gnarled willow tree"> </map> -- Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox From fora at annevankesteren.nl Tue Apr 12 01:20:51 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Tue, 12 Apr 2005 10:20:51 +0200 Subject: [whatwg] <p> elements containing other block-level elements In-Reply-To: <Pine.LNX.4.61.0504111627190.172@dhalsim.dreamhost.com> References: <Pine.LNX.4.61.0504051557200.2016@dhalsim.dreamhost.com> <4254DD87.7010604@annevankesteren.nl> <42555AB0.5070904@lachy.id.au> <42555C24.1010800@annevankesteren.nl> <4255BFA4.4010901@myrealbox.com> <Pine.LNX.4.61.0504081015180.20461@dhalsim.dreamhost.com> <42567A5E.50307@iki.fi> <Pine.LNX.4.61.0504081351400.25142@dhalsim.dreamhost.com> <31627ca7224496bef9b832bae071a7b1@iki.fi> <Pine.LNX.4.61.0504111627190.172@dhalsim.dreamhost.com> Message-ID: <425B84E3.2060602@annevankesteren.nl> Ian Hickson wrote: >> You missed <p><blockquote/></p>. > > Oops, yep. Added. I could see the point with CODE versus PRE versus CODE as only child of PRE as they have different kind of semantics. But what is the reason for BLOCKQUOTE? Clearly, Q is for inline and you don't really need BLOCKQUOTE for that. (If you want to quote a table from some other source, perhaps, but then again, you could just alter the Q element its content model.) >> The problem is that you mix inline with block-level. Unless UL is >> redefined to be inline level within P I don't think this is a good >> idea. I like the idea of having either inline or block-level >> content. > > The spec now has block-level, structured inline-level, and strictly > inline-level concepts. I'm not overly fond of the names (better > suggestions welcome), but I hope it addresses your concerns. Mostly, except that they are underdefined at the moment. I assume that section is still being worked on? -- Anne van Kesteren <http://annevankesteren.nl/> From ian at hixie.ch Tue Apr 12 02:31:56 2005 From: ian at hixie.ch (Ian Hickson) Date: Tue, 12 Apr 2005 09:31:56 +0000 (UTC) Subject: [whatwg] <p> elements containing other block-level elements In-Reply-To: <425B2C1E.8080008@lachy.id.au> References: <Pine.LNX.4.61.0504051557200.2016@dhalsim.dreamhost.com> <4254DD87.7010604@annevankesteren.nl> <42555AB0.5070904@lachy.id.au> <42555C24.1010800@annevankesteren.nl> <4255BFA4.4010901@myrealbox.com> <Pine.LNX.4.61.0504081015180.20461@dhalsim.dreamhost.com> <42567A5E.50307@iki.fi> <Pine.LNX.4.61.0504081351400.25142@dhalsim.dreamhost.com> <31627ca7224496bef9b832bae071a7b1@iki.fi> <Pine.LNX.4.61.0504111627190.172@dhalsim.dreamhost.com> <425B2C1E.8080008@lachy.id.au> Message-ID: <Pine.LNX.4.61.0504120926550.20461@dhalsim.dreamhost.com> On Tue, 12 Apr 2005, Lachlan Hunt wrote: > > > > We haven't discussed it yet. I hadn't really thought about it but given: > > > > <pre><code> ... </code></pre> > > <blockcode> ... </blockcode> > > To use <pre><code> like <blockcode>, one would have to style it with > > pre>code:only-child { display: block; } Hm? Why? > > I think we'll probably be "stuck" with HTML for a very long time -- at > > least as long as it takes for XML to have a variant created that has > > well-defined error handling rules other than the author-hostile "abort > > processing immediately". > > I don't understand what's wrong with the XML error handling. I think > it's great because errors should be caught and handled during the > authoring process and by the CMS, which XML essentially forces. Many people feel that a minor typo in their document should not cause their page to stop rendering altogether. I have spoken with a _lot_ of authors who really do not like XML's draconian error handling, including many authors who are always ensuring their documents are valid. I myself have occasionally made typos and other mistakes that, if I had used XML, would have left my site unusable, without my knowledge, for several hours at a time. Personally I don't have a strong opinion; so long as the error handling is defined I don't really mind if it is draconian or error recovery. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From ian at hixie.ch Tue Apr 12 02:34:08 2005 From: ian at hixie.ch (Ian Hickson) Date: Tue, 12 Apr 2005 09:34:08 +0000 (UTC) Subject: [whatwg] <p> elements containing other block-level elements In-Reply-To: <425B84E3.2060602@annevankesteren.nl> References: <Pine.LNX.4.61.0504051557200.2016@dhalsim.dreamhost.com> <4254DD87.7010604@annevankesteren.nl> <42555AB0.5070904@lachy.id.au> <42555C24.1010800@annevankesteren.nl> <4255BFA4.4010901@myrealbox.com> <Pine.LNX.4.61.0504081015180.20461@dhalsim.dreamhost.com> <42567A5E.50307@iki.fi> <Pine.LNX.4.61.0504081351400.25142@dhalsim.dreamhost.com> <31627ca7224496bef9b832bae071a7b1@iki.fi> <Pine.LNX.4.61.0504111627190.172@dhalsim.dreamhost.com> <425B84E3.2060602@annevankesteren.nl> Message-ID: <Pine.LNX.4.61.0504120932130.20461@dhalsim.dreamhost.com> On Tue, 12 Apr 2005, Anne van Kesteren wrote: > Ian Hickson wrote: > > > You missed <p><blockquote/></p>. > > > > Oops, yep. Added. > > I could see the point with CODE versus PRE versus CODE as only child of > PRE as they have different kind of semantics. > > But what is the reason for BLOCKQUOTE? Clearly, Q is for inline and you > don't really need BLOCKQUOTE for that. (If you want to quote a table > from some other source, perhaps, but then again, you could just alter > the Q element its content model.) Q is for quoting something that is part of a paragraph. BLOCKQUOTE is for quoting something that contains paragraphs. > > > The problem is that you mix inline with block-level. Unless UL is > > > redefined to be inline level within P I don't think this is a good > > > idea. I like the idea of having either inline or block-level > > > content. > > > > The spec now has block-level, structured inline-level, and strictly > > inline-level concepts. I'm not overly fond of the names (better > > suggestions welcome), but I hope it addresses your concerns. > > Mostly, except that they are underdefined at the moment. I assume that > section is still being worked on? The whole spec is being worked on. :-) However, I don't really see anything underdefined about the block-level, structured inline-level, and strictly inline-level concepts. What conformance criteria are we missing? -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From ian at hixie.ch Tue Apr 12 02:36:32 2005 From: ian at hixie.ch (Ian Hickson) Date: Tue, 12 Apr 2005 09:36:32 +0000 (UTC) Subject: [whatwg] Image maps: should we drop <a coords="">? In-Reply-To: <425B2C39.7010405@lachy.id.au> References: <Pine.LNX.4.61.0504111531560.172@dhalsim.dreamhost.com> <425B2C39.7010405@lachy.id.au> Message-ID: <Pine.LNX.4.61.0504120934180.20461@dhalsim.dreamhost.com> On Tue, 12 Apr 2005, Lachlan Hunt wrote: > > > > While it is definitely a better design than <area>,it isn't a > > substantially better design, > > How so? Although <a> might have a slightly less presentational name > than <area>, the semantics of both are identical when used for an image > map. It's a better design because it has automatic full fallback. You only include the URI once to have the link work in browsers with no image map support. > One request though. When this section of the spec gets written, can you > provide an example with less presentational abuse than HTML 4 does. > Using it just to provide a navigational toolbar is innappropriate, > because the same can be, and has been, achieved with CSS. Agreed. Incidentally, I'd ask everyone here to please keep me honest when it comes to examples. I'm trying hard to make sure they're all good clean examples but when you've been writing text for three hours, it can be very easy to come up with bogus examples. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From mpt at myrealbox.com Tue Apr 12 03:02:11 2005 From: mpt at myrealbox.com (Matthew Thomas) Date: Tue, 12 Apr 2005 22:02:11 +1200 Subject: [whatwg] <p> elements containing other block-level elements In-Reply-To: <425B2C1E.8080008@lachy.id.au> References: <Pine.LNX.4.61.0504051557200.2016@dhalsim.dreamhost.com> <4254DD87.7010604@annevankesteren.nl> <42555AB0.5070904@lachy.id.au> <42555C24.1010800@annevankesteren.nl> <4255BFA4.4010901@myrealbox.com> <Pine.LNX.4.61.0504081015180.20461@dhalsim.dreamhost.com> <42567A5E.50307@iki.fi> <Pine.LNX.4.61.0504081351400.25142@dhalsim.dreamhost.com> <31627ca7224496bef9b832bae071a7b1@iki.fi> <Pine.LNX.4.61.0504111627190.172@dhalsim.dreamhost.com> <425B2C1E.8080008@lachy.id.au> Message-ID: <425B9CA3.20902@myrealbox.com> Lachlan Hunt wrote: >... > I don't understand what's wrong with the XML error handling. I think > it's great because errors should be caught and handled during the > authoring process and by the CMS, which XML essentially forces. I don't > think user agents should have to gracefully handle errors when it's > trivial for authors to fix them. Hopefully, one day CMSs will be built > as real XML tools, and people will stop complaining about accidental > errors causing a catastrophy. >... <http://diveintomark.org/archives/2004/01/14/thought_experiment> -- Matthew Thomas http://mpt.net.nz/ From olav at olav.dk Tue Apr 12 03:31:05 2005 From: olav at olav.dk (=?ISO-8859-1?Q?Olav_Junker_Kj=E6r?=) Date: Tue, 12 Apr 2005 12:31:05 +0200 Subject: [whatwg] Web Forms 2.0 submission to W3C In-Reply-To: <Pine.LNX.4.61.0504112004530.20461@dhalsim.dreamhost.com> References: <Pine.LNX.4.61.0504112004530.20461@dhalsim.dreamhost.com> Message-ID: <425BA369.8090406@olav.dk> Ian Hickson wrote: > FYI, the W3C has just acknowledged receipt of the Web Forms 2.0 draft that > Mozilla and Opera submitted (on behalf of the WHATWG). Is this good or bad news? The W3C does not seem very enthusiastic about the submission. How is this going to affect the development of the spec? Olav Junker Kj?r From fora at annevankesteren.nl Tue Apr 12 03:36:34 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Tue, 12 Apr 2005 12:36:34 +0200 Subject: [whatwg] <p> elements containing other block-level elements In-Reply-To: <Pine.LNX.4.61.0504120932130.20461@dhalsim.dreamhost.com> References: <Pine.LNX.4.61.0504051557200.2016@dhalsim.dreamhost.com> <4254DD87.7010604@annevankesteren.nl> <42555AB0.5070904@lachy.id.au> <42555C24.1010800@annevankesteren.nl> <4255BFA4.4010901@myrealbox.com> <Pine.LNX.4.61.0504081015180.20461@dhalsim.dreamhost.com> <42567A5E.50307@iki.fi> <Pine.LNX.4.61.0504081351400.25142@dhalsim.dreamhost.com> <31627ca7224496bef9b832bae071a7b1@iki.fi> <Pine.LNX.4.61.0504111627190.172@dhalsim.dreamhost.com> <425B84E3.2060602@annevankesteren.nl> <Pine.LNX.4.61.0504120932130.20461@dhalsim.dreamhost.com> Message-ID: <425BA4B2.8050307@annevankesteren.nl> Ian Hickson wrote: >>>> You missed <p><blockquote/></p>. >>> >>> Oops, yep. Added. > > Q is for quoting something that is part of a paragraph. BLOCKQUOTE is > for quoting something that contains paragraphs. So BLOCKQUOTE doesn't fit inside a paragraph IMHO. So it also doesn't fit inside the model of structured inline-content. > The whole spec is being worked on. :-) However, I don't really see > anything underdefined about the block-level, structured inline-level, > and strictly inline-level concepts. What conformance criteria are we > missing? It would be nice if the different type of element sections pointed back to the elements that are allowed in that section. Not just some examples, but making a list of them. -- Anne van Kesteren <http://annevankesteren.nl/> From ian at hixie.ch Tue Apr 12 03:37:22 2005 From: ian at hixie.ch (Ian Hickson) Date: Tue, 12 Apr 2005 10:37:22 +0000 (UTC) Subject: [whatwg] Web Forms 2.0 submission to W3C In-Reply-To: <425BA369.8090406@olav.dk> References: <Pine.LNX.4.61.0504112004530.20461@dhalsim.dreamhost.com> <425BA369.8090406@olav.dk> Message-ID: <Pine.LNX.4.61.0504121034150.20461@dhalsim.dreamhost.com> On Tue, 12 Apr 2005, Olav Junker Kj?r wrote: > Ian Hickson wrote: > > FYI, the W3C has just acknowledged receipt of the Web Forms 2.0 draft > > that Mozilla and Opera submitted (on behalf of the WHATWG). > > Is this good or bad news? The W3C does not seem very enthusiastic about > the submission. How is this going to affect the development of the spec? It is good news. It is the first step to working with the W3C to move the development of the WHATWG specifications into the W3C fold, while keeping the open nature of the WHATWG development process. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From ian at hixie.ch Tue Apr 12 03:39:55 2005 From: ian at hixie.ch (Ian Hickson) Date: Tue, 12 Apr 2005 10:39:55 +0000 (UTC) Subject: [whatwg] <p> elements containing other block-level elements In-Reply-To: <425BA4B2.8050307@annevankesteren.nl> References: <Pine.LNX.4.61.0504051557200.2016@dhalsim.dreamhost.com> <4254DD87.7010604@annevankesteren.nl> <42555AB0.5070904@lachy.id.au> <42555C24.1010800@annevankesteren.nl> <4255BFA4.4010901@myrealbox.com> <Pine.LNX.4.61.0504081015180.20461@dhalsim.dreamhost.com> <42567A5E.50307@iki.fi> <Pine.LNX.4.61.0504081351400.25142@dhalsim.dreamhost.com> <31627ca7224496bef9b832bae071a7b1@iki.fi> <Pine.LNX.4.61.0504111627190.172@dhalsim.dreamhost.com> <425B84E3.2060602@annevankesteren.nl> <Pine.LNX.4.61.0504120932130.20461@dhalsim.dreamhost.com> <425BA4B2.8050307@annevankesteren.nl> Message-ID: <Pine.LNX.4.61.0504121037370.20461@dhalsim.dreamhost.com> On Tue, 12 Apr 2005, Anne van Kesteren wrote: > > > > Q is for quoting something that is part of a paragraph. BLOCKQUOTE is > > for quoting something that contains paragraphs. > > So BLOCKQUOTE doesn't fit inside a paragraph IMHO. So it also doesn't > fit inside the model of structured inline-content. There have been examples given in this thread of people blockquoting multiple paragraphs half way through a sentence. For example, someone might quote Many people feel that a minor typo in their document should not cause their page to stop rendering altogether. I have spoken with a _lot_ of authors who really do not like XML's draconian error handling, including many authors who are always ensuring their documents are valid. I myself have occasionally made typos and other mistakes that, if I had used XML, would have left my site unusable, without my knowledge, for several hours at a time. ...in the middle of a paragraph, just as this example here shows. > > The whole spec is being worked on. :-) However, I don't really see > > anything underdefined about the block-level, structured inline-level, > > and strictly inline-level concepts. What conformance criteria are we > > missing? > > It would be nice if the different type of element sections pointed back > to the elements that are allowed in that section. Not just some > examples, but making a list of them. Oh, yes, I will be adding that once I know what the complete lists are. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From fora at annevankesteren.nl Tue Apr 12 03:49:56 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Tue, 12 Apr 2005 12:49:56 +0200 Subject: [whatwg] Web Forms 2.0 submission to W3C In-Reply-To: <Pine.LNX.4.61.0504112004530.20461@dhalsim.dreamhost.com> References: <Pine.LNX.4.61.0504112004530.20461@dhalsim.dreamhost.com> Message-ID: <425BA7D4.5080606@annevankesteren.nl> Ian Hickson wrote: > FYI, the W3C has just acknowledged receipt of the Web Forms 2.0 draft that > Mozilla and Opera submitted (on behalf of the WHATWG). Any reason Apple didn't participate? > We'll be publishing another call for comments that takes into account the > technical comments that W3C staff sent to us privately as very soon. I saw a call for comments has already been published but not yet announced. Is that made so people can view the diff for the changes that are made not discussed through this mailing list? Is there any specific reason the W3C didn't want to make their comments public? Also it seems the W3C has a lot of demands that could slow down the process. Will the call for implementations draft be even more postponed or is it still underway? Overall it seems like a good thing though. -- Anne van Kesteren <http://annevankesteren.nl/> From olav at olav.dk Tue Apr 12 03:56:38 2005 From: olav at olav.dk (=?ISO-8859-1?Q?Olav_Junker_Kj=E6r?=) Date: Tue, 12 Apr 2005 12:56:38 +0200 Subject: [whatwg] Web Forms 2.0 submission to W3C In-Reply-To: <Pine.LNX.4.61.0504121034150.20461@dhalsim.dreamhost.com> References: <Pine.LNX.4.61.0504112004530.20461@dhalsim.dreamhost.com> <425BA369.8090406@olav.dk> <Pine.LNX.4.61.0504121034150.20461@dhalsim.dreamhost.com> Message-ID: <425BA966.7060407@olav.dk> Ian Hickson wrote: > It is good news. Congratulations then! :-) > It is the first step to working with the W3C to move the > development of the WHATWG specifications into the W3C fold, while keeping > the open nature of the WHATWG development process. Thats cool, but isn't this going to delay the spec for years? I actually agree with W3C that XForms is much more powerful and elegant that WF2, I just think that WF2 is interesting because it has a hope of being practically usable and used on the world wide web in the near future. Without this possibility, WF2 really hasn't much going for it compared to XForms. Or am I to pessimistic? regards Olav Junker kj?r From hsivonen at iki.fi Tue Apr 12 03:57:11 2005 From: hsivonen at iki.fi (Henri Sivonen) Date: Tue, 12 Apr 2005 13:57:11 +0300 Subject: [whatwg] <p> elements containing other block-level elements In-Reply-To: <425B9CA3.20902@myrealbox.com> References: <Pine.LNX.4.61.0504051557200.2016@dhalsim.dreamhost.com> <4254DD87.7010604@annevankesteren.nl> <42555AB0.5070904@lachy.id.au> <42555C24.1010800@annevankesteren.nl> <4255BFA4.4010901@myrealbox.com> <Pine.LNX.4.61.0504081015180.20461@dhalsim.dreamhost.com> <42567A5E.50307@iki.fi> <Pine.LNX.4.61.0504081351400.25142@dhalsim.dreamhost.com> <31627ca7224496bef9b832bae071a7b1@iki.fi> <Pine.LNX.4.61.0504111627190.172@dhalsim.dreamhost.com> <425B2C1E.8080008@lachy.id.au> <425B9CA3.20902@myrealbox.com> Message-ID: <bcf4c4d5867e47f8a9756e3ad99a7892@iki.fi> On Apr 12, 2005, at 13:02, Matthew Thomas wrote: > <http://diveintomark.org/archives/2004/01/14/thought_experiment> Writing software that is guaranteed to emit well-formed XML is not particularly hard. The problem is people consider XML a lax text format that can be produced with ad hoc print statements. -- Henri Sivonen hsivonen at iki.fi http://hsivonen.iki.fi/ From fora at annevankesteren.nl Tue Apr 12 04:02:37 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Tue, 12 Apr 2005 13:02:37 +0200 Subject: [whatwg] <p> elements containing other block-level elements In-Reply-To: <bcf4c4d5867e47f8a9756e3ad99a7892@iki.fi> References: <Pine.LNX.4.61.0504051557200.2016@dhalsim.dreamhost.com> <4254DD87.7010604@annevankesteren.nl> <42555AB0.5070904@lachy.id.au> <42555C24.1010800@annevankesteren.nl> <4255BFA4.4010901@myrealbox.com> <Pine.LNX.4.61.0504081015180.20461@dhalsim.dreamhost.com> <42567A5E.50307@iki.fi> <Pine.LNX.4.61.0504081351400.25142@dhalsim.dreamhost.com> <31627ca7224496bef9b832bae071a7b1@iki.fi> <Pine.LNX.4.61.0504111627190.172@dhalsim.dreamhost.com> <425B2C1E.8080008@lachy.id.au> <425B9CA3.20902@myrealbox.com> <bcf4c4d5867e47f8a9756e3ad99a7892@iki.fi> Message-ID: <425BAACD.5090709@annevankesteren.nl> Henri Sivonen wrote: >> <http://diveintomark.org/archives/2004/01/14/thought_experiment> > > Writing software that is guaranteed to emit well-formed XML is not > particularly hard. The problem is people consider XML a lax text format > that can be produced with ad hoc print statements. On the other hand, if it couldn't be produced that way, it probably wouldn't be that sucessful. -- Anne van Kesteren <http://annevankesteren.nl/> From lachlan.hunt at lachy.id.au Tue Apr 12 04:30:04 2005 From: lachlan.hunt at lachy.id.au (Lachlan Hunt) Date: Tue, 12 Apr 2005 21:30:04 +1000 Subject: [whatwg] <p> elements containing other block-level elements In-Reply-To: <425B9CA3.20902@myrealbox.com> References: <Pine.LNX.4.61.0504051557200.2016@dhalsim.dreamhost.com> <4254DD87.7010604@annevankesteren.nl> <42555AB0.5070904@lachy.id.au> <42555C24.1010800@annevankesteren.nl> <4255BFA4.4010901@myrealbox.com> <Pine.LNX.4.61.0504081015180.20461@dhalsim.dreamhost.com> <42567A5E.50307@iki.fi> <Pine.LNX.4.61.0504081351400.25142@dhalsim.dreamhost.com> <31627ca7224496bef9b832bae071a7b1@iki.fi> <Pine.LNX.4.61.0504111627190.172@dhalsim.dreamhost.com> <425B2C1E.8080008@lachy.id.au> <425B9CA3.20902@myrealbox.com> Message-ID: <425BB13C.8060404@lachy.id.au> Matthew Thomas wrote: > Lachlan Hunt wrote: > >> ... >> I don't understand what's wrong with the XML error handling. I think >> it's great because errors should be caught and handled during the >> authoring process and by the CMS, which XML essentially forces. > > <http://diveintomark.org/archives/2004/01/14/thought_experiment> As I said above, "errors should be caught and handled during the authoring process and by the CMS". That is clearly just a case of the CMS not doing it's job properly and a broken implementation doesn't mean the language is broken. The nature of XML requires that both the client and publishing tool enforce well-formedness, not just one or the other. If your CMS isn't up to the job, then you shouldn't even attempt to maintain a well formed document that accepts input from external sources. I agree with Henri's comment about using ad hoc print statements, rather than a true XML tool that guarentees well formed output. -- Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox From lachlan.hunt at lachy.id.au Tue Apr 12 04:32:50 2005 From: lachlan.hunt at lachy.id.au (Lachlan Hunt) Date: Tue, 12 Apr 2005 21:32:50 +1000 Subject: [whatwg] <p> elements containing other block-level elements In-Reply-To: <Pine.LNX.4.61.0504120926550.20461@dhalsim.dreamhost.com> References: <Pine.LNX.4.61.0504051557200.2016@dhalsim.dreamhost.com> <4254DD87.7010604@annevankesteren.nl> <42555AB0.5070904@lachy.id.au> <42555C24.1010800@annevankesteren.nl> <4255BFA4.4010901@myrealbox.com> <Pine.LNX.4.61.0504081015180.20461@dhalsim.dreamhost.com> <42567A5E.50307@iki.fi> <Pine.LNX.4.61.0504081351400.25142@dhalsim.dreamhost.com> <31627ca7224496bef9b832bae071a7b1@iki.fi> <Pine.LNX.4.61.0504111627190.172@dhalsim.dreamhost.com> <425B2C1E.8080008@lachy.id.au> <Pine.LNX.4.61.0504120926550.20461@dhalsim.dreamhost.com> Message-ID: <425BB1E2.3070907@lachy.id.au> Ian Hickson wrote: > On Tue, 12 Apr 2005, Lachlan Hunt wrote: > >>>We haven't discussed it yet. I hadn't really thought about it but given: >>> >>> <pre><code> ... </code></pre> >>> <blockcode> ... </blockcode> >> >>To use <pre><code> like <blockcode>, one would have to style it with >> >> pre>code:only-child { display: block; } > > Hm? Why? Oh, sorry. I assume your asking about why display: block;? I think I explained why I used :only-clild well enough before. Where this is the need to apply styles to block of code, such as a background colour or border, but those styles don't need to apply all pre elements in general. So, the solution is to either use <pre class="code"><code/></pre> with pre.code { background-color: silver; } Or use: <pre><code/></pre> with: pre>code:only-child { display: block; background-color: silver; } As I said, though, the chances of that affecting a code element within a pre that is not supposed to be block (ie. the e-mail example I gave before) are very slim. >>I don't understand what's wrong with the XML error handling... > > I myself have occasionally made typos and other mistakes that, if I had > used XML, would have left my site unusable, without my knowledge, for > several hours at a time. Don't you check your site after publishing anyway? Would you not have caught the error while previewing in your browser, before publishing? Although, as I said earlier, a CMS should enforce the well-formedness too, not just the end user. -- Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox From hsivonen at iki.fi Tue Apr 12 04:37:16 2005 From: hsivonen at iki.fi (Henri Sivonen) Date: Tue, 12 Apr 2005 14:37:16 +0300 Subject: [whatwg] <p> elements containing other block-level elements In-Reply-To: <Pine.LNX.4.61.0504120926550.20461@dhalsim.dreamhost.com> References: <Pine.LNX.4.61.0504051557200.2016@dhalsim.dreamhost.com> <4254DD87.7010604@annevankesteren.nl> <42555AB0.5070904@lachy.id.au> <42555C24.1010800@annevankesteren.nl> <4255BFA4.4010901@myrealbox.com> <Pine.LNX.4.61.0504081015180.20461@dhalsim.dreamhost.com> <42567A5E.50307@iki.fi> <Pine.LNX.4.61.0504081351400.25142@dhalsim.dreamhost.com> <31627ca7224496bef9b832bae071a7b1@iki.fi> <Pine.LNX.4.61.0504111627190.172@dhalsim.dreamhost.com> <425B2C1E.8080008@lachy.id.au> <Pine.LNX.4.61.0504120926550.20461@dhalsim.dreamhost.com> Message-ID: <09517b62913cebc85107df48f71fddcf@iki.fi> On Apr 12, 2005, at 12:31, Ian Hickson wrote: > Many people feel that a minor typo in their document should not cause > their page to stop rendering altogether. I have spoken with a _lot_ of > authors who really do not like XML's draconian error handling, > including > many authors who are always ensuring their documents are valid. Recently, I made a typo and left out the slash in an end tag (on the tag soup side). Since Gecko forces tag soup into a tree, I didn't notice anything in Firefox. However, in IE my script produced exceedingly weird results. It turned out that IE had created a non-tree DOM and my single typo had multiplied thanks to cloneNode preserving the non-treeness. It would have saved me debugging time if I had seen a parse error message up front. > I myself have occasionally made typos and other mistakes that, if I had > used XML, would have left my site unusable, without my knowledge, for > several hours at a time. From the "tools will save us" point of view, you need a text editor that tries to parse the doc using an XML parser when you intend to write XML. -- Henri Sivonen hsivonen at iki.fi http://hsivonen.iki.fi/ From ian at hixie.ch Tue Apr 12 04:45:06 2005 From: ian at hixie.ch (Ian Hickson) Date: Tue, 12 Apr 2005 11:45:06 +0000 (UTC) Subject: [whatwg] <p> elements containing other block-level elements In-Reply-To: <425BB1E2.3070907@lachy.id.au> References: <Pine.LNX.4.61.0504051557200.2016@dhalsim.dreamhost.com> <4254DD87.7010604@annevankesteren.nl> <42555AB0.5070904@lachy.id.au> <42555C24.1010800@annevankesteren.nl> <4255BFA4.4010901@myrealbox.com> <Pine.LNX.4.61.0504081015180.20461@dhalsim.dreamhost.com> <42567A5E.50307@iki.fi> <Pine.LNX.4.61.0504081351400.25142@dhalsim.dreamhost.com> <31627ca7224496bef9b832bae071a7b1@iki.fi> <Pine.LNX.4.61.0504111627190.172@dhalsim.dreamhost.com> <425B2C1E.8080008@lachy.id.au> <Pine.LNX.4.61.0504120926550.20461@dhalsim.dreamhost.com> <425BB1E2.3070907@lachy.id.au> Message-ID: <Pine.LNX.4.61.0504121140210.20461@dhalsim.dreamhost.com> On Tue, 12 Apr 2005, Lachlan Hunt wrote: > > > > > > To use <pre><code> like <blockcode>, one would have to style it with > > > > > > pre>code:only-child { display: block; } > > > > Hm? Why? > > Where this is the need to apply styles to block of code, such as a > background colour or border, but those styles don't need to apply all > pre elements in general. Oh, well, sure. That's a CSS limitation, though, which should be fixed in CSS. Not something that we want to have unduly affect the language design. > Would you not have caught the error while previewing in your browser, > before publishing? Although, as I said earlier, a CMS should enforce the > well-formedness too, not just the end user. Who said anything about a CMS? The WHATWG specs, for instance, are hand- written. It is very easy (happens all the time) for me to introduce syntax errors that I don't notice for ages (since I often don't check the output, I just suddenly save and go off somewhere, half-way through edits). -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From howcome at opera.com Tue Apr 12 05:21:28 2005 From: howcome at opera.com (=?iso-8859-1?Q?H=E5kon?= Wium Lie) Date: Tue, 12 Apr 2005 14:21:28 +0200 Subject: [whatwg] Web Forms 2.0 submission to W3C In-Reply-To: <425BA966.7060407@olav.dk> References: <Pine.LNX.4.61.0504112004530.20461@dhalsim.dreamhost.com> <425BA369.8090406@olav.dk> <Pine.LNX.4.61.0504121034150.20461@dhalsim.dreamhost.com> <425BA966.7060407@olav.dk> Message-ID: <16987.48456.86422.623685@howcome.oslo.opera.com> Also sprach Olav Junker Kj?r: > > It is the first step to working with the W3C to move the > > development of the WHATWG specifications into the W3C fold, while keeping > > the open nature of the WHATWG development process. > > Thats cool, but isn't this going to delay the spec for years? No. We're in discussions with W3C about how to best organize the work. The traditional "idea -> workshop -> working group -> WD -> CR -> REC" model may not be the best way forward. First, the specification is at a more advanced stage than most submissions, and lots of people have been reviewing it. Second, a healthy community (mostly consisting of this mailing list) has already been established. W3C staff understands these issues and have proposed some ideas for how to move forward that are being discussed. I'm optimistic. > I actually agree with W3C that XForms is much more powerful and elegant > that WF2, I just think that WF2 is interesting because it has a hope of > being practically usable and used on the world wide web in the near > future. Without this possibility, WF2 really hasn't much going for it > compared to XForms. Or am I to pessimistic? I think you're too pessimistic. There is an immense value in having universally understood models on the web. HTML/CSS/JS/DOM are good examples. The models are not perfect (otherwise we wouldn't be here), but work quite well for an amazing number of use cases. Also, these specifications offer a gentle learning curve which should not be underestimated. Shifting to new models at this stage has enormous costs associated with it. The other point, which Ian has made repeatedly, is that a new model also will be tainted by the time it's implemented and deployed, Partial implementations, bugs, tag abuse -- all of this makes the world a sub-optimal place and there is no reason to believe the next model will be any better than what we're currently stuggling with. Finally, just by looking at the markup of the calculator example, I don't see WF2 being any less powerful or elegant: http://ln.hixie.ch/?start=1110316686&count=1 Having said this, I belive WF2 and XForms can and will work together. XForms will find good use on the server side; the model can capture form semantics and do all sorts of data magic there. Clients will continue to be DOM-centric in the future. I also think we will see products that transform rich XForms into rich HTML forms. There are some nice opportunities in this space. -h&kon H?kon Wium Lie CTO ??e?? howcome at opera.com http://people.opera.com/howcome From dean at w3.org Tue Apr 12 05:40:16 2005 From: dean at w3.org (Dean Jackson) Date: Tue, 12 Apr 2005 22:40:16 +1000 Subject: [whatwg] Web Forms 2.0 submission to W3C In-Reply-To: <425BA7D4.5080606@annevankesteren.nl> References: <Pine.LNX.4.61.0504112004530.20461@dhalsim.dreamhost.com> <425BA7D4.5080606@annevankesteren.nl> Message-ID: <9355b9742eb5e854df148917cad94439@w3.org> On 12 Apr 2005, at 20:49, Anne van Kesteren wrote: > Ian Hickson wrote: >> FYI, the W3C has just acknowledged receipt of the Web Forms 2.0 draft >> that Mozilla and Opera submitted (on behalf of the WHATWG). > >> We'll be publishing another call for comments that takes into account >> the technical comments that W3C staff sent to us privately as very >> soon. > > I saw a call for comments has already been published but not yet > announced. Is that made so people can view the diff for the changes > that are made not discussed through this mailing list? > > Is there any specific reason the W3C didn't want to make their > comments public? No specific reason. WF2 is a large specification; It takes a long time to review in detail. As part of my review process I came up with a list of technical points, but I didn't want to put them in the W3C Comment because I was afraid that it would hide the important point: that Opera, Mozilla and the W3C are investigating ways to collaborate. Also, I wanted more people to do thorough technical reviews. Unfortunately, this takes time and these people are busy. > > Also it seems the W3C has a lot of demands that could slow down the > process. Will the call for implementations draft be even more > postponed or is it still underway? Remember that these are not "demands", only suggestions. And we're not making the suggestions for the W3C, but for the community. Having said that, I don't think the suggestions are too much of a burden. For example, it would have really helped me if there had been a more comprehensive list of use cases and requirements. It isn't really clear to me what the exact problems WF2 is trying to solve are, other than what it says in the introduction (which I could unfairly characterise as fix some stuff that some people have been complaining about, to some degree, at some time, on some lists). I'm sure Ian knows exactly what they are. This follows on to the suggestion that WHAT consider splitting (or staging) the specification to separate the bits that are backwards compatible from the bits that are not. It's quite possible that I missed the change in goals, but I thought the idea was that WF2 should "work" in today's browsers (to some definition of "work", but at least one that says the form should not be unusable without scripting). The bits of WF2 that I see most positive discussion on are <input type="date|email|etc">. Hixie joked at me a few months ago when we were discussing entering email addresses into an HTML field using a mobile device. This stuff is very helpful, and doesn't really require the user to upgrade her browser or to run script. Why doesn't WHAT ship those bits now and continue with a WF3? The suggestion to examine the mapping to XForms was mostly because I saw a few new features in WF2 that were pretty closely aligned with existing features in XForms (for example the repeat stuff, which I see is a candidate for removal from WF2). This wasn't supposed to be an insult or anything, but it does suggest that there are some smart people in the XForms world that are trying to solve similar problems to WF2. Overall, the intention wasn't to slow down the process. > Overall it seems like a good thing though. I think so. Like I said in the comment, the important point for us is to build a single community for improving forms on the Web. Dean From howcome at opera.com Tue Apr 12 05:39:45 2005 From: howcome at opera.com (=?iso-8859-1?Q?H=E5kon?= Wium Lie) Date: Tue, 12 Apr 2005 14:39:45 +0200 Subject: [whatwg] Web Forms 2.0 submission to W3C In-Reply-To: <425BA7D4.5080606@annevankesteren.nl> References: <Pine.LNX.4.61.0504112004530.20461@dhalsim.dreamhost.com> <425BA7D4.5080606@annevankesteren.nl> Message-ID: <16987.49553.326512.329073@howcome.oslo.opera.com> Also sprach Anne van Kesteren: > > FYI, the W3C has just acknowledged receipt of the Web Forms 2.0 draft that > > Mozilla and Opera submitted (on behalf of the WHATWG). > > Any reason Apple didn't participate? We tried to submit WF2 in time to be announced at the W3C Plenary meeting in Boston in Feb/Mar. As a result, the submission had to be done quickly and my understanding is that Apple needed more time than we had to review the paperwork. In the end, W3C needed more time than expected to review the submission and we therefore had to keep quiet at the plenary. So, it might have been better to use the time necessary to add more W3C members to the list of sponsors. What really counts, though, is implementations. Really. > > We'll be publishing another call for comments that takes into account the > > technical comments that W3C staff sent to us privately as very soon. > > I saw a call for comments has already been published but not yet > announced. Is that made so people can view the diff for the changes that > are made not discussed through this mailing list? > > Is there any specific reason the W3C didn't want to make their comments > public? We asked for the technical comments to be sent straight to the editor instead of being part of a formal W3C response. This way we could get them more quickly. I don't mind the comments going public (hey, all is public around here ;) but that's a decision W3C has to make. > Also it seems the W3C has a lot of demands that could slow down the > process. Will the call for implementations draft be even more postponed > or is it still underway? As I said in my previous mail, W3C staff are well aware of the weight of the current W3C process. I'm optimistic, though, I think we will find ways for WHAT WG to work with W3C -- this is good news for both. > Overall it seems like a good thing though. Indeed. -h&kon H?kon Wium Lie CTO ??e?? howcome at opera.com http://people.opera.com/howcome From dean at w3.org Tue Apr 12 05:51:52 2005 From: dean at w3.org (Dean Jackson) Date: Tue, 12 Apr 2005 22:51:52 +1000 Subject: [whatwg] Web Forms 2.0 submission to W3C In-Reply-To: <425BA369.8090406@olav.dk> References: <Pine.LNX.4.61.0504112004530.20461@dhalsim.dreamhost.com> <425BA369.8090406@olav.dk> Message-ID: <8acbb76b08594908fb454b01a7c6bbc3@w3.org> On 12 Apr 2005, at 20:31, Olav Junker Kj?r wrote: > Ian Hickson wrote: >> FYI, the W3C has just acknowledged receipt of the Web Forms 2.0 draft >> that Mozilla and Opera submitted (on behalf of the WHATWG). > > Is this good or bad news? The W3C does not seem very enthusiastic > about the submission. I apologise if there appeared to be a negative feeling in the W3C Comment. It definitely wasn't intended. It's true that this was an extremely difficult Submission to handle. The W3C rules suggest that WF2 should be rejected because it was in conflict with existing work. The W3C certainly doesn't want to suggest that the best way to make progress is to start up your own group, develop outside, and then submit back to W3C for a rubber stamp. The W3C process may not be super fast, but that's because it is very strict on things like consensus and patents. However, the positive point is that both sides want to work with each other, and we're busy trying to work out the best approach (we have something in mind). Also, to be clear, the W3C Team Comment is not the authorised opinion of the entire W3C (which includes Opera and Mozilla). It's only a comment from the W3C Staff. Dean From howcome at opera.com Tue Apr 12 06:04:33 2005 From: howcome at opera.com (=?iso-8859-1?Q?H=E5kon?= Wium Lie) Date: Tue, 12 Apr 2005 15:04:33 +0200 Subject: [whatwg] Web Forms 2.0 submission to W3C In-Reply-To: <9355b9742eb5e854df148917cad94439@w3.org> References: <Pine.LNX.4.61.0504112004530.20461@dhalsim.dreamhost.com> <425BA7D4.5080606@annevankesteren.nl> <9355b9742eb5e854df148917cad94439@w3.org> Message-ID: <16987.51041.546473.235308@howcome.oslo.opera.com> Also sprach Dean Jackson: > > Overall it seems like a good thing though. > > I think so. Like I said in the comment, the important point for us > is to build a single community for improving forms on the Web. I agree with this; I think we have rough consensus in the web community within reach. That doesn't necessarily mean everyone will be sitting in the same room, though, nor that there will only be one specification. I think the CSS/XSL can be a good model. W3C accepted a Member submission [1][2] after a Recommendation had been issued [3] and the two groups have managed to stay inside the same organization. There has been some friction along the way, but the friction has generally been productive. [1] http://www.w3.org/Submission/1997/13/ [2] http://www.w3.org/Submission/1997/13/Comment.html [3] http://www.w3.org/TR/REC-CSS1-961217 -h&kon H?kon Wium Lie CTO ??e?? howcome at opera.com http://people.opera.com/howcome From jg307 at hermes.cam.ac.uk Tue Apr 12 06:07:48 2005 From: jg307 at hermes.cam.ac.uk (J. Graham) Date: Tue, 12 Apr 2005 14:07:48 +0100 (BST) Subject: [whatwg] <p> elements containing other block-level elements In-Reply-To: <09517b62913cebc85107df48f71fddcf@iki.fi> References: <Pine.LNX.4.61.0504051557200.2016@dhalsim.dreamhost.com> <4254DD87.7010604@annevankesteren.nl> <42555AB0.5070904@lachy.id.au> <42555C24.1010800@annevankesteren.nl> <4255BFA4.4010901@myrealbox.com> <Pine.LNX.4.61.0504081015180.20461@dhalsim.dreamhost.com> <42567A5E.50307@iki.fi> <Pine.LNX.4.61.0504081351400.25142@dhalsim.dreamhost.com> <31627ca7224496bef9b832bae071a7b1@iki.fi> <Pine.LNX.4.61.0504111627190.172@dhalsim.dreamhost.com> <425B2C1E.8080008@lachy.id.au> <Pine.LNX.4.61.0504120926550.20461@dhalsim.dreamhost.com> <09517b62913cebc85107df48f71fddcf@iki.fi> Message-ID: <Pine.LNX.4.60.0504121359020.2195@hermes-1.csi.cam.ac.uk> On Tue, 12 Apr 2005, Henri Sivonen wrote: > On Apr 12, 2005, at 12:31, Ian Hickson wrote: > >> Many people feel that a minor typo in their document should not cause >> their page to stop rendering altogether. I have spoken with a _lot_ of >> authors who really do not like XML's draconian error handling, including >> many authors who are always ensuring their documents are valid. > > Recently, I made a typo and left out the slash in an end tag (on the tag soup > side). Since Gecko forces tag soup into a tree, I didn't notice anything in > Firefox. Indeed it would be useful if Firefox had the ability to log parse errors to the console (clearly this would have to be off by default). I don't see how this affects whether the current XML error handling scheme is at-all sutiable for use on the web though. From fora at annevankesteren.nl Tue Apr 12 06:49:15 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Tue, 12 Apr 2005 15:49:15 +0200 Subject: [whatwg] [html5] 2.6.1. The a element Message-ID: <425BD1DB.2010105@annevankesteren.nl> Shouldn't the XML model (and therefore the specification) allow nested links? Also, I think this part should be removed: # Otherwise, it represents an anchor: a possible end-point for other # hyperlinks. ... because every element represents an anchor. (Perhaps this should be added to the description of the ID attribute. When it is set, the element becomes an anchor or so.) Also, you want to replace the pointer to #LinkTypes with #link-types. (As #link-types is already used various places it would be wise to change the pointer and more consistent as camelcase isn't really used.) -- Anne van Kesteren <http://annevankesteren.nl/> From ian at hixie.ch Tue Apr 12 06:50:12 2005 From: ian at hixie.ch (Ian Hickson) Date: Tue, 12 Apr 2005 13:50:12 +0000 (UTC) Subject: Call four comments 4 is out (Was: [whatwg] Web Forms 2.0 submission to W3C) In-Reply-To: <425BA7D4.5080606@annevankesteren.nl> References: <Pine.LNX.4.61.0504112004530.20461@dhalsim.dreamhost.com> <425BA7D4.5080606@annevankesteren.nl> Message-ID: <Pine.LNX.4.61.0504121331270.12923@dhalsim.dreamhost.com> On Tue, 12 Apr 2005, Anne van Kesteren wrote: > > > > We'll be publishing another call for comments that takes into account > > the technical comments that W3C staff sent to us privately as very > > soon. > > I saw a call for comments has already been published but not yet > announced. Is that made so people can view the diff for the changes that > are made not discussed through this mailing list? Nah, it was because I was having issues with generating the diffs. If anyone has a decent HTML diffing tool, I'm still in the market for one. Contact me off list. Anyway, yes, as Anne has noticed, the fourth call for comments is out: http://www.whatwg.org/specs/web-forms/2005-04-11-call-for-comments/ Unless we receive substantial comments pointing out problems in the spec, the plan is to go to a call for implementations in a few weeks. > Also it seems the W3C has a lot of demands that could slow down the > process. Will the call for implementations draft be even more postponed > or is it still underway? There are basically five suggestions in the team comment: 1. Splitting the features that work in old UAs from those that don't into two specs, WF2 and WF3. As far as I can tell, we've already done this. The features that work in old UAs are those in HTML4, which we are calling "WF1", and the new features or features that require updates to user agents or that would have to be implemented in script to work in old user agents are in WF2. To be honest I'm not sure if I accurately understood the proposal here, splitting new features from old features doesn't seem to make much sense in a draft intended to be just new features. Another part of the team comment suggests that the split be between new features that are completely backwards compatible from new features that aren't. Since the entire point of WF2 was that all new features be usable in ways that gracefully degrade, this would again mean the spec was just split into what is in WF2 today, and a second empty spec. So I'm not really sure what they meant. 2. Providing comprehensive use cases and requirements. This doesn't really belong in a spec, so I don't think we should change the spec to include them. Many of the features were discussed on this mailing list and use cases and requirements were listed in detail in past discussions, which can be found in the archives. 3. Mapping XForms to WF2 and back. This would be an interesting exercise, but it basically comes down to "implement WF2 in XForms" and "implement XForms in WF2". These are huge tasks, which we don't really have the time to do. Volunteers are welcome, however. 4. Participating in XHTML2 and XForms development. This is unrelated to the WF2 draft itself. 5. Build a community with the W3C. We're working on that, but again this won't affect the draft itself. So basically no, I don't think the process will be affected much. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From ian at hixie.ch Tue Apr 12 07:28:23 2005 From: ian at hixie.ch (Ian Hickson) Date: Tue, 12 Apr 2005 14:28:23 +0000 (UTC) Subject: [whatwg] [html5] 2.6.1. The a element In-Reply-To: <425BD1DB.2010105@annevankesteren.nl> References: <425BD1DB.2010105@annevankesteren.nl> Message-ID: <Pine.LNX.4.61.0504121423210.12923@dhalsim.dreamhost.com> On Tue, 12 Apr 2005, Anne van Kesteren wrote: > > Shouldn't the XML model (and therefore the specification) allow nested > links? I don't know, what would it mean? What would the DOM events processing model be? > Also, I think this part should be removed: > > # Otherwise, it represents an anchor: a possible end-point for other > # hyperlinks. > > ... because every element represents an anchor. (Perhaps this should be > added to the description of the ID attribute. When it is set, the > element becomes an anchor or so.) Fair enough. So what does an <a> element with no href="" represent? Nothing? Or I guess we could make the href="" attribute required. > Also, you want to replace the pointer to #LinkTypes with #link-types. > (As #link-types is already used various places it would be wise to > change the pointer and more consistent as camelcase isn't really used.) Anything that cross-refs to text past the big yellow-and-black <hr> element will be reexamined at some point, don't worry about those. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From fora at annevankesteren.nl Tue Apr 12 07:32:18 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Tue, 12 Apr 2005 16:32:18 +0200 Subject: [whatwg] [html5] 2.6.1. The a element In-Reply-To: <Pine.LNX.4.61.0504121423210.12923@dhalsim.dreamhost.com> References: <425BD1DB.2010105@annevankesteren.nl> <Pine.LNX.4.61.0504121423210.12923@dhalsim.dreamhost.com> Message-ID: <425BDBF2.3080709@annevankesteren.nl> Ian Hickson wrote: >> Shouldn't the XML model (and therefore the specification) allow >> nested links? > > I don't know, what would it mean? What would the DOM events > processing model be? Perhaps we could ask the XLink WG (or XML Core, or whatever) and the HTML WG (XHTML 2)... > Fair enough. So what does an <a> element with no href="" represent? > Nothing? Or I guess we could make the href="" attribute required. With nothing it represents a semantically meaningless element, like SPAN. Making the HREF attribute required seems like a good thing to do. -- Anne van Kesteren <http://annevankesteren.nl/> From ian at hixie.ch Tue Apr 12 07:38:38 2005 From: ian at hixie.ch (Ian Hickson) Date: Tue, 12 Apr 2005 14:38:38 +0000 (UTC) Subject: [whatwg] [html5] 2.6.1. The a element In-Reply-To: <425BDBF2.3080709@annevankesteren.nl> References: <425BD1DB.2010105@annevankesteren.nl> <Pine.LNX.4.61.0504121423210.12923@dhalsim.dreamhost.com> <425BDBF2.3080709@annevankesteren.nl> Message-ID: <Pine.LNX.4.61.0504121437510.12923@dhalsim.dreamhost.com> On Tue, 12 Apr 2005, Anne van Kesteren wrote: > > > > > > Shouldn't the XML model (and therefore the specification) allow > > > nested links? > > > > I don't know, what would it mean? What would the DOM events processing > > model be? > > Perhaps we could ask the XLink WG (or XML Core, or whatever) and the > HTML WG (XHTML 2)... I volunteer you for that task. :-P In the meantime... > > Fair enough. So what does an <a> element with no href="" represent? > > Nothing? Or I guess we could make the href="" attribute required. > > With nothing it represents a semantically meaningless element, like > SPAN. Making the HREF attribute required seems like a good thing to do. Okie dokie. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From fora at annevankesteren.nl Tue Apr 12 10:43:38 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Tue, 12 Apr 2005 19:43:38 +0200 Subject: [whatwg] [html5] 2.6.4. The small element Message-ID: <425C08CA.9030005@annevankesteren.nl> It looks like the draft says that it does "de-emphasise" text and does "de-important" text when such text does not have an ancestor EM or STRONG element. If this is just a note to make sure people don't misunderstand the element, make it a note. If you actually mean what I just wrote it might be wort to make it more explicit. -- Anne van Kesteren <http://annevankesteren.nl/> From fora at annevankesteren.nl Tue Apr 12 10:45:56 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Tue, 12 Apr 2005 19:45:56 +0200 Subject: [whatwg] [wf2] broken diff links Message-ID: <425C0954.6030505@annevankesteren.nl> The links to the diff files: <http://whatwg.org/specs/web-forms/current-work/> ... are both broken. -- Anne van Kesteren <http://annevankesteren.nl/> From ian at hixie.ch Tue Apr 12 11:56:03 2005 From: ian at hixie.ch (Ian Hickson) Date: Tue, 12 Apr 2005 18:56:03 +0000 (UTC) Subject: [whatwg] [html5] 2.6.4. The small element In-Reply-To: <425C08CA.9030005@annevankesteren.nl> References: <425C08CA.9030005@annevankesteren.nl> Message-ID: <Pine.LNX.4.61.0504121855290.9@dhalsim.dreamhost.com> On Tue, 12 Apr 2005, Anne van Kesteren wrote: > > It looks like the draft says that it does "de-emphasise" text and does > "de-important" text when such text does not have an ancestor EM or > STRONG element. If this is just a note to make sure people don't > misunderstand the element, make it a note. If you actually mean what I > just wrote it might be wort to make it more explicit. My, you really are tracking my changes as I make them. Thanks for your suggestion. I have made it into a note. Cheers, -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From ian at hixie.ch Tue Apr 12 11:58:25 2005 From: ian at hixie.ch (Ian Hickson) Date: Tue, 12 Apr 2005 18:58:25 +0000 (UTC) Subject: [whatwg] [wf2] broken diff links In-Reply-To: <425C0954.6030505@annevankesteren.nl> References: <425C0954.6030505@annevankesteren.nl> Message-ID: <Pine.LNX.4.61.0504121856400.9@dhalsim.dreamhost.com> On Tue, 12 Apr 2005, Anne van Kesteren wrote: > > The links to the diff files: > <http://whatwg.org/specs/web-forms/current-work/> > ... are both broken. Yeah, I was having problems with the diff tool earlier and then my laptop had a hardwre crash and I forgot about it. I've restarted the diffing process. Thanks for reminding me. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From christoph.paeper at tu-clausthal.de Tue Apr 12 12:34:17 2005 From: christoph.paeper at tu-clausthal.de (=?iso-8859-1?Q?Christoph_P=E4per?=) Date: Tue, 12 Apr 2005 21:34:17 +0200 Subject: [whatwg] [html5] 2.6.1. The a element In-Reply-To: <Pine.LNX.4.61.0504121423210.12923@dhalsim.dreamhost.com> References: <425BD1DB.2010105@annevankesteren.nl> <Pine.LNX.4.61.0504121423210.12923@dhalsim.dreamhost.com> Message-ID: <opso4wnfonofh7fl@crissov.heim4.tu-clausthal.de> *Ian Hickson <ian at hixie.ch>*: > > So what does an <a> element with no href="" represent? Nothing? Or I > guess we could make the href="" attribute required. I frequently use and advice to do navigation lists like this: <div><map id="nav"><ul> <li><a href="/">Home</a></li> ... <li><a>Current page</a></li> ... <li><a href="/contact/">Contact</a></li> </ul></map></div> (I use 'map', because 'menu' is deprecated, and 'div', because in HTML4S 'map' cannot be a child of 'body'---but let's not get distracted.) The current page should not link to itself, but for consistency (and styling) I like to keep the 'a' element instance, just without an 'href' attribute. Elsewhere I also use 'a' instead of 'span', because it's IMHO equally meaningful, but shorter. So, no, I don't think 'href' should be required for 'a'. From ian at hixie.ch Tue Apr 12 13:02:44 2005 From: ian at hixie.ch (Ian Hickson) Date: Tue, 12 Apr 2005 20:02:44 +0000 (UTC) Subject: [whatwg] [html5] 2.6.1. The a element In-Reply-To: <opso4wnfonofh7fl@crissov.heim4.tu-clausthal.de> References: <425BD1DB.2010105@annevankesteren.nl> <Pine.LNX.4.61.0504121423210.12923@dhalsim.dreamhost.com> <opso4wnfonofh7fl@crissov.heim4.tu-clausthal.de> Message-ID: <Pine.LNX.4.61.0504121944590.9@dhalsim.dreamhost.com> On Tue, 12 Apr 2005, Christoph P?per wrote: > > > > So what does an <a> element with no href="" represent? Nothing? Or I > > guess we could make the href="" attribute required. > > I frequently use and advice to do navigation lists like this: > > <div><map id="nav"><ul> > <li><a href="/">Home</a></li> > ... > <li><a>Current page</a></li> > ... > <li><a href="/contact/">Contact</a></li> > </ul></map></div> > > The current page should not link to itself, but for consistency (and > styling) I like to keep the 'a' element instance, just without an 'href' > attribute. Elsewhere I also use 'a' instead of 'span', because it's IMHO > equally meaningful, but shorter. So, no, I don't think 'href' should be > required for 'a'. Fair enough. I will update the spec. > (I use 'map', because 'menu' is deprecated, and 'div', because in HTML4S > 'map' cannot be a child of 'body'---but let's not get distracted.) You want the new <navigation>. (<menu> is for things like context menus in the current draft for HTML5.) -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From lists at misinterpreted.net Tue Apr 12 15:43:15 2005 From: lists at misinterpreted.net (Henrik Lied) Date: Wed, 13 Apr 2005 00:43:15 +0200 Subject: [whatwg] HTML5: Deprecate the SMALL element Message-ID: <425C4F03.7030306@misinterpreted.net> The element SMALL should be deprecated, as it describes the appearance of the content. Alternatively, a new name for the element could be created. Since SMALL is usually used to describe copyright-notices and other legal descriptions, my proposal for a new name is DISCLAIMER or NOTES. -- ------------------------------ Henrik Lied http://misinterpreted.net/ henrik at misinterpreted.net From dean at edwards.name Tue Apr 12 15:47:22 2005 From: dean at edwards.name (Dean Edwards) Date: Tue, 12 Apr 2005 23:47:22 +0100 Subject: [whatwg] HTML5: Deprecate the SMALL element In-Reply-To: <425C4F03.7030306@misinterpreted.net> References: <425C4F03.7030306@misinterpreted.net> Message-ID: <425C4FFA.5030604@edwards.name> Hey I like naming things! How about DEM for de-emphasise? -dean Henrik Lied wrote: > The element SMALL should be deprecated, as it describes the appearance > of the content. > Alternatively, a new name for the element could be created. > > Since SMALL is usually used to describe copyright-notices and other > legal descriptions, > my proposal for a new name is DISCLAIMER or NOTES. > From lists at misinterpreted.net Tue Apr 12 15:58:43 2005 From: lists at misinterpreted.net (Henrik Lied) Date: Wed, 13 Apr 2005 00:58:43 +0200 Subject: [whatwg] HTML5: New link-types regarding guideline 2.4 in WCAG 2.0 Message-ID: <425C52A3.70801@misinterpreted.net> In guideline 2.4 of the Web Content Accessibility Guidelines 2 (http://www.w3.org/TR/2004/WD-WCAG20-20041119/#navigation-mechanisms) it is recommended to add a visual skip link to jump to the different sections of a document. As Anne van Kesteren writes about in his post named 'Skip links should be a markup problem', these aids shouldn't be visual. In one of the comments in that post, it was proposed to use the LINK element with a REL attribute which relates to the different sections of the site. I would therefore propose that these link-types should be recommended in the Web Applications 1.0 WD: NAVIGATION Relates to the main site-navigation CONTENT Relates to the head of content ADDITIONAL Relates to an additional section, e.g. a sidebar DISCLAIMER Relates to the copyright-notice/legal agreements in the document -- ------------------------------ Henrik Lied http://misinterpreted.net/ henrik at misinterpreted.net From ian at hixie.ch Tue Apr 12 16:02:31 2005 From: ian at hixie.ch (Ian Hickson) Date: Tue, 12 Apr 2005 23:02:31 +0000 (UTC) Subject: [whatwg] HTML5: Deprecate the SMALL element In-Reply-To: <425C4F03.7030306@misinterpreted.net> References: <425C4F03.7030306@misinterpreted.net> Message-ID: <Pine.LNX.4.61.0504122300210.9@dhalsim.dreamhost.com> On Wed, 13 Apr 2005, Henrik Lied wrote: > > The element SMALL should be deprecated, as it describes the appearance > of the content. Alternatively, a new name for the element could be > created. > > Since SMALL is usually used to describe copyright-notices and other > legal descriptions, my proposal for a new name is DISCLAIMER or NOTES. The name is (in HTML5) short for "small print", which doesn't imply that the text is small, but is the name given to runs of legal text or disclaimers (whatever their actual font size). Keeping the name <small> has the advantage that it will also happen to work in legacy browsers. I don't see what the advantage of a new name would be. The way the element is defined in the draft at the moment is completely independent of the rendering. It doesn't describe the appearance. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From ian at hixie.ch Tue Apr 12 16:06:45 2005 From: ian at hixie.ch (Ian Hickson) Date: Tue, 12 Apr 2005 23:06:45 +0000 (UTC) Subject: [whatwg] HTML5: New link-types regarding guideline 2.4 in WCAG 2.0 In-Reply-To: <425C52A3.70801@misinterpreted.net> References: <425C52A3.70801@misinterpreted.net> Message-ID: <Pine.LNX.4.61.0504122304030.9@dhalsim.dreamhost.com> On Wed, 13 Apr 2005, Henrik Lied wrote: > > I would therefore propose that these link-types should be recommended in > the Web Applications 1.0 WD: > > NAVIGATION Relates to the main site-navigation > CONTENT Relates to the head of content > ADDITIONAL Relates to an additional section, e.g. a > sidebar > DISCLAIMER Relates to the copyright-notice/legal > agreements in the document Those are already in the spec, in fact. Except that they are not link types, but new elements. <navigation> is for site navigation. <article> contains the content. <aside> contains a sidebar. <footer> contains the footer (specifically, <small> inside <footer> contains the small print). Thus we don't need link types, and authors can stop using "skip" links -- user agents can instead automatically skip anything that the user wants to skip, without the author having to worry about adding in such links. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From lachlan.hunt at lachy.id.au Tue Apr 12 19:06:31 2005 From: lachlan.hunt at lachy.id.au (Lachlan Hunt) Date: Wed, 13 Apr 2005 12:06:31 +1000 Subject: [whatwg] HTML5: New link-types regarding guideline 2.4 in WCAG 2.0 In-Reply-To: <425C52A3.70801@misinterpreted.net> References: <425C52A3.70801@misinterpreted.net> Message-ID: <425C7EA7.5090808@lachy.id.au> Henrik Lied wrote: > In one of the comments in that post, it was proposed to use the LINK > element with a REL attribute which relates to the different sections of > the site. > ... > NAVIGATION Relates to the main site-navigation > CONTENT Relates to the head of content > ADDITIONAL Relates to an additional section, e.g. > a sidebar > DISCLAIMER Relates to the copyright-notice/legal Hmm, interesting. They seem like more specific versions of rel="bookmark": "A bookmark is a link to a key entry point within an extended document..." Although, that definition is somewhat ambiguious, as HTML4 doesn't seem to define the meaning of "extended document". Anyway, while on the topic of link types, what does everyone think of these "web communication link relationships" [1] that I worked on a few months ago? It includes relationships like: permalink, feed, via, related, referral, pingback (borrowed from Pingback 1.0), trackback, etc. Could some of these be improved and included within web apps? [1] http://lachy.id.au/dev/markup/specs/wclr/ -- Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox From jim.ley at gmail.com Wed Apr 13 01:03:09 2005 From: jim.ley at gmail.com (Jim Ley) Date: Wed, 13 Apr 2005 09:03:09 +0100 Subject: [whatwg] <p> elements containing other block-level elements In-Reply-To: <bcf4c4d5867e47f8a9756e3ad99a7892@iki.fi> References: <Pine.LNX.4.61.0504051557200.2016@dhalsim.dreamhost.com> <4255BFA4.4010901@myrealbox.com> <Pine.LNX.4.61.0504081015180.20461@dhalsim.dreamhost.com> <42567A5E.50307@iki.fi> <Pine.LNX.4.61.0504081351400.25142@dhalsim.dreamhost.com> <31627ca7224496bef9b832bae071a7b1@iki.fi> <Pine.LNX.4.61.0504111627190.172@dhalsim.dreamhost.com> <425B2C1E.8080008@lachy.id.au> <425B9CA3.20902@myrealbox.com> <bcf4c4d5867e47f8a9756e3ad99a7892@iki.fi> Message-ID: <851c8d3105041301034dc8fda7@mail.gmail.com> On 4/12/05, Henri Sivonen <hsivonen at iki.fi> wrote: > On Apr 12, 2005, at 13:02, Matthew Thomas wrote: > > > <http://diveintomark.org/archives/2004/01/14/thought_experiment> > > Writing software that is guaranteed to emit well-formed XML is not > particularly hard. That depends on your definition of hard, it's clearly beyond many people in the community, even such sites as http://webstandards.org/ and the XML Working group have published non-well formed XML recently - down to encoding issues, almost always. I can't really see how if these groups can't do it, when they have marketing aswell as technical reasons to do it we can expect others to. Jim. From jim.ley at gmail.com Wed Apr 13 01:09:22 2005 From: jim.ley at gmail.com (Jim Ley) Date: Wed, 13 Apr 2005 09:09:22 +0100 Subject: Call four comments 4 is out (Was: [whatwg] Web Forms 2.0 submission to W3C) In-Reply-To: <Pine.LNX.4.61.0504121331270.12923@dhalsim.dreamhost.com> References: <Pine.LNX.4.61.0504112004530.20461@dhalsim.dreamhost.com> <425BA7D4.5080606@annevankesteren.nl> <Pine.LNX.4.61.0504121331270.12923@dhalsim.dreamhost.com> Message-ID: <851c8d31050413010947decf60@mail.gmail.com> On 4/12/05, Ian Hickson <ian at hixie.ch> wrote: > 2. Providing comprehensive use cases and requirements. This doesn't really > belong in a spec, so I don't think we should change the spec to include > them. Then please publish a seperate requirements document that does list them. I'm sure the WHAT-WG must have the resources to simply write up something which you now claim to be "listed in detail". I've asked repeatedly on the list before, and all I've been told is that the use cases were in the un-archived part of the work before the mailing list was formed. I can't find the use cases on the list, so please provide another document, or at the very least, point to them. Without use cases, we can't review the spec, because we don't know what you're trying to solve. Jim. From ian at hixie.ch Wed Apr 13 01:26:57 2005 From: ian at hixie.ch (Ian Hickson) Date: Wed, 13 Apr 2005 08:26:57 +0000 (UTC) Subject: Call four comments 4 is out (Was: [whatwg] Web Forms 2.0 submission to W3C) In-Reply-To: <851c8d31050413010947decf60@mail.gmail.com> References: <Pine.LNX.4.61.0504112004530.20461@dhalsim.dreamhost.com> <425BA7D4.5080606@annevankesteren.nl> <Pine.LNX.4.61.0504121331270.12923@dhalsim.dreamhost.com> <851c8d31050413010947decf60@mail.gmail.com> Message-ID: <Pine.LNX.4.61.0504130826040.9@dhalsim.dreamhost.com> On Wed, 13 Apr 2005, Jim Ley wrote: > > Then please publish a seperate requirements document that does list > [the use cases]. Ok. Could you provide us with a list of features you believe need use cases listed? That would be really helpful in creating such a document. Thanks! -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From dean at w3.org Wed Apr 13 02:08:49 2005 From: dean at w3.org (Dean Jackson) Date: Wed, 13 Apr 2005 19:08:49 +1000 Subject: Call four comments 4 is out (Was: [whatwg] Web Forms 2.0 submission to W3C) In-Reply-To: <Pine.LNX.4.61.0504130826040.9@dhalsim.dreamhost.com> References: <Pine.LNX.4.61.0504112004530.20461@dhalsim.dreamhost.com> <425BA7D4.5080606@annevankesteren.nl> <Pine.LNX.4.61.0504121331270.12923@dhalsim.dreamhost.com> <851c8d31050413010947decf60@mail.gmail.com> <Pine.LNX.4.61.0504130826040.9@dhalsim.dreamhost.com> Message-ID: <f8cebc87c089276ba7510299c1bcce0f@w3.org> On 13 Apr 2005, at 18:26, Ian Hickson wrote: > On Wed, 13 Apr 2005, Jim Ley wrote: >> >> Then please publish a seperate requirements document that does list >> [the use cases]. > > Ok. Could you provide us with a list of features you believe need use > cases listed? That would be really helpful in creating such a document. All of them. For example, I see many new HTML elements in (the strangely named) Web Applications 1.0 for which I'd like to see the requirements. If only to understand why you chose a different approach than the W3C HTML Working Group (eg. maybe you are trying to solve a different use case and therefore have a different requirement). Dean From ian at hixie.ch Wed Apr 13 02:31:24 2005 From: ian at hixie.ch (Ian Hickson) Date: Wed, 13 Apr 2005 09:31:24 +0000 (UTC) Subject: Call four comments 4 is out (Was: [whatwg] Web Forms 2.0 submission to W3C) In-Reply-To: <f8cebc87c089276ba7510299c1bcce0f@w3.org> References: <Pine.LNX.4.61.0504112004530.20461@dhalsim.dreamhost.com> <425BA7D4.5080606@annevankesteren.nl> <Pine.LNX.4.61.0504121331270.12923@dhalsim.dreamhost.com> <851c8d31050413010947decf60@mail.gmail.com> <Pine.LNX.4.61.0504130826040.9@dhalsim.dreamhost.com> <f8cebc87c089276ba7510299c1bcce0f@w3.org> Message-ID: <Pine.LNX.4.61.0504130926070.9@dhalsim.dreamhost.com> On Wed, 13 Apr 2005, Dean Jackson wrote: > > > > Ok. Could you provide us with a list of features you believe need use > > cases listed? That would be really helpful in creating such a > > document. > > All of them. That's never going to happen, just like the XHTML working group has never published a document with use cases for all their features. Ditto the SVG group, the CSS group, and so forth. Most of the features have quite obvious use cases -- for example the use case for the first feature in the Web Apps draft -- <html> -- is having a predictable root element for the document or document fragment. I can maybe find the time to produce a document summarising the use cases for the less obvious features (probably by simply copying the text from e-mails in the archives of this mailing list, where the features mostly originated), but I don't want to waste time doing so for dozens of features where the use cases are obvious and nobody disagrees. > For example, I see many new HTML elements in (the strangely named) Web > Applications 1.0 for which I'd like to see the requirements. If only to > understand why you chose a different approach than the W3C HTML Working > Group (eg. maybe you are trying to solve a different use case and > therefore have a different requirement). The two different requirements are "backwards compatibility" and "well defined error handling / processing model". I expect every difference in the details of common features can be traced down to those two things. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From olav at olav.dk Wed Apr 13 03:58:30 2005 From: olav at olav.dk (=?ISO-8859-1?Q?Olav_Junker_Kj=E6r?=) Date: Wed, 13 Apr 2005 12:58:30 +0200 Subject: Call four comments 4 is out (Was: [whatwg] Web Forms 2.0 submission to W3C) In-Reply-To: <Pine.LNX.4.61.0504130826040.9@dhalsim.dreamhost.com> References: <Pine.LNX.4.61.0504112004530.20461@dhalsim.dreamhost.com> <425BA7D4.5080606@annevankesteren.nl> <Pine.LNX.4.61.0504121331270.12923@dhalsim.dreamhost.com> <851c8d31050413010947decf60@mail.gmail.com> <Pine.LNX.4.61.0504130826040.9@dhalsim.dreamhost.com> Message-ID: <425CFB56.4040406@olav.dk> Ian Hickson wrote: > Ok. Could you provide us with a list of features you believe need use > cases listed? That would be really helpful in creating such a document. Some feature in WF2 for which the use cases are not immediately obvious: - the output element and the readonly attribute. Its not obvious why we need both, and when you should use which. - the data-scheme in form submission (debugging has been mentioned as a use case, but its not obvious from the spec) - the "javascript:" scheme in form submissions - the "file:" scheme; post, put and delete methods - file upload - the form attribute. (The use case in the spec seem a little contrived) - the _charset_ field - step attribute on range - step attribute on date - list attribute on range - changing data attribute on a select element several times during page load Use cases are useful not just to justify features, but also as documentation of the intention of the spec. Often I understand a feature better by reading the use case, rather than by reading the precise specification. regards Olav Junker Kj?r From ian at hixie.ch Wed Apr 13 04:01:25 2005 From: ian at hixie.ch (Ian Hickson) Date: Wed, 13 Apr 2005 11:01:25 +0000 (UTC) Subject: [whatwg] Web Forms 2.0 Feedback In-Reply-To: <46059C2B-6095-11D9-A9B2-000A95AD3972@myrealbox.com> References: <20040820152320.20139.qmail@web50905.mail.yahoo.com> <AD9C29E9-F8BF-11D8-8A8C-000A95AD3972@myrealbox.com> <Pine.LNX.4.61.0411070509130.8631@dhalsim.dreamhost.com> <B20F7A62-32BA-11D9-ACF9-000A95AD3972@myrealbox.com> <Pine.LNX.4.61.0412080206110.4755@dhalsim.dreamhost.com> <285F37A7-48ED-11D9-87BF-000A95AD3972@myrealbox.com> <41B72113.8090500@earthlink.net> <D4483462-49AA-11D9-87BF-000A95AD3972@myrealbox.com> <41DBF3EF.5050909@earthlink.net> <2B50B8F4-5FEB-11D9-BE51-000A95AD3972@myrealbox.com> <41DD51F5.9040106@cam.ac.uk> <Pine.LNX.4.61.0501061645550.1160@dhalsim.dreamhost.com> <46059C2B-6095-11D9-A9B2-000A95AD3972@myrealbox.com> Message-ID: <Pine.LNX.4.61.0504131010550.9@dhalsim.dreamhost.com> (I hope y'all don't mind me replying to all your e-mails out of order. I'm basically going down the spec one element at a time and when I come across one that someone has discussed in the past, I reply to those e-mails.) On Fri, 7 Jan 2005, Matthew Thomas wrote: > On 7 Jan, 2005, at 5:58 AM, Ian Hickson wrote: > > ... > > For <sub>, the ideal aural rendering depends on the context, but humans > > are adept at interpreting things based on context and you could probably get > > away with rendering sub by simply prefixing its contents with the syllable > > "sub", as in "H sub-two O" for "H<sub>2</sub>O". > > ... > > the fact that you can use the element to sensibly change the aural rendering > > suggests to be that it is semantic enough to be kept in HTML. > > Except that "sub" is merely (an abbreviation of) a description of the > typographical presentation! You might just as well say that H<font > color="green">2</font>O is semantic because it could be pronounced as "H > green-two O". But it wouldn't be, and that's rather my point. I rarely hear people calling out the fact that something is bold or italics or red when they are reading text out. I _do_ hear them say "sub-" this and "super-" that. > > It's not ideal, and for a better aural rendering you would use a > > speech-capable UA that supported ChemML, MathML, or another more > > appropriate standard language natively, and pass content to it using > > the appropriate domain-specific language. > > FWIW, in the case of ChemML that wouldn't help -- as far as I know > (having just consulted the household science teacher), there is no > standard way of pronouncing chemical formulas so as to distinguish > subscripts even from normal numbers. So using aural rendering to decide > whether an element is semantic wouldn't work in that case. There's no standard rendering, but there are conventions that a UA author can use. There are several use cases I can see for <sub> and <sup> that I consider to be semantic and not presentational. However, it seems very much to be on the fine line between the two, and I am interested in hearing of ideas that would more clearly move <sub>/<sup> or new elements into the semantic camp. Use cases: In french, parts of words (abbreviations, usually) are always superscripted. For example, the "lle" in "Mlle". In chemistry, number of atoms, atomic weights, charge, etc, are superscripted and subscripted. In variables names parts are often subscripted to indicate a specific variable in a family of variables. In maths, superscripts are used for powers. And of course in lots of other fields there are specific uses for them too. I propose to try to address as many of possible of these use cases in specific ways. For example, "Mlle" would be: <abbr>M<sup>lle</sup></abbr> ...and variable subscripts would be: <var>x<sub>2</sub></var> I'm not sure how to deal with the chemistry case. We don't really have an element for anything like chemical formulas. For maths, MathML comes to mind, although only for the XML serialisation. Any other cases? Any suggestions? -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From olav at olav.dk Wed Apr 13 04:02:00 2005 From: olav at olav.dk (=?ISO-8859-1?Q?Olav_Junker_Kj=E6r?=) Date: Wed, 13 Apr 2005 13:02:00 +0200 Subject: [whatwg] Web Forms 2.0 submission to W3C In-Reply-To: <16987.48456.86422.623685@howcome.oslo.opera.com> References: <Pine.LNX.4.61.0504112004530.20461@dhalsim.dreamhost.com> <425BA369.8090406@olav.dk> <Pine.LNX.4.61.0504121034150.20461@dhalsim.dreamhost.com> <425BA966.7060407@olav.dk> <16987.48456.86422.623685@howcome.oslo.opera.com> Message-ID: <425CFC28.3090905@olav.dk> > Finally, just by looking at the markup of the calculator example, I > don't see WF2 being any less powerful or elegant Yeah, I agree, and I didn't mean to slam WF2 which I think is a very fine spec. I was just afraid that W3C would disregard the "killer features" of WF2 which is backwards-compatibility, familiarity and the possibility of widespread deployment on the web. The current W3C approach of XHTML 2.0 + XForms seem to indicate different priorities. The W3C staff comments suggest that they wish to see a merge between the WF2 and XForms. This is understandable from a political perspective - nobody really wants fragmentation of HTML standards. But if the consequence is a spec which is a compromise between XForms and WF2, I think it would be the worst of both worlds. It might however be a good idea to position WF2 and XForms like CSS and XSL - specs which technically cover the same ground but which are optimized for different use cases. A closer cooperation and sharing of ideas between XForms and WF2 communities will certainly be a boon for everyone. In the end, HTML extensions do belong in the W3C. So I'll be optimistic now! regards Olav Junker Kj?r From ian at hixie.ch Wed Apr 13 04:03:53 2005 From: ian at hixie.ch (Ian Hickson) Date: Wed, 13 Apr 2005 11:03:53 +0000 (UTC) Subject: [whatwg] Web Forms 2.0 Feedback In-Reply-To: <5ccfb334050107024719f475a2@mail.gmail.com> References: <20040820152320.20139.qmail@web50905.mail.yahoo.com> <Pine.LNX.4.61.0412080206110.4755@dhalsim.dreamhost.com> <285F37A7-48ED-11D9-87BF-000A95AD3972@myrealbox.com> <41B72113.8090500@earthlink.net> <D4483462-49AA-11D9-87BF-000A95AD3972@myrealbox.com> <41DBF3EF.5050909@earthlink.net> <2B50B8F4-5FEB-11D9-BE51-000A95AD3972@myrealbox.com> <41DD51F5.9040106@cam.ac.uk> <Pine.LNX.4.61.0501061645550.1160@dhalsim.dreamhost.com> <46059C2B-6095-11D9-A9B2-000A95AD3972@myrealbox.com> <5ccfb334050107024719f475a2@mail.gmail.com> Message-ID: <Pine.LNX.4.61.0504131102070.9@dhalsim.dreamhost.com> On Fri, 7 Jan 2005, Rimantas Liubertas wrote: > > I cannot agree. We should not mix typographical presentation for > presentation sake and typographical presentation for semantic reason. > While it may be not a big deal in chemistry, it is not so in math. This may be a good way of putting it in the spec: "typographical conventions with specific meanings (as opposed to typographical presentation for presentation's sake)". > Or is E=mc2 same as E=mc<sup>2</sup>? > Do log4nm and log<sub>4</sub>n<sup>m</sup> differ? Good examples, I'll use this in the spec (assuming that's ok with you!). Thanks, -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From ian at hixie.ch Wed Apr 13 04:04:49 2005 From: ian at hixie.ch (Ian Hickson) Date: Wed, 13 Apr 2005 11:04:49 +0000 (UTC) Subject: [whatwg] Web Forms 2.0 Feedback In-Reply-To: <41DE85DF.3020106@cam.ac.uk> References: <20040820152320.20139.qmail@web50905.mail.yahoo.com> <AD9C29E9-F8BF-11D8-8A8C-000A95AD3972@myrealbox.com> <Pine.LNX.4.61.0411070509130.8631@dhalsim.dreamhost.com> <B20F7A62-32BA-11D9-ACF9-000A95AD3972@myrealbox.com> <Pine.LNX.4.61.0412080206110.4755@dhalsim.dreamhost.com> <285F37A7-48ED-11D9-87BF-000A95AD3972@myrealbox.com> <41B72113.8090500@earthlink.net> <D4483462-49AA-11D9-87BF-000A95AD3972@myrealbox.com> <41DBF3EF.5050909@earthlink.net> <2B50B8F4-5FEB-11D9-BE51-000A95AD3972@myrealbox.com> <41DD51F5.9040106@cam.ac.uk> <Pine.LNX.4.61.0501061645550.1160@dhalsim.dreamhost.com> <46059C2B-6095-11D9-A9B2-000A95AD3972@myrealbox.com> <41DE85DF.3020106@cam.ac.uk> Message-ID: <Pine.LNX.4.61.0504131104190.9@dhalsim.dreamhost.com> On Fri, 7 Jan 2005, James Graham wrote: > Because that happens to be a convenient umbrella for specific > constructions in documents that need to be treated in a particular way > by UAs. Indeed I would be more than happy if Web Apps "clarified" the > situation with <sup> and <sub> so that purely presentational uses like > L<sup>A</sup>T<sub>E</sub>X were forbidden as these uses undermine the > ability to UAs to provide an appropriate rendering in the case where the > presence of "superscripts" or "subscripts" in a sequence of charcters is > important information that needs to be passed on to the user. I shall include that example as something not to do; good idea. Thanks, -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From ian at hixie.ch Wed Apr 13 04:20:27 2005 From: ian at hixie.ch (Ian Hickson) Date: Wed, 13 Apr 2005 11:20:27 +0000 (UTC) Subject: [whatwg] Web Forms 2.0 Feedback In-Reply-To: <41DF1C57.40801@myrealbox.com> References: <20040820152320.20139.qmail@web50905.mail.yahoo.com> <AD9C29E9-F8BF-11D8-8A8C-000A95AD3972@myrealbox.com> <Pine.LNX.4.61.0411070509130.8631@dhalsim.dreamhost.com> <B20F7A62-32BA-11D9-ACF9-000A95AD3972@myrealbox.com> <Pine.LNX.4.61.0412080206110.4755@dhalsim.dreamhost.com> <285F37A7-48ED-11D9-87BF-000A95AD3972@myrealbox.com> <41B72113.8090500@earthlink.net> <D4483462-49AA-11D9-87BF-000A95AD3972@myrealbox.com> <41DBF3EF.5050909@earthlink.net> <2B50B8F4-5FEB-11D9-BE51-000A95AD3972@myrealbox.com> <41DD51F5.9040106@cam.ac.uk> <Pine.LNX.4.61.0501061645550.1160@dhalsim.dreamhost.com> <46059C2B-6095-11D9-A9B2-000A95AD3972@myrealbox.com> <41DE95F5.7080201@earthlink.net> <41DF1C57.40801@myrealbox.com> Message-ID: <Pine.LNX.4.61.0504131106080.9@dhalsim.dreamhost.com> On Fri, 7 Jan 2005, dolphinling wrote: > > "green" is just as meaningful as "subscript"--they're both purely > presentational, and we as people have attached meanings to certain > presentations. The semantics of "subscript" are completely different > from the semantics of "there are two of the (chemical) element that > immediately preceded this", but we have attached one to the other. There are some differences: * The semantic of <sub>/<sup> can often be deduced from context (especially if we define some specific contexts, like "sub inside var means it's the variable's subscript, as in the part of its name that identifies the specific variable in a family of variables"). * There are rarely, if ever, any semantics associated with a colour that can be understood without an explanation in the same document. Sometimes some content is coloured so that it can be differentiated, as in making test results red or green for different results, but that is always explained in the same document (if it is to be understood, anyway) and is rarely the only aspect of the document that indicates the difference (e.g. typically in such an example it would be the words "pass" and "fail" that were coloured). I would love to be able to unambiguously have the semantic for the "2" in "H<sub>2</sub>O". I don't see how to do it (at least not without introducing a ridiculous number of elements to HTML). I consider <sub> to be an acceptable (semantic) compromise. It does affect media other than visual media, which (as previously mentioned) is the criteria I usually use for working out if something is semantic or presentational. Another criteria is "could the presentation be changed without losing its meaning?". For example, with <em> clearly you can change the presentation without losing the fact that it is emphasis: whether it is bigger or italics doesn't make much difference. But with <sub> I don't think you can. If you change the presentation of <sub> you _do_ change the perceived meaning of the rendered content. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From dean at w3.org Wed Apr 13 04:42:46 2005 From: dean at w3.org (Dean Jackson) Date: Wed, 13 Apr 2005 21:42:46 +1000 Subject: Call four comments 4 is out (Was: [whatwg] Web Forms 2.0 submission to W3C) In-Reply-To: <Pine.LNX.4.61.0504130926070.9@dhalsim.dreamhost.com> References: <Pine.LNX.4.61.0504112004530.20461@dhalsim.dreamhost.com> <425BA7D4.5080606@annevankesteren.nl> <Pine.LNX.4.61.0504121331270.12923@dhalsim.dreamhost.com> <851c8d31050413010947decf60@mail.gmail.com> <Pine.LNX.4.61.0504130826040.9@dhalsim.dreamhost.com> <f8cebc87c089276ba7510299c1bcce0f@w3.org> <Pine.LNX.4.61.0504130926070.9@dhalsim.dreamhost.com> Message-ID: <ff58de76242ae99e2a5493b8304b93ea@w3.org> On 13 Apr 2005, at 19:31, Ian Hickson wrote: > On Wed, 13 Apr 2005, Dean Jackson wrote: >>> >>> Ok. Could you provide us with a list of features you believe need use >>> cases listed? That would be really helpful in creating such a >>> document. >> >> All of them. > > That's never going to happen, just like the XHTML working group has > never > published a document with use cases for all their features. > Ditto the SVG group, The SVG group has published requirements documents for its features. So has the CDF Group, which you participate in. Sure, the requirements documents don't always get updated as often as the specification and they are not completely comprehensive, but it does help the reader understand where you're coming from. One reason why I ask for this is that I've been talking to HTML developers about the WHATWG work and WebForms 2.0. I ask them what they think WHAT are doing. In most cases, they're not sure. Sometimes they've read some press articles and think that it's two browser vendors at war with W3C. If they do answer something like "WHAT are improving HTML forms" I then ask them if they know what improvements are being made. Honestly, I've never met anyone outside the subscribers to this list that really know what you're doing. This isn't meant to be an insult. It's just that I've been looking for average people so that they can educate me on why they need WF2. I think you have made some impressive improvements here. Many times when we've chatted in person, you've explained to me the reasoning behind the new features. It's helped me understand why/how/etc. Please think of the people that don't have the chance to chat to Ian Hickson in person. > the CSS group Wow, that's true. The CSS group have never published a requirements document for any of their work. It did publish a document 7 years ago listing potential new features. > , and so forth. Most of the features have quite > obvious use cases -- for example the use case for the first feature in > the > Web Apps draft -- <html> -- is having a predictable root element for > the > document or document fragment. OK, so why is this important? Why are the alternatives so bad? I'm not talking about the <html> feature, I'm talking about you empathising with the reader. Remember that you might be making something that will last a long time. It's quite a responsibility. > > I can maybe find the time to produce a document summarising the use > cases > for the less obvious features (probably by simply copying the text from > e-mails in the archives of this mailing list, where the features mostly > originated), but I don't want to waste time doing so for dozens of > features where the use cases are obvious and nobody disagrees. That's fair enough. It's your choice. You're a browser developer, so you'll know how to implement it, and why you're doing it. As a reader, I wanted to know. Look, this isn't a big deal. I just made a suggestion. It's obvious that you don't want to do it. We're wasting time discussing it. Dean From ian at hixie.ch Wed Apr 13 04:58:55 2005 From: ian at hixie.ch (Ian Hickson) Date: Wed, 13 Apr 2005 11:58:55 +0000 (UTC) Subject: Call four comments 4 is out (Was: [whatwg] Web Forms 2.0 submission to W3C) In-Reply-To: <ff58de76242ae99e2a5493b8304b93ea@w3.org> References: <Pine.LNX.4.61.0504112004530.20461@dhalsim.dreamhost.com> <425BA7D4.5080606@annevankesteren.nl> <Pine.LNX.4.61.0504121331270.12923@dhalsim.dreamhost.com> <851c8d31050413010947decf60@mail.gmail.com> <Pine.LNX.4.61.0504130826040.9@dhalsim.dreamhost.com> <f8cebc87c089276ba7510299c1bcce0f@w3.org> <Pine.LNX.4.61.0504130926070.9@dhalsim.dreamhost.com> <ff58de76242ae99e2a5493b8304b93ea@w3.org> Message-ID: <Pine.LNX.4.61.0504131145400.9@dhalsim.dreamhost.com> On Wed, 13 Apr 2005, Dean Jackson wrote: > > > > That's never going to happen, just like the XHTML working group has > > never published a document with use cases for all their features. > > Ditto the SVG group, > > The SVG group has published requirements documents for its features. So > has the CDF Group, which you participate in. Requirements documents, sure. The WF2 spec has a whole section on requirements, and the WHATWG was based on a long document listing requirements and design criteria: http://www.w3.org/2004/04/webapps-cdf-ws/papers/opera.html There's a far cry from that, and listing use cases for every feature. :-) > One reason why I ask for this is that I've been talking to HTML > developers about the WHATWG work and WebForms 2.0. I ask them what they > think WHAT are doing. In most cases, they're not sure. Sometimes they've > read some press articles and think that it's two browser vendors at war > with W3C. If they do answer something like "WHAT are improving HTML > forms" I then ask them if they know what improvements are being made. > Honestly, I've never met anyone outside the subscribers to this list > that really know what you're doing. This isn't meant to be an insult. > It's just that I've been looking for average people so that they can > educate me on why they need WF2. I'm not surprised. There's been no effort at making WHATWG a widely known effort -- it's only really been mentioned in the circles that people who care about standards development go in. Ask random authors what the CSS, XHTML, or SVG working groups are doing and you'll get much the same replies: some people will say they're improving CSS, XHTML, or SVG (without knowing any more), others will say that there are turf wars being fought or that the groups are wasting their time. I don't think that's surprising. Few people have the time to really keep track of standards development. > > Most of the features have quite obvious use cases -- for example the > > use case for the first feature in the Web Apps draft -- <html> -- is > > having a predictable root element for the document or document > > fragment. > > OK, so why is this important? Why are the alternatives so bad? > > I'm not talking about the <html> feature, I'm talking about you > empathising with the reader. Remember that you might be making something > that will last a long time. It's quite a responsibility. If there are specific features that need better examples or explanatory text, I'm all for adding it. (Olav just sent such a list of WF2, and I'm going through it and adding text to WF2 to answer his questions.) But there is no chance that we're going to pre-emptively list the raison d'etre of every feature in the spec. That would take years. Many of the features date back to Tim's drafts in 1990. If we've lasted 15 years without use cases I'm sure we can continue a few more. :-) > > I can maybe find the time to produce a document summarising the use > > cases for the less obvious features (probably by simply copying the > > text from e-mails in the archives of this mailing list, where the > > features mostly originated), but I don't want to waste time doing so > > for dozens of features where the use cases are obvious and nobody > > disagrees. > > That's fair enough. It's your choice. You're a browser developer, so > you'll know how to implement it, and why you're doing it. > > As a reader, I wanted to know. I honestly don't believe that you want to read of the use case for the <html> element, the <head> element, the <title> element, and so forth, beyond the descriptions in the spec already. But if you do, where is the equivalent for SVG? :-) -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From jg307 at cam.ac.uk Wed Apr 13 05:10:13 2005 From: jg307 at cam.ac.uk (James Graham) Date: Wed, 13 Apr 2005 13:10:13 +0100 Subject: Call four comments 4 is out (Was: [whatwg] Web Forms 2.0 submission to W3C) In-Reply-To: <ff58de76242ae99e2a5493b8304b93ea@w3.org> References: <Pine.LNX.4.61.0504112004530.20461@dhalsim.dreamhost.com> <425BA7D4.5080606@annevankesteren.nl> <Pine.LNX.4.61.0504121331270.12923@dhalsim.dreamhost.com> <851c8d31050413010947decf60@mail.gmail.com> <Pine.LNX.4.61.0504130826040.9@dhalsim.dreamhost.com> <f8cebc87c089276ba7510299c1bcce0f@w3.org> <Pine.LNX.4.61.0504130926070.9@dhalsim.dreamhost.com> <ff58de76242ae99e2a5493b8304b93ea@w3.org> Message-ID: <425D0C25.2020400@cam.ac.uk> Dean Jackson wrote: > > On 13 Apr 2005, at 19:31, Ian Hickson wrote: > >> On Wed, 13 Apr 2005, Dean Jackson wrote: >> >>>> >>>> Ok. Could you provide us with a list of features you believe need use >>>> cases listed? That would be really helpful in creating such a >>>> document. >>> >>> >>> All of them. >> >> >> That's never going to happen, just like the XHTML working group has >> never >> published a document with use cases for all their features. >> Ditto the SVG group, > > > The SVG group has published requirements documents for its > features. So has the CDF Group, which you participate in. > Sure, the requirements documents don't always get updated as > often as the specification and they are not completely > comprehensive, but it does help the reader understand > where you're coming from. So there's a difference between a "requirments document" and a detailed writeup of use cases for individual features. It seems to me that two documents are required: A brief end-user oriented document explaining what WF2 is and the general class of problems it aims to solve (i.e. adding functionality to web forms without breaking today's browsers). This should then introduce some of the most important new features (new input types, the repetition model, etc.) and give sample uses. The second document should be a longer "best practice" document. This would aim to explain (at a level appropriate to anyone with a modest knowledge of HTML/DOM) what the new things are and how to use the them successfully (as well as what not to do). The important difference between such a document and the spec is that it should focus on problem solving not on details needed by implementors. Being shorter than the spec it will be read by many more people. Obviously Hixie and the WHATWG are unlikely to be able to write both of these documents. It would be nice if the first document were written by the WG and we set a wiki or somesuch up to allow a collaborative attack on the second. -- "But if science you say still sounds too deep, Just do what Beaker does, just shrug and 'Meep!'" -- Dr. Bunsen Honeydew & Beaker of Muppet Labs From ian at hixie.ch Wed Apr 13 05:50:28 2005 From: ian at hixie.ch (Ian Hickson) Date: Wed, 13 Apr 2005 12:50:28 +0000 (UTC) Subject: Call four comments 4 is out (Was: [whatwg] Web Forms 2.0 submission to W3C) In-Reply-To: <425CFB56.4040406@olav.dk> References: <Pine.LNX.4.61.0504112004530.20461@dhalsim.dreamhost.com> <425BA7D4.5080606@annevankesteren.nl> <Pine.LNX.4.61.0504121331270.12923@dhalsim.dreamhost.com> <851c8d31050413010947decf60@mail.gmail.com> <Pine.LNX.4.61.0504130826040.9@dhalsim.dreamhost.com> <425CFB56.4040406@olav.dk> Message-ID: <Pine.LNX.4.61.0504131121020.13833@dhalsim.dreamhost.com> On Wed, 13 Apr 2005, Olav Junker Kj?r wrote: > > Some feature in WF2 for which the use cases are not immediately obvious: > > - the output element and the readonly attribute. Its not obvious why we > need both, and when you should use which. I have added a usage note in the <output> section to help answer this. > - the form attribute. (The use case in the spec seem a little contrived) I agree that the second example is contrived, it's just showing edge cases. The first example, however, is the use case for the form="" attribute. I don't see what I could add to the spec to make this clearer. > - the _charset_ field Added a section with a brief paragraph explaining this. > - step attribute on range This seems obvious. It has the same use case as on other inputs: it changes the allowed numbers. So for example if you want your <input type="range"> control to return numbers that are multiples of 2, you can set step="2". I've added this example to the spec. > - step attribute on date Again, this seems obvious. Say you want only Mondays. You set the min="" to a Monday, then set step="7". There is an example of this in the spec already. > - list attribute on range This could be useful if there are values along the full range of the control that are especially important, such as preconfigured light levels or typical speed limits in a range control used as a speed control. I've added this sentence to the spec. > - the data-scheme in form submission (debugging has been mentioned as a > use case, but its not obvious from the spec) Added a usage note saying debugging is the main use case. > - the "javascript:" scheme in form submissions Added a usage note. > - the "file:" scheme; post, put and delete methods Added a usage note. > - file upload This is to make PUT actually work, mainly. Added a parenthetical comment to the bit that first mentions this. > - changing data attribute on a select element several times during page > load There's no use case for this. It just has to be defined so that we get interoperable behaviour, otherwise every UA will end up doing something different. > Use cases are useful not just to justify features, but also as > documentation of the intention of the spec. Often I understand a feature > better by reading the use case, rather than by reading the precise > specification. That makes sense. Let me know if there are any parts of the spec you still think could do with more of this explanatory text. (Or if any of the text I mentioned above is not enough.) -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From olav at olav.dk Wed Apr 13 06:24:13 2005 From: olav at olav.dk (=?ISO-8859-1?Q?Olav_Junker_Kj=E6r?=) Date: Wed, 13 Apr 2005 15:24:13 +0200 Subject: Call four comments 4 is out (Was: [whatwg] Web Forms 2.0 submission to W3C) In-Reply-To: <Pine.LNX.4.61.0504131121020.13833@dhalsim.dreamhost.com> References: <Pine.LNX.4.61.0504112004530.20461@dhalsim.dreamhost.com> <425BA7D4.5080606@annevankesteren.nl> <Pine.LNX.4.61.0504121331270.12923@dhalsim.dreamhost.com> <851c8d31050413010947decf60@mail.gmail.com> <Pine.LNX.4.61.0504130826040.9@dhalsim.dreamhost.com> <425CFB56.4040406@olav.dk> <Pine.LNX.4.61.0504131121020.13833@dhalsim.dreamhost.com> Message-ID: <425D1D7D.7030305@olav.dk> Generally, I think the short usage notes improves the spec a lot. Suddely the javascript: date: and file: schemes make sense to me! > There's no use case for this. It just has to be defined so that we get > interoperable behaviour, otherwise every UA will end up doing > something different. Yes, I understand your reluctance to have unspecified behavior. I think it might be useful to have a note saying "you are not supposed to do this" in these cases, so the reader won't lose sleep trying to figure out why the features is included in the spec. regards Olav Junker Kj?r From ian at hixie.ch Wed Apr 13 06:38:20 2005 From: ian at hixie.ch (Ian Hickson) Date: Wed, 13 Apr 2005 13:38:20 +0000 (UTC) Subject: Call four comments 4 is out (Was: [whatwg] Web Forms 2.0 submission to W3C) In-Reply-To: <425D1D7D.7030305@olav.dk> References: <Pine.LNX.4.61.0504112004530.20461@dhalsim.dreamhost.com> <425BA7D4.5080606@annevankesteren.nl> <Pine.LNX.4.61.0504121331270.12923@dhalsim.dreamhost.com> <851c8d31050413010947decf60@mail.gmail.com> <Pine.LNX.4.61.0504130826040.9@dhalsim.dreamhost.com> <425CFB56.4040406@olav.dk> <Pine.LNX.4.61.0504131121020.13833@dhalsim.dreamhost.com> <425D1D7D.7030305@olav.dk> Message-ID: <Pine.LNX.4.61.0504131331540.17114@dhalsim.dreamhost.com> On Wed, 13 Apr 2005, Olav Junker Kj?r wrote: > > > > There's no use case for this. It just has to be defined so that we get > > interoperable behaviour, otherwise every UA will end up doing > > something different. > > Yes, I understand your reluctance to have unspecified behavior. I think > it might be useful to have a note saying "you are not supposed to do > this" in these cases, so the reader won't lose sleep trying to figure > out why the features is included in the spec. Well, you might want to dynamically create a <select>. You're not not supposed to do it, but you're not particularily supposed to do it either. It's just one of the many things that have to be defined. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From christoph.paeper at tu-clausthal.de Wed Apr 13 08:36:30 2005 From: christoph.paeper at tu-clausthal.de (=?iso-8859-1?Q?Christoph_P=E4per?=) Date: Wed, 13 Apr 2005 17:36:30 +0200 Subject: [whatwg] Web Forms 2.0 Feedback In-Reply-To: <Pine.LNX.4.61.0504131010550.9@dhalsim.dreamhost.com> References: <20040820152320.20139.qmail@web50905.mail.yahoo.com> <AD9C29E9-F8BF-11D8-8A8C-000A95AD3972@myrealbox.com> <Pine.LNX.4.61.0411070509130.8631@dhalsim.dreamhost.com> <B20F7A62-32BA-11D9-ACF9-000A95AD3972@myrealbox.com> <Pine.LNX.4.61.0412080206110.4755@dhalsim.dreamhost.com> <285F37A7-48ED-11D9-87BF-000A95AD3972@myrealbox.com> <41B72113.8090500@earthlink.net> <D4483462-49AA-11D9-87BF-000A95AD3972@myrealbox.com> <41DBF3EF.5050909@earthlink.net> <2B50B8F4-5FEB-11D9-BE51-000A95AD3972@myrealbox.com> <41DD51F5.9040106@cam.ac.uk> <Pine.LNX.4.61.0501061645550.1160@dhalsim.dreamhost.com> <46059C2B-6095-11D9-A9B2-000A95AD3972@myrealbox.com> <Pine.LNX.4.61.0504131010550.9@dhalsim.dreamhost.com> Message-ID: <opso6ga4ybofh7fl@crissov.heim4.tu-clausthal.de> *Ian Hickson <ian at hixie.ch>*: > > <abbr>M<sup>lle</sup></abbr> > <var>x<sub>2</sub></var> > > I'm not sure how to deal with the chemistry case. We don't really have an > element for anything like chemical formulas. Stretching its semantics really far, one could use 'code' for formulas? and 'abbr' for isotopes etc. ? The molecular sequencers ("replicators") from Star Trek are (hypothetic) computers that need some kind of source code. P.S.: Sorry, Ian, for sending this off-list at first. From fantasai.lists at inkedblade.net Wed Apr 13 12:05:49 2005 From: fantasai.lists at inkedblade.net (fantasai) Date: Wed, 13 Apr 2005 15:05:49 -0400 Subject: [whatwg] Web Forms 2.0 Feedback In-Reply-To: <Pine.LNX.4.61.0504131106080.9@dhalsim.dreamhost.com> References: <20040820152320.20139.qmail@web50905.mail.yahoo.com> <AD9C29E9-F8BF-11D8-8A8C-000A95AD3972@myrealbox.com> <Pine.LNX.4.61.0411070509130.8631@dhalsim.dreamhost.com> <B20F7A62-32BA-11D9-ACF9-000A95AD3972@myrealbox.com> <Pine.LNX.4.61.0412080206110.4755@dhalsim.dreamhost.com> <285F37A7-48ED-11D9-87BF-000A95AD3972@myrealbox.com> <41B72113.8090500@earthlink.net> <D4483462-49AA-11D9-87BF-000A95AD3972@myrealbox.com> <41DBF3EF.5050909@earthlink.net> <2B50B8F4-5FEB-11D9-BE51-000A95AD3972@myrealbox.com> <41DD51F5.9040106@cam.ac.uk> <Pine.LNX.4.61.0501061645550.1160@dhalsim.dreamhost.com> <46059C2B-6095-11D9-A9B2-000A95AD3972@myrealbox.com> <41DE95F5.7080201@earthlink.net> <41DF1C57.40801@myrealbox.com> <Pine.LNX.4.61.0504131106080.9@dhalsim.dreamhost.com> Message-ID: <425D6D8D.1010802@inkedblade.net> Ian Hickson wrote: > > Another criteria is "could the presentation be changed without losing its > meaning?". For example, with <em> clearly you can change the presentation > without losing the fact that it is emphasis: whether it is bigger or > italics doesn't make much difference. But with <sub> I don't think you > can. If you change the presentation of <sub> you _do_ change the perceived > meaning of the rendered content. Subscripts can be marked with brackets when subscripting isn't available. Superscripts can likewise be done with ^. But it's not ideal. ~fantasai From hsivonen at iki.fi Wed Apr 13 12:28:00 2005 From: hsivonen at iki.fi (Henri Sivonen) Date: Wed, 13 Apr 2005 22:28:00 +0300 Subject: [whatwg] <p> elements containing other block-level elements In-Reply-To: <851c8d3105041301034dc8fda7@mail.gmail.com> References: <Pine.LNX.4.61.0504051557200.2016@dhalsim.dreamhost.com> <4255BFA4.4010901@myrealbox.com> <Pine.LNX.4.61.0504081015180.20461@dhalsim.dreamhost.com> <42567A5E.50307@iki.fi> <Pine.LNX.4.61.0504081351400.25142@dhalsim.dreamhost.com> <31627ca7224496bef9b832bae071a7b1@iki.fi> <Pine.LNX.4.61.0504111627190.172@dhalsim.dreamhost.com> <425B2C1E.8080008@lachy.id.au> <425B9CA3.20902@myrealbox.com> <bcf4c4d5867e47f8a9756e3ad99a7892@iki.fi> <851c8d3105041301034dc8fda7@mail.gmail.com> Message-ID: <2ed218db7f8aef07ca8934c1ea83aabb@iki.fi> On Apr 13, 2005, at 11:03, Jim Ley wrote: > On 4/12/05, Henri Sivonen <hsivonen at iki.fi> wrote: >> On Apr 12, 2005, at 13:02, Matthew Thomas wrote: >> >>> <http://diveintomark.org/archives/2004/01/14/thought_experiment> >> >> Writing software that is guaranteed to emit well-formed XML is not >> particularly hard. > > That depends on your definition of hard, it's clearly beyond many > people in the community, even such sites as http://webstandards.org/ > and the XML Working group have published non-well formed XML recently > - down to encoding issues, almost always. I can't really see how if > these groups can't do it, when they have marketing aswell as technical > reasons to do it we can expect others to. http://webstandards.org/ uses MT, which has a text-based templating system, instead of a system designed for XML. The architecture of their CMS is not supportive of the goal of producing well-formed XML. It does not rule out alternative architectures or say anything about the hardness of implementing alternative achitectures. Of course, changing the architecture of a program that already has a different architecture is hard. W3C working groups may be using text editors instead of generating XML programmatically. -- Henri Sivonen hsivonen at iki.fi http://hsivonen.iki.fi/ From lachlan.hunt at lachy.id.au Wed Apr 13 22:34:45 2005 From: lachlan.hunt at lachy.id.au (Lachlan Hunt) Date: Thu, 14 Apr 2005 15:34:45 +1000 Subject: [whatwg] [WF2] Conformance Requirements Issues Message-ID: <425E00F5.5010105@lachy.id.au> Hi, In the conformance requirements for Web Forms 2 [1], it states: | This specification includes by reference the form-related parts of the | HTML4, ... Compliant UAs must implement all the requirements of those | specifications to claim compliance with this one. Because it says "must implement *all* the requirements of those specifications" (rather than just all the form-related requirements) and since there are no strictly conforming HTML 4 implementations in existence, does this not make it impossible for any existing browsers to ever conform to WF2? At the end of that section, it also states in the note: | Note: Documents that use the new features described in this | specification cannot be strictly conforming XHTML or HTML4 documents, | since they contain features not defined in those specifications. Shouldn't that say XHTML 1.0 or 1.1? [1] http://www.whatwg.org/specs/web-forms/2005-04-11-call-for-comments/#conformance -- Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox From ian at hixie.ch Thu Apr 14 02:17:20 2005 From: ian at hixie.ch (Ian Hickson) Date: Thu, 14 Apr 2005 09:17:20 +0000 (UTC) Subject: [whatwg] [WF2] Conformance Requirements Issues In-Reply-To: <425E00F5.5010105@lachy.id.au> References: <425E00F5.5010105@lachy.id.au> Message-ID: <Pine.LNX.4.61.0504140915370.1985@dhalsim.dreamhost.com> On Thu, 14 Apr 2005, Lachlan Hunt wrote: > > In the conformance requirements for Web Forms 2 [1], it states: > > | This specification includes by reference the form-related parts of the > | HTML4, ... Compliant UAs must implement all the requirements of those > | specifications to claim compliance with this one. > > Because it says "must implement *all* the requirements of those > specifications" (rather than just all the form-related requirements) and > since there are no strictly conforming HTML 4 implementations in > existence, does this not make it impossible for any existing browsers to > ever conform to WF2? Existing browsers can't conform to WF2 because they don't implement WF2. In the future they can conform to WF2 by implementing the bits of HTML4, WF2, etc, that they don't support. > At the end of that section, it also states in the note: > | Note: Documents that use the new features described in this > | specification cannot be strictly conforming XHTML or HTML4 documents, > | since they contain features not defined in those specifications. > > Shouldn't that say XHTML 1.0 or 1.1? Fair point. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From fora at annevankesteren.nl Thu Apr 14 04:26:54 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Thu, 14 Apr 2005 13:26:54 +0200 Subject: [whatwg] [html5] 2.6. Phrase elements Message-ID: <425E537E.2060207@annevankesteren.nl> * 2.6.1. The a element I was wondering if you could give some more examples for the specific attributes. For example: a[type=application/pdf]::after{ content:" " url(pdf-icon) } * 2.6.6. The abbr element It seems the TITLE attribute here has a very specific content model. Perhaps it should be specific for the ABBR element instead of reusing the global TITLE attribute? # The title attribute may be omitted if there is a dfn element in the # document whose defining term is the abbreviation. I think this sentence might need some clarification. Is it something like the following: <abbr>W3C</abbr> ... <dfn title="World Wide Web Consortium">... ... so I don't have to provide a TITLE for ABBR because DFN already has one with the same value? I don't think that makes sense... I also wonder, as some elements have further restricted content models. Is it expected that ABBR elements may nest? (Perhaps this should be a more general question as it applies to some other elements in this section as well.) * 2.6.12. The kbd element How can this element only be used in strictly inline-level content but sometimes contain inline-level content. That doesn't work. If that is changed and inline-level content is still allowed I would like to see an example in the specification. * 2.6.13. The sup and sub elements Shouldn't the second example use the I element? * 2.6.15. The q element It looks like this has the same problem as 2.6.12. (A Q element to contain a BLOCKQUOTE?) The link of the CITE attribute links to the CITE element... * 2.6.16. The cite element Could this element get a note saying that it should not be used for quotations. Perhaps an invalid example would help as well. -- Anne van Kesteren <http://annevankesteren.nl/> From fora at annevankesteren.nl Thu Apr 14 04:54:05 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Thu, 14 Apr 2005 13:54:05 +0200 Subject: [whatwg] HTML5: New link-types regarding guideline 2.4 in WCAG 2.0 In-Reply-To: <425C7EA7.5090808@lachy.id.au> References: <425C52A3.70801@misinterpreted.net> <425C7EA7.5090808@lachy.id.au> Message-ID: <425E59DD.3030707@annevankesteren.nl> Lachlan Hunt wrote: > Could some of these be improved and included within web apps? > > http://lachy.id.au/dev/markup/specs/wclr/ I haven't read it completely, but this sentence sounds incorrect: # Designates a resource containing user contributed comments. May be # used in conjunction with feed to designate a syndication format # resource for comments. If you are proposing |rel="feed comments"| that would imply that the link is both about comments and is a feed. |rel="alternate stylesheet"| was an error from the HTML4 WG (I discussed this with fantasai on IRC) because it actually says that the resource linked to is both an alternate representation of the current page and is a stylesheet. However, it actually is an 'alternate stylesheet' for the current page opposed to the default stylesheet linked with |rel="stylesheet"|. I suggest you fix that (and others, if they exist) ambiguity first. Also note that we probably don't need |rel="permalink"| as the link inside an ARTICLE element with a value of "bookmark" probably does that already. -- Anne van Kesteren <http://annevankesteren.nl/> From lachlan.hunt at lachy.id.au Thu Apr 14 05:21:11 2005 From: lachlan.hunt at lachy.id.au (Lachlan Hunt) Date: Thu, 14 Apr 2005 22:21:11 +1000 Subject: [whatwg] [WF2] Conformance Requirements Issues In-Reply-To: <Pine.LNX.4.61.0504140915370.1985@dhalsim.dreamhost.com> References: <425E00F5.5010105@lachy.id.au> <Pine.LNX.4.61.0504140915370.1985@dhalsim.dreamhost.com> Message-ID: <425E6037.10802@lachy.id.au> Ian Hickson wrote: > On Thu, 14 Apr 2005, Lachlan Hunt wrote: > >> In the conformance requirements for Web Forms 2 [1], it states: >> >>| This specification includes by reference the form-related parts of the >>| HTML4, ... Compliant UAs must implement all the requirements of those >>| specifications to claim compliance with this one. >> >>...does this not make it impossible for any existing browsers to >>ever conform to WF2? > > Existing browsers can't conform to WF2 because they don't implement WF2. Sorry for not being clearer, I think you misunderstood what I meant. I didn't mean existing browsers as in the currently available versions, I meant the known browsers after they have been extended with these new features, as opposed to some future browsers that don't even exist yet. > In the future they can conform to WF2 by implementing the bits of HTML4, > WF2, etc, that they don't support. But there are parts of HTML4 that will never be supported by mainstream browsers, though most of those do relate to SGML processing, and there are bits that WF2 changes (such as handling <textarea> as some weird bugwards compatible CDATA/PCDATA combination for error handling). Perhaps this bit from section 2.2 Existing Controls, can be moved or copied up to the conformance requirements. | Compliant UAs must follow all the guidelines given in the HTML4 | specification *except those modified by this specification*. I couldn't find anything with similar meaning to that in the conformance section, but it is a conformance requirment and, as such, should probably be included there. -- Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox From ian at hixie.ch Thu Apr 14 05:42:33 2005 From: ian at hixie.ch (Ian Hickson) Date: Thu, 14 Apr 2005 12:42:33 +0000 (UTC) Subject: [whatwg] [html5] 2.6. Phrase elements In-Reply-To: <425E537E.2060207@annevankesteren.nl> References: <425E537E.2060207@annevankesteren.nl> Message-ID: <Pine.LNX.4.61.0504141133320.1985@dhalsim.dreamhost.com> On Thu, 14 Apr 2005, Anne van Kesteren wrote: > > * 2.6.1. The a element > > I was wondering if you could give some more examples for the specific > attributes. For example: > > a[type=application/pdf]::after{ > content:" " url(pdf-icon) > } That's an example of CSS, not of HTML. But yes, I'm all for more examples in general. Send them in, the best ones will get added to the spec! :-) > * 2.6.6. The abbr element > > It seems the TITLE attribute here has a very specific content model. > Perhaps it should be specific for the ABBR element instead of reusing > the global TITLE attribute? Yeah, why not. DFN, too. > # The title attribute may be omitted if there is a dfn element in the > # document whose defining term is the abbreviation. > > I think this sentence might need some clarification. Is it something > like the following: > > <abbr>W3C</abbr> > ... > <dfn title="World Wide Web Consortium">... > > ... so I don't have to provide a TITLE for ABBR because DFN already has > one with the same value? I don't think that makes sense... No, it's something like: <abbr>W3C</abbr> ... <dfn>W3C</dfn> is the World Wide Web Consortium I've added an example. > I also wonder, as some elements have further restricted content models. > Is it expected that ABBR elements may nest? (Perhaps this should be a > more general question as it applies to some other elements in this > section as well.) Yes, <abbr> could nest. A contrived example: <abbr title="UN International Children's Emergency Fund" ><abbr title="United Nations">UN</abbr>ICEF</abbr> > * 2.6.12. The kbd element > > How can this element only be used in strictly inline-level content but > sometimes contain inline-level content. That doesn't work. I'm confused about what you mean here. "inline-level content" includes "strictly inline-level content". > If that is changed and inline-level content is still allowed I would > like to see an example in the specification. Changed to only allow strictly-inline children. I couldn't find a realistic example of <kbd> containing structured inline content that wouldn't be better handled by using block-level elements and nested inner <kbd> elements. > * 2.6.13. The sup and sub elements > > Shouldn't the second example use the I element? No, why would it be? > * 2.6.15. The q element > > It looks like this has the same problem as 2.6.12. (A Q element to > contain a BLOCKQUOTE?) I don't understand the problem. If the person you are quoting was themselves quoting a block from elsewhere, where's the problem? > The link of the CITE attribute links to the CITE element... Oops. > * 2.6.16. The cite element > > Could this element get a note saying that it should not be used for > quotations. Perhaps an invalid example would help as well. Done. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From lachlan.hunt at lachy.id.au Thu Apr 14 05:48:50 2005 From: lachlan.hunt at lachy.id.au (Lachlan Hunt) Date: Thu, 14 Apr 2005 22:48:50 +1000 Subject: [whatwg] HTML5: New link-types regarding guideline 2.4 in WCAG 2.0 In-Reply-To: <425E59DD.3030707@annevankesteren.nl> References: <425C52A3.70801@misinterpreted.net> <425C7EA7.5090808@lachy.id.au> <425E59DD.3030707@annevankesteren.nl> Message-ID: <425E66B2.1070002@lachy.id.au> Anne van Kesteren wrote: > Lachlan Hunt wrote: > >> Could some of these be improved and included within web apps? >> >> http://lachy.id.au/dev/markup/specs/wclr/ > > > I haven't read it completely, but this sentence sounds incorrect: > > # Designates a resource containing user contributed comments. May be > # used in conjunction with feed to designate a syndication format > # resource for comments. > > If you are proposing |rel="feed comments"| that would imply that the > link is both about comments and is a feed. I don't understand the problem. The comments relationship doesn't say it's about comments, it says contains comments. The definitions for comments and feed are: comments Designates a resource containing user contributed comments... feed Designates a resource used as a syndication format. With comments and feed, it should indicate a "resource used as a syndication format containing user contributed comments". Perhaps the sentence you cited above could be clarified to reflect this better. > |rel="alternate stylesheet"| was an error from the HTML4 WG (I > discussed this with fantasai on IRC) because it actually says that > the resource linked to is both an alternate representation of the > current page and is a stylesheet. However, it actually is an > 'alternate stylesheet' for the current page opposed to the default > stylesheet linked with |rel="stylesheet"|. I somewhat agree with this, although it seems that it is just the definition of alternate that is poorly worded. If it were defined more like this, alternate stylesheet would be more appropriate: Designates substitute versions for the document in which the link occurs or, when used in conjuntion with another link type, an alternate version of the resource type indicated. (that definition is not perfect, but I think you'll understand what its supposed to mean anyway) > I suggest you fix that (and others, if they exist) ambiguity first. > > Also note that we probably don't need |rel="permalink"| as the link > inside an ARTICLE element with a value of "bookmark" probably does that > already. I somewhat disagree that bookmark does this. It's defined as: "...A bookmark is a link to a key entry point within an extended document..." Unless I'm mistaken, a permanet link for the document doesn't really seem to fit that defintion. -- Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox From fora at annevankesteren.nl Thu Apr 14 05:59:21 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Thu, 14 Apr 2005 14:59:21 +0200 Subject: [whatwg] [html5] 2.6. Phrase elements In-Reply-To: <Pine.LNX.4.61.0504141133320.1985@dhalsim.dreamhost.com> References: <425E537E.2060207@annevankesteren.nl> <Pine.LNX.4.61.0504141133320.1985@dhalsim.dreamhost.com> Message-ID: <425E6929.8030602@annevankesteren.nl> Ian Hickson wrote: > I've added an example. Ok, so order isn't important. You want to add a closing DFN tag by the way. (To the example.) >> * 2.6.12. The kbd element >> >> How can this element only be used in strictly inline-level content >> but sometimes contain inline-level content. That doesn't work. > > I'm confused about what you mean here. "inline-level content" > includes "strictly inline-level content". Well, the draft states (this is SAMP): # Contexts in which this element may be used: # Where strictly inline-level content is allowed. So it may only be used in strictly inline-level context, right? How can otherwise ever apply: # Content model: # When used in an element whose content model is only strictly # inline-level content: only strictly inline-level content. # Otherwise: any inline-level content. ..? >> * 2.6.15. The q element >> >> It looks like this has the same problem as 2.6.12. (A Q element to >> contain a BLOCKQUOTE?) > > I don't understand the problem. If the person you are quoting was > themselves quoting a block from elsewhere, where's the problem? Like <q>foo bar and then <cite>Ian</cite> said: <blockquote> <p>Well, I don't want to go into details right now...</p> <p>... but this looks like a very ugly markup construct...</p> </blockquote> however, he was of course wrong, as this kind of nesting is actually kind a cool, not?</q> ..? It looks terrible imho. Not something you put inline or so. -- Anne van Kesteren <http://annevankesteren.nl/> From ian at hixie.ch Thu Apr 14 06:00:31 2005 From: ian at hixie.ch (Ian Hickson) Date: Thu, 14 Apr 2005 13:00:31 +0000 (UTC) Subject: [whatwg] [WF2] Conformance Requirements Issues In-Reply-To: <425E6037.10802@lachy.id.au> References: <425E00F5.5010105@lachy.id.au> <Pine.LNX.4.61.0504140915370.1985@dhalsim.dreamhost.com> <425E6037.10802@lachy.id.au> Message-ID: <Pine.LNX.4.61.0504141257050.1985@dhalsim.dreamhost.com> On Thu, 14 Apr 2005, Lachlan Hunt wrote: > > > > In the future they can conform to WF2 by implementing the bits of > > HTML4, WF2, etc, that they don't support. > > But there are parts of HTML4 that will never be supported by mainstream > browsers Then they won't be compliant to HTML4, or specs that extend HTML4 (like WF2). This will be addressed in Web Apps 1 / HTML5. > though most of those do relate to SGML processing, and there are bits > that WF2 changes (such as handling <textarea> as some weird bugwards > compatible CDATA/PCDATA combination for error handling). Perhaps this > bit from section 2.2 Existing Controls, can be moved or copied up to the > conformance requirements. > > | Compliant UAs must follow all the guidelines given in the HTML4 > | specification *except those modified by this specification*. > > I couldn't find anything with similar meaning to that in the conformance > section, but it is a conformance requirment and, as such, should > probably be included there. Fair point. Done. I also made it (as you suggested, I think) only the forms-related parts. Cheers, -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From fora at annevankesteren.nl Thu Apr 14 06:01:14 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Thu, 14 Apr 2005 15:01:14 +0200 Subject: [whatwg] HTML5: New link-types regarding guideline 2.4 in WCAG 2.0 In-Reply-To: <425E66B2.1070002@lachy.id.au> References: <425C52A3.70801@misinterpreted.net> <425C7EA7.5090808@lachy.id.au> <425E59DD.3030707@annevankesteren.nl> <425E66B2.1070002@lachy.id.au> Message-ID: <425E699A.1060107@annevankesteren.nl> Lachlan Hunt wrote: > With comments and feed, it should indicate a "resource used as a > syndication format containing user contributed comments". Perhaps the > sentence you cited above could be clarified to reflect this better. Using two link values gives the link two relations, not one. > I somewhat agree with this, although it seems that it is just the > definition of alternate that is poorly worded. If it were defined more > like this, alternate stylesheet would be more appropriate: > > Designates substitute versions for the document in which the link > occurs or, when used in conjuntion with another link type, an > alternate version of the resource type indicated. > > (that definition is not perfect, but I think you'll understand what its > supposed to mean anyway) I do, but I'm not sure if it would be correct. -- Anne van Kesteren <http://annevankesteren.nl/> From lachlan.hunt at lachy.id.au Thu Apr 14 06:18:56 2005 From: lachlan.hunt at lachy.id.au (Lachlan Hunt) Date: Thu, 14 Apr 2005 23:18:56 +1000 Subject: [whatwg] HTML5: New link-types regarding guideline 2.4 in WCAG 2.0 In-Reply-To: <425E699A.1060107@annevankesteren.nl> References: <425C52A3.70801@misinterpreted.net> <425C7EA7.5090808@lachy.id.au> <425E59DD.3030707@annevankesteren.nl> <425E66B2.1070002@lachy.id.au> <425E699A.1060107@annevankesteren.nl> Message-ID: <425E6DC0.6020300@lachy.id.au> Anne van Kesteren wrote: > Lachlan Hunt wrote: > >> With comments and feed, it should indicate a "resource used as a >> syndication format containing user contributed comments". Perhaps the >> sentence you cited above could be clarified to reflect this better. > > Using two link values gives the link two relations, not one. Yes, but don't both relationships apply to the one resource, so their semantics are combined? -- Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox From fora at annevankesteren.nl Thu Apr 14 06:25:05 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Thu, 14 Apr 2005 15:25:05 +0200 Subject: [whatwg] HTML5: New link-types regarding guideline 2.4 in WCAG 2.0 In-Reply-To: <425E6DC0.6020300@lachy.id.au> References: <425C52A3.70801@misinterpreted.net> <425C7EA7.5090808@lachy.id.au> <425E59DD.3030707@annevankesteren.nl> <425E66B2.1070002@lachy.id.au> <425E699A.1060107@annevankesteren.nl> <425E6DC0.6020300@lachy.id.au> Message-ID: <425E6F31.3020508@annevankesteren.nl> Lachlan Hunt wrote: >> Using two link values gives the link two relations, not one. > > Yes, but don't both relationships apply to the one resource, so their > semantics are combined? Not as I understand it. For example, a resource could be both the 'prev' document and the 'index'. What would be the combined semantics of |rel="index prev"| or |rel="prev index"|... -- Anne van Kesteren <http://annevankesteren.nl/> From lachlan.hunt at lachy.id.au Thu Apr 14 07:14:41 2005 From: lachlan.hunt at lachy.id.au (Lachlan Hunt) Date: Fri, 15 Apr 2005 00:14:41 +1000 Subject: [whatwg] [WF2] Conformance Requirements Issues In-Reply-To: <Pine.LNX.4.61.0504141257050.1985@dhalsim.dreamhost.com> References: <425E00F5.5010105@lachy.id.au> <Pine.LNX.4.61.0504140915370.1985@dhalsim.dreamhost.com> <425E6037.10802@lachy.id.au> <Pine.LNX.4.61.0504141257050.1985@dhalsim.dreamhost.com> Message-ID: <425E7AD1.8070807@lachy.id.au> Ian Hickson wrote: >>But there are parts of HTML4 that will never be supported by mainstream >>browsers > > Then they won't be compliant to HTML4, or specs that extend HTML4 (like > WF2). Then why write a spec that no browser will ever be able to be fully compliant with due to backwards compatibiltiy constraints? > This will be addressed in Web Apps 1 / HTML5. Ok. > > Perhaps this bit from section 2.2 Existing Controls, can be moved or >> copied up to the conformance requirements. >> >> | Compliant UAs must follow all the guidelines given in the HTML4 >> | specification *except those modified by this specification*. > > Fair point. Done. I also made it (as you suggested, I think) only the > forms-related parts. Yes, that looks good. -- Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox From lachlan.hunt at lachy.id.au Thu Apr 14 07:16:43 2005 From: lachlan.hunt at lachy.id.au (Lachlan Hunt) Date: Fri, 15 Apr 2005 00:16:43 +1000 Subject: [whatwg] HTML5: New link-types regarding guideline 2.4 in WCAG 2.0 In-Reply-To: <425E6F31.3020508@annevankesteren.nl> References: <425C52A3.70801@misinterpreted.net> <425C7EA7.5090808@lachy.id.au> <425E59DD.3030707@annevankesteren.nl> <425E66B2.1070002@lachy.id.au> <425E699A.1060107@annevankesteren.nl> <425E6DC0.6020300@lachy.id.au> <425E6F31.3020508@annevankesteren.nl> Message-ID: <425E7B4B.1080202@lachy.id.au> Anne van Kesteren wrote: > What would be the combined semantics of |rel="index prev"| or |rel="prev index"|... That the resource provides an index for the current document and is the previous document in sequence. eg. If all the files of a short online book, in this order, were: 1. contents.html 2. chapter1.html 3. chapter2.html 4. book-index.html 5. colophon.html (That would be the order they appear in a printed/published book version too) Using only the next, prev and index attributes, all the possible links (that I can think of) could be: contents.html: <!-- first document in sequence, no prev --> <link rel="next" href="chapter1.html"> <link rel="index" href="book-index.html"> chapter1.html: <link rel="prev" href="contents.html"> <link rel="next" href="chapter2.html"> <link rel="index" href="book-index.html"> chapter2.html: <link rel="prev" href="chapter1.html"> <link rel="next index" href="book-index.html"> book-index.html: <link rel="prev" href="chapter2.html"> <link rel="next" href="colophon.html"> colophon.html: <link rel="prev index" href="book-index.html"> <!-- last document in sequence, no next --> (title, rev, and rel="contents" attributes have been omitted for simplicity. Hixie, feel free to use that example in the spec if you like) Each of those points to the next and previous documents in sequence (except for the contents and colophon). Each of them also points to the document serving as the index (book-index.html). For chapter2.html, since book-index.html is both the next document in sequence and the document serving as the index, it can be combined into the one link element with the two relationships, rather than two seperate relationships like the other pages. Same applies to colophon.html, except using prev instead. Are any of those examples above, with either individual or combined relationships, semantically incorrect? Is there anything I haven't explained well enough? -- Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox From fora at annevankesteren.nl Thu Apr 14 07:22:40 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Thu, 14 Apr 2005 16:22:40 +0200 Subject: [whatwg] [html5] 2.6. Phrase elements In-Reply-To: <Pine.LNX.4.61.0504141133320.1985@dhalsim.dreamhost.com> References: <425E537E.2060207@annevankesteren.nl> <Pine.LNX.4.61.0504141133320.1985@dhalsim.dreamhost.com> Message-ID: <425E7CB0.4040604@annevankesteren.nl> Ian Hickson wrote: >> a[type=application/pdf]::after{ content:" " url(pdf-icon) } > > That's an example of CSS, not of HTML. But yes, I'm all for more > examples in general. Send them in, the best ones will get added to > the spec! :-) True. However, it does show a use case for the attribute. You could also say something like: "A visual UA might display |<a href="foo" type="application/pdf">| as: [example rendering]" .... where [example rendering] is an image of a link with a PDF icon after it. -- Anne van Kesteren <http://annevankesteren.nl/> From mattraymond at earthlink.net Thu Apr 14 07:49:29 2005 From: mattraymond at earthlink.net (Matthew Raymond) Date: Thu, 14 Apr 2005 10:49:29 -0400 Subject: [whatwg] Image maps: should we drop <a coords="">? In-Reply-To: <Pine.LNX.4.61.0504112221170.20461@dhalsim.dreamhost.com> References: <Pine.LNX.4.61.0504111531560.172@dhalsim.dreamhost.com> <425AD1B4.8060803@annevankesteren.nl> <Pine.LNX.4.61.0504112221170.20461@dhalsim.dreamhost.com> Message-ID: <425E82F9.5020209@earthlink.net> Ian Hickson wrote: > On Mon, 11 Apr 2005, Anne van Kesteren wrote: > >>Ian Hickson wrote: >> >>>Anyone want us to keep <a coords="">? >> >>The reason I especially liked it was: >> >> <object data="foo" usemap="#foo"> >> <map id="foo"> >> <ul> >> <li><a coords="...">...</a> >> ... > > Yup, it is indeed nice; if image maps had been designed that way from the > start it would make sense. But it's not _that_ much nicer than <area>, > which we could define as allowing: > > <object data="foo" usemap="#foo"> > <map id="foo"> > <ul> > <li><area coords="..." href="..."><a href="...">...</a> > ... > > ...which isn't much worse, and has the very important benefit of actually > working in IE6. This would seem to undermine your position with regards to using the <a> element for menu labels: | <menubar id="appmenu"> | <a href="#file">File</a> | <menu> Contrast this with the following: | <menubar id="appmenu"> | <menulabel><a href="#file">File</a></menulabel> | <menu> It's essentially the same scenario. In both situations, <a> is being used in a situation where alternative, more semantically appropriate markup already exists for the purposes of fallback. However, as illustrated in both your example and mine, <a> could simply be used within the same alternative markup to create fallback without overloading the semantics of <a>. So, with implementations of <a coords=""> existing and gaining marketshare, why is <a coords=""> being phased out while <a href="#[menu]"> for use _within_ menus is being phased in? From liorean at gmail.com Thu Apr 14 09:38:36 2005 From: liorean at gmail.com (liorean) Date: Thu, 14 Apr 2005 18:38:36 +0200 Subject: [whatwg] WebForms 2.0 and object controls Message-ID: <cee13aa305041409382a640f8e@mail.gmail.com> Hello! Doing a quick read through the submitted WebForms 2.0 proposal, I didn't see at any place that it addressed object elements as form controls, something that HTML4.01 forms did. Shouldn't WebForms 2.0 address this part of the HTML4.01 forms as well? -- David "liorean" Andersson <uri:http://liorean.web-graphics.com/> From ian at hixie.ch Thu Apr 14 10:44:28 2005 From: ian at hixie.ch (Ian Hickson) Date: Thu, 14 Apr 2005 17:44:28 +0000 (UTC) Subject: [whatwg] WebForms 2.0 and object controls In-Reply-To: <cee13aa305041409382a640f8e@mail.gmail.com> References: <cee13aa305041409382a640f8e@mail.gmail.com> Message-ID: <Pine.LNX.4.61.0504141743410.1985@dhalsim.dreamhost.com> On Thu, 14 Apr 2005, liorean wrote: > > Doing a quick read through the submitted WebForms 2.0 proposal, I didn't > see at any place that it addressed object elements as form controls, > something that HTML4.01 forms did. Shouldn't WebForms 2.0 address this > part of the HTML4.01 forms as well? Web Forms 2 is an addition to HTML4, not a replacement, so you'll be glad to know that the form submission parts of <object> still apply in WF2. HTH, -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From ian at hixie.ch Thu Apr 14 14:15:31 2005 From: ian at hixie.ch (Ian Hickson) Date: Thu, 14 Apr 2005 21:15:31 +0000 (UTC) Subject: [whatwg] [html5] 2.6. Phrase elements In-Reply-To: <425E6929.8030602@annevankesteren.nl> References: <425E537E.2060207@annevankesteren.nl> <Pine.LNX.4.61.0504141133320.1985@dhalsim.dreamhost.com> <425E6929.8030602@annevankesteren.nl> Message-ID: <Pine.LNX.4.61.0504142109160.1985@dhalsim.dreamhost.com> On Thu, 14 Apr 2005, Anne van Kesteren wrote: > > > > I've added an example. > > You want to add a closing DFN tag by the way. (To the example.) Fixed. > Well, the draft states (this is SAMP): > > # Contexts in which this element may be used: > # Where strictly inline-level content is allowed. > > So it may only be used in strictly inline-level context, right? It can be used "where strictly inline-level content is allowed". Strictly inline-level content is allowed in content models that say "strictly inline-level content" and in content models that say "inline-level content" (the latter includes both strictly inline-level content and structured inline-level content). I'm very open to better names. > How can otherwise ever apply: > > # Content model: > # When used in an element whose content model is only strictly > # inline-level content: only strictly inline-level content. > # Otherwise: any inline-level content. > > ..? One example would be <dt> vs <dd>. <dt> only allows strictly inline-level content, <dd> allows any kind of inline content (or alternatively block-level content, but that's another story). > Like > > <q>foo bar and then <cite>Ian</cite> said: > <blockquote> > <p>Well, I don't want to go into details right now...</p> > <p>... but this looks like a very ugly markup construct...</p> > </blockquote> > however, he was of course wrong, as this kind of nesting is actually > kind a cool, not?</q> > > ..? It looks terrible imho. Not something you put inline or so. There have actually been examples of this in this in the past few weeks, enough to convince me that in some cases it is a valid use case. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From lachlan.hunt at lachy.id.au Thu Apr 14 21:03:16 2005 From: lachlan.hunt at lachy.id.au (Lachlan Hunt) Date: Fri, 15 Apr 2005 14:03:16 +1000 Subject: [whatwg] WebForms 2.0 and object controls In-Reply-To: <Pine.LNX.4.61.0504141743410.1985@dhalsim.dreamhost.com> References: <cee13aa305041409382a640f8e@mail.gmail.com> <Pine.LNX.4.61.0504141743410.1985@dhalsim.dreamhost.com> Message-ID: <425F3D04.30805@lachy.id.au> Ian Hickson wrote: > Web Forms 2 is an addition to HTML4, not a replacement, so you'll be glad > to know that the form submission parts of <object> still apply in WF2. Is there any chance the WF2 can clarify exactly how to use object as a form control? HTML4 is extremely vague on the subject and I'm yet to see any site make use of a custom object as a form control. Does any browser actually support objects as form controls? -- Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox From ian at hixie.ch Fri Apr 15 01:14:09 2005 From: ian at hixie.ch (Ian Hickson) Date: Fri, 15 Apr 2005 08:14:09 +0000 (UTC) Subject: [whatwg] WebForms 2.0 and object controls In-Reply-To: <425F3D04.30805@lachy.id.au> References: <cee13aa305041409382a640f8e@mail.gmail.com> <Pine.LNX.4.61.0504141743410.1985@dhalsim.dreamhost.com> <425F3D04.30805@lachy.id.au> Message-ID: <Pine.LNX.4.61.0504150813470.19880@dhalsim.dreamhost.com> On Fri, 15 Apr 2005, Lachlan Hunt wrote: > > Is there any chance the WF2 can clarify exactly how to use object as a > form control? HTML4 is extremely vague on the subject and I'm yet to > see any site make use of a custom object as a form control. Does any > browser actually support objects as form controls? The various plugin interfaces support it. What would you want the spec to say about it? -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From hasather at gmail.com Fri Apr 15 14:11:10 2005 From: hasather at gmail.com (=?ISO-8859-1?Q?David_H=E5s=E4ther?=) Date: Fri, 15 Apr 2005 23:11:10 +0200 Subject: [whatwg] [html5] %Pixels; unnecessary Message-ID: <1a296f99050415141114a83cac@mail.gmail.com> The Pixels parameter entity replacement text should be NUMBER instead of CDATA since the comment says "integer representing length in pixels". Also, the entity is only used once in the DTD (for the BORDER attribute of the TABLE element type) so it could as well be: border NUMBER #IMPLIED -- controls frame width around table -- -- David H?s?ther From mpt at myrealbox.com Fri Apr 15 17:08:40 2005 From: mpt at myrealbox.com (Matthew Thomas) Date: Sat, 16 Apr 2005 12:08:40 +1200 Subject: [whatwg] [html5] 2.6. Phrase elements In-Reply-To: <Pine.LNX.4.61.0504142109160.1985@dhalsim.dreamhost.com> References: <425E537E.2060207@annevankesteren.nl> <Pine.LNX.4.61.0504141133320.1985@dhalsim.dreamhost.com> <425E6929.8030602@annevankesteren.nl> <Pine.LNX.4.61.0504142109160.1985@dhalsim.dreamhost.com> Message-ID: <42605788.8010809@myrealbox.com> Ian Hickson wrote: > > On Thu, 14 Apr 2005, Anne van Kesteren wrote: >... >> <q>foo bar and then <cite>Ian</cite> said: >> <blockquote> >> <p>Well, I don't want to go into details right now...</p> >> <p>... but this looks like a very ugly markup construct...</p> >> </blockquote> >> however, he was of course wrong, as this kind of nesting is actually >> kind a cool, not?</q> >> >>..? It looks terrible imho. Not something you put inline or so. > > There have actually been examples of this in this in the past few weeks, > enough to convince me that in some cases it is a valid use case. As far as I can see, all the supporting examples have been provided by yourself, and none of them are conformant to basic typography. (This is given away partly by your starting the supposedly resumed outer paragraph with "....".) In other words, any written work attempting such constructions would be marked as an error by a human editor. So if <p>s inside <p>s are allowed, I think it should be only for <p lang="en-hixie">. -- Matthew Thomas http://mpt.net.nz/ From fantasai.lists at inkedblade.net Fri Apr 15 19:12:54 2005 From: fantasai.lists at inkedblade.net (fantasai) Date: Fri, 15 Apr 2005 22:12:54 -0400 Subject: [whatwg] [html5] 2.6. Phrase elements In-Reply-To: <42605788.8010809@myrealbox.com> References: <425E537E.2060207@annevankesteren.nl> <Pine.LNX.4.61.0504141133320.1985@dhalsim.dreamhost.com> <425E6929.8030602@annevankesteren.nl> <Pine.LNX.4.61.0504142109160.1985@dhalsim.dreamhost.com> <42605788.8010809@myrealbox.com> Message-ID: <426074A6.7020807@inkedblade.net> Matthew Thomas wrote: > Ian Hickson wrote: > >> On Thu, 14 Apr 2005, Anne van Kesteren wrote: >> ... >> >>> <q>foo bar and then <cite>Ian</cite> said: >>> <blockquote> >>> <p>Well, I don't want to go into details right now...</p> >>> <p>... but this looks like a very ugly markup construct...</p> >>> </blockquote> >>> however, he was of course wrong, as this kind of nesting is actually >>> kind a cool, not?</q> >>> >>> ..? It looks terrible imho. Not something you put inline or so. >> >> There have actually been examples of this in this in the past few >> weeks, enough to convince me that in some cases it is a valid use case. > > As far as I can see, all the supporting examples have been provided by > yourself, and none of them are conformant to basic typography. (This is > given away partly by your starting the supposedly resumed outer > paragraph with "....".) In other words, any written work attempting such > constructions would be marked as an error by a human editor. I have in front of me several examples of in-paragraph block quotes in which multiple, unrelated sentences are quoted; in which several stanzas of a poem are quoted; in which a paragraph has been quoted in its entirety (and therefore leaving it out of a <p> would be just as wrong as leaving a single-paragraph HTML document without its <p>); and in which, yes, multiple paragraphs have been quoted. Some of the quotations are introduced by the previous sentence, others complete the introductory sentence, and still others break in the middle of the sentence. All of these examples are in print, and have therefore passed through the review of a professional editor. > So if <p>s inside <p>s are allowed, I think it should be only for <p > lang="en-hixie">. I disagree. ~fantasai From mtknight at dark-phantasy.com Fri Apr 15 20:41:16 2005 From: mtknight at dark-phantasy.com (J. King) Date: Fri, 15 Apr 2005 23:41:16 -0400 Subject: [whatwg] [html5] 2.6. Phrase elements In-Reply-To: <426074A6.7020807@inkedblade.net> References: <425E537E.2060207@annevankesteren.nl> <Pine.LNX.4.61.0504141133320.1985@dhalsim.dreamhost.com> <425E6929.8030602@annevankesteren.nl> <Pine.LNX.4.61.0504142109160.1985@dhalsim.dreamhost.com> <42605788.8010809@myrealbox.com> <426074A6.7020807@inkedblade.net> Message-ID: <op.spa262o1k4suho@briann> On Fri, 15 Apr 2005 22:12:54 -0400, fantasai <fantasai.lists at inkedblade.net> wrote: > I have in front of me several examples of in-paragraph block quotes in > which multiple, unrelated sentences are quoted; in which several stanzas > of a poem are quoted; in which a paragraph has been quoted in its [etc, snip] Where could we find these examples? I don't doubt you; I'm just curious. Personally I wouldn't much care either way if things stayed the way they are or if they changed in completely radical, non-sensical ways. I would still mark up paragraphs the same out of habit. -- J. King http://jking.dark-phantasy.com/ From mtknight at dark-phantasy.com Fri Apr 15 21:16:27 2005 From: mtknight at dark-phantasy.com (J. King) Date: Sat, 16 Apr 2005 00:16:27 -0400 Subject: [whatwg] [web-apps] 2.7.8 The i element Message-ID: <op.spa4tpxpk4suho@briann> The note at the bottom says: The i element is not appropriate for marking up names (e.g. of people, or of ships). Is there an element that would be? This has been a problem for me several times and I could never find an acceptable solution. -- J. King http://jking.dark-phantasy.com/ From robmientjes at gmail.com Sat Apr 16 02:53:54 2005 From: robmientjes at gmail.com (Rob Mientjes) Date: Sat, 16 Apr 2005 11:53:54 +0200 Subject: [whatwg] [web-apps] 2.7.8 The i element In-Reply-To: <op.spa4tpxpk4suho@briann> References: <op.spa4tpxpk4suho@briann> Message-ID: <e8e97f9f050416025346d0249e@mail.gmail.com> On 4/16/05, J. King <mtknight at dark-phantasy.com> wrote: > Is there an element that would be? This has been a problem for me several > times and I could never find an acceptable solution. Well, even if there isn't a suitable element, you can still use classes or ids to show the meaning, not just using it as a styling hook. <span class="name">Titanic</span> would come a long way when it comes to 'The Semantic Web', if we must trust Tantek. -- Cheers, Rob. http://zooibaai.nl | http://digital-proof.org | http://chancecube.com From ian at hixie.ch Sat Apr 16 03:40:25 2005 From: ian at hixie.ch (Ian Hickson) Date: Sat, 16 Apr 2005 10:40:25 +0000 (UTC) Subject: [whatwg] [web-apps] 2.7.8 The i element In-Reply-To: <op.spa4tpxpk4suho@briann> References: <op.spa4tpxpk4suho@briann> Message-ID: <Pine.LNX.4.61.0504161039020.7599@dhalsim.dreamhost.com> On Sat, 16 Apr 2005, J. King wrote: > > The note at the bottom says: > > The i element is not appropriate for marking > up names (e.g. of people, or of ships). > > Is there an element that would be? This has been a problem for me several > times and I could never find an acceptable solution. The markup for the bit you quoted is: <p class="note">The <code>i</code> element is not appropriate for marking up names (e.g. of people, or of ships).</p> <!-- XXX what is? --> Currently I don't have an answer. Should we introduce a <name> element? -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From ian at hixie.ch Sat Apr 16 03:49:14 2005 From: ian at hixie.ch (Ian Hickson) Date: Sat, 16 Apr 2005 10:49:14 +0000 (UTC) Subject: [whatwg] [web-apps] 2.7.8 The i element In-Reply-To: <e8e97f9f050416025346d0249e@mail.gmail.com> References: <op.spa4tpxpk4suho@briann> <e8e97f9f050416025346d0249e@mail.gmail.com> Message-ID: <Pine.LNX.4.61.0504161040410.7599@dhalsim.dreamhost.com> On Sat, 16 Apr 2005, Rob Mientjes wrote: > > <span class="name">Titanic</span> would come a long way when it comes to > 'The Semantic Web', if we must trust Tantek. The class attribute is meaningless. http://tantek.com/log/2002/12.html#L20021216 http://whatwg.org/specs/web-apps/current-work/#class So the above wouldn't help at all, at the moment. I am considering that we need some predefined class names. In this particular case, though, a new element would be more appropriate. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From robmientjes at gmail.com Sat Apr 16 03:52:33 2005 From: robmientjes at gmail.com (Rob Mientjes) Date: Sat, 16 Apr 2005 12:52:33 +0200 Subject: [whatwg] [web-apps] 2.7.8 The i element In-Reply-To: <Pine.LNX.4.61.0504161039020.7599@dhalsim.dreamhost.com> References: <op.spa4tpxpk4suho@briann> <Pine.LNX.4.61.0504161039020.7599@dhalsim.dreamhost.com> Message-ID: <e8e97f9f0504160352234b5e20@mail.gmail.com> On 4/16/05, Ian Hickson <ian at hixie.ch> wrote: > <p class="note">The <code>i</code> element is not appropriate for > marking up names (e.g. of people, or of ships).</p> <!-- XXX what is? --> :D > Currently I don't have an answer. Should we introduce a <name> element? Heh. That will make some pedants quite angry. <name><abbr title="Extensible Hypertext Markup Language">XHTML</abbr></name> How do you visualise that yourself? -- Cheers, Rob. http://zooibaai.nl | http://digital-proof.org | http://chancecube.com From robmientjes at gmail.com Sat Apr 16 03:56:00 2005 From: robmientjes at gmail.com (Rob Mientjes) Date: Sat, 16 Apr 2005 12:56:00 +0200 Subject: [whatwg] [web-apps] 2.7.8 The i element In-Reply-To: <Pine.LNX.4.61.0504161040410.7599@dhalsim.dreamhost.com> References: <op.spa4tpxpk4suho@briann> <e8e97f9f050416025346d0249e@mail.gmail.com> <Pine.LNX.4.61.0504161040410.7599@dhalsim.dreamhost.com> Message-ID: <e8e97f9f05041603562f07bb9f@mail.gmail.com> On 4/16/05, Ian Hickson <ian at hixie.ch> wrote: > The class attribute is meaningless. I'm referring to Tantek's visions of hCards, for example. > I am considering that we need some predefined class names. In this > particular case, though, a new element would be more appropriate. Predefined class names, isn't that what Tantek _is_ opting with his hCards and other stuff on the Technorati wiki? Just like the XFN predefined rel values. -- Cheers, Rob. http://zooibaai.nl | http://digital-proof.org | http://chancecube.com From ian at hixie.ch Sat Apr 16 04:43:13 2005 From: ian at hixie.ch (Ian Hickson) Date: Sat, 16 Apr 2005 11:43:13 +0000 (UTC) Subject: [whatwg] [web-apps] 2.7.8 The i element In-Reply-To: <e8e97f9f0504160352234b5e20@mail.gmail.com> References: <op.spa4tpxpk4suho@briann> <Pine.LNX.4.61.0504161039020.7599@dhalsim.dreamhost.com> <e8e97f9f0504160352234b5e20@mail.gmail.com> Message-ID: <Pine.LNX.4.61.0504161056020.7599@dhalsim.dreamhost.com> On Sat, 16 Apr 2005, Rob Mientjes wrote: > > > > Currently I don't have an answer. Should we introduce a <name> element? > > Heh. That will make some pedants quite angry. > > <name><abbr title="Extensible Hypertext Markup Language">XHTML</abbr></name> > > How do you visualise that yourself? Well, it would just be for people, vehicles (ships), that kind of thing. I wasn't imagining that people would want to use it for technologies. Would it make sense to allow it for books? I don't know. Maybe the <cite> element needs a "type" attribute that takes values like "person", "ship", "publication"? What other names do people want to mark up? (There clearly is a semantic difference between marking up the name of a person and the name of a ship. There's a presentational difference, too; ship names are usually italicised, for instance.) -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From ian at hixie.ch Sat Apr 16 04:43:49 2005 From: ian at hixie.ch (Ian Hickson) Date: Sat, 16 Apr 2005 11:43:49 +0000 (UTC) Subject: [whatwg] [web-apps] 2.7.8 The i element In-Reply-To: <e8e97f9f05041603562f07bb9f@mail.gmail.com> References: <op.spa4tpxpk4suho@briann> <e8e97f9f050416025346d0249e@mail.gmail.com> <Pine.LNX.4.61.0504161040410.7599@dhalsim.dreamhost.com> <e8e97f9f05041603562f07bb9f@mail.gmail.com> Message-ID: <Pine.LNX.4.61.0504161143190.7599@dhalsim.dreamhost.com> On Sat, 16 Apr 2005, Rob Mientjes wrote: > > > > The class attribute is meaningless. > > I'm referring to Tantek's visions of hCards, for example. Ah, yes. Well, those would be spec-defined special cases. > > I am considering that we need some predefined class names. In this > > particular case, though, a new element would be more appropriate. > > Predefined class names, isn't that what Tantek _is_ opting with his > hCards and other stuff on the Technorati wiki? Just like the XFN > predefined rel values. Right. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From robmientjes at gmail.com Sat Apr 16 04:57:31 2005 From: robmientjes at gmail.com (Rob Mientjes) Date: Sat, 16 Apr 2005 13:57:31 +0200 Subject: [whatwg] [web-apps] 2.7.8 The i element In-Reply-To: <Pine.LNX.4.61.0504161056020.7599@dhalsim.dreamhost.com> References: <op.spa4tpxpk4suho@briann> <Pine.LNX.4.61.0504161039020.7599@dhalsim.dreamhost.com> <e8e97f9f0504160352234b5e20@mail.gmail.com> <Pine.LNX.4.61.0504161056020.7599@dhalsim.dreamhost.com> Message-ID: <e8e97f9f050416045769ec23cc@mail.gmail.com> On 4/16/05, Ian Hickson <ian at hixie.ch> wrote: > Well, it would just be for people, vehicles (ships), that kind of thing. I > wasn't imagining that people would want to use it for technologies. Well, a NAME element sounds like it may be used for it (and ambiguous naming and spec defining leads to tag abuse, no?). > Would it make sense to allow it for books? I don't know. Maybe the <cite> > element needs a "type" attribute that takes values like "person", "ship", > "publication"? What other names do people want to mark up? That feels like something much better. That way, you can talk about <cite type="person">Anne van Kesteren</cite>, <cite type="publication" (publication sounds a bit vague, maybe something along the lines of source?)>A Dao of Web Design</cite> and maybe better something such as <cite type="object">Titanic</cite>. This deserves some serious attention, cause well, ship is rather silly ;) -- Cheers, Rob. http://zooibaai.nl | http://digital-proof.org | http://chancecube.com From ian at hixie.ch Sat Apr 16 05:50:44 2005 From: ian at hixie.ch (Ian Hickson) Date: Sat, 16 Apr 2005 12:50:44 +0000 (UTC) Subject: [whatwg] [web-apps] 2.7.8 The i element In-Reply-To: <e8e97f9f050416045769ec23cc@mail.gmail.com> References: <op.spa4tpxpk4suho@briann> <Pine.LNX.4.61.0504161039020.7599@dhalsim.dreamhost.com> <e8e97f9f0504160352234b5e20@mail.gmail.com> <Pine.LNX.4.61.0504161056020.7599@dhalsim.dreamhost.com> <e8e97f9f050416045769ec23cc@mail.gmail.com> Message-ID: <Pine.LNX.4.61.0504161239120.20636@dhalsim.dreamhost.com> On Sat, 16 Apr 2005, Rob Mientjes wrote: > > > > Well, it would just be for people, vehicles (ships), that kind of > > thing. I wasn't imagining that people would want to use it for > > technologies. > > Well, a NAME element sounds like it may be used for it (and ambiguous > naming and spec defining leads to tag abuse, no?). We don't want any vague spec defining, if anyone sees any, let me know so we can fix it! :-) > > Would it make sense to allow it for books? I don't know. Maybe the > > <cite> element needs a "type" attribute that takes values like > > "person", "ship", "publication"? What other names do people want to > > mark up? I actually meant the <name> element should, although one option is indeed to co-opt <cite> for this (I don't really like that idea though). > That feels like something much better. That way, you can talk about > <cite type="person">Anne van Kesteren</cite>, <cite type="publication" > (publication sounds a bit vague, maybe something along the lines of > source?)>A Dao of Web Design</cite> and maybe better something such as > <cite type="object">Titanic</cite>. This deserves some serious > attention, cause well, ship is rather silly ;) Yeah. For <name> that might work better though. The thing is we don't want to start making people do: <cite><name type="person">Ian</name></cite> said <q>Hello</q>. ...when all they need to do is write: Ian said "Hello". Is there any advantage to marking up people's names? Maybe we should just let ship names be marked up by <i> (it is, after all, an instance of use of a term, as it were), and say that <cite> can be used for any reference to a publication, including those that aren't really citations ("my favourite book is <cite>...</cite>"). -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From robmientjes at gmail.com Sat Apr 16 05:57:20 2005 From: robmientjes at gmail.com (Rob Mientjes) Date: Sat, 16 Apr 2005 14:57:20 +0200 Subject: [whatwg] [web-apps] 2.7.8 The i element In-Reply-To: <Pine.LNX.4.61.0504161239120.20636@dhalsim.dreamhost.com> References: <op.spa4tpxpk4suho@briann> <Pine.LNX.4.61.0504161039020.7599@dhalsim.dreamhost.com> <e8e97f9f0504160352234b5e20@mail.gmail.com> <Pine.LNX.4.61.0504161056020.7599@dhalsim.dreamhost.com> <e8e97f9f050416045769ec23cc@mail.gmail.com> <Pine.LNX.4.61.0504161239120.20636@dhalsim.dreamhost.com> Message-ID: <e8e97f9f050416055724f000f1@mail.gmail.com> On 4/16/05, Ian Hickson <ian at hixie.ch> wrote: > Is there any advantage to marking up people's names? I dunno. I was just trying to fill the gap of need ;) > Maybe we should just let ship names be marked up by <i> (it is, after all, > an instance of use of a term, as it were), and say that <cite> can be used > for any reference to a publication, including those that aren't really > citations ("my favourite book is <cite>...</cite>"). Well, then let's hear some voices about that change in semantics and usage (Anne? ;)). -- Cheers, Rob. http://zooibaai.nl | http://digital-proof.org | http://chancecube.com From ian at hixie.ch Sat Apr 16 06:04:05 2005 From: ian at hixie.ch (Ian Hickson) Date: Sat, 16 Apr 2005 13:04:05 +0000 (UTC) Subject: [whatwg] [web-apps] 2.7.8 The i element In-Reply-To: <e8e97f9f050416055724f000f1@mail.gmail.com> References: <op.spa4tpxpk4suho@briann> <Pine.LNX.4.61.0504161039020.7599@dhalsim.dreamhost.com> <e8e97f9f0504160352234b5e20@mail.gmail.com> <Pine.LNX.4.61.0504161056020.7599@dhalsim.dreamhost.com> <e8e97f9f050416045769ec23cc@mail.gmail.com> <Pine.LNX.4.61.0504161239120.20636@dhalsim.dreamhost.com> <e8e97f9f050416055724f000f1@mail.gmail.com> Message-ID: <Pine.LNX.4.61.0504161301440.20636@dhalsim.dreamhost.com> On Sat, 16 Apr 2005, Rob Mientjes wrote: > > > > Is there any advantage to marking up people's names? > > I dunno. I was just trying to fill the gap of need ;) The question is: is the need a real need or a perceived need? > > Maybe we should just let ship names be marked up by <i> (it is, after > > all, an instance of use of a term, as it were), and say that <cite> > > can be used for any reference to a publication, including those that > > aren't really citations ("my favourite book is <cite>...</cite>"). > > Well, then let's hear some voices about that change in semantics and > usage (Anne? ;)). Indeed, it would be good to have other opinions on this. Anyone? -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From lachlan.hunt at lachy.id.au Sat Apr 16 06:45:43 2005 From: lachlan.hunt at lachy.id.au (Lachlan Hunt) Date: Sat, 16 Apr 2005 23:45:43 +1000 Subject: [whatwg] [web-apps] 2.7.8 The i element In-Reply-To: <Pine.LNX.4.61.0504161239120.20636@dhalsim.dreamhost.com> References: <op.spa4tpxpk4suho@briann> <Pine.LNX.4.61.0504161039020.7599@dhalsim.dreamhost.com> <e8e97f9f0504160352234b5e20@mail.gmail.com> <Pine.LNX.4.61.0504161056020.7599@dhalsim.dreamhost.com> <e8e97f9f050416045769ec23cc@mail.gmail.com> <Pine.LNX.4.61.0504161239120.20636@dhalsim.dreamhost.com> Message-ID: <42611707.10401@lachy.id.au> Ian Hickson wrote: > Is there any advantage to marking up people's names? The only reason I have ever marked up any name is for linking to their home page or other page about them like this: <a href="http://www.hixie.ch/">Ian Hickson</a> said <q>Hello</q> I see little reason to add specific elements for this purpose to a general purpose markup language like HTML. > Maybe we should just let ship names be marked up by <i> Perhaps. it's been argued many times before that i is the most suitable element to use for such purposes; but then again, italics for ship names is merely a typographical convention and the i element is as meaningless as span. However in the absense of a more semantic element, making use of a non-semantic element with the desired with the desired visual rendering to convey some form of semantics to the reader is sometimes acceptable. > and say that <cite> can be used for any reference to a publication, Agreed, but... > including those that aren't really citations ("my favourite book > is <cite>...</cite>"). I think it should be limited to cases where it really is a citation. In that case, it would probably be better to mark that up as: My favourite book is <a href="urn:isbn:0-735-71245-X">Eric Meyer on CSS</a>. -- Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox From ian at hixie.ch Sat Apr 16 06:55:09 2005 From: ian at hixie.ch (Ian Hickson) Date: Sat, 16 Apr 2005 13:55:09 +0000 (UTC) Subject: [whatwg] [web-apps] 2.7.8 The i element In-Reply-To: <42611707.10401@lachy.id.au> References: <op.spa4tpxpk4suho@briann> <Pine.LNX.4.61.0504161039020.7599@dhalsim.dreamhost.com> <e8e97f9f0504160352234b5e20@mail.gmail.com> <Pine.LNX.4.61.0504161056020.7599@dhalsim.dreamhost.com> <e8e97f9f050416045769ec23cc@mail.gmail.com> <Pine.LNX.4.61.0504161239120.20636@dhalsim.dreamhost.com> <42611707.10401@lachy.id.au> Message-ID: <Pine.LNX.4.61.0504161351170.20636@dhalsim.dreamhost.com> On Sat, 16 Apr 2005, Lachlan Hunt wrote: > > > > Is there any advantage to marking up people's names? > > The only reason I have ever marked up any name is for linking to their > home page or other page about them like this: > > <a href="http://www.hixie.ch/">Ian Hickson</a> said <q>Hello</q> > > I see little reason to add specific elements for this purpose to a > general purpose markup language like HTML. Agreed. > > Maybe we should just let ship names be marked up by <i> > > Perhaps. it's been argued many times before that i is the most suitable > element to use for such purposes; but then again, italics for ship names > is merely a typographical convention and the i element is as meaningless > as span. Actually, <i> in HTML5 is currently defined as having specific semantics: http://whatwg.org/specs/web-apps/current-work/#the-i > > and say that <cite> can be used for any reference to a publication, > > Agreed, but... > > > including those that aren't really citations ("my favourite book > > is <cite>...</cite>"). > > I think it should be limited to cases where it really is a citation. In that > case, it would probably be better to mark that up as: > > My favourite book is <a href="urn:isbn:0-735-71245-X">Eric Meyer on > CSS</a>. What if there is no appropriate link, though? Or when I can't be bothered to find out what the link is? Also, there's nothing that distinguishes that <a> from other <a> elements, yet there is something very different about that one -- it's the title of another work. I'd like to be able to style all such titles consistently, so they have to be marked up in some way. Movie titles are similar. I'd like my UA to give me a tooltip containing information from IMDB for every movie title. With user JavaScript I can do this, if there's a way to recognise movie titles. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From dean at edwards.name Sat Apr 16 06:57:48 2005 From: dean at edwards.name (Dean Edwards) Date: Sat, 16 Apr 2005 14:57:48 +0100 Subject: [whatwg] [web-apps] 2.7.8 The i element In-Reply-To: <Pine.LNX.4.61.0504161301440.20636@dhalsim.dreamhost.com> References: <op.spa4tpxpk4suho@briann> <Pine.LNX.4.61.0504161039020.7599@dhalsim.dreamhost.com> <e8e97f9f0504160352234b5e20@mail.gmail.com> <Pine.LNX.4.61.0504161056020.7599@dhalsim.dreamhost.com> <e8e97f9f050416045769ec23cc@mail.gmail.com> <Pine.LNX.4.61.0504161239120.20636@dhalsim.dreamhost.com> <e8e97f9f050416055724f000f1@mail.gmail.com> <Pine.LNX.4.61.0504161301440.20636@dhalsim.dreamhost.com> Message-ID: <426119DC.4020307@edwards.name> Ian Hickson wrote: > On Sat, 16 Apr 2005, Rob Mientjes wrote: > >>> Is there any advantage to marking up people's names? >> >> >> I dunno. I was just trying to fill the gap of need ;) > > > > The question is: is the need a real need or a perceived need? > > Anyone? > The only reason I can think of for using a <name> element is that screen readers might stress the words differently. Of course, current readers sound like daleks to this would be a case of future-proofing. -dean From ian at hixie.ch Sat Apr 16 07:09:44 2005 From: ian at hixie.ch (Ian Hickson) Date: Sat, 16 Apr 2005 14:09:44 +0000 (UTC) Subject: [whatwg] [web-apps] 2.7.8 The i element In-Reply-To: <426119DC.4020307@edwards.name> References: <op.spa4tpxpk4suho@briann> <Pine.LNX.4.61.0504161039020.7599@dhalsim.dreamhost.com> <e8e97f9f0504160352234b5e20@mail.gmail.com> <Pine.LNX.4.61.0504161056020.7599@dhalsim.dreamhost.com> <e8e97f9f050416045769ec23cc@mail.gmail.com> <Pine.LNX.4.61.0504161239120.20636@dhalsim.dreamhost.com> <e8e97f9f050416055724f000f1@mail.gmail.com> <Pine.LNX.4.61.0504161301440.20636@dhalsim.dreamhost.com> <426119DC.4020307@edwards.name> Message-ID: <Pine.LNX.4.61.0504161409140.7599@dhalsim.dreamhost.com> On Sat, 16 Apr 2005, Dean Edwards wrote: > > The only reason I can think of for using a <name> element is that screen > readers might stress the words differently. Of course, current readers > sound like daleks to this would be a case of future-proofing. I imagine screen readers would have to have a lot more context than just "this is a name" to do that right. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From lachlan.hunt at lachy.id.au Sat Apr 16 07:42:33 2005 From: lachlan.hunt at lachy.id.au (Lachlan Hunt) Date: Sun, 17 Apr 2005 00:42:33 +1000 Subject: [whatwg] [web-apps] 2.7.8 The i element In-Reply-To: <Pine.LNX.4.61.0504161351170.20636@dhalsim.dreamhost.com> References: <op.spa4tpxpk4suho@briann> <Pine.LNX.4.61.0504161039020.7599@dhalsim.dreamhost.com> <e8e97f9f0504160352234b5e20@mail.gmail.com> <Pine.LNX.4.61.0504161056020.7599@dhalsim.dreamhost.com> <e8e97f9f050416045769ec23cc@mail.gmail.com> <Pine.LNX.4.61.0504161239120.20636@dhalsim.dreamhost.com> <42611707.10401@lachy.id.au> <Pine.LNX.4.61.0504161351170.20636@dhalsim.dreamhost.com> Message-ID: <42612459.5080500@lachy.id.au> Ian Hickson wrote: > On Sat, 16 Apr 2005, Lachlan Hunt wrote: >>Perhaps. it's been argued many times before that i is the most suitable >>element to use for such purposes; but then again, italics for ship names >>is merely a typographical convention and the i element is as meaningless >>as span. > > Actually, <i> in HTML5 is currently defined as having specific semantics: > > http://whatwg.org/specs/web-apps/current-work/#the-i So does "i" now stand for "instance", instead of "italics"? >> My favourite book is <a href="urn:isbn:0-735-71245-X">Eric Meyer on >> CSS</a>. > > What if there is no appropriate link, though? I don't know. > Or when I can't be bothered to find out what the link is? Then you're just being lazy :-) > Also, there's nothing that distinguishes that <a> from other <a> elements, Sure there is: a[href^=urn:isbn:] { /* Styles for book titles */ } Although, that would depend on every book being linked with an ISBN URI, if they were all to recieve the same styles. > yet there is something very different about that one -- it's the title of > another work. I'd like to be able to style all such titles consistently, > so they have to be marked up in some way. In that case, would you want to differentiate between ordinary titles and real citations? Or is that something that the class attribute could handle, if needed? > Movie titles are similar. I'd like my UA to give me a tooltip containing > information from IMDB for every movie title. With user JavaScript I can do > this, if there's a way to recognise movie titles. Then would you want different markup for book titles, movie titles, play titles, song titles, etc? Or would you just expect the script to search IMDB for anything marked up with <cite>? -- Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox From ian at hixie.ch Sat Apr 16 07:53:14 2005 From: ian at hixie.ch (Ian Hickson) Date: Sat, 16 Apr 2005 14:53:14 +0000 (UTC) Subject: [whatwg] [web-apps] 2.7.8 The i element In-Reply-To: <42612459.5080500@lachy.id.au> References: <op.spa4tpxpk4suho@briann> <Pine.LNX.4.61.0504161039020.7599@dhalsim.dreamhost.com> <e8e97f9f0504160352234b5e20@mail.gmail.com> <Pine.LNX.4.61.0504161056020.7599@dhalsim.dreamhost.com> <e8e97f9f050416045769ec23cc@mail.gmail.com> <Pine.LNX.4.61.0504161239120.20636@dhalsim.dreamhost.com> <42611707.10401@lachy.id.au> <Pine.LNX.4.61.0504161351170.20636@dhalsim.dreamhost.com> <42612459.5080500@lachy.id.au> Message-ID: <Pine.LNX.4.61.0504161443280.7599@dhalsim.dreamhost.com> On Sun, 17 Apr 2005, Lachlan Hunt wrote: > > > > Actually, <i> in HTML5 is currently defined as having specific > > semantics: > > > > http://whatwg.org/specs/web-apps/current-work/#the-i > > So does "i" now stand for "instance", instead of "italics"? At least until someone argues otherwise. :-) This is actually something that was first suggested back in 1997: http://lists.w3.org/Archives/Public/www-html/1997Dec/0064.html > > > My favourite book is <a href="urn:isbn:0-735-71245-X">Eric Meyer on > > > CSS</a>. > > > > What if there is no appropriate link, though? > > I don't know. That's the problem. Would abusing <cite> for this be acceptable? Do we need another element? > > Or when I can't be bothered to find out what the link is? > > Then you're just being lazy :-) Like most HTML authors. > > Also, there's nothing that distinguishes that <a> from other <a> > > elements, > > Sure there is: > a[href^=urn:isbn:] { /* Styles for book titles */ } > > Although, that would depend on every book being linked with an ISBN URI, if > they were all to recieve the same styles. I don't particularly plan on ever linking to a urn:, since the likelihood of their being successfully dereferenced is extremely low. I don't think that's really a workable solution. > > yet there is something very different about that one -- it's the title > > of another work. I'd like to be able to style all such titles > > consistently, so they have to be marked up in some way. > > In that case, would you want to differentiate between ordinary titles > and real citations? Or is that something that the class attribute could > handle, if needed? I don't know. What do people think? > > Movie titles are similar. I'd like my UA to give me a tooltip > > containing information from IMDB for every movie title. With user > > JavaScript I can do this, if there's a way to recognise movie titles. > > Then would you want different markup for book titles, movie titles, play > titles, song titles, etc? Or would you just expect the script to search > IMDB for anything marked up with <cite>? Again, I don't really know. I could see a use case for a "type" attribute (as was suggested earlier in this thread), but that seems like a slippery slope. Suggestions? -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From mtknight at dark-phantasy.com Sat Apr 16 09:04:44 2005 From: mtknight at dark-phantasy.com (J. King) Date: Sat, 16 Apr 2005 12:04:44 -0400 Subject: [whatwg] [web-apps] 2.7.8 The i element In-Reply-To: <Pine.LNX.4.61.0504161039020.7599@dhalsim.dreamhost.com> References: <op.spa4tpxpk4suho@briann> <Pine.LNX.4.61.0504161039020.7599@dhalsim.dreamhost.com> Message-ID: <op.spb1l61mk4suho@briann.wlfdle.phub.net.cable.rogers.com> On Sat, 16 Apr 2005 06:40:25 -0400, Ian Hickson <ian at hixie.ch> wrote: > The markup for the bit you quoted is: > > <p class="note">The <code>i</code> element is not appropriate for > marking up names (e.g. of people, or of ships).</p> <!-- XXX what is? > --> Mental note: read the spec in markup form from now on. :) -- J. King http://jking.dark-phantasy.com/ From fantasai.lists at inkedblade.net Sat Apr 16 11:31:01 2005 From: fantasai.lists at inkedblade.net (fantasai) Date: Sat, 16 Apr 2005 14:31:01 -0400 Subject: [whatwg] [web-apps] 2.7.8 The i element In-Reply-To: <Pine.LNX.4.61.0504161443280.7599@dhalsim.dreamhost.com> References: <op.spa4tpxpk4suho@briann> <Pine.LNX.4.61.0504161039020.7599@dhalsim.dreamhost.com> <e8e97f9f0504160352234b5e20@mail.gmail.com> <Pine.LNX.4.61.0504161056020.7599@dhalsim.dreamhost.com> <e8e97f9f050416045769ec23cc@mail.gmail.com> <Pine.LNX.4.61.0504161239120.20636@dhalsim.dreamhost.com> <42611707.10401@lachy.id.au> <Pine.LNX.4.61.0504161351170.20636@dhalsim.dreamhost.com> <42612459.5080500@lachy.id.au> <Pine.LNX.4.61.0504161443280.7599@dhalsim.dreamhost.com> Message-ID: <426159E5.2040307@inkedblade.net> Ian Hickson wrote: >>>Movie titles are similar. I'd like my UA to give me a tooltip >>>containing information from IMDB for every movie title. With user >>>JavaScript I can do this, if there's a way to recognise movie titles. >> >>Then would you want different markup for book titles, movie titles, play >>titles, song titles, etc? Or would you just expect the script to search >>IMDB for anything marked up with <cite>? > > Again, I don't really know. I could see a use case for a "type" attribute > (as was suggested earlier in this thread), but that seems like a slippery > slope. Suggestions? You will need a type attribute of some kind if you are to handle the different typographic conventions for e.g. books vs. articles. Book titles are italicized: article titles are put in quotes. Parallel distinctions exist for other types of creative works. ~fantasai From gleemax at myrealbox.com Sat Apr 16 11:22:27 2005 From: gleemax at myrealbox.com (John Lewis) Date: Sat, 16 Apr 2005 13:22:27 -0500 Subject: [whatwg] [web-apps] Titles in HTML (was: 2.7.8 The i element) In-Reply-To: <Pine.LNX.4.61.0504161443280.7599@dhalsim.dreamhost.com> References: <op.spa4tpxpk4suho@briann> <Pine.LNX.4.61.0504161039020.7599@dhalsim.dreamhost.com> <e8e97f9f0504160352234b5e20@mail.gmail.com> <Pine.LNX.4.61.0504161056020.7599@dhalsim.dreamhost.com> <e8e97f9f050416045769ec23cc@mail.gmail.com> <Pine.LNX.4.61.0504161239120.20636@dhalsim.dreamhost.com> <42611707.10401@lachy.id.au> <Pine.LNX.4.61.0504161351170.20636@dhalsim.dreamhost.com> <42612459.5080500@lachy.id.au> <Pine.LNX.4.61.0504161443280.7599@dhalsim.dreamhost.com> Message-ID: <opspb7zpledmipy5@smtp.myrealbox.com> A way to mark up titles is something I've always wanted in HTML. Currently, <cite> is only appropriate for actual citations. I rarely cite books, movies, etc.; I'm usually just talking about them. <i> is worse. It's basically meaningless. The best I can do is <i class="movie"> or something, and even then it's only appropriate for titles that are italicized. Song names (and other minor works) are generally written in quotation marks, not italicized. <i class="song"> is awful. Titles are common enough to belong in HTML. For some evidence, here is a non-comprehensive list of all the major and minor work types I could think of: Major works (italicized in print) 1. books 2. movies 3. video games 4. newspapers 5. plays 6. long (book-length) poems 7. magazines 8. albums 9. radio/TV programs [10. websites?] Minor works (printed in quotation marks) 1. (magazine, newspaper) articles 2. short stories 3. poems 4. songs 5. book chapters 6. speeches 7. episodes of radio/TV programs Everyone writes about these things. (And I don't think I'm exaggerating when I say everyone.) Some ideas: 1. Two new elements, one for major works and one for minor works (these are bad element names, but I couldn't think of anything better) major example: <major class="book">The Great Gatsby</major> minor example: <minor class="song">Eleanor Rigby</minor> Bad: needs two new elements and a specified list of class attribute values Good: it's easy to add new types of works in the future: just add a class attribute value for it (e.g., video games are only a few decades old) 2. One new element, for any work, with some way to differentiate between types of works major example: <t class="book">The Great Gatsby</t> minor example: <t class="song">Eleanor Rigby</t> [Titles are common, so having a short element name wouldn't be uncalled for. See <http://www.w3.org/People/Bos/DesignGuide/readability.html>] Bad: needs a new element and a specified list of class attribute values Good: extensible, only one new element 3. Reuse the cite element, with some way to differentiate between types of works major example: <cite class="book">The Great Gatsby</cite> minor example: <cite class="song">Eleanor Rigby</cite> Bad: redefines an element Good: doesn't need any new elements, extensible 4. Reuse the i element Bad: I don't like this idea at all, especially for minor works, which aren't italicized. Good: No new element... I'm not particular about which element(s) we use as long as we get some way to mark up titles. It's too bad we can't use <title>, since it would be perfect. I like the idea of class attribute values with some (defined) meaning. Would there be ANY advantage to using a new attribute? I like class because authors are familiar with it and it's easily styled with CSS (in HTML). I'm also not sure if the class part should be optional. It probably should be, for lazy authors. I would prefer it be required. If there is one element, the default style should be italic (AFAIK <cite> already is) t { font-style: italic; } with more specific rules for songs and such. With HTML t.song, t.poem { font-style: normal; } and so on. It's not the end of the world if someone leaves off the class attribute and song names are italicized. It would be "worse" for books to be in normal text. For the (rare) case of a title within a title, there would ideally be be something like t t { font-style: normal; } so that the title within a title would be normal. I strongly believe quotation marks (for songs, etc.) should be written by the author in the document, not added with CSS. <q> is messy and hard to use. -- John Lewis From fantasai.lists at inkedblade.net Sat Apr 16 11:41:25 2005 From: fantasai.lists at inkedblade.net (fantasai) Date: Sat, 16 Apr 2005 14:41:25 -0400 Subject: [whatwg] [web-apps] 2.7.8 The i element In-Reply-To: <42611707.10401@lachy.id.au> References: <op.spa4tpxpk4suho@briann> <Pine.LNX.4.61.0504161039020.7599@dhalsim.dreamhost.com> <e8e97f9f0504160352234b5e20@mail.gmail.com> <Pine.LNX.4.61.0504161056020.7599@dhalsim.dreamhost.com> <e8e97f9f050416045769ec23cc@mail.gmail.com> <Pine.LNX.4.61.0504161239120.20636@dhalsim.dreamhost.com> <42611707.10401@lachy.id.au> Message-ID: <42615C55.4040506@inkedblade.net> Lachlan Hunt wrote: > My favourite book is <a href="urn:isbn:0-735-71245-X">Eric Meyer on > CSS</a>. There are two major problems (as I see it) with using ISBN for citations. 1. You are limiting yourself to referencing a single edition of the work, which may not be appropriate. Shakespeare's plays, for example, are available in many, many different publications. If I want to look up the context for your quote from Romeo and Juliet, in most cases there's no need for me to find the exact same edition that you were using. You can helpfully give me a link to an online version of the text, but that would be extra info. 2. You cannot cite anything that has not been assigned an ISBN. There are a lot of publications that don't have standardized IDs. Company memos, ancient manuscripts, my 9th grade paper on medieval castles, a cereal box, the bathroom wall, etc. ~fantasai From fantasai.lists at inkedblade.net Sat Apr 16 11:53:03 2005 From: fantasai.lists at inkedblade.net (fantasai) Date: Sat, 16 Apr 2005 14:53:03 -0400 Subject: [whatwg] citations In-Reply-To: <Pine.LNX.4.61.0504161239120.20636@dhalsim.dreamhost.com> References: <op.spa4tpxpk4suho@briann> <Pine.LNX.4.61.0504161039020.7599@dhalsim.dreamhost.com> <e8e97f9f0504160352234b5e20@mail.gmail.com> <Pine.LNX.4.61.0504161056020.7599@dhalsim.dreamhost.com> <e8e97f9f050416045769ec23cc@mail.gmail.com> <Pine.LNX.4.61.0504161239120.20636@dhalsim.dreamhost.com> Message-ID: <42615F0F.2090809@inkedblade.net> Ian Hickson wrote: > On Sat, 16 Apr 2005, Rob Mientjes wrote: > >>>Would it make sense to allow it for books? I don't know. Maybe the >>><cite> element needs a "type" attribute that takes values like >>>"person", "ship", "publication"? What other names do people want to >>>mark up? > > I actually meant the <name> element should, although one option is indeed > to co-opt <cite> for this (I don't really like that idea though). "But there's no ship as can match <cite>The Interceptor</cite> for speed." ... > The thing is we don't want to start making people do: > > <cite><name type="person">Ian</name></cite> said <q>Hello</q>. > > ...when all they need to do is write: > > Ian said "Hello". > > Is there any advantage to marking up people's names? Depends on what you want to do with them, really. In most cases it's not necessary, since in most cases you don't want to do anything special with them. However, although the average person's name is usually not treated specially, holy figures sometimes are. Ancient egyptians put pharoahs' names in a special cartouche; more modern works, iirc, put some holy persons' names in small-caps. > Maybe we should just let ship names be marked up by <i> (it is, after all, > an instance of use of a term, as it were), and say that <cite> can be used > for any reference to a publication, including those that aren't really > citations ("my favourite book is <cite>...</cite>"). The distinction between a citation and a mention is oftentimes subtle, and I am sure that many authors would confuse the two. So from a practical perspective, this may be necessary. However, the main problem we have right now is that there is no clear alternative to <cite>. So perhaps if there was one -- a blatantly _obvious_ alternative -- it would not be as much of a problem. Another thing to think about: How does one mark up a bibliography? The whole entry is a <cite>, really, although only the title part should be in italics. ~fantasai From fantasai.lists at inkedblade.net Sat Apr 16 11:55:42 2005 From: fantasai.lists at inkedblade.net (fantasai) Date: Sat, 16 Apr 2005 14:55:42 -0400 Subject: [whatwg] distinguishing examples Message-ID: <42615FAE.4070305@inkedblade.net> Looking at http://www.whatwg.org/specs/web-apps/current-work/#the-cite I think that adopting a clearly-styled markup convention for good examples and bad examples (like [1]) would be helpful. Someone carelessly skimming your text should not be able to mistake an example of what /not/ to do for an example of what /to/ do. [1] http://www.mozilla.org/contribute/writing/markup#figures ~fantasai From fantasai.lists at inkedblade.net Sat Apr 16 12:08:58 2005 From: fantasai.lists at inkedblade.net (fantasai) Date: Sat, 16 Apr 2005 15:08:58 -0400 Subject: [whatwg] [web-apps] Titles in HTML In-Reply-To: <opspb7zpledmipy5@smtp.myrealbox.com> References: <op.spa4tpxpk4suho@briann> <Pine.LNX.4.61.0504161039020.7599@dhalsim.dreamhost.com> <e8e97f9f0504160352234b5e20@mail.gmail.com> <Pine.LNX.4.61.0504161056020.7599@dhalsim.dreamhost.com> <e8e97f9f050416045769ec23cc@mail.gmail.com> <Pine.LNX.4.61.0504161239120.20636@dhalsim.dreamhost.com> <42611707.10401@lachy.id.au> <Pine.LNX.4.61.0504161351170.20636@dhalsim.dreamhost.com> <42612459.5080500@lachy.id.au> <Pine.LNX.4.61.0504161443280.7599@dhalsim.dreamhost.com> <opspb7zpledmipy5@smtp.myrealbox.com> Message-ID: <426162CA.1000204@inkedblade.net> John Lewis wrote: > I strongly believe quotation marks (for songs, etc.) should be written > by the author in the document, not added with CSS. <q> is messy and > hard to use. I agree that <q> has problems, particularly with en-US style punctuation. However, if the italics is going to be in the CSS, I think the quotation marks should also be there. I'd like to note also that citations in languages other than English -- in Chinese, for example -- are probably done differently. (This is why either all citation formatting should be the responsibility of the author or none of it should be.) ~fantasai From ian at hixie.ch Sat Apr 16 15:05:17 2005 From: ian at hixie.ch (Ian Hickson) Date: Sat, 16 Apr 2005 22:05:17 +0000 (UTC) Subject: [whatwg] distinguishing examples In-Reply-To: <42615FAE.4070305@inkedblade.net> References: <42615FAE.4070305@inkedblade.net> Message-ID: <Pine.LNX.4.61.0504162204220.7599@dhalsim.dreamhost.com> On Sat, 16 Apr 2005, fantasai wrote: > > Looking at http://www.whatwg.org/specs/web-apps/current-work/#the-cite I > think that adopting a clearly-styled markup convention for good examples > and bad examples (like [1]) would be helpful. Someone carelessly > skimming your text should not be able to mistake an example of what > /not/ to do for an example of what /to/ do. Yeah, I was planning on doing that at some point. I haven't yet worked out what the appropriate markup would be though. (I haven't thought about it much, it's just one of the many things on my TODO list.) -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From gleemax at myrealbox.com Sat Apr 16 15:01:16 2005 From: gleemax at myrealbox.com (John Lewis) Date: Sat, 16 Apr 2005 17:01:16 -0500 Subject: [whatwg] [web-apps] Titles in HTML In-Reply-To: <426162CA.1000204@inkedblade.net> References: <op.spa4tpxpk4suho@briann> <Pine.LNX.4.61.0504161039020.7599@dhalsim.dreamhost.com> <e8e97f9f0504160352234b5e20@mail.gmail.com> <Pine.LNX.4.61.0504161056020.7599@dhalsim.dreamhost.com> <e8e97f9f050416045769ec23cc@mail.gmail.com> <Pine.LNX.4.61.0504161239120.20636@dhalsim.dreamhost.com> <42611707.10401@lachy.id.au> <Pine.LNX.4.61.0504161351170.20636@dhalsim.dreamhost.com> <42612459.5080500@lachy.id.au> <Pine.LNX.4.61.0504161443280.7599@dhalsim.dreamhost.com> <opspb7zpledmipy5@smtp.myrealbox.com> <426162CA.1000204@inkedblade.net> Message-ID: <opspch4etgdmipy5@smtp.myrealbox.com> On Sat, 16 Apr 2005 15:08:58 -0400, fantasai <fantasai.lists at inkedblade.net> wrote: > I agree that <q> has problems, particularly with en-US style punctuation. > However, if the italics is going to be in the CSS, I think the quotation > marks should also be there. But the italic text needs* to be applied via CSS. The quotation marks could be written by the author. In plain text, for example, quotation marks are content, and italic text must be faked (_like this_ to represent underlining) or done without. In UAs that don't support CSS (or don't support it fully), written quotation marks will still work. Keeping the quotation marks out of the CSS also passes the burden of language differences to the author. That means the quotation marks would need to be translated by hand instead of CSS, including when there is a quotation in a quotation, which changes the appearance of the inner quotation marks (at least in English). That isn't great, but it's not a critical problem. * The only exception I could think of is something like <t><i>The Great Gatsby</i></t> which isn't what I think you had in mind. I didn't consider that at all. It looks wrong to me, but maybe it is a possibility. The italics would be the author's responsibility (albeit in a weird way). We wouldn't need to give <t> any default rendering, so maybe it's not as bad as it seems. We could even redefine <q> (giving it a special meaning in a title), producing: <t><q>Eleanor Rigby</q></t> The default <q> style wouldn't be a problem even if it was different than our desired song/article/whatever styling, since we could select just quotes in titles with descendant/child selectors (even by type). Maybe that's a bad idea. I'm sure someone will tell me if it is. > I'd like to note also that citations in languages other than English -- > in Chinese, for example -- are probably done differently. (This is why > either all citation formatting should be the responsibility of the author > or none of it should be.) That is a good point. Maybe there could be language-specific behavior based on the lang attribute (or falling back to the UA default language if there is no language specified on the page). One problem with making formatting the author's responsibility (instead of spelling it out in the spec or making it the UA's responsibility) is that when the author CSS is unavailable, or turned off by the user, there wouldn't be any formatting (absent a user style sheet with appropriate rules). That may be as bad as inappropriate formatting. -- John Lewis From jg307 at cam.ac.uk Sat Apr 16 16:04:49 2005 From: jg307 at cam.ac.uk (James Graham) Date: Sun, 17 Apr 2005 00:04:49 +0100 Subject: [whatwg] [web-apps] 2.7.8 The i element In-Reply-To: <Pine.LNX.4.61.0504161040410.7599@dhalsim.dreamhost.com> References: <op.spa4tpxpk4suho@briann> <e8e97f9f050416025346d0249e@mail.gmail.com> <Pine.LNX.4.61.0504161040410.7599@dhalsim.dreamhost.com> Message-ID: <42619A11.1040909@cam.ac.uk> Ian Hickson wrote: > I am considering that we need some predefined class names. Yuck. This has several problems; it makes document semantics harder to parse (especially as an element may have multiple space seperated strings in the class attribute - substring matching in general is significantly harder than exact value matching), it could cause authors to unwittingly add inaccurate sematics to documents (by accidentially using a reserved class name) - which reduces the value for people who do use the resvered names correctly - and causes compatibility problems since valid HTML4 documents may use a now-reserved name. Is there a good reason for reserved class names? I tend to believe that anything important enough to be included may as well be a tag. If we're looking to provide hooks for domain-specific microformats that should use a seperate mechanism (e.g. a special subType attribute or somesuch) with some provison for (pseudo)namespacing the microformat values (e.g. <link rel="subformat" href="http://example.com/#microformat" namespace="mf" /> and then e.g. <span subtype="mf:shipName">HMS Victory</span>). From mpt at myrealbox.com Sat Apr 16 16:27:50 2005 From: mpt at myrealbox.com (Matthew Thomas) Date: Sun, 17 Apr 2005 11:27:50 +1200 Subject: [whatwg] [web-apps] 2.7.8 The i element In-Reply-To: <Pine.LNX.4.61.0504161443280.7599@dhalsim.dreamhost.com> References: <op.spa4tpxpk4suho@briann> <Pine.LNX.4.61.0504161039020.7599@dhalsim.dreamhost.com> <e8e97f9f0504160352234b5e20@mail.gmail.com> <Pine.LNX.4.61.0504161056020.7599@dhalsim.dreamhost.com> <e8e97f9f050416045769ec23cc@mail.gmail.com> <Pine.LNX.4.61.0504161239120.20636@dhalsim.dreamhost.com> <42611707.10401@lachy.id.au> <Pine.LNX.4.61.0504161351170.20636@dhalsim.dreamhost.com> <42612459.5080500@lachy.id.au> <Pine.LNX.4.61.0504161443280.7599@dhalsim.dreamhost.com> Message-ID: <42619F76.8030905@myrealbox.com> Ian Hickson wrote: >... >>>yet there is something very different about that one -- it's the title >>>of another work. I'd like to be able to style all such titles >>>consistently, so they have to be marked up in some way. >> >>In that case, would you want to differentiate between ordinary titles >>and real citations? Or is that something that the class attribute could >>handle, if needed? > > I don't know. What do people think? >... I think distinguishing between ordinary titles and real citations is untenable, because there's not a workable dividing line. Consider these examples: 1. <p>My favorite book is <cite>The reality dysfunction</cite> by Peter F. Hamilton. It begins: <q>Space outside the attack cruiser <something>Beezling</something> tore open in five places.</q></p> 3. <p>My favorite book is <somethingelse>The reality dysfunction</somethingelse> by Peter F. Hamilton.</p> Why should the title markup have suddenly changed? Do you expect the editor of an online magazine's book reviews department, for example, to have the presence of mind to change the title markup in the first paragraph of a review if she happens to excise the last quote from somewhere else in the review? And where's the dividing line? Is this appropriate, for example? 2. ... <html> ... <title>Review: The reality dysfunction (page 1)</title> ... <p>Peter F. Hamilton's <cite>The reality dysfunction</cite> is a massive undertaking, perhaps too massive. It's not that it's 592 pages in the paperback edition, but...</p> ... <!-- There happen to be no quotes on this page, but the author doesn't know that ahead of time, because it's a CMS that's splitting his review into pages. --> ... <nav><a rel="next"...>&rarr; Page 2</a></nav> ... </html> ... <html> ... <title>Review: The reality dysfunction (page 2)</title> ... <!-- the rest of the review --> ... <p>From the first sentence &#8212; <q>Space outside the attack cruiser <something>Beezling</something> tore open in five places</q> &#8212; to the last, this book will keep you on the edge of your seat.</p> ... </html> You're already very very lucky if an author bothers to use <cite> instead of <i>, since they get zero presentational benefit from doing so. Let's not make it harder. -- Matthew Thomas http://mpt.net.nz/ From fantasai.lists at inkedblade.net Sat Apr 16 16:31:49 2005 From: fantasai.lists at inkedblade.net (fantasai) Date: Sat, 16 Apr 2005 19:31:49 -0400 Subject: [whatwg] [web-apps] Titles in HTML In-Reply-To: <opspch4etgdmipy5@smtp.myrealbox.com> References: <op.spa4tpxpk4suho@briann> <Pine.LNX.4.61.0504161039020.7599@dhalsim.dreamhost.com> <e8e97f9f0504160352234b5e20@mail.gmail.com> <Pine.LNX.4.61.0504161056020.7599@dhalsim.dreamhost.com> <e8e97f9f050416045769ec23cc@mail.gmail.com> <Pine.LNX.4.61.0504161239120.20636@dhalsim.dreamhost.com> <42611707.10401@lachy.id.au> <Pine.LNX.4.61.0504161351170.20636@dhalsim.dreamhost.com> <42612459.5080500@lachy.id.au> <Pine.LNX.4.61.0504161443280.7599@dhalsim.dreamhost.com> <opspb7zpledmipy5@smtp.myrealbox.com> <426162CA.1000204@inkedblade.net> <opspch4etgdmipy5@smtp.myrealbox.com> Message-ID: <4261A065.1080905@inkedblade.net> John Lewis wrote: > On Sat, 16 Apr 2005 15:08:58 -0400, fantasai <fantasai.lists at inkedblade.net> > wrote: > >> I agree that <q> has problems, particularly with en-US style punctuation. >> However, if the italics is going to be in the CSS, I think the quotation >> marks should also be there. > > But the italic text needs* to be applied via CSS. The quotation marks could > be written by the author. In plain text, for example, quotation marks are > content, and italic text must be faked (_like this_ to represent > underlining) or done without. In UAs that don't support CSS (or don't support > it fully), written quotation marks will still work. By that argument, in UAs that don't support CSS, italics won't work either. > That is a good point. Maybe there could be language-specific behavior > based on the lang attribute I agree that there should be. Finding out what that language-specific behavior should be will be difficult, however... ~fantasai From gleemax at myrealbox.com Sat Apr 16 18:39:13 2005 From: gleemax at myrealbox.com (John Lewis) Date: Sat, 16 Apr 2005 20:39:13 -0500 Subject: [whatwg] [web-apps] Titles in HTML In-Reply-To: <4261A065.1080905@inkedblade.net> References: <op.spa4tpxpk4suho@briann> <Pine.LNX.4.61.0504161039020.7599@dhalsim.dreamhost.com> <e8e97f9f0504160352234b5e20@mail.gmail.com> <Pine.LNX.4.61.0504161056020.7599@dhalsim.dreamhost.com> <e8e97f9f050416045769ec23cc@mail.gmail.com> <Pine.LNX.4.61.0504161239120.20636@dhalsim.dreamhost.com> <42611707.10401@lachy.id.au> <Pine.LNX.4.61.0504161351170.20636@dhalsim.dreamhost.com> <42612459.5080500@lachy.id.au> <Pine.LNX.4.61.0504161443280.7599@dhalsim.dreamhost.com> <opspb7zpledmipy5@smtp.myrealbox.com> <426162CA.1000204@inkedblade.net> <opspch4etgdmipy5@smtp.myrealbox.com> <4261A065.1080905@inkedblade.net> Message-ID: <opspcr7nh2dmipy5@smtp.myrealbox.com> On Sat, 16 Apr 2005 19:31:49 -0400, fantasai <fantasai.lists at inkedblade.net> wrote: > John Lewis wrote: >> On Sat, 16 Apr 2005 15:08:58 -0400, fantasai >> <fantasai.lists at inkedblade.net> >> wrote: >> >>> I agree that <q> has problems, particularly with en-US style >>> punctuation. However, if the italics is going to be in the CSS, I >>> think the quotation marks should also be there. >> But the italic text needs* to be applied via CSS. The quotation marks >> could >> be written by the author. In plain text, for example, quotation marks >> are >> content, and italic text must be faked (_like this_ to represent >> underlining) or done without. In UAs that don't support CSS (or don't >> support >> it fully), written quotation marks will still work. > > By that argument, in UAs that don't support CSS, italics won't work > either. Italics was supported in UAs before CSS existed. AFAIK generated quotes haven't enjoyed the same support. What I was trying to say is that even CSS browsers that support font-style do not necessarily support generated quotes. Any browser that implements CSS1, for instance, or one of the many browsers with partial CSS2(.1) support. We can't assume that because font-style is supported that quotes/content will be too. One is basic (implemented more or less universally), and the other isn't. Either way will work, but I still prefer manual quotation marks. I haven't seen any reason why generated quotation marks will be better. -- John Lewis From fantasai.lists at inkedblade.net Sat Apr 16 18:58:22 2005 From: fantasai.lists at inkedblade.net (fantasai) Date: Sat, 16 Apr 2005 21:58:22 -0400 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <fb7f3319eb599acbe7429f972d21672c@iki.fi> References: <42524E27.6060006@annevankesteren.nl> <4252B643.6030308@lachy.id.au> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> <4253CA8A.1070608@olav.dk> <4253D10C.5000700@lachy.id.au> <4253D24A.8050308@annevankesteren.nl> <4253D7CA.2010807@lachy.id.au> <4253DA93.8030606@annevankesteren.nl> <4253E4FF.2090306@lachy.id.au> <4253F517.3040409@olav.dk> <425401B0.3040205@lachy.id.au> <42540251.4080405@annevankesteren.nl> <42546FCE.5070900@lachy.id.au> <Pine.LNX.4.61.0504062335130.20461@dhalsim.dreamhost.com> <4254CE93.4000403@lachy.id.au> <Pine.LNX.4.61.0504071037490.20461@dhalsim.dreamhost.com> <42550FFD.20201@annevankesteren.nl> <Pine.LNX.4.61.0504071050580.20461@dhalsim.dreamhost.com> <4255114D.10108@annevankesteren.nl> <Pine.LNX.4.61.0504071056170.20461@dhalsim.dreamhost.com> <fb7f3319eb599acbe7429f972d21672c@iki.fi> Message-ID: <4261C2BE.7060601@inkedblade.net> Henri Sivonen wrote: > > I am very hostile towards the idea of requiring UAs to implement any XML > parsing features that are in the realm of the XML 1.0 spec but that the > XML 1.0 spec does not require. This means processing the DTD beyond > checking the internal subset for well-formedness. That hostility may be justified as far as browser-type UAs go, but I would rather you didn't apply it to server-side and authoring tools. > Those who want to use entities for input, should parse and reserialize > as UTF-8 in their own lair and not expose their entity references (or > parochial legacy encodings) to the public network. For those of us writing HTML by hand, this is not a practical solution, particularly when invisible characters are involved. Invisible characters aside, I don't want to go digging through a Unicode character map every time I want &rarr; or &tau;. ~fantasai From fantasai.lists at inkedblade.net Sat Apr 16 19:01:49 2005 From: fantasai.lists at inkedblade.net (fantasai) Date: Sat, 16 Apr 2005 22:01:49 -0400 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <851c8d3105040711474e8b3f0@mail.gmail.com> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504062335130.20461@dhalsim.dreamhost.com> <4254CE93.4000403@lachy.id.au> <Pine.LNX.4.61.0504071037490.20461@dhalsim.dreamhost.com> <42550FFD.20201@annevankesteren.nl> <Pine.LNX.4.61.0504071050580.20461@dhalsim.dreamhost.com> <851c8d310504070356287eb4b1@mail.gmail.com> <Pine.LNX.4.61.0504071058300.20461@dhalsim.dreamhost.com> <851c8d3105040704092d099949@mail.gmail.com> <4d793a4ca44b70508a082e60c1264388@iki.fi> <851c8d3105040711474e8b3f0@mail.gmail.com> Message-ID: <4261C38D.2070405@inkedblade.net> Jim Ley wrote: >>>Or at the very least use something that would not confuse people into >>>thinking that it is an >>>application of SGML or XML. >> >>Do you want to replace "NONSGML" with "THIS-IS-NOT-SGML"? > > No, I want to replace <!DOCTYPE - with something completely different, > the whole point that anything that looks like an SGML (or XHTML) > doctype will confuse users into thinking that it is an application of > SGML. The vast majority of people out there have never heard of SGML, and the ones who have are probably clever enough to figure out that NONSGML means it's not SGML. ~fantasai From fantasai.lists at inkedblade.net Sat Apr 16 19:03:06 2005 From: fantasai.lists at inkedblade.net (fantasai) Date: Sat, 16 Apr 2005 22:03:06 -0400 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <42551860.5030409@lachy.id.au> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> <4252B643.6030308@lachy.id.au> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> <4253CA8A.1070608@olav.dk> <4253D10C.5000700@lachy.id.au> <4253D24A.8050308@annevankesteren.nl> <4253D7CA.2010807@lachy.id.au> <4253DA93.8030606@annevankesteren.nl> <4253E4FF.2090306@lachy.id.au> <4253F517.3040409@olav.dk> <425401B0.3040205@lachy.id.au> <42540251.4080405@annevankesteren.nl> <42546FCE.5070900@lachy.id.au> <Pine.LNX.4.61.0504062335130.20461@dhalsim.dreamhost.com> <4254CE93.4000403@lachy.id.au> <Pine.LNX.4.61.0504071037490.20461@dhalsim.dreamhost.com> <42550FFD.20201@annevankesteren.nl> <42551860.5030409@lachy.id.au> Message-ID: <4261C3DA.8020404@inkedblade.net> Lachlan Hunt wrote: > Anne van Kesteren wrote: > >> Ian Hickson wrote: >> >>> This doesn't stop conformance checker implements from writing DTDs of >>> their own and then placing them in their SGML catalog so that the >>> HTML5 DOCTYPE triggers that DTD, though. The point is that different >>> conformance checker vendors should be able to write their own DTD for >>> HTML5 to complement the rest of the conformance checking process. As >>> the mix between DTD-based and other checking will probably be >>> vendor-dependent, I don't see why we'd want to elevate any particular >>> DTD to official status. > > If every conformance checker has to implement their own, there's more > chance they some of them will make mistakes, and each end up with > differing DOCTYPES. If that happens, then chances are each validator > would give differing results, which is even more confusing and would > result in no-one validating at all! If there is only one official > DOCTYPE, then at least all validators would have a chance of giving > identical results, and mistakes can be managed from one place by filing > errata for it, and updating it as necessary. +1, although I think "result in no-one validating at all" is over-exaggerating a bit. :) ~fantasai From fantasai.lists at inkedblade.net Sat Apr 16 19:11:39 2005 From: fantasai.lists at inkedblade.net (fantasai) Date: Sat, 16 Apr 2005 22:11:39 -0400 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <32130a61ba34c8ada9f4a431d879bdef@iki.fi> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> <4252B643.6030308@lachy.id.au> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> <78f32994657502e0c7098780f8e6476b@iki.fi> <4254DA33.3020409@lachy.id.au> <521492f8273c953e36ca9b0957172b6c@iki.fi> <42562363.8050400@lachy.id.au> <32130a61ba34c8ada9f4a431d879bdef@iki.fi> Message-ID: <4261C5DB.2070608@inkedblade.net> Henri Sivonen wrote: > On Apr 8, 2005, at 09:23, Lachlan Hunt wrote: > >> If I ever get around to writing any form of conformance checker, true >> SGML validation (most likely using OpenSP) or XML validation (probably >> using Xerces or other XML parser) is at the top of my list. > > If I ever got around to it, DTD validation wouldn't be my approach. I'd > use Jing with Relax NG and a hand-written SAX filter for checking what > Jing cannot check. (text/html could be handled by substituting a parser > that inferred optional tags and appeared to the app as a parser parsing > XHTML--like TagSoup without error recovery.) > >> | 1. Criteria that can be expressed in a DTD. >> >> validation is a critical part of conformance checking. > > You could check the same criteria either manually or using Relax NG. > Using DTDs is not required. > >> If CMSs are ever going to enforce strinctly conformant code, then DTD >> validation will be a core component of that process. > > Why bother with DTDs now that Relax NG exists? I agree that syntax-checking for xHTML5 documents should be implemented with RelaxNG rather than DTDs. However, iirc, RelaxNG can't be used on regular HTML. One could create a toolchain that converts HTML to xHTML and then runs it through RelaxNG, but I wouldn't be surprised if the converter needed a DTD for the SGML->XML conversion to work... ~fantasai From fantasai.lists at inkedblade.net Sat Apr 16 19:23:57 2005 From: fantasai.lists at inkedblade.net (fantasai) Date: Sat, 16 Apr 2005 22:23:57 -0400 Subject: [whatwg] WA1 dl and dialog Message-ID: <4261C8BD.9060101@inkedblade.net> # The dl element introduces an association list consisting of zero or more # name-value groups... # Name-value groups may be terms and definitions, speakers and words, metadata # topics and values, or any other groups of name-value data. I like the definition you give here, except for one thing: Despite the example given in HTML4, I think that speakers and words is stretching the name-value idea a bit too far. For scripted dialog, I think Tantek's suggestion is much better: http://tantek.com/presentations/2005/03/elementsofxhtml/#slide20 So my suggestion is to remove that particular example from the spec. ~fantasai From lachlan.hunt at lachy.id.au Sat Apr 16 19:27:59 2005 From: lachlan.hunt at lachy.id.au (Lachlan Hunt) Date: Sun, 17 Apr 2005 12:27:59 +1000 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <4261C2BE.7060601@inkedblade.net> References: <42524E27.6060006@annevankesteren.nl> <4252B643.6030308@lachy.id.au> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> <4253CA8A.1070608@olav.dk> <4253D10C.5000700@lachy.id.au> <4253D24A.8050308@annevankesteren.nl> <4253D7CA.2010807@lachy.id.au> <4253DA93.8030606@annevankesteren.nl> <4253E4FF.2090306@lachy.id.au> <4253F517.3040409@olav.dk> <425401B0.3040205@lachy.id.au> <42540251.4080405@annevankesteren.nl> <42546FCE.5070900@lachy.id.au> <Pine.LNX.4.61.0504062335130.20461@dhalsim.dreamhost.com> <4254CE93.4000403@lachy.id.au> <Pine.LNX.4.61.0504071037490.20461@dhalsim.dreamhost.com> <42550FFD.20201@annevankesteren.nl> <Pine.LNX.4.61.0504071050580.20461@dhalsim.dreamhost.com> <4255114D.10108@annevankesteren.nl> <Pine.LNX.4.61.0504071056170.20461@dhalsim.dreamhost.com> <fb7f3319eb599acbe7429f972d21672c@iki.fi> <4261C2BE.7060601@inkedblade.net > Message-ID: <4261C9AF.5090607@lachy.id.au> fantasai wrote: >> Those who want to use entities for input, should parse and reserialize >> as UTF-8 in their own lair and not expose their entity references (or >> parochial legacy encodings) to the public network. > > I don't want to go digging through a Unicode character map every time > I want &rarr; or &tau;. There's no need to go digging through anything to find those characters, it's easy enough to type this into your browser: data:text/html,&rarr; Then copy and paste the character into your editor, or the character identifier if you want the numeric character reference. Ideally a good editor would automatically convert entity references like &rarr; into the UTF-8 encoded character for you, but I don't know of any that do. -- Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox From lachlan.hunt at lachy.id.au Sat Apr 16 23:00:21 2005 From: lachlan.hunt at lachy.id.au (Lachlan Hunt) Date: Sun, 17 Apr 2005 16:00:21 +1000 Subject: [whatwg] [WA1] lang and xml:lang Message-ID: <4261FB75.6000702@lachy.id.au> Hi, Web apps currently states [1]: # Authors should not use the lang attribute in XML documents. Authors # should instead use the xml:lang attribute. Is there any reason for not making that "must not"? The only reason someone would ever have for using lang instead of xml:lang in XHTML is when serving it as text/html, which is strictly forbidden in this version. It should be stated that lang is for HTML only and xml:lang is for X(HT)ML only. I think the heading for the attribute defintion should be updated to include xml:lang as well. [1] http://www.whatwg.org/specs/web-apps/current-work/#lang -- Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox From lachlan.hunt at lachy.id.au Sat Apr 16 23:49:56 2005 From: lachlan.hunt at lachy.id.au (Lachlan Hunt) Date: Sun, 17 Apr 2005 16:49:56 +1000 Subject: [whatwg] [WA1] The profile Attribute Message-ID: <42620714.5020504@lachy.id.au> Hi, # User agents must ignore all the URIs given in the profile attribute # that follow a URI that the UA does not recognise. (Otherwise, if a # name is defined in two profiles, UAs would assign meanings to the # document differently based on which profiles they supported.) # # Note: If a profile's definition changes over time, documents # that use multiple profiles can change defined meaning over # time. So as to avoid this problem, authors are encouraged to # avoid using multiple profiles. I disagree with those statements for several reasons, but mostly because it's confusing nonsense that doesn't make sense and seems to apply unnecessary restrictions on the processing of profiles. 1. There are no reasons there to avoid multiple profiles all together, only reasons to avoid profiles with conflicting definitions. 2. Forcing a UA to ignore all profiles occuring after one they do not understand places an unnecessary burden on the author to specify profiles in the order in which they are most supported by the UAs. 3. That also forces unnecessary restrictions on which profiles a UA may support and process. For example: * User Agent A implements XFN * User Agent B implements RelLicence * A document uses both XFN and RelLicence, and specifies XFN first in the profile attribute. In that scenario, user agent B unfairly loses out on being able to apply the semantics of the RelLicence profile. Considering that UAs A and B are likely to serve different purposes There may be little reason for one to implement the other profile, for anything other than as work around for this specification. This also defeats the whole purpose of allowing multiple profiles 4. The Note about a profiles defintion changing over time, somehow only affecting documents with multiple profiles makes no sense. If a document uses any profile and its definition changes, then the semantics of the document are going to change too. It is certainly not a reason to avoid multiple profiles. I recommend updating the spec to say the following points: * If two profiles define the same name, then the semantic is given by the first known URI specified in the profile attribute. * UAs may ignore unknown profiles and continue to process any subsequent profiles. * Authors should avoid multiple profiles with conflicting defintions, because UAs may apply differing semantics, depending on the profiles they do and do not know. Remove the note from the end of the section entirely (or rewrite it) because the reason given does not match the recommendation to avoid multiple profiles, which is confusing. -- Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox From ian at hixie.ch Sun Apr 17 02:30:47 2005 From: ian at hixie.ch (Ian Hickson) Date: Sun, 17 Apr 2005 09:30:47 +0000 (UTC) Subject: [whatwg] WA1 dl and dialog In-Reply-To: <4261C8BD.9060101@inkedblade.net> References: <4261C8BD.9060101@inkedblade.net> Message-ID: <Pine.LNX.4.61.0504170930330.7599@dhalsim.dreamhost.com> On Sat, 16 Apr 2005, fantasai wrote: > # The dl element introduces an association list consisting of zero or more > # name-value groups... > # Name-value groups may be terms and definitions, speakers and words, metadata > # topics and values, or any other groups of name-value data. > > I like the definition you give here, except for one thing: > Despite the example given in HTML4, I think that speakers and words > is stretching the name-value idea a bit too far. For scripted dialog, > I think Tantek's suggestion is much better: > http://tantek.com/presentations/2005/03/elementsofxhtml/#slide20 > > So my suggestion is to remove that particular example from the spec. Done. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From ian at hixie.ch Sun Apr 17 02:47:50 2005 From: ian at hixie.ch (Ian Hickson) Date: Sun, 17 Apr 2005 09:47:50 +0000 (UTC) Subject: [whatwg] [WA1] lang and xml:lang In-Reply-To: <4261FB75.6000702@lachy.id.au> References: <4261FB75.6000702@lachy.id.au> Message-ID: <Pine.LNX.4.61.0504170939320.7599@dhalsim.dreamhost.com> On Sun, 17 Apr 2005, Lachlan Hunt wrote: > > Web apps currently states [1]: > # Authors should not use the lang attribute in XML documents. Authors > # should instead use the xml:lang attribute. > > Is there any reason for not making that "must not"? The only reason > someone would ever have for using lang instead of xml:lang in XHTML is > when serving it as text/html, which is strictly forbidden in this > version. It should be stated that lang is for HTML only and xml:lang is > for X(HT)ML only. Done. > I think the heading for the attribute defintion should be updated to include > xml:lang as well. Done. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From ian at hixie.ch Sun Apr 17 03:00:47 2005 From: ian at hixie.ch (Ian Hickson) Date: Sun, 17 Apr 2005 10:00:47 +0000 (UTC) Subject: [whatwg] [WA1] The profile Attribute In-Reply-To: <42620714.5020504@lachy.id.au> References: <42620714.5020504@lachy.id.au> Message-ID: <Pine.LNX.4.61.0504170948090.7599@dhalsim.dreamhost.com> On Sun, 17 Apr 2005, Lachlan Hunt wrote: > > 1. There are no reasons there to avoid multiple profiles all together, > only reasons to avoid profiles with conflicting definitions. Imagine you use publicly available profiles A and B. A has definitions "foo" and "bar". B has definitions "baz". You use foo, bar, and baz extensively in your document. Two months later, the author of profile A updates his profile to include the definition "baz", meaning something completely different to the definition from profile B. Your document has now radically changed meaning, yet you didn't use profiles that had clashing meanings when you wrote your document. The only way I can see to avoid this is to use only one profile, since then you can't ever get clashes. > 2. Forcing a UA to ignore all profiles occuring after one they do not > understand places an unnecessary burden on the author to specify > profiles in the order in which they are most supported by the UAs. Imagine you use publicly available profiles A and B. A has definitions "foo" and "bar". B has definitions "foo" and "baz". The definitions of "foo" in the two profiles is very different, but that's ok, because you specify that you are using profiles A and B and so if you use "foo" then it is the meaning from "A" and you clearly aren't saying the "foo" from B. You use foo, bar, and baz extensively in your document. Someone uses a browser that supports only profile B. Now your document will be rendered or processed with completely different semantics, because the UA thinks that by "foo" you mean B's "foo". Your document has now radically changed meaning, yet your document was unambiguous when you wrote it. The only way I can see to avoid this is to tell UAs to ignore any profiles after one that they couldn't understand, since it stops them from assigning meaning incorrectly. > 3. That also forces unnecessary restrictions on which profiles a UA may > support and process. For example: > > * User Agent A implements XFN > * User Agent B implements RelLicence > * A document uses both XFN and RelLicence, and specifies XFN first > in the profile attribute. > > In that scenario, user agent B unfairly loses out on being able to > apply the semantics of the RelLicence profile. Considering that UAs > A and B are likely to serve different purposes There may be little > reason for one to implement the other profile, for anything other > than as work around for this specification. > > This also defeats the whole purpose of allowing multiple profiles That's a fair point, but implementing XFN for user agent B might be simply a matter of dereferencing the profile URI, downloading the XMDP description (or whatever we end up specifying should be at the end of profile URIs -- something will eventually be specified) and ignoring the values from that profile. So I don't think that's a blocker problem. > 4. The Note about a profiles defintion changing over time, somehow only > affecting documents with multiple profiles makes no sense. If a > document uses any profile and its definition changes, then the > semantics of the document are going to change too. It is certainly > not a reason to avoid multiple profiles. Changed "changes" to "introduces new definitions", which is what I meant. A profile should never drop values it previously defined, and this will be mentioned in the relevant spec when that gets defined. > I recommend updating the spec to say the following points: > * If two profiles define the same name, then the semantic is given by > the first known URI specified in the profile attribute. That implies that the semantics of a document depend on the UA that prociess it, which is clearly silly: a document has semantics even in the absence of any UA. (It might not be much use, but it has defined semantics!) > * UAs may ignore unknown profiles and continue to process any subsequent > profiles. For the reasons given above, I think this would be unwise. > * Authors should avoid multiple profiles with conflicting defintions, > because UAs may apply differing semantics, depending on the profiles > they do and do not know. The author can't always know when the profiles he's using will end up with clashes in the future. > Remove the note from the end of the section entirely (or rewrite it) > because the reason given does not match the recommendation to avoid > multiple profiles, which is confusing. Updated the note. Cheers, -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From lachlan.hunt at lachy.id.au Sun Apr 17 03:34:53 2005 From: lachlan.hunt at lachy.id.au (Lachlan Hunt) Date: Sun, 17 Apr 2005 20:34:53 +1000 Subject: [whatwg] [WA1] lang and xml:lang In-Reply-To: <Pine.LNX.4.61.0504170939320.7599@dhalsim.dreamhost.com> References: <4261FB75.6000702@lachy.id.au> <Pine.LNX.4.61.0504170939320.7599@dhalsim.dreamhost.com> Message-ID: <42623BCD.8030207@lachy.id.au> Ian Hickson wrote: > On Sun, 17 Apr 2005, Lachlan Hunt wrote: >>It should be stated that lang is for HTML only and xml:lang is >>for X(HT)ML only. > > Done. Thank you, but now there's just one more issue. # If both the xml:lang attribute and the lang attribute are set, user # agents must use the xml:lang attribute, and the lang attribute must be # ignored for the purposes of determining the element's language. Is that the case for both HTML and XHTML documents? It would make more sense if, in the case of both being set, lang was used for text/html documents and xml:lang for XML documents. However, in the case of only one being set but for the wrong MIME type (eg. xml:lang set for text/html document or lang for XML document), for error recovery, should UAs be allowed to fallback on it? -- Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox From ian at hixie.ch Sun Apr 17 03:56:55 2005 From: ian at hixie.ch (Ian Hickson) Date: Sun, 17 Apr 2005 10:56:55 +0000 (UTC) Subject: [whatwg] [WA1] lang and xml:lang In-Reply-To: <42623BCD.8030207@lachy.id.au> References: <4261FB75.6000702@lachy.id.au> <Pine.LNX.4.61.0504170939320.7599@dhalsim.dreamhost.com> <42623BCD.8030207@lachy.id.au> Message-ID: <Pine.LNX.4.61.0504171042040.20636@dhalsim.dreamhost.com> On Sun, 17 Apr 2005, Lachlan Hunt wrote: > > # If both the xml:lang attribute and the lang attribute are set, user > # agents must use the xml:lang attribute, and the lang attribute must be > # ignored for the purposes of determining the element's language. > > Is that the case for both HTML and XHTML documents? Yes. > It would make more sense if, in the case of both being set, lang was > used for text/html documents and xml:lang for XML documents. The only way you can set xml:lang in an HTML document is via the DOM (in HTML, there are no namespaces). I don't think it's worth having special requirements for something that no-one is likely to ever do outside of obscure test cases. > However, in the case of only one being set but for the wrong MIME type > (eg. xml:lang set for text/html document or lang for XML document), for > error recovery, should UAs be allowed to fallback on it? If xml:lang="" is set onin a text/html document, it'll be {html, 'xml:lang'}, not {xml, 'lang'} which is what xml:lang really is. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From lachlan.hunt at lachy.id.au Sun Apr 17 04:42:38 2005 From: lachlan.hunt at lachy.id.au (Lachlan Hunt) Date: Sun, 17 Apr 2005 21:42:38 +1000 Subject: [whatwg] [WA1] The profile Attribute In-Reply-To: <Pine.LNX.4.61.0504170948090.7599@dhalsim.dreamhost.com> References: <42620714.5020504@lachy.id.au> <Pine.LNX.4.61.0504170948090.7599@dhalsim.dreamhost.com> Message-ID: <42624BAE.8090905@lachy.id.au> Ian Hickson wrote: > On Sun, 17 Apr 2005, Lachlan Hunt wrote: > >>1. There are no reasons there to avoid multiple profiles all together, >> only reasons to avoid profiles with conflicting definitions. > > Imagine you use publicly available profiles A and B. > > A has definitions "foo" and "bar". > > B has definitions "baz". > > You use foo, bar, and baz extensively in your document. > > Two months later, the author of profile A updates his profile to include > the definition "baz", meaning something completely different to the > definition from profile B. Well, I'd say the author of profile A has broken some rules by not keeping the URI for an old version persistent. Profile authors should (hopefully) be smarter than that. Even when XFN was updated from 1.0 to 1.1, a new URI was given to avoid altering the semantics of existing documents in any way. I'd say the chances of the above occuring are slim, and not worth affecting the ability to make use of multiple profiles. The spec could, instead, provide a strong recommendation for profile authors to keep profile versions persistent. > Your document has now radically changed meaning, yet you didn't use > profiles that had clashing meanings when you wrote your document. In which case, I'm sure many authors would be complaining to the profile author about such a change, and I still don't think the spec needs unnecessary restrictions for this small use case. > The only way I can see to avoid this is to use only one profile, since > then you can't ever get clashes. There are other ways I've seen proposed, such as using namespaces: http://www.protogenius.com/rel-schemas/draft-scheid-rel-schemas-00.htm Although that proposal doesn't seem to even make use of the profile attribute, but rather link elements which would be a big improvment over the profile attribute. > Imagine you use publicly available profiles A and B. > > A has definitions "foo" and "bar". > > B has definitions "foo" and "baz". > ... > Someone uses a browser that supports only profile B. Now your document > will be rendered or processed with completely different semantics, because > the UA thinks that by "foo" you mean B's "foo". > > Your document has now radically changed meaning, That's a valid use case to avoid profiles with conflicting definitions, not against multiple profiles in general. >>3. That also forces unnecessary restrictions on which profiles a UA may >> support and process. For example: >> >> * User Agent A implements XFN >> * User Agent B implements RelLicence >> * A document uses both XFN and RelLicence, and specifies XFN first >> in the profile attribute. >> ... > > That's a fair point, but implementing XFN for user agent B might be simply > a matter of dereferencing the profile URI, downloading the XMDP > description (or whatever we end up specifying should be at the end of > profile URIs -- something will eventually be specified) and ignoring the > values from that profile. If it is defined that the resources referenced by the profile attribute should be XMDP (which would be a big improvement over HTML4, which leaves the format explicitly undefined), and UAs were able to download the profile and determine its values, then that would solve a lot of problems. > Changed "changes" to "introduces new definitions", which is what I meant. > A profile should never drop values it previously defined, and this will be > mentioned in the relevant spec when that gets defined. A profile version should never introduce, drop or change values and semantics. If values are added, changed, deprecated or removed, a new version with a new URI should be publised. > The author can't always know when the profiles he's using will end up with > clashes in the future. They can if profiles remain persistent and although persistence can never be guarenteed with 100% certainty, such changes are a small use case that's unlikely to occur. -- Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox From lachlan.hunt at lachy.id.au Sun Apr 17 05:00:54 2005 From: lachlan.hunt at lachy.id.au (Lachlan Hunt) Date: Sun, 17 Apr 2005 22:00:54 +1000 Subject: [whatwg] [WA1] lang and xml:lang In-Reply-To: <Pine.LNX.4.61.0504171042040.20636@dhalsim.dreamhost.com> References: <4261FB75.6000702@lachy.id.au> <Pine.LNX.4.61.0504170939320.7599@dhalsim.dreamhost.com> <42623BCD.8030207@lachy.id.au> <Pine.LNX.4.61.0504171042040.20636@dhalsim.dreamhost.com> Message-ID: <42624FF6.1060807@lachy.id.au> Ian Hickson wrote: > On Sun, 17 Apr 2005, Lachlan Hunt wrote: > >># If both the xml:lang attribute and the lang attribute are set, user >># agents must use the xml:lang attribute, and the lang attribute must be >># ignored for the purposes of determining the element's language. >> >>Is that the case for both HTML and XHTML documents? > > Yes. So, if I have this HTML document <!DOCTYPE ...> <html lang="en" xml:lang="fr"> <title>HTML document</title> <p>This is an HTML, not an XML, document. Considering that legacy HTML UAs won't know about the xml:lang attribute, and will only use lang, are you saying that a conforming Web Apps UA should treat the document as french? >>It would make more sense if, in the case of both being set, lang was >>used for text/html documents and xml:lang for XML documents. > > The only way you can set xml:lang in an HTML document is via the DOM Now I'm confused. If that's the case, then wouldn't the above example be treated as english, regardless of the xml:lang attribute in the source? > (in HTML, there are no namespaces). Which is why xml:lang should be completely ignored, as an unknown attribute, in HTML. > I don't think it's worth having special requirements for something > that no-one is likely to ever do outside of obscure test cases. I've seen people use lots of XML syntax in HTML documents, including xmlns and xml:lang attributes even in one that had an explicit HTML4 DOCTYPE (though I can't remember where) and not just in MS Word generated rubbish. The point is authors do a lot of silly things, and I thought UA behaviour needed to be well defined for as many use cases as possible. >>However, in the case of only one being set but for the wrong MIME type >>(eg. xml:lang set for text/html document or lang for XML document), for >>error recovery, should UAs be allowed to fallback on it? > > If xml:lang="" is set onin a text/html document, it'll be {html, > 'xml:lang'}, not {xml, 'lang'} which is what xml:lang really is. I don't understand how that answers the question. -- Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox From ian at hixie.ch Sun Apr 17 05:51:02 2005 From: ian at hixie.ch (Ian Hickson) Date: Sun, 17 Apr 2005 12:51:02 +0000 (UTC) Subject: [whatwg] [WA1] The profile Attribute In-Reply-To: <42624BAE.8090905@lachy.id.au> References: <42620714.5020504@lachy.id.au> <Pine.LNX.4.61.0504170948090.7599@dhalsim.dreamhost.com> <42624BAE.8090905@lachy.id.au> Message-ID: <Pine.LNX.4.61.0504171147060.20636@dhalsim.dreamhost.com> On Sun, 17 Apr 2005, Lachlan Hunt wrote: > > > > Imagine you use publicly available profiles A and B. > > > > Two months later, the author of profile A updates his profile to > > include the definition "baz", meaning something completely different > > to the definition from profile B. > > Well, I'd say the author of profile A has broken some rules by not > keeping the URI for an old version persistent. There is no way we are requiring a new URI every time the profile changes. That would be an administrative nightmare for editors, authors, and UA implementors. It would make working out common semantics nigh on impossible. IMHO, anyway. > > The only way I can see to avoid this is to use only one profile, since > > then you can't ever get clashes. > > There are other ways I've seen proposed, such as using namespaces: > > http://www.protogenius.com/rel-schemas/draft-scheid-rel-schemas-00.htm Namespaces are not an option. Authors simply don't understand them. > Although that proposal doesn't seem to even make use of the profile > attribute, but rather link elements which would be a big improvment over > the profile attribute. I don't really understand that. > > Imagine you use publicly available profiles A and B. > > > > A has definitions "foo" and "bar". > > B has definitions "foo" and "baz". > > > > Someone uses a browser that supports only profile B. Now your document > > will be rendered or processed with completely different semantics, > > because the UA thinks that by "foo" you mean B's "foo". > > That's a valid use case to avoid profiles with conflicting definitions, > not against multiple profiles in general. That sounds nice in theory but in practice it's not really something you can control. Even when one group of people are in charge of two profiles, you can end up with duplicates. (An example of this being the way XForms and XHTML2, which are done by a lot of the same people, has had clashes.) > If it is defined that the resources referenced by the profile attribute > should be XMDP (which would be a big improvement over HTML4, which > leaves the format explicitly undefined), and UAs were able to download > the profile and determine its values, then that would solve a lot of > problems. Agreed. That will probably happen at some point. (It's on my list.) > > Changed "changes" to "introduces new definitions", which is what I > > meant. A profile should never drop values it previously defined, and > > this will be mentioned in the relevant spec when that gets defined. > > A profile version should never introduce, drop or change values and > semantics. If values are added, changed, deprecated or removed, a new > version with a new URI should be publised. I don't think that's workable. For example, it means every time you upgrade to a more recent profile, all the old UAs will stop rendering your page -- it doesn't have a workable backwards compatibility migration path. > > The author can't always know when the profiles he's using will end up with > > clashes in the future. > > They can if profiles remain persistent and although persistence can never be > guarenteed with 100% certainty, such changes are a small use case that's > unlikely to occur. The advantage you get out of this doesn't IMHO outweight the problems. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From jg307 at cam.ac.uk Sun Apr 17 06:11:56 2005 From: jg307 at cam.ac.uk (James Graham) Date: Sun, 17 Apr 2005 14:11:56 +0100 Subject: [whatwg] [WA1] The profile Attribute In-Reply-To: <Pine.LNX.4.61.0504171147060.20636@dhalsim.dreamhost.com> References: <42620714.5020504@lachy.id.au> <Pine.LNX.4.61.0504170948090.7599@dhalsim.dreamhost.com> <42624BAE.8090905@lachy.id.au> <Pine.LNX.4.61.0504171147060.20636@dhalsim.dreamhost.com> Message-ID: <4262609C.7090800@cam.ac.uk> Ian Hickson wrote: > On Sun, 17 Apr 2005, Lachlan Hunt wrote: > >>>Imagine you use publicly available profiles A and B. >>> >>>Two months later, the author of profile A updates his profile to >>>include the definition "baz", meaning something completely different >>>to the definition from profile B. >> >>Well, I'd say the author of profile A has broken some rules by not >>keeping the URI for an old version persistent. > > > There is no way we are requiring a new URI every time the profile changes. > That would be an administrative nightmare for editors, authors, and UA > implementors. It would make working out common semantics nigh on > impossible. IMHO, anyway. > > > >>>The only way I can see to avoid this is to use only one profile, since >>>then you can't ever get clashes. >> >>There are other ways I've seen proposed, such as using namespaces: >> >>http://www.protogenius.com/rel-schemas/draft-scheid-rel-schemas-00.htm > > > Namespaces are not an option. Authors simply don't understand them. Respectfully, I think namespaces are the only sensible solution here and in other situations where the document is mixing semantics from multiple sources. What's the evidence that authors don't understand namespaces? Does it all come from XML namespaces (which are more complex than anything we would need for this type of problem*)? In any case I think this is a situation where, with sensible defaults, we can provide a useful feature that will be well within the grasp of the small subset of authors who actually want to use it. * For example we could define <profile name="foo" href="http://example.com/profiles/#foo" /> and then require a profile attribute for elements with rel values not assosiated with the default profile, which would be given by the value of the profile attribute in <head> or the last <profile> element with no <name> value. That seems much simpler than XML namespaces. -- "Sir: "Offence" is not confined to the religious. I take offence at "Rudolph the Red-Nosed Reindeer", "Jingle Bells" and all that they stand for; at ten-gallon hats and other symbols of American aggression; at slit-eyed black veils and other symbols of the oppression of women; at First Communion veils, and other symbols of the indoctrination of children. But I do not start a riot when I encounter them, nor try to get them banned by law. I mutter through gritted teeth and turn the other way. There is a case to be made that all of us should try to avoid giving gratuitous offence to others. But how has our secular society been conned into allowing religious offence to jump the queue and claim special privileges?" - Richard Dawkins (The Independent, 24th December 2004) From ian at hixie.ch Sun Apr 17 06:16:43 2005 From: ian at hixie.ch (Ian Hickson) Date: Sun, 17 Apr 2005 13:16:43 +0000 (UTC) Subject: [whatwg] [WA1] lang and xml:lang In-Reply-To: <42624FF6.1060807@lachy.id.au> References: <4261FB75.6000702@lachy.id.au> <Pine.LNX.4.61.0504170939320.7599@dhalsim.dreamhost.com> <42623BCD.8030207@lachy.id.au> <Pine.LNX.4.61.0504171042040.20636@dhalsim.dreamhost.com> <42624FF6.1060807@lachy.id.au> Message-ID: <Pine.LNX.4.61.0504171307580.20636@dhalsim.dreamhost.com> On Sun, 17 Apr 2005, Lachlan Hunt wrote: > > > > > > # If both the xml:lang attribute and the lang attribute are set, user > > > # agents must use the xml:lang attribute, and the lang attribute must be > > > # ignored for the purposes of determining the element's language. > > > > > > Is that the case for both HTML and XHTML documents? > > > > Yes. > > So, if I have this HTML document > > <!DOCTYPE ...> > <html lang="en" xml:lang="fr"> > <title>HTML document</title> > <p>This is an HTML, not an XML, document. > > Considering that legacy HTML UAs won't know about the xml:lang > attribute, and will only use lang, are you saying that a conforming Web > Apps UA should treat the document as french? No. The "xml:lang" attribute in that document is not the xml:lang attribute. It's the {null, "xml:lang"} attribute -- the attribute in the null namespace with the local name "xml:lang" -- whereas the xml:lang attribute, the one defined by XML, is the {xml, "lang"} attribute: the attribute in the XML namespace with the local name "lang". See Namespaces in XML for more information. > > > It would make more sense if, in the case of both being set, lang was > > > used for text/html documents and xml:lang for XML documents. > > > > The only way you can set xml:lang in an HTML document is via the DOM > > Now I'm confused. If that's the case, then wouldn't the above example > be treated as english [...] Yes. > > (in HTML, there are no namespaces). > > Which is why xml:lang should be completely ignored, as an unknown > attribute, in HTML. If there is a literal "xml:lang" attribute in an HTML document, it is ignored and has no effect on this conformance requirement. That, however, is not an xml:lang attribute. Since this is clearly a source of confusion, I've added a paragraph to the Terminology section about this. > I've seen people use lots of XML syntax in HTML documents, including > xmlns and xml:lang attributes even in one that had an explicit HTML4 > DOCTYPE (though I can't remember where) and not just in MS Word > generated rubbish. The point is authors do a lot of silly things, and I > thought UA behaviour needed to be well defined for as many use cases as > possible. Absolutely. However none of the cases you mentioned result in the existence of a "lang" attribute in the XML namespace. They result in unknown attributes in the null namespace, which is very different. > > > However, in the case of only one being set but for the wrong MIME > > > type (eg. xml:lang set for text/html document or lang for XML > > > document), for error recovery, should UAs be allowed to fallback on > > > it? > > > > If xml:lang="" is set onin a text/html document, it'll be {html, > > 'xml:lang'}, not {xml, 'lang'} which is what xml:lang really is. (Er, I should have said {null, 'xml:lang'}, not {html, 'xml:lang'}.) > I don't understand how that answers the question. I hope this e-mail clarifies it for you. Cheers, -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From ian at hixie.ch Sun Apr 17 06:22:02 2005 From: ian at hixie.ch (Ian Hickson) Date: Sun, 17 Apr 2005 13:22:02 +0000 (UTC) Subject: [whatwg] [WA1] The profile Attribute In-Reply-To: <4262609C.7090800@cam.ac.uk> References: <42620714.5020504@lachy.id.au> <Pine.LNX.4.61.0504170948090.7599@dhalsim.dreamhost.com> <42624BAE.8090905@lachy.id.au> <Pine.LNX.4.61.0504171147060.20636@dhalsim.dreamhost.com> <4262609C.7090800@cam.ac.uk> Message-ID: <Pine.LNX.4.61.0504171317540.20636@dhalsim.dreamhost.com> On Sun, 17 Apr 2005, James Graham wrote: > > > > > > > > The only way I can see to avoid this is to use only one profile, > > > > since then you can't ever get clashes. > > > > > > There are other ways I've seen proposed, such as using namespaces: > > > > > > http://www.protogenius.com/rel-schemas/draft-scheid-rel-schemas-00.htm > > > > Namespaces are not an option. Authors simply don't understand them. > > Respectfully, I think namespaces are the only sensible solution here and in > other situations where the document is mixing semantics from multiple sources. The recent microformats trend (using profile="") is one other solution, which seems to be at least as sensible. > What's the evidence that authors don't understand namespaces? One source for example is Micah Dubinko's statistic that 90% of all the queries about XForms that he receives are asking for him to explain namespaces. [1] [1] http://www.w3.org/2004/04/webapps-cdf-ws/papers/verity.html This certainly has also been my experience in dealing with Web authors who are trying to use languages that rely on namespaces. > Does it all come from XML namespaces (which are more complex than > anything we would need for this type of problem*)? In any case I think > this is a situation where, with sensible defaults, we can provide a > useful feature that will be well within the grasp of the small subset of > authors who actually want to use it. By "namespaces" here I am refering to XML namespaces and similar solutions that require declaring a prefix and then using that prefix elsewhere. > For example we could define <profile name="foo" > href="http://example.com/profiles/#foo" /> and then require a profile > attribute for elements with rel values not assosiated with the default > profile, which would be given by the value of the profile attribute in > <head> or the last <profile> element with no <name> value. That seems > much simpler than XML namespaces. That seems a lot more complicated than the current proposed solution with profile="". -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From fora at annevankesteren.nl Sun Apr 17 10:50:26 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Sun, 17 Apr 2005 19:50:26 +0200 Subject: [whatwg] [web-apps] 2.7.8 The i element In-Reply-To: <Pine.LNX.4.61.0504161239120.20636@dhalsim.dreamhost.com> References: <op.spa4tpxpk4suho@briann> <Pine.LNX.4.61.0504161039020.7599@dhalsim.dreamhost.com> <e8e97f9f0504160352234b5e20@mail.gmail.com> <Pine.LNX.4.61.0504161056020.7599@dhalsim.dreamhost.com> <e8e97f9f050416045769ec23cc@mail.gmail.com> <Pine.LNX.4.61.0504161239120.20636@dhalsim.dreamhost.com> Message-ID: <4262A1E2.6060308@annevankesteren.nl> Ian Hickson wrote: > Is there any advantage to marking up people's names? Not really. As there is no way to distinquish two people sharing the same name. Furthermore, it would only be useful for the few who "love semantics", since names are typically not rendered any different from other paragraph text. > Maybe we should just let ship names be marked up by <i> (it is, after > all, an instance of use of a term, as it were), and say that <cite> > can be used for any reference to a publication, including those that > aren't really citations ("my favourite book is <cite>...</cite>"). We need italics for other things as well: # Looking over the index entry for "Italics" in my Chicago Manual of # Style, I see that italics can be used for emphasis, foreign words, # genus and species, key terms, legal cases, letters as letters and # words as words, letters in enumeration, math, questions (as # quotatives), rhyme schemes, ship names, stage directions, subheads, # technical terms, theorems, and titles (of books, journals, movies, # musical works, paintings, plays, and poems). Among other things. A # lot of these are just typographical conventions in English that do # not pertain in all other languages. I think this is exactly what the # i tag was invented for. <http://annevankesteren.nl/archives/2003/09/b-svg-and-accessibility#comment-206> -- Anne van Kesteren <http://annevankesteren.nl/> From fora at annevankesteren.nl Sun Apr 17 10:58:59 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Sun, 17 Apr 2005 19:58:59 +0200 Subject: [whatwg] [web-apps] 2.7.8 The i element In-Reply-To: <Pine.LNX.4.61.0504161443280.7599@dhalsim.dreamhost.com> References: <op.spa4tpxpk4suho@briann> <Pine.LNX.4.61.0504161039020.7599@dhalsim.dreamhost.com> <e8e97f9f0504160352234b5e20@mail.gmail.com> <Pine.LNX.4.61.0504161056020.7599@dhalsim.dreamhost.com> <e8e97f9f050416045769ec23cc@mail.gmail.com> <Pine.LNX.4.61.0504161239120.20636@dhalsim.dreamhost.com> <42611707.10401@lachy.id.au> <Pine.LNX.4.61.0504161351170.20636@dhalsim.dreamhost.com> <42612459.5080500@lachy.id.au> <Pine.LNX.4.61.0504161443280.7599@dhalsim.dreamhost.com> Message-ID: <4262A3E3.1050001@annevankesteren.nl> Ian Hickson wrote: > That's the problem. Would abusing <cite> for this be acceptable? Do we > need another element? I think that would be acceptable. Although I wonder if CITE would still be the right name... Can you still use CITE for persons in that case? <p><cite>John E. Simpson</cite> said in <cite>XPath and XPointer</cite>: <q>...</q></p> > I don't particularly plan on ever linking to a urn:, since the likelihood > of their being successfully dereferenced is extremely low. I don't think > that's really a workable solution. It is also not really backwards compatible. (However, you already linked to a URN once using the CITE attribute on a BLOCKQUOTE...) >>>yet there is something very different about that one -- it's the title >>>of another work. I'd like to be able to style all such titles >>>consistently, so they have to be marked up in some way. >> >>In that case, would you want to differentiate between ordinary titles >>and real citations? Or is that something that the class attribute could >>handle, if needed? > > I don't know. What do people think? See above. >>> Movie titles are similar. I'd like my UA to give me a tooltip >>> containing information from IMDB for every movie title. With user >>> JavaScript I can do this, if there's a way to recognise movie >>> titles. >> >> Then would you want different markup for book titles, movie titles, >> play titles, song titles, etc? Or would you just expect the script >> to search IMDB for anything marked up with <cite>? > > Again, I don't really know. I could see a use case for a "type" > attribute (as was suggested earlier in this thread), but that seems > like a slippery slope. Suggestions? If we go with something like a TYPE attribute, I hope we can give it a better name. However, hiding semantics inside the value of an attribute is a poor markup design in humble opinion. (Although it also has some advantages.) -- Anne van Kesteren <http://annevankesteren.nl/> From fora at annevankesteren.nl Sun Apr 17 11:03:28 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Sun, 17 Apr 2005 20:03:28 +0200 Subject: [whatwg] WA1 dl and dialog In-Reply-To: <4261C8BD.9060101@inkedblade.net> References: <4261C8BD.9060101@inkedblade.net> Message-ID: <4262A4F0.1000206@annevankesteren.nl> fantasai wrote: > I like the definition you give here, except for one thing: > Despite the example given in HTML4, I think that speakers and words > is stretching the name-value idea a bit too far. For scripted dialog, > I think Tantek's suggestion is much better: > http://tantek.com/presentations/2005/03/elementsofxhtml/#slide20 It also requires a lot of additional markup. Can't we just say that when you want to give additional semantics, like you need to use DFN for real definitions, you need to use <dt><cite>{Person}</cite> and either <dd><q>{Quote}</q> or <dd><blockquote>...{Quote}...</blockquote>. > So my suggestion is to remove that particular example from the spec. I think it should be kept. But that there should be a similar note like the one about DFN. -- Anne van Kesteren <http://annevankesteren.nl/> From fora at annevankesteren.nl Sun Apr 17 11:09:21 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Sun, 17 Apr 2005 20:09:21 +0200 Subject: [whatwg] [WA1] lang and xml:lang In-Reply-To: <Pine.LNX.4.61.0504170939320.7599@dhalsim.dreamhost.com> References: <4261FB75.6000702@lachy.id.au> <Pine.LNX.4.61.0504170939320.7599@dhalsim.dreamhost.com> Message-ID: <4262A651.2060804@annevankesteren.nl> Ian Hickson wrote: >> Is there any reason for not making that "must not"? The only >> reason someone would ever have for using lang instead of xml:lang >> in XHTML is when serving it as text/html, which is strictly >> forbidden in this version. It should be stated that lang is for >> HTML only and xml:lang is for X(HT)ML only. > > Done. > > >> I think the heading for the attribute defintion should be updated >> to include xml:lang as well. > > Done. I assume we are going to do something similar for 'xml:id' when that becomes REC? Or do the issues with regard to type ID need to be sorted out first? -- Anne van Kesteren <http://annevankesteren.nl/> From ian at hixie.ch Sun Apr 17 11:17:48 2005 From: ian at hixie.ch (Ian Hickson) Date: Sun, 17 Apr 2005 18:17:48 +0000 (UTC) Subject: [whatwg] [WA1] lang and xml:lang In-Reply-To: <4262A651.2060804@annevankesteren.nl> References: <4261FB75.6000702@lachy.id.au> <Pine.LNX.4.61.0504170939320.7599@dhalsim.dreamhost.com> <4262A651.2060804@annevankesteren.nl> Message-ID: <Pine.LNX.4.61.0504171811480.7599@dhalsim.dreamhost.com> On Sun, 17 Apr 2005, Anne van Kesteren wrote: > > > > [xml:lang] > > I assume we are going to do something similar for 'xml:id' when that > becomes REC? Or do the issues with regard to type ID need to be sorted > out first? Actually, I just took out the text about xml:id. I couldn't work out why we'd want people to use xml:id rather than ID. For xml:lang it makes sense, because there are systems that will want to crawl XML documents and find stuff in certain languages, and "lang" is not used often so making it longer is not a huge deal. But the ID of an element is a meaningless string, so the benefits of making non-HTML UAs be able to determine an HTML element's ID doesn't seem to outweigh the problems (four extra characters very time "id" is used, which is a lot, not to mention the namespace confusion). Also, xml:lang="" and lang="" clash. An element can't have more than one language. However, xml:id="" and id="" can coexist without any trouble. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From fantasai.lists at inkedblade.net Sun Apr 17 13:56:10 2005 From: fantasai.lists at inkedblade.net (fantasai) Date: Sun, 17 Apr 2005 16:56:10 -0400 Subject: [whatwg] [web-apps] 2.7.8 The i element In-Reply-To: <4262A3E3.1050001@annevankesteren.nl> References: <op.spa4tpxpk4suho@briann> <Pine.LNX.4.61.0504161039020.7599@dhalsim.dreamhost.com> <e8e97f9f0504160352234b5e20@mail.gmail.com> <Pine.LNX.4.61.0504161056020.7599@dhalsim.dreamhost.com> <e8e97f9f050416045769ec23cc@mail.gmail.com> <Pine.LNX.4.61.0504161239120.20636@dhalsim.dreamhost.com> <42611707.10401@lachy.id.au> <Pine.LNX.4.61.0504161351170.20636@dhalsim.dreamhost.com> <42612459.5080500@lachy.id.au> <Pine.LNX.4.61.0504161443280.7599@dhalsim.dreamhost.com> <4262A3E3.1050001@annevankesteren.nl> Message-ID: <4262CD6A.10306@inkedblade.net> Anne van Kesteren wrote: > Ian Hickson wrote: > >>> Then would you want different markup for book titles, movie titles, >>> play titles, song titles, etc? Or would you just expect the script >>> to search IMDB for anything marked up with <cite>? >> >> Again, I don't really know. I could see a use case for a "type" >> attribute (as was suggested earlier in this thread), but that seems >> like a slippery slope. Suggestions? > > If we go with something like a TYPE attribute, I hope we can give it a > better name. However, hiding semantics inside the value of an attribute > is a poor markup design in humble opinion. (Although it also has some > advantages.) It's subclassing: the general is sufficient, the specific better. Many markup languages use the design, and in this case, I think it's necessary. ~fantasai From fora at annevankesteren.nl Mon Apr 18 01:14:00 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Mon, 18 Apr 2005 10:14:00 +0200 Subject: [whatwg] [html5] 2.8. Edits Message-ID: <42636C48.3060001@annevankesteren.nl> Now I know backwards compatibility is important[1], but DEL and INS are insanely complex to use and do not cover all "edit" use cases. What XHTML2 does makes more sense to me (introducing a global attribute) and also covers the use cases you see most online. Editing forum posts, weblog posts, etc. With forum posts there is mostly a note that the user edited his comment but you never see "though<ins>t</ins>". You see something like: "Last time edited: {date}". Now if you could say somehow that the contents of some element have been modified: <article edit="modified" datetime="{datetime}"> ... You could easily present that information to the user using CSS or some other mechanism. INS and DEL are IMHO not really appropriate for those kind of edits. [1]<http://ln.hixie.ch/?start=1113762425&count=1> -- Anne van Kesteren <http://annevankesteren.nl/> From fora at annevankesteren.nl Mon Apr 18 01:17:44 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Mon, 18 Apr 2005 10:17:44 +0200 Subject: [whatwg] 2.7.14. The q element Message-ID: <42636D28.9070109@annevankesteren.nl> Is HTML5 going to deal with the quote problem? Or will the CSS WG introduce ::first-character and ::last-character to deal with that? (I did check the source for XXX comments regarding quotes, but I couldn't find any.) -- Anne van Kesteren <http://annevankesteren.nl/> From hsivonen at iki.fi Mon Apr 18 01:39:08 2005 From: hsivonen at iki.fi (Henri Sivonen) Date: Mon, 18 Apr 2005 11:39:08 +0300 Subject: [whatwg] [WA1] The profile Attribute In-Reply-To: <42620714.5020504@lachy.id.au> References: <42620714.5020504@lachy.id.au> Message-ID: <a2ad57fb631766b8ba3d94d45220096d@iki.fi> On Apr 17, 2005, at 09:49, Lachlan Hunt wrote: > 3. That also forces unnecessary restrictions on which profiles a UA may > support and process. For example: > > * User Agent A implements XFN > * User Agent B implements RelLicence > * A document uses both XFN and RelLicence, and specifies XFN first > in the profile attribute. Of the Web documents that use XFN or RelLicense values what proportion references a profile? If you were to write a UA doing some processing with those values, could you afford to ignore the values in documents that don't reference a profile? Are profiles useful for any real implementation scenarios or are they pseudo-semantic cargo cult mumbo jumbo? -- Henri Sivonen hsivonen at iki.fi http://hsivonen.iki.fi/ From ian at hixie.ch Mon Apr 18 01:40:10 2005 From: ian at hixie.ch (Ian Hickson) Date: Mon, 18 Apr 2005 08:40:10 +0000 (UTC) Subject: [whatwg] [html5] 2.8. Edits In-Reply-To: <42636C48.3060001@annevankesteren.nl> References: <42636C48.3060001@annevankesteren.nl> Message-ID: <Pine.LNX.4.61.0504180828440.7599@dhalsim.dreamhost.com> On Mon, 18 Apr 2005, Anne van Kesteren wrote: > > Now I know backwards compatibility is important[1], but DEL and INS are > insanely complex to use and do not cover all "edit" use cases. Can you give some examples they don't cover? I'm aware of some, for example to mark a list item as deleted you can only mark the contents as deleted, not the item itself. But I don't see these as major enough changes to require changing the edit markup model. > What XHTML2 does makes more sense to me (introducing a global attribute) > and also covers the use cases you see most online. It looked to me like the use of an attribute in XHTML2 was actually a hack to get around limitations of DTDs and of CSS. HTML5's design isn't being constrained by either of those so I don't see why edit="" is better. > Editing forum posts, weblog posts, etc. With forum posts there is mostly a > note that the user edited his comment but you never see "though<ins>t</ins>". > You see something like: "Last time edited: {date}". I actually see inline comments about when things were fixed more often than I see "last edited", but that may just be the blogs I frequent. > Now if you could say somehow that the contents of some element have been > modified You can. Wrap those bits you removed in a <del> and wrap the new bits in an <ins>. > <article edit="modified" datetime="{datetime}"> > ... > > You could easily present that information to the user using CSS or some > other mechanism. The information is there with <ins>/<del> as well. > INS and DEL are IMHO not really appropriate for those kind of edits. On the contrary, I think they are the kinds of edits most suitable to <ins>. It certainly leaves more metadata in the document. It may be helpful for authors to use these rules: ins { text-decoration: none; color: inherit; } del { display: block; } -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From ian at hixie.ch Mon Apr 18 01:40:51 2005 From: ian at hixie.ch (Ian Hickson) Date: Mon, 18 Apr 2005 08:40:51 +0000 (UTC) Subject: [whatwg] 2.7.14. The q element In-Reply-To: <42636D28.9070109@annevankesteren.nl> References: <42636D28.9070109@annevankesteren.nl> Message-ID: <Pine.LNX.4.61.0504180840230.7599@dhalsim.dreamhost.com> On Mon, 18 Apr 2005, Anne van Kesteren wrote: > > Is HTML5 going to deal with the quote problem? Or will the CSS WG > introduce ::first-character and ::last-character to deal with that? > > (I did check the source for XXX comments regarding quotes, but I > couldn't find any.) There'll be a "rendering" section that addresses this and many other concerns. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From ian at hixie.ch Mon Apr 18 01:41:42 2005 From: ian at hixie.ch (Ian Hickson) Date: Mon, 18 Apr 2005 08:41:42 +0000 (UTC) Subject: [whatwg] [WA1] The profile Attribute In-Reply-To: <a2ad57fb631766b8ba3d94d45220096d@iki.fi> References: <42620714.5020504@lachy.id.au> <a2ad57fb631766b8ba3d94d45220096d@iki.fi> Message-ID: <Pine.LNX.4.61.0504180841100.7599@dhalsim.dreamhost.com> On Mon, 18 Apr 2005, Henri Sivonen wrote: > > Of the Web documents that use XFN or RelLicense values what proportion > references a profile? If you were to write a UA doing some processing > with those values, could you afford to ignore the values in documents > that don't reference a profile? Are profiles useful for any real > implementation scenarios or are they pseudo-semantic cargo cult mumbo > jumbo? My understanding is that most XFN processors will ignore pages that don't list the XFN profile, but I could be wrong. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From hsivonen at iki.fi Mon Apr 18 01:45:45 2005 From: hsivonen at iki.fi (Henri Sivonen) Date: Mon, 18 Apr 2005 11:45:45 +0300 Subject: [whatwg] [WA1] The profile Attribute In-Reply-To: <Pine.LNX.4.61.0504170948090.7599@dhalsim.dreamhost.com> References: <42620714.5020504@lachy.id.au> <Pine.LNX.4.61.0504170948090.7599@dhalsim.dreamhost.com> Message-ID: <2a0fbb744f10b4eae360cd0eb912a5a3@iki.fi> On Apr 17, 2005, at 13:00, Ian Hickson wrote: > Imagine you use publicly available profiles A and B. > > A has definitions "foo" and "bar". > > B has definitions "foo" and "baz". > > The definitions of "foo" in the two profiles is very different, but > that's ok, because you specify that you are using profiles A and B and > so > if you use "foo" then it is the meaning from "A" and you clearly aren't > saying the "foo" from B. > > You use foo, bar, and baz extensively in your document. > > Someone uses a browser that supports only profile B. Now your document > will be rendered or processed with completely different semantics, > because > the UA thinks that by "foo" you mean B's "foo". Is that a real problem or a theoretical problem? What are the chances that someone specifying rel='nofollow' or rel='license' in a way incompatible with the common usage? The rel attribute has existed for years. Are there examples of name conflicts? Are the conflicts so serious that the benefit of profiles outweighs the cruftiness? It seems to me profiles are solving a problem we are not having. > That's a fair point, but implementing XFN for user agent B might be > simply > a matter of dereferencing the profile URI, Single point of failure. Imagine every UA whacking w3.org for DTDs. Won't be implemented. -- Henri Sivonen hsivonen at iki.fi http://hsivonen.iki.fi/ From hsivonen at iki.fi Mon Apr 18 01:57:39 2005 From: hsivonen at iki.fi (Henri Sivonen) Date: Mon, 18 Apr 2005 11:57:39 +0300 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <4261C5DB.2070608@inkedblade.net> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504051113310.20461@dhalsim.dreamhost.com> <4252B643.6030308@lachy.id.au> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> <78f32994657502e0c7098780f8e6476b@iki.fi> <4254DA33.3020409@lachy.id.au> <521492f8273c953e36ca9b0957172b6c@iki.fi> <42562363.8050400@lachy.id.au> <32130a61ba34c8ada9f4a431d879bdef@iki.fi> <4261C5DB.2070608@inkedblade.net> Message-ID: <e10a4a018218b639f2ce766d588a4d7c@iki.fi> On Apr 17, 2005, at 05:11, fantasai wrote: > I agree that syntax-checking for xHTML5 documents should be implemented > with RelaxNG rather than DTDs. However, iirc, RelaxNG can't be used on > regular HTML. One could create a toolchain that converts HTML to xHTML > and then runs it through RelaxNG, but I wouldn't be surprised if the > converter needed a DTD for the SGML->XML conversion to work... What I had in mind was a parser that implements (hard-coded without a DTD) the minimal tag inference required for the HTML flavor and then feeds SAX events to Jing as if the parser was an XML parser parsing an equivalent XHTML flavor document. -- Henri Sivonen hsivonen at iki.fi http://hsivonen.iki.fi/ From ian at hixie.ch Mon Apr 18 02:13:25 2005 From: ian at hixie.ch (Ian Hickson) Date: Mon, 18 Apr 2005 09:13:25 +0000 (UTC) Subject: [whatwg] [WA1] The profile Attribute In-Reply-To: <2a0fbb744f10b4eae360cd0eb912a5a3@iki.fi> References: <42620714.5020504@lachy.id.au> <Pine.LNX.4.61.0504170948090.7599@dhalsim.dreamhost.com> <2a0fbb744f10b4eae360cd0eb912a5a3@iki.fi> Message-ID: <Pine.LNX.4.61.0504180900520.7599@dhalsim.dreamhost.com> On Mon, 18 Apr 2005, Henri Sivonen wrote: > > Is that a real problem or a theoretical problem? What are the chances > that someone specifying rel='nofollow' or rel='license' in a way > incompatible with the common usage? The rel attribute has existed for > years. Are there examples of name conflicts? Are the conflicts so > serious that the benefit of profiles outweighs the cruftiness? It seems > to me profiles are solving a problem we are not having. The most common names would be incorporated into the spec itself, thus reducing the need for profiles. Microformats are becoming more popular though, and so I think we should at least handle the potential problems. > > That's a fair point, but implementing XFN for user agent B might be > > simply a matter of dereferencing the profile URI, > > Single point of failure. Imagine every UA whacking w3.org for DTDs. > Won't be implemented. Not for browsers, but for conformance checkers, and for data crawlers, it would make sense. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From olav at olav.dk Mon Apr 18 02:25:09 2005 From: olav at olav.dk (=?ISO-8859-1?Q?Olav_Junker_Kj=E6r?=) Date: Mon, 18 Apr 2005 11:25:09 +0200 Subject: [whatwg] Fear of scope creep Message-ID: <42637CF5.7020509@olav.dk> I'm a bit concerned by the apparent scope creep of WHATWG. The charter of WHAT <http://whatwg.org/charter> says: "The goal of the Web Hypertext Applications Technology Working Group is to address the need for one coherent development environment for Web applications, through the creation of technical specifications that are intended to be implemented in mass-market Web browsers." Right now most of the discussions on the WHAT mailing list concerns extensions and clarification of the semantics of document-oriented HTML elements, and discussions about the low-level syntax of HTML (DTD, SGML etc.). "Web Applications 1.0" is apparently slowly turning into "HTML 5". This is all very good and certainly needed, however isn't there a danger it is taking focus and resources away from the initial goal of the WG, to build a common platform for web *applications*, as an open and (potentially) widely implemented alternative to XUL, XAML etc? regards Olav Junker Kj?r From ian at hixie.ch Mon Apr 18 02:46:46 2005 From: ian at hixie.ch (Ian Hickson) Date: Mon, 18 Apr 2005 09:46:46 +0000 (UTC) Subject: [whatwg] Fear of scope creep In-Reply-To: <42637CF5.7020509@olav.dk> References: <42637CF5.7020509@olav.dk> Message-ID: <Pine.LNX.4.61.0504180928310.7599@dhalsim.dreamhost.com> On Mon, 18 Apr 2005, Olav Junker Kj?r wrote: > > I'm a bit concerned by the apparent scope creep of WHATWG. Understandable. > The charter of WHAT <http://whatwg.org/charter> says: "The goal of the > Web Hypertext Applications Technology Working Group is to address the > need for one coherent development environment for Web applications, > through the creation of technical specifications that are intended to be > implemented in mass-market Web browsers." > > Right now most of the discussions on the WHAT mailing list concerns > extensions and clarification of the semantics of document-oriented HTML > elements, and discussions about the low-level syntax of HTML (DTD, SGML > etc.). "Web Applications 1.0" is apparently slowly turning into "HTML > 5". > > This is all very good and certainly needed, however isn't there a danger > it is taking focus and resources away from the initial goal of the WG, > to build a common platform for web *applications*, as an open and > (potentially) widely implemented alternative to XUL, XAML etc? There are basically two ways we can go: * Take HTML4 and DOM2 HTML as a base and only specify the changes. * Take HTML4 and DOM2 HTML as a base and specify the new language in its entirety. With Web Forms 2 we did the former. A lot of the feedback I've received, however, has been complaining about the fact that now people have to check two or three specs to work out how one feature should work. Since our goal is specifically to create "one coherent development environment", I felt that this would be better served by going down the second road for the Web Apps draft. This also gives us the opportunity to fix all the problems HTML4 has. I don't think this is particularly taking resources away from our goal; semantic markup should be a key part of any cross-media cross-platform application environment. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From jg307 at cam.ac.uk Mon Apr 18 04:40:47 2005 From: jg307 at cam.ac.uk (James Graham) Date: Mon, 18 Apr 2005 12:40:47 +0100 Subject: [whatwg] [WA1] The profile Attribute In-Reply-To: <Pine.LNX.4.61.0504171317540.20636@dhalsim.dreamhost.com> References: <42620714.5020504@lachy.id.au> <Pine.LNX.4.61.0504170948090.7599@dhalsim.dreamhost.com> <42624BAE.8090905@lachy.id.au> <Pine.LNX.4.61.0504171147060.20636@dhalsim.dreamhost.com> <4262609C.7090800@cam.ac.uk> <Pine.LNX.4.61.0504171317540.20636@dhalsim.dreamhost.com> Message-ID: <42639CBF.7080305@cam.ac.uk> Ian Hickson wrote: >On Sun, 17 Apr 2005, James Graham wrote: > > >>>>>The only way I can see to avoid this is to use only one profile, >>>>>since then you can't ever get clashes. >>>>> >>>>> >>>>There are other ways I've seen proposed, such as using namespaces: >>>> >>>>http://www.protogenius.com/rel-schemas/draft-scheid-rel-schemas-00.htm >>>> >>>> >>>Namespaces are not an option. Authors simply don't understand them. >>> >>> >>Respectfully, I think namespaces are the only sensible solution here and in >>other situations where the document is mixing semantics from multiple sources. >> >> > >The recent microformats trend (using profile="") is one other solution, >which seems to be at least as sensible. > > > > >>What's the evidence that authors don't understand namespaces? >> >> > >One source for example is Micah Dubinko's statistic that 90% of all the >queries about XForms that he receives are asking for him to explain >namespaces. [1] > > [1] http://www.w3.org/2004/04/webapps-cdf-ws/papers/verity.html > >This certainly has also been my experience in dealing with Web authors who >are trying to use languages that rely on namespaces. > > > > >>Does it all come from XML namespaces (which are more complex than >>anything we would need for this type of problem*)? In any case I think >>this is a situation where, with sensible defaults, we can provide a >>useful feature that will be well within the grasp of the small subset of >>authors who actually want to use it. >> >> > >By "namespaces" here I am refering to XML namespaces and similar solutions >that require declaring a prefix and then using that prefix elsewhere. > > > > >>For example we could define <profile name="foo" >>href="http://example.com/profiles/#foo" /> and then require a profile >>attribute for elements with rel values not assosiated with the default >>profile, which would be given by the value of the profile attribute in >><head> or the last <profile> element with no <name> value. That seems >>much simpler than XML namespaces. >> >> For clarity, that should read something more like: For example we could define <profile title="foo" href="http://example.com/profiles/#foo" /> and then require a profile attribute for elements with rel values not assosiated with the default profile, which would be given by the value of the profile attribute in <head> or the last <profile> element with no title attribute e.g. a document like: <head profile="http://example.com#foo"> <profile href="http://example.com#bar" title="bar" /> <link rel="comments" href="#comments" /> <link rel="license" href="license.html" profile="bar" /> </head> would use the profile at http://example.com#foo for the first <link> and that at http://example.com#bar for the second. >That seems a lot more complicated than the current proposed solution with >profile="". > Indeed. But, unless I'm missing something, the current spec totally fails to address the use-case of multiple profiles per document in any sort of useful way whatsoever. It seems entirely reasonable that people will want to include multiple profiles (since e.g. licensing and XFN type metadata is entirely orthogonal) so simply stating "authors are encouraged to avoid using multiple profiles" is, IMHO, a real problem. -- "But if science you say still sounds too deep, Just do what Beaker does, just shrug and 'Meep!'" -- Dr. Bunsen Honeydew & Beaker of Muppet Labs From hsivonen at iki.fi Mon Apr 18 05:00:00 2005 From: hsivonen at iki.fi (Henri Sivonen) Date: Mon, 18 Apr 2005 15:00:00 +0300 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <4261C2BE.7060601@inkedblade.net> References: <42524E27.6060006@annevankesteren.nl> <4252B643.6030308@lachy.id.au> <Pine.LNX.4.61.0504051706380.2016@dhalsim.dreamhost.com> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> <4253CA8A.1070608@olav.dk> <4253D10C.5000700@lachy.id.au> <4253D24A.8050308@annevankesteren.nl> <4253D7CA.2010807@lachy.id.au> <4253DA93.8030606@annevankesteren.nl> <4253E4FF.2090306@lachy.id.au> <4253F517.3040409@olav.dk> <425401B0.3040205@lachy.id.au> <42540251.4080405@annevankesteren.nl> <42546FCE.5070900@lachy.id.au> <Pine.LNX.4.61.0504062335130.20461@dhalsim.dreamhost.com> <4254CE93.4000403@lachy.id.au> <Pine.LNX.4.61.0504071037490.20461@dhalsim.dreamhost.com> <42550FFD.20201@annevankesteren.nl> <Pine.LNX.4.61.0504071050580.20461@dhalsim.dreamhost.com> <4255114D.10108@annevankesteren.nl> <Pine.LNX.4.61.0504071056170.20461@dhalsim.dreamhost.com> <fb7f3319eb599acbe7429f972d21672c@iki.fi> <4261C2BE.7060601@inkedb lade.net> Message-ID: <7becfe9e53869dcf45c0b5123f918a8b@iki.fi> On Apr 17, 2005, at 04:58, fantasai wrote: > Henri Sivonen wrote: >> I am very hostile towards the idea of requiring UAs to implement any >> XML parsing features that are in the realm of the XML 1.0 spec but >> that the XML 1.0 spec does not require. This means processing the DTD >> beyond checking the internal subset for well-formedness. > > That hostility may be justified as far as browser-type UAs go, but I > would rather you didn't apply it to server-side and authoring tools. When I said "UAs", I had client apps in mind. >> Those who want to use entities for input, should parse and >> reserialize as UTF-8 in their own lair and not expose their entity >> references (or parochial legacy encodings) to the public network. > > For those of us writing HTML by hand, this is not a practical solution, > particularly when invisible characters are involved. Invisible > characters > aside, I don't want to go digging through a Unicode character map every > time I want &rarr; or &tau;. That's not an issue for HTML where entities get tag soup treatment anyway. I didn't say that authors should not type entity references in XML. I said that the entity references should be resolved before the data travels from the server to the client. -- Henri Sivonen hsivonen at iki.fi http://hsivonen.iki.fi/ From fantasai.lists at inkedblade.net Mon Apr 18 05:28:15 2005 From: fantasai.lists at inkedblade.net (fantasai) Date: Mon, 18 Apr 2005 08:28:15 -0400 Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <7becfe9e53869dcf45c0b5123f918a8b@iki.fi> References: <42524E27.6060006@annevankesteren.nl> <42534E44.8080101@lachy.id.au> <Pine.LNX.4.61.0504060257560.27724@dhalsim.dreamhost.com> <4253B881.3090206@lachy.id.au> <4253CA8A.1070608@olav.dk> <4253D10C.5000700@lachy.id.au> <4253D24A.8050308@annevankesteren.nl> <4253D7CA.2010807@lachy.id.au> <4253DA93.8030606@annevankesteren.nl> <4253E4FF.2090306@lachy.id.au> <4253F517.3040409@olav.dk> <425401B0.3040205@lachy.id.au> <42540251.4080405@annevankesteren.nl> <42546FCE.5070900@lachy.id.au> <Pine.LNX.4.61.0504062335130.20461@dhalsim.dreamhost.com> <4254CE93.4000403@lachy.id.au> <Pine.LNX.4.61.0504071037490.20461@dhalsim.dreamhost.com> <42550FFD.20201@annevankesteren.nl> <Pine.LNX.4.61.0504071050580.20461@dhalsim.dreamhost.com> <4255114D.10108@annevankesteren.nl> <Pine.LNX.4.61.0504071056170.20461@dhalsim.dreamhost.com> <fb7f3319eb599acbe7429f972d21672c@iki.fi> <4261C2BE.7060601@inkedb lade.net> <7becfe9e53869dcf45c0b5123f918a8b@iki.fi> Message-ID: <4263A7DF.1000509@inkedblade.net> Henri Sivonen wrote: > On Apr 17, 2005, at 04:58, fantasai wrote: > >> For those of us writing HTML by hand, this is not a practical solution, >> particularly when invisible characters are involved. Invisible characters >> aside, I don't want to go digging through a Unicode character map every >> time I want &rarr; or &tau;. > > That's not an issue for HTML where entities get tag soup treatment anyway. > > I didn't say that authors should not type entity references in XML. I > said that the entity references should be resolved before the data > travels from the server to the client. So, when is my document going to get preprocessed? I certainly don't want to bother fussing with it every time I fix a typo. ~fantasai From lachlan.hunt at lachy.id.au Mon Apr 18 05:32:16 2005 From: lachlan.hunt at lachy.id.au (Lachlan Hunt) Date: Mon, 18 Apr 2005 22:32:16 +1000 Subject: [whatwg] [WA1] The profile Attribute In-Reply-To: <42639CBF.7080305@cam.ac.uk> References: <42620714.5020504@lachy.id.au> <Pine.LNX.4.61.0504170948090.7599@dhalsim.dreamhost.com> <42624BAE.8090905@lachy.id.au> <Pine.LNX.4.61.0504171147060.20636@dhalsim.dreamhost.com> <4262609C.7090800@cam.ac.uk> <Pine.LNX.4.61.0504171317540.20636@dhalsim.dreamhost.com> <42639CBF.7080305@cam.ac.uk> Message-ID: <4263A8D0.5020207@lachy.id.au> James Graham wrote: > <head profile="http://example.com#foo"> > <profile href="http://example.com#bar" title="bar" /> > <link rel="comments" href="#comments" /> > <link rel="license" href="license.html" profile="bar" /> > </head> The problem with that method is that it doesn't allow values from multiple profiles to be included within the same element. Whereas, a solution that adds namespaces more like the following, but doesn't require their use to reference the values where it is not ambiguous would be better. For example, three profiles are defined with each given a namespace prefx and contain the listed values. Profile 1: foo http://example.org/foo Values: a, b, c Profile 2: bar http://example.com/bar Values: c, d Profile 3: baz http://example.net/baz Values: d, e, f foo and bar both contain "c", bar and baz both contain "d". Without a namespace, the semantics from the first declared profile should be used in such cases and it is not possible to make use of the other. With a form of optional namespace, it should be possible to refer to those values in the following ways: The following unambiguosly refers "a" in foo in both cases: rel="a" OR rel="foo.a" Because "c" is defined in both foo and bar, these are equivalent because foo is defined first rel="c" OR rel="foo.c" With a namespace, "c" in bar, can also be unambiguosly referenced: rel="bar.c" Similarly, the follwing can also be unambiguously referenced: rel="b d baz.d e f" (the first "d" would refer to bar.d because bar is defined first and baz.d is obvious. "b", "e" and "f" are unambiguous because there are no naming conflicts.) If a solution can be found which allows for namespaces, but which does not require them to be used in most cases, which doesn't introduce even more problems, then I think that would probably be the best solution. -- Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox From hsivonen at iki.fi Mon Apr 18 05:37:51 2005 From: hsivonen at iki.fi (Henri Sivonen) Date: Mon, 18 Apr 2005 15:37:51 +0300 Subject: [whatwg] [web-apps] 2.7.8 The i element In-Reply-To: <Pine.LNX.4.61.0504161301440.20636@dhalsim.dreamhost.com> References: <op.spa4tpxpk4suho@briann> <Pine.LNX.4.61.0504161039020.7599@dhalsim.dreamhost.com> <e8e97f9f0504160352234b5e20@mail.gmail.com> <Pine.LNX.4.61.0504161056020.7599@dhalsim.dreamhost.com> <e8e97f9f050416045769ec23cc@mail.gmail.com> <Pine.LNX.4.61.0504161239120.20636@dhalsim.dreamhost.com> <e8e97f9f050416055724f000f1@mail.gmail.com> <Pine.LNX.4.61.0504161301440.20636@dhalsim.dreamhost.com> Message-ID: <164267ec02d940a35ff35bfc6bf782fd@iki.fi> On Apr 16, 2005, at 16:04, Ian Hickson wrote: > On Sat, 16 Apr 2005, Rob Mientjes wrote: >>> >>> Is there any advantage to marking up people's names? >> >> I dunno. I was just trying to fill the gap of need ;) > > The question is: is the need a real need or a perceived need? Some print newspapers and magazines bold the first occurrence (per article) of each personal name. (Is it actually useful? Dunno.) However, doing this with a style sheet once each name has been marked up as such would be really hard compared to just using <b> where the editor wants it. UAs are not going to be able to perform morphological analysis for every language under the sun and, therefore, will the unable to figure out that <name lang='fi'>Sivonen</name> and <name lang='fi'>Sivosen</name> are occurrences of the same name but the latter occurrence is in genetive. An AI-complete UA would need no name markup anyway. :-) From time to time, I am doubting the usefulness of avoiding of <b> and <i> on principle, when it is, after all, bold and italic that is wanted and not some generic change of appearance. -- Henri Sivonen hsivonen at iki.fi http://hsivonen.iki.fi/ From dean at edwards.name Mon Apr 18 05:51:16 2005 From: dean at edwards.name (Dean Edwards) Date: Mon, 18 Apr 2005 13:51:16 +0100 Subject: [whatwg] Fear of scope creep In-Reply-To: <42637CF5.7020509@olav.dk> References: <42637CF5.7020509@olav.dk> Message-ID: <4263AD44.4050107@edwards.name> Olav Junker Kj?r wrote: > I'm a bit concerned by the apparent scope creep of WHATWG. > > The charter of WHAT <http://whatwg.org/charter> says: > "The goal of the Web Hypertext Applications Technology Working Group is > to address the need for one coherent development environment for Web > applications, through the creation of technical specifications that are > intended to be implemented in mass-market Web browsers." > > Right now most of the discussions on the WHAT mailing list concerns > extensions and clarification of the semantics of document-oriented HTML > elements, and discussions about the low-level syntax of HTML (DTD, SGML > etc.). "Web Applications 1.0" is apparently slowly turning into "HTML 5". > I mentioned this a while back too. Part of the problem is that we aren't submitting enough applications related topics. So it seems that all discussion is around standard HTML. This may in turn be due to the fact that we are currently publishing WF2 and (as a group) we haven't turned our full attention on WA1. But you're right, I have a hundred outstanding messages from the WHATWG list which all seem to nitpick existing HTML. I'll probably mark them all as "read" without actually reading them. -dean From jg307 at cam.ac.uk Mon Apr 18 06:06:37 2005 From: jg307 at cam.ac.uk (James Graham) Date: Mon, 18 Apr 2005 14:06:37 +0100 Subject: [whatwg] [WA1] The profile Attribute In-Reply-To: <4263A8D0.5020207@lachy.id.au> References: <42620714.5020504@lachy.id.au> <Pine.LNX.4.61.0504170948090.7599@dhalsim.dreamhost.com> <42624BAE.8090905@lachy.id.au> <Pine.LNX.4.61.0504171147060.20636@dhalsim.dreamhost.com> <4262609C.7090800@cam.ac.uk> <Pine.LNX.4.61.0504171317540.20636@dhalsim.dreamhost.com> <42639CBF.7080305@cam.ac.uk> <4263A8D0.5020207@lachy.id.au> Message-ID: <4263B0DD.8030702@cam.ac.uk> Lachlan Hunt wrote: > James Graham wrote: > >> <head profile="http://example.com#foo"> >> <profile href="http://example.com#bar" title="bar" /> >> <link rel="comments" href="#comments" /> >> <link rel="license" href="license.html" profile="bar" /> >> </head> > > > The problem with that method is that it doesn't allow values from > multiple profiles to be included within the same element. Is that an actual problem in practice? With <link /> one can always add another link element pointing to the same resource. I suppose it's more of an issue for random elements and class (although I still think using class is suboptimal). > Whereas, a solution that adds namespaces more like the following, > but doesn't require their use to reference the values where it is not > ambiguous would be better. > > For example, three profiles are defined with each given a namespace > prefx and contain the listed values. > > Profile 1: foo http://example.org/foo > Values: a, b, c > Profile 2: bar http://example.com/bar > Values: c, d > Profile 3: baz http://example.net/baz > Values: d, e, f > > foo and bar both contain "c", bar and baz both contain "d". Without a > namespace, the semantics from the first declared profile should be > used in such cases and it is not possible to make use of the other. > With a form of optional namespace, it should be possible to refer to > those values in the following ways: > > The following unambiguosly refers "a" in foo in both cases: > rel="a" OR rel="foo.a" > > Because "c" is defined in both foo and bar, these are equivalent > because foo is defined first > rel="c" OR rel="foo.c" > > With a namespace, "c" in bar, can also be unambiguosly referenced: > rel="bar.c" > > Similarly, the follwing can also be unambiguously referenced: > rel="b d baz.d e f" Having namespaces only where conflicts occur strikes me as unwise - in general the author is unlikely to know what the complete range of values in a given spec is and it makes documents very fragile to addition of data from new profiles and to addition of values to existing profiles. It also makes view-source style learning hard because the namespace will be included (or not) in an apparently random fashion. That's actually one of the problems with XML namespaces - from a document like: <root xmlns="#foo" xmlns:bar="#bar"> <bar:fragment> <element /> </bar:fragment> </root> doing a simple view-source (without having read the Namespaces in XML spec) doesn't make it obvious which namespace <element/> is in. -- "But if science you say still sounds too deep, Just do what Beaker does, just shrug and 'Meep!'" -- Dr. Bunsen Honeydew & Beaker of Muppet Labs From fora at annevankesteren.nl Mon Apr 18 06:15:38 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Mon, 18 Apr 2005 15:15:38 +0200 Subject: [whatwg] [html5] 2.8. Edits In-Reply-To: <Pine.LNX.4.61.0504180828440.7599@dhalsim.dreamhost.com> References: <42636C48.3060001@annevankesteren.nl> <Pine.LNX.4.61.0504180828440.7599@dhalsim.dreamhost.com> Message-ID: <4263B2FA.80600@annevankesteren.nl> Ian Hickson wrote: > On Mon, 18 Apr 2005, Anne van Kesteren wrote: > >> Now I know backwards compatibility is important[1], but DEL and INS >> are insanely complex to use and do not cover all "edit" use cases. > > Can you give some examples they don't cover? Well, cases were you just want to note that something has changed, but not necessarily want to "markup" what has changed. > I'm aware of some, for example to mark a list item as deleted you can only > mark the contents as deleted, not the item itself. But I don't see these > as major enough changes to require changing the edit markup model. Deleting the entire document would be another one of those... >> What XHTML2 does makes more sense to me (introducing a global >> attribute) and also covers the use cases you see most online. > > It looked to me like the use of an attribute in XHTML2 was actually a > hack to get around limitations of DTDs and of CSS. HTML5's design > isn't being constrained by either of those so I don't see why edit="" > is better. Well, XHTML is an XML language so it could make use of XML Schema or so which is capable of describing the semantics of DEL and INS I believe, although it would be a quite complicated schema. |edit=""| is easier to use for tools that compare documents and only want to say some content has changed. I have the feeling it is easier overall, both to use when editing by hand and when code has to be processed by tools, but I'm not sure if I can prove it. |edit=""| has indeed also some advantages with aspect to CSS, but that is besides the point. >>Editing forum posts, weblog posts, etc. With forum posts there is mostly a >>note that the user edited his comment but you never see "though<ins>t</ins>". >>You see something like: "Last time edited: {date}". > > I actually see inline comments about when things were fixed more often > than I see "last edited", but that may just be the blogs I frequent. I guess. Popular forum software like phpBB says that a comment/post has changed. I know some weblogs authors [insert info] but on the other hand most don't. Weblog software does (mostly) change the modified date of the entry though. >> Now if you could say somehow that the contents of some element have >> been modified > > You can. Wrap those bits you removed in a <del> and wrap the new bits > in an <ins>. That information is almost never stored. It would also make software insanely complex. > The information is there with <ins>/<del> as well. With INS/DEL you can not easily present it. The information is there, sure. >> INS and DEL are IMHO not really appropriate for those kind of >> edits. > > On the contrary, I think they are the kinds of edits most suitable to > <ins>. It certainly leaves more metadata in the document. If you want metadata you can do exactly the same with some attribute. For element wide changes you just add an attribute to the element (instead of wrapping the element in another element) and for local changes you use SPAN with an attribute. -- Anne van Kesteren <http://annevankesteren.nl/> From Maniac at SoftwareManiacs.Org Mon Apr 18 06:29:12 2005 From: Maniac at SoftwareManiacs.Org (Maniac) Date: Mon, 18 Apr 2005 17:29:12 +0400 Subject: [whatwg] [html5] 2.8. Edits In-Reply-To: <Pine.LNX.4.61.0504180828440.7599@dhalsim.dreamhost.com> References: <42636C48.3060001@annevankesteren.nl> <Pine.LNX.4.61.0504180828440.7599@dhalsim.dreamhost.com> Message-ID: <4263B628.2010003@SoftwareManiacs.Org> Ian Hickson wrote: >I'm aware of some, for example to mark a list item as deleted you can only >mark the contents as deleted, not the item itself. > And you can't add an item as well... >But I don't see these >as major enough changes to require changing the edit markup model. > > I use <ins> and <del> for editing specs and this is in fact *is* a major limitations. Speaking briefly: it is not possible to markup editis for lists (orderd, unordered, definitions) and tables except for replacing the whole list or table altogether. I mention lists and tables since I use them often but in general problematic are any elements that allow only limited subset of children, thus disallowing <ins> and <del>. May be there should be a separate model in the spec about edits saying where <ins> and <del> are allowed in addition to children specified elsewhere. From lachlan.hunt at lachy.id.au Mon Apr 18 07:16:39 2005 From: lachlan.hunt at lachy.id.au (Lachlan Hunt) Date: Tue, 19 Apr 2005 00:16:39 +1000 Subject: [whatwg] [WA1] The profile Attribute In-Reply-To: <4263B0DD.8030702@cam.ac.uk> References: <42620714.5020504@lachy.id.au> <Pine.LNX.4.61.0504170948090.7599@dhalsim.dreamhost.com> <42624BAE.8090905@lachy.id.au> <Pine.LNX.4.61.0504171147060.20636@dhalsim.dreamhost.com> <4262609C.7090800@cam.ac.uk> <Pine.LNX.4.61.0504171317540.20636@dhalsim.dreamhost.com> <42639CBF.7080305@cam.ac.uk> <4263A8D0.5020207@lachy.id.au> <4263B0DD.8030702@cam.ac.uk> Message-ID: <4263C147.6080302@lachy.id.au> James Graham wrote: > Lachlan Hunt wrote: >> The problem with that method is that it doesn't allow values from >> multiple profiles to be included within the same element. > > Is that an actual problem in practice? It could be. Say, for example, the Web Communication Link Relationships [1] I've proposed earlier for link relationships were defined in a profile, it could be quite probable that such values may be used in conjunction with some from XFN. eg. <p><a href="..." rel="wclr.user xfn.met">John Smith</a> said:</p> <p>comment...</p> > Having namespaces only where conflicts occur strikes me as unwise - in > general the author is unlikely to know what the complete range of values > in a given spec is and it makes documents very fragile to addition of > data from new profiles and to addition of values to existing profiles. That same argument also applies where there are no namespaces at all, however introducing optional namespaces may also address the concerns against namespaces. > It also makes view-source style learning hard because... View-source learning is already hard because most documents on the web are non-conformant and invalid rubbish. But I don't agree it would make it harder since most of the time the namespace prefixes would be required, only for the odd case where naming conflicts do occur within profiles used by the same document. [1] http://lachy.id.au/dev/markup/specs/wclr/ -- Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox From mikko.rantalainen at peda.net Mon Apr 18 07:31:44 2005 From: mikko.rantalainen at peda.net (Mikko Rantalainen) Date: Mon, 18 Apr 2005 17:31:44 +0300 Subject: [whatwg] [web-apps] 2.7.8 The i element In-Reply-To: <164267ec02d940a35ff35bfc6bf782fd@iki.fi> References: <op.spa4tpxpk4suho@briann> <Pine.LNX.4.61.0504161039020.7599@dhalsim.dreamhost.com> <e8e97f9f0504160352234b5e20@mail.gmail.com> <Pine.LNX.4.61.0504161056020.7599@dhalsim.dreamhost.com> <e8e97f9f050416045769ec23cc@mail.gmail.com> <Pine.LNX.4.61.0504161239120.20636@dhalsim.dreamhost.com> <e8e97f9f050416055724f000f1@mail.gmail.com> <Pine.LNX.4.61.0504161301440.20636@dhalsim.dreamhost.com> <164267ec02d940a35ff35bfc6bf782fd@iki.fi> Message-ID: <4263C4D0.3070200@peda.net> Henri Sivonen wrote: > On Apr 16, 2005, at 16:04, Ian Hickson wrote: >>The question is: is the need a real need or a perceived need? > > Some print newspapers and magazines bold the first occurrence (per > article) of each personal name. (Is it actually useful? Dunno.) > [...] > From time to time, I am doubting the usefulness of avoiding of <b> and > <i> on principle, when it is, after all, bold and italic that is wanted > and not some generic change of appearance. I think that "bold" isn't really what magazines are looking for in your example case. It's more like some kind of emphasize on first occurrence of person's name. I'd rather use <em>, somebody else might use <strong>. I still think that <b> isn't correct element to use in this case. Newspapers use bold just because it's *the* method to emphasize text in that world. A web browser can do more. That said, I think that <i> and <b> should be used where italized and bold text is the *traditional* way to display the information and the only other logical choice would be a <span>. If bolding is used to bring something more visible or to mark it a bit more important than everything else, <em> or <span> should be used instead. I don't believe that HTML5 can change what <i> element means. It may say it means "instance" but users (web designers) are going to continue think "italic". How about <e> for entity? A bit more semantic than <span> but doesn't hint rendering a little bit. Throw a "type" or "class" attribute in and you might have something usable. -- <e type="person">Mikko</e> From jg307 at cam.ac.uk Mon Apr 18 07:34:36 2005 From: jg307 at cam.ac.uk (James Graham) Date: Mon, 18 Apr 2005 15:34:36 +0100 Subject: [whatwg] [WA1] The profile Attribute In-Reply-To: <4263C147.6080302@lachy.id.au> References: <42620714.5020504@lachy.id.au> <Pine.LNX.4.61.0504170948090.7599@dhalsim.dreamhost.com> <42624BAE.8090905@lachy.id.au> <Pine.LNX.4.61.0504171147060.20636@dhalsim.dreamhost.com> <4262609C.7090800@cam.ac.uk> <Pine.LNX.4.61.0504171317540.20636@dhalsim.dreamhost.com> <42639CBF.7080305@cam.ac.uk> <4263A8D0.5020207@lachy.id.au> <4263B0DD.8030702@cam.ac.uk> <4263C147.6080302@lachy.id.au> Message-ID: <4263C57C.2070001@cam.ac.uk> Lachlan Hunt wrote: > James Graham wrote: > >> Having namespaces only where conflicts occur strikes me as unwise - >> in general the author is unlikely to know what the complete range of >> values in a given spec is and it makes documents very fragile to >> addition of data from new profiles and to addition of values to >> existing profiles. > > > That same argument also applies where there are no namespaces at all, > however introducing optional namespaces may also address the concerns > against namespaces. I strongly feel that by trying to make it simpler, you're actually succeeding in making it harder. You require authors to accumulate information from multiple siources in order to read or write a document. You require that they _know_ the rules surrounding namespaces because it would be impossible to infer the rules from a document. >> It also makes view-source style learning hard because... > > > View-source learning is already hard because most documents on the web > are non-conformant and invalid rubbish. Most documents on the web are a direct result of view-source style learning. If they're invalid rubbish, it's (at least partly) because spec writers have erronously assumed that the majority of authors would have enough of a clue to check things like whether there were conflicts between diffrent profiles they were using. In fact, the fact that authors won't check for conflicts is one reason that namespaces *should* be used for profiles - and we should encourage authors to use them as much as possible so that every value assosiated with a profile is assosiated explicitly. Authors simply won't read the part of the spec that explains why including multiple profiles is a bad idea, will include multiple profiles (since they'll see that that's allowed from view-sourcing other documents) and will run into name conflicts. So, infact, I'd require that all profiles introduced through a profile element (or similar) have an explicity title that was then required for accessing that profile throughout the document. The profile attribute on <head> would be discouraged. Then authors looking at a document via view-source would see a consisent and logical picture which they could easilly copy. -- "But if science you say still sounds too deep, Just do what Beaker does, just shrug and 'Meep!'" -- Dr. Bunsen Honeydew & Beaker of Muppet Labs From hsivonen at iki.fi Mon Apr 18 11:02:03 2005 From: hsivonen at iki.fi (Henri Sivonen) Date: Mon, 18 Apr 2005 21:02:03 +0300 Subject: [whatwg] [web-apps] 2.7.8 The i element In-Reply-To: <4263C4D0.3070200@peda.net> References: <op.spa4tpxpk4suho@briann> <Pine.LNX.4.61.0504161039020.7599@dhalsim.dreamhost.com> <e8e97f9f0504160352234b5e20@mail.gmail.com> <Pine.LNX.4.61.0504161056020.7599@dhalsim.dreamhost.com> <e8e97f9f050416045769ec23cc@mail.gmail.com> <Pine.LNX.4.61.0504161239120.20636@dhalsim.dreamhost.com> <e8e97f9f050416055724f000f1@mail.gmail.com> <Pine.LNX.4.61.0504161301440.20636@dhalsim.dreamhost.com> <164267ec02d940a35ff35bfc6bf782fd@iki.fi> <4263C4D0.3070200@peda.net> Message-ID: <c491cf2eb2cced0fa3c71dbb447dfa85@iki.fi> On Apr 18, 2005, at 17:31, Mikko Rantalainen wrote: > Henri Sivonen wrote: >> On Apr 16, 2005, at 16:04, Ian Hickson wrote: >>> The question is: is the need a real need or a perceived need? >> Some print newspapers and magazines bold the first occurrence (per >> article) of each personal name. (Is it actually useful? Dunno.) [...] >> From time to time, I am doubting the usefulness of avoiding of <b> >> and <i> on principle, when it is, after all, bold and italic that is >> wanted and not some generic change of appearance. > > I think that "bold" isn't really what magazines are looking for in > your example case. Have you ever seen any other emphasis than bold in that case? > It's more like some kind of emphasize on first occurrence of person's > name. I'd rather use <em>, somebody else might use <strong>. I do not believe the meaning of the bolding is strong emphasis in this case. Emphasis perhaps but not particularly strong. > I still think that <b> isn't correct element to use in this case. > Newspapers use bold just because it's *the* method to emphasize text > in that world. When there are established cases where you are supposed to use bold and cases where you are supposed to use italic, is it truly useful to try to enumerate all the semantic roles and come up with gazillions of synonyms for <b> and <i> only in order to adhere to the "no presentationalism" principle even when there aren't compelling use cases for programmatic text analysis that would benefit from fine-grained semantics? Is anyone here seriously expecting Google to come up with a service that harvested the names of ships if What WG specified a semantic element for marking up the names of ships? > A web browser can do more. For example? -- Henri Sivonen hsivonen at iki.fi http://hsivonen.iki.fi/ From bkn3 at columbia.edu Mon Apr 18 17:49:57 2005 From: bkn3 at columbia.edu (Brad Neuberg) Date: Mon, 18 Apr 2005 17:49:57 -0700 Subject: [whatwg] Fear of scope creep In-Reply-To: <4263AD44.4050107@edwards.name> References: <42637CF5.7020509@olav.dk> <4263AD44.4050107@edwards.name> Message-ID: <6.2.1.2.2.20050418174446.02abcc30@pop.mail.yahoo.com> I agree with the comments on scope creep from Dean and Olav. The discussion on the WHATWG list seems to be mostly about HTML and DOM semantics these days. My understanding of the web app standard was that it would codify a set of useful tags and practices that developers might have already been using, such as the XmlHttpRequest object, and maybe introduce a bit more functionality and tags to make building these kinds of web apps easier. Then, on IE, much of this would be implemented as an emulation layer using things like IE Behaviors and so on, similar to Deans work. If the web app standard ends up specifying what is essentially an entirely new standard of HTML, like HTML 5, then I don't see it being possible to truly emulate on IE as well as being a pain in the butt to actually code (i.e. if it requires indepth knowledge of esoteric HTML and SGML issues to implement then I don't see it actually getting much uptake). Plus, the more we emulate on IE the slower it will be; emulation layers in the browser can be slow if you aren't careful, plus they can have issues with dynamic updating of the DOM, like Dean's IE 5 layer. Best, Brad Neuberg At 05:51 AM 4/18/2005, Dean Edwards wrote: >Olav Junker Kj?r wrote: >>I'm a bit concerned by the apparent scope creep of WHATWG. >>The charter of WHAT <http://whatwg.org/charter> says: >>"The goal of the Web Hypertext Applications Technology Working Group is >>to address the need for one coherent development environment for Web >>applications, through the creation of technical specifications that are >>intended to be implemented in mass-market Web browsers." >>Right now most of the discussions on the WHAT mailing list concerns >>extensions and clarification of the semantics of document-oriented HTML >>elements, and discussions about the low-level syntax of HTML (DTD, SGML >>etc.). "Web Applications 1.0" is apparently slowly turning into "HTML 5". > >I mentioned this a while back too. Part of the problem is that we aren't >submitting enough applications related topics. So it seems that all >discussion is around standard HTML. This may in turn be due to the fact >that we are currently publishing WF2 and (as a group) we haven't turned >our full attention on WA1. But you're right, I have a hundred outstanding >messages from the WHATWG list which all seem to nitpick existing HTML. >I'll probably mark them all as "read" without actually reading them. > >-dean > Brad Neuberg, bkn3 at columbia.edu Senior Software Engineer, Rojo Networks Weblog: http://www.codinginparadise.org ===================================================================== Check out Rojo, an RSS and Atom news aggregator that I work on. Visit http://rojo.com for more info. Feel free to ask me for an invite! Rojo is Hiring! If you're interested in RSS, Weblogs, Social Networking, Java, Open Source, etc... then come work with us at Rojo. If you recommend someone and we hire them you'll get a free iPod! See http://www.rojonetworks.com/JobsAtRojo.html. From darin at meer.net Mon Apr 18 18:55:05 2005 From: darin at meer.net (Darin Fisher) Date: Mon, 18 Apr 2005 18:55:05 -0700 Subject: [whatwg] Comments on XMLHttpRequest specification Message-ID: <426464F9.5080202@meer.net> I've been meaning to comment on the XMLHttpRequest specification, and in particular the specification of setRequestHeader. I'm basing my comments on: http://www.whatwg.org/specs/web-apps/current-work/#scripted-http In the section on setRequestHeader: "UAs must set the Authorization header according to the values passed to the open() <http://www.whatwg.org/specs/web-apps/current-work/#openmethod> method (but must allow calls to setRequestHeader() <http://www.whatwg.org/specs/web-apps/current-work/#setrequestheader> to append values to it)." This specification does not indicate how the Authorization header is to be constructed. Is the implementation to assume a Basic auth challenge? That does not sound very useful to me. Instead, useragents should send requests as usual and respond to challenges by attempting to use the supplied username and password, resorting to prompting the user only if required. Also, UAs may set the Authorization header ahead of time if they know from past experience that the specified URL has a reusable challenge (i.e., a Basic auth challenge). This process is all described in RFC 2617. Other comments: UAs may also set the Accept-Language header based on knowledge of the user's preferred language. Hmm... are you sure you want to specify that Range headers may not be set? What implementation doesn't allow them? Mozilla will only insert its own Range headers when it can determine that the response can be partially satisfied from its cache. If Range headers are already present in the request, then it will simply issue the requested range request and not try to update its cache based on it. (That's a bunch of mozilla implementation details, sorry.) The Keep-Alive header is a HTTP/1.0 defacto standards thingy. It's not specified by HTTP/1.1. Are you sure you want to require it? The statement, "User agents must not set any headers other than the headers set by the author using this method, with the following exceptions:" seems very difficult to support. What about other random headers that the networking subsystem might introduce? What about future versions of HTTP? I can imagine that some extension to the networking system may introduce extra headers on all outgoing HTTP requests to work properly with some third-party gateway or proxy server. In short, it seems a bit wrong to restrict what can be set by the transport layer. Certainly, in a proxy configuration a great variety of hop-by-hop headers might be added to the request (specified as hop-by-hop by listing them as values on the Connection header). Those headers would be stripped by the proxy server before sending them onto the origin server, so the web author would arguably not care about those headers. Basically, I think it's important to not over-specify setRequestHeader to the point where useful things become verboten. But, on the flip side I understand that you want to make it clear how the HTTP layer is to interact with user set request headers. Despite these nit-picks, I'm really happy to see XMLHttpRequest being specified. Keep up the good work! :-) -Darin From mint at franklinmint.fm Mon Apr 18 19:19:22 2005 From: mint at franklinmint.fm (Robert Sayre) Date: Mon, 18 Apr 2005 22:19:22 -0400 Subject: [whatwg] Comments on XMLHttpRequest specification In-Reply-To: <426464F9.5080202@meer.net> References: <426464F9.5080202@meer.net> Message-ID: <42646AAA.9000501@franklinmint.fm> Darin Fisher wrote: > Hmm... are you sure you want to specify that Range headers may not be > set? What implementation doesn't allow them? In particular, consider Microsoft Exchange, which returns the results of a SEARCH query with a ranges-specifier of "rows".[0] Are the setRequestHeader requrirements a reflection of IE/Mozilla/Opera implementations or invention? What would happen if a server allowed Kerberos auth? Would there be any way for a WhatWG implementation to deal with that? Robert Sayre [0] http://msdn.microsoft.com/library/en-us/e2k3/e2k3/_exch2k_sql_range_header.asp From mikko.rantalainen at peda.net Tue Apr 19 02:23:11 2005 From: mikko.rantalainen at peda.net (Mikko Rantalainen) Date: Tue, 19 Apr 2005 12:23:11 +0300 Subject: [whatwg] [web-apps] 2.7.8 The i element In-Reply-To: <c491cf2eb2cced0fa3c71dbb447dfa85@iki.fi> References: <op.spa4tpxpk4suho@briann> <Pine.LNX.4.61.0504161039020.7599@dhalsim.dreamhost.com> <e8e97f9f0504160352234b5e20@mail.gmail.com> <Pine.LNX.4.61.0504161056020.7599@dhalsim.dreamhost.com> <e8e97f9f050416045769ec23cc@mail.gmail.com> <Pine.LNX.4.61.0504161239120.20636@dhalsim.dreamhost.com> <e8e97f9f050416055724f000f1@mail.gmail.com> <Pine.LNX.4.61.0504161301440.20636@dhalsim.dreamhost.com> <164267ec02d940a35ff35bfc6bf782fd@iki.fi> <4263C4D0.3070200@peda.net> <c491cf2eb2cced0fa3c71dbb447dfa85@iki.fi> Message-ID: <4264CDFF.5020101@peda.net> Henri Sivonen wrote: > On Apr 18, 2005, at 17:31, Mikko Rantalainen wrote: >>Henri Sivonen wrote: >>>Some print newspapers and magazines bold the first occurrence (per >>>article) of each personal name. (Is it actually useful? Dunno.) [...] >> >>I think that "bold" isn't really what magazines are looking for in >>your example case. > > Have you ever seen any other emphasis than bold in that case? I've seen increased letter spacing instead of bolding and IIRC once or twice I've seen small caps in similar situation. All the current texts use bolding, though. >>It's more like some kind of emphasize on first occurrence of person's >>name. I'd rather use <em>, somebody else might use <strong>. > > I do not believe the meaning of the bolding is strong emphasis in this > case. Emphasis perhaps but not particularly strong. Yes, I think that emphasis is what they are looking for. The reason I suggested using <strong> is that newspapers do have methods for less emphasis than bold but they use that method anyway. For example, the increased letter spacing would be a nicer method for slight emphasis. >>A web browser can do more. > For example? I meant that a web browser has other means for presenting emphasis than just bolding. It might use colors, for example, though the style author should be cautious not to rely on colors that may cause problems for some users. However, the amount of emphasis the first occurrence of a person's name should get is a slightly different text or background color than the rest of the text, IMHO. In addition, a web browser has interactive UI so it can present emphasis in time axis as well. It could use blinking, for example. I think it could be used for strong emphasis inside a header, if such emphasis were really searched for. That said, I agree that <b> and <i> can be used and shouldn't be avoided only "because they're presentational". But most of the time, <em> describes the semantics much better. (I wish that we didn't have <strong>, just nested <em>s. It would be a little be simpler.) -- Mikko From ian at hixie.ch Tue Apr 19 02:44:06 2005 From: ian at hixie.ch (Ian Hickson) Date: Tue, 19 Apr 2005 09:44:06 +0000 (UTC) Subject: [whatwg] Fear of scope creep In-Reply-To: <6.2.1.2.2.20050418174446.02abcc30@pop.mail.yahoo.com> References: <42637CF5.7020509@olav.dk> <4263AD44.4050107@edwards.name> <6.2.1.2.2.20050418174446.02abcc30@pop.mail.yahoo.com> Message-ID: <Pine.LNX.4.61.0504190941500.20636@dhalsim.dreamhost.com> On Mon, 18 Apr 2005, Brad Neuberg wrote: > > I agree with the comments on scope creep from Dean and Olav. The > discussion on the WHATWG list seems to be mostly about HTML and DOM > semantics these days. Based on the input of various people in the last few days, I'll be turning my attention to more Web Apps-y aspects of the spec now and will get back to the semantics stuff later. (Doesn't make any difference to when the spec is finished, it all needs to be done in due course.) So, if you have proposals for Web Apps-y features, please let's hear them. I was mainly working on semantics stuff since that's what people were posting about. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From ian at hixie.ch Tue Apr 19 03:10:10 2005 From: ian at hixie.ch (Ian Hickson) Date: Tue, 19 Apr 2005 10:10:10 +0000 (UTC) Subject: [whatwg] XPointer In-Reply-To: <41954E56.7050205@students.cs.uu.nl> References: <41954E56.7050205@students.cs.uu.nl> Message-ID: <Pine.LNX.4.61.0504191005440.20636@dhalsim.dreamhost.com> On Sat, 13 Nov 2004, Laurens Holst wrote: > > What about requiring XPointer support in UA's? Would certainly make > linking to a point inside another document a whole lot easier, as > opposed to having to rely on the document author's application of ID's > on every section. Requiring XPointer support is the job of the XPointer spec, not the WHATWG specs. Having said that, personally my experiences with XPointer have led me to conclude that it is an over-complicated way of achieving what is much more easily achived using IDs and fragment identifiers. Occasionally those fail to get the accuracy one would want, but I'm not convinced those cases are worth the massive complexity of XPointer. In any case though, as I said, it's not WHATWG's role to take a position on other specs, especially those that are already part of a standards track and so forth. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From ian at hixie.ch Tue Apr 19 03:24:28 2005 From: ian at hixie.ch (Ian Hickson) Date: Tue, 19 Apr 2005 10:24:28 +0000 (UTC) Subject: [whatwg] [web-apps] Some comments In-Reply-To: <4195685C.1060208@students.cs.uu.nl> References: <4110E801.3000107@annevankesteren.nl> <Pine.LNX.4.61.0408291722510.8458@dhalsim.dreamhost.com> <851c8d31040829124831bf5468@mail.gmail.com> <Pine.LNX.4.61.0411121030570.8631@dhalsim.dreamhost.com> <851c8d31041112032524816d29@mail.gmail.com> <Pine.LNX.4.61.0411121139180.8631@dhalsim.dreamhost.com> <851c8d3104111204035dc6212a@mail.gmail.com> <Pine.LNX.4.61.0411121238170.8631@dhalsim.dreamhost.com> <851c8d3104111205347f937877@mail.gmail.com> <Pine.LNX.4.61.0411121344230.2337@dhalsim.dreamhost.com> <851c8d310411120947617db864@mail.gmail.com> <Pine.LNX.4.61.0411122133250.8631@dhalsim.dreamhost.com> <4195685C.1060208@students.cs.uu.nl> Message-ID: <Pine.LNX.4.61.0504191014380.20636@dhalsim.dreamhost.com> On Sat, 13 Nov 2004, Laurens Holst wrote: > Ian Hickson wrote: > > > > The difference is that relying on JS is legitimate, while relying > > > > on CSS is not. > > > > > > Could you please explain how you arrived at this conclusion? It's > > > not supported by HTML or WCAG specifications. > > > > It's not something you'd expect to see in a specification. It's a > > fundamental concept in the architecture of the Web. Media-dependent > > and platform-specific material has to be optional, since you can't > > expect to support every medium or platform (the platforms might not > > yet exist). On the other hand, content which is key to the application > > -- such as the logic behind a calculator -- clearly can't be optional. > > According to the well-known MVC (Model-View-Controller) design pattern, > by many considered a best practice to aim for as much as possible, > scripts should be separated from content and style. At least it kind of > translates to that (I know this is not 100% correct). The W3C recommends > the same separation, although I forgot where I read that so > unfortunately I cannot provide a link at the moment. Without making any judgements as to the value of the MVC model as opposed to other models, I just want to note that the model I described is not counter to the MVC model. The MVC model, implemented in HTML, would have: Data model: The HTML file Control logic: meda-independent JS files User interface: The CSS files, associated XBL, and media-dependent JS There's no reason the control logic has to be in the data model. Now, given the above separation, and the design of HTML, the entire "user interface" layer can be lifted _and not replaced_, with the user agent using default values to create a basic user interface view on the fly. However, the data model and control logic parts, while separate and capable of being replaced with equivalent implementations independently, cannot be removed altogether. The user agent would not be capable of inventing new data models or control logic, like it could invent new UI. The data model and control logic's markup and JS are the "content", the CSS, XBL, and media-dependent JS files are the "style". "style" is optional, and the user should always be able to override it, while "content" is key to the application. If the user overrides the "content", he may well end up with a broken, or at least logically different, application. (Of course, that's his right, IMHO. But it's not a right that the UA should encourage him to execise, and it is in this way that it differs from the "style" part.) -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From ian at hixie.ch Tue Apr 19 03:34:14 2005 From: ian at hixie.ch (Ian Hickson) Date: Tue, 19 Apr 2005 10:34:14 +0000 (UTC) Subject: [whatwg] overflow:auto in tbody In-Reply-To: <4195E06A.8040206@netcabo.pt> References: <4195E06A.8040206@netcabo.pt> Message-ID: <Pine.LNX.4.61.0504191033230.20636@dhalsim.dreamhost.com> On Sat, 13 Nov 2004, Luis Miguel Reis wrote: > > What I haven't seen so far was the definition of wath happens to table > headers when the scrollbar appears. This leads to extra cells on the > table headers, just to "fill the gap". [...] > > Can the WebForm spec include a section that defines the third behaviour > explicitly (the spacer introducer in the header) ? This would be a CSS issue. I urge you to bring the issue up with the CSS working group: www-style at w3.org -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From jim.ley at gmail.com Tue Apr 19 03:36:07 2005 From: jim.ley at gmail.com (Jim Ley) Date: Tue, 19 Apr 2005 11:36:07 +0100 Subject: [whatwg] XPointer In-Reply-To: <Pine.LNX.4.61.0504191005440.20636@dhalsim.dreamhost.com> References: <41954E56.7050205@students.cs.uu.nl> <Pine.LNX.4.61.0504191005440.20636@dhalsim.dreamhost.com> Message-ID: <851c8d310504190336406fac75@mail.gmail.com> On 4/19/05, Ian Hickson <ian at hixie.ch> wrote: > On Sat, 13 Nov 2004, Laurens Holst wrote: > > > > What about requiring XPointer support in UA's? Would certainly make > > linking to a point inside another document a whole lot easier, as > > opposed to having to rely on the document author's application of ID's > > on every section. > > Requiring XPointer support is the job of the XPointer spec, not the WHATWG > specs. If this is the case, an obvious quick look shows two things that WF2 requires support of outside its scope, so... Please update the WF2 specification to remove its current dependance on user agents implementing HTML 4.01 (or XHTML) Please update the WF2 specification to remove its current dependance on the ECMA 262 specification (the required regular expression) There is nothing wrong with requiring implementation of another specification, indeed it's much better than defining everything yourself. I don't want the WHAT-WG to define a regular expression language for example, it would be ridiculous. Of course you may have legitimate reasons for not requiring XPointer support, but please give them and not write rubbish like above. Jim. From ian at hixie.ch Tue Apr 19 03:59:22 2005 From: ian at hixie.ch (Ian Hickson) Date: Tue, 19 Apr 2005 10:59:22 +0000 (UTC) Subject: [whatwg] Enhanced data tables In-Reply-To: <569C3FA2-4551-11D9-807B-000A957E8988@uk2.net> References: <C5613EDC-30EB-11D9-9F1E-000A957E8988@uk2.net> <0BF1DCCA-3135-11D9-ABBD-000A95AD3972@myrealbox.com> <Pine.LNX.4.61.0412031701020.20176@dhalsim.dreamhost.com> <569C3FA2-4551-11D9-807B-000A957E8988@uk2.net> Message-ID: <Pine.LNX.4.61.0504191055530.20636@dhalsim.dreamhost.com> On Fri, 3 Dec 2004, Afternoon wrote: > > > > The data grid idea that I assumed Ben was referring to isn't quite the > > same as a table, although I'm finding it difficult to justify the > > difference. From a practical standpoint the difference between a > > <table> and a data grid is that the table's data is all in a DOM > > content model, whereas the data grid can be dynamically populated from > > script, one row at a time, so that only the displayed portion need be > > in memory at any one time. > > I don't believe the data necessarily needs to be absent from the > content, although it certainly could be. There are cases where it must. For example, the data grid for a mail application showing a mailbox with 10,000 mails. You simply cannot have all 10,000 DOM rows in memory. It doesn't work. > > Another difference is that tables have a legacy of rendering semantics > > which we can't do much about, whereas for the data grid we want to be > > able to use GUI-specific native controls (or native-looking controls) > > which have features such as clickable column headers, draggable column > > separators, etc. Also, datagrids are limited to text in each cell > > (with one icon per row), rows can be selected, data can be marked as > > editable, etc. > > This is my key point. These features increase the usability of data > grids in native controls. Adding them to browsers would create more > functional applications for less work on the author's part. Right. > > There is a big overlap, but they aren't the same. > > Indeed, a browser that assumed every <table> was data-bearing and should > have controls displayed would be all but useless. Sadly, from a pragmatic point of view this is indeed the case. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From jim.ley at gmail.com Tue Apr 19 04:04:20 2005 From: jim.ley at gmail.com (Jim Ley) Date: Tue, 19 Apr 2005 12:04:20 +0100 Subject: [whatwg] Enhanced data tables In-Reply-To: <Pine.LNX.4.61.0504191055530.20636@dhalsim.dreamhost.com> References: <C5613EDC-30EB-11D9-9F1E-000A957E8988@uk2.net> <0BF1DCCA-3135-11D9-ABBD-000A95AD3972@myrealbox.com> <Pine.LNX.4.61.0412031701020.20176@dhalsim.dreamhost.com> <569C3FA2-4551-11D9-807B-000A957E8988@uk2.net> <Pine.LNX.4.61.0504191055530.20636@dhalsim.dreamhost.com> Message-ID: <851c8d31050419040463cc4fb@mail.gmail.com> On 4/19/05, Ian Hickson <ian at hixie.ch> wrote: > > Indeed, a browser that assumed every <table> was data-bearing and should > > have controls displayed would be all but useless. > > Sadly, from a pragmatic point of view this is indeed the case. Why, there is no WHAT-WG content available today? Assuming it for the WHAT-WG doctypes (or those things that say <!DOCTYPE but are not doctypes in any defined sense at all) seems a perfectly feasible proposition. Why do you say it's not? Cheers, Jim. From ian at hixie.ch Tue Apr 19 04:11:55 2005 From: ian at hixie.ch (Ian Hickson) Date: Tue, 19 Apr 2005 11:11:55 +0000 (UTC) Subject: [whatwg] XPointer In-Reply-To: <851c8d310504190336406fac75@mail.gmail.com> References: <41954E56.7050205@students.cs.uu.nl> <Pine.LNX.4.61.0504191005440.20636@dhalsim.dreamhost.com> <851c8d310504190336406fac75@mail.gmail.com> Message-ID: <Pine.LNX.4.61.0504191059460.7599@dhalsim.dreamhost.com> On Tue, 19 Apr 2005, Jim Ley wrote: > > > > Requiring XPointer support is the job of the XPointer spec, not the > > WHATWG specs. > > If this is the case, an obvious quick look shows two things that WF2 > requires support of outside its scope, so... > > Please update the WF2 specification to remove its current dependance on > user agents implementing HTML 4.01 (or XHTML) > > Please update the WF2 specification to remove its current dependance on > the ECMA 262 specification (the required regular expression) Both of these are prerequisities because the spec extends them or relies on them for its features. That is the difference between that and requiring XPointer support, since we don't rely on the latter for anything. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From jim.ley at gmail.com Tue Apr 19 05:05:52 2005 From: jim.ley at gmail.com (Jim Ley) Date: Tue, 19 Apr 2005 13:05:52 +0100 Subject: [whatwg] XPointer In-Reply-To: <Pine.LNX.4.61.0504191059460.7599@dhalsim.dreamhost.com> References: <41954E56.7050205@students.cs.uu.nl> <Pine.LNX.4.61.0504191005440.20636@dhalsim.dreamhost.com> <851c8d310504190336406fac75@mail.gmail.com> <Pine.LNX.4.61.0504191059460.7599@dhalsim.dreamhost.com> Message-ID: <851c8d31050419050595205d3@mail.gmail.com> On 4/19/05, Ian Hickson <ian at hixie.ch> wrote: > On Tue, 19 Apr 2005, Jim Ley wrote: > > Please update the WF2 specification to remove its current dependance on > > the ECMA 262 specification (the required regular expression) > > Both of these are prerequisities because the spec extends them or relies > on them for its features. > > That is the difference between that and requiring XPointer support, since > we don't rely on the latter for anything. And the proposal was that you include a requirement for XPointer for fragment identification within XML documents. I hardly see what the difference is, you've made a decision to require external dependencies to fulfil a use case, it seems completely reasonable. Please respond to the request and not fudge the issue based on your personal prejudices against technologies. Jim. From ian at hixie.ch Tue Apr 19 05:40:52 2005 From: ian at hixie.ch (Ian Hickson) Date: Tue, 19 Apr 2005 12:40:52 +0000 (UTC) Subject: [whatwg] XPointer In-Reply-To: <851c8d31050419050595205d3@mail.gmail.com> References: <41954E56.7050205@students.cs.uu.nl> <Pine.LNX.4.61.0504191005440.20636@dhalsim.dreamhost.com> <851c8d310504190336406fac75@mail.gmail.com> <Pine.LNX.4.61.0504191059460.7599@dhalsim.dreamhost.com> <851c8d31050419050595205d3@mail.gmail.com> Message-ID: <Pine.LNX.4.61.0504191237520.7599@dhalsim.dreamhost.com> On Tue, 19 Apr 2005, Jim Ley wrote: > > And the proposal was that you include a requirement for XPointer for > fragment identification within XML documents. I hardly see what the > difference is, you've made a decision to require external dependencies > to fulfil a use case, it seems completely reasonable. > > Please respond to the request and not fudge the issue based on your > personal prejudices against technologies. What _are_ you talking about. The request, as I understood it, was to provide exactly what XPointer provides, by requiring XPointer support. That's already possible, by simply using the XPointer spec. This has no relation whatsoever to the other cases you brought up, which are examples of technologies that are _extended_ by WF2. Please stop trolling. It's getting quite tiresome. The rest of us are trying to actually do work here. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From jim.ley at gmail.com Tue Apr 19 06:02:29 2005 From: jim.ley at gmail.com (Jim Ley) Date: Tue, 19 Apr 2005 14:02:29 +0100 Subject: [whatwg] XPointer In-Reply-To: <Pine.LNX.4.61.0504191237520.7599@dhalsim.dreamhost.com> References: <41954E56.7050205@students.cs.uu.nl> <Pine.LNX.4.61.0504191005440.20636@dhalsim.dreamhost.com> <851c8d310504190336406fac75@mail.gmail.com> <Pine.LNX.4.61.0504191059460.7599@dhalsim.dreamhost.com> <851c8d31050419050595205d3@mail.gmail.com> <Pine.LNX.4.61.0504191237520.7599@dhalsim.dreamhost.com> Message-ID: <851c8d31050419060268f32e32@mail.gmail.com> On 4/19/05, Ian Hickson <ian at hixie.ch> wrote: > On Tue, 19 Apr 2005, Jim Ley wrote: > The request, as I understood it, was to provide exactly what XPointer > provides, by requiring XPointer support. That's already possible, by > simply using the XPointer spec. The request was to improve the ability to link into web documents - that's the use case. The proposal to achieve this was by requiring XPointer. Please actually respond to proposals made, and issues raised with sensible responses, and do not just dismiss them with inaccurate comments saying it is not appropriate for the specificaion. Improving linking into a web documents is a perfectly reasonable use case to be addressed here, if it's not, why is it inappropriate, how do we know what use cases are appropriate and what aren't? Jim. From howcome at opera.com Tue Apr 19 06:05:00 2005 From: howcome at opera.com (=?iso-8859-1?Q?H=E5kon?= Wium Lie) Date: Tue, 19 Apr 2005 15:05:00 +0200 Subject: [whatwg] XPointer In-Reply-To: <851c8d31050419050595205d3@mail.gmail.com> References: <41954E56.7050205@students.cs.uu.nl> <Pine.LNX.4.61.0504191005440.20636@dhalsim.dreamhost.com> <851c8d310504190336406fac75@mail.gmail.com> <Pine.LNX.4.61.0504191059460.7599@dhalsim.dreamhost.com> <851c8d31050419050595205d3@mail.gmail.com> Message-ID: <16997.508.231272.647857@howcome.oslo.opera.com> Also sprach Jim Ley: > > > Please update the WF2 specification to remove its current dependance on > > > the ECMA 262 specification (the required regular expression) > > > > Both of these are prerequisities because the spec extends them or relies > > on them for its features. > > > > That is the difference between that and requiring XPointer support, since > > we don't rely on the latter for anything. > > And the proposal was that you include a requirement for XPointer for > fragment identification within XML documents. I hardly see what the > difference is, you've made a decision to require external dependencies > to fulfil a use case, it seems completely reasonable. Personally, I'd like to keep the list of requirements to an absolute minimum. I do not want to include XPointer on that list, even if it starts with an X. > Please respond to the request and not fudge the issue based on your > personal prejudices against technologies. This is an unfair statement to make. Please be considerate. -h&kon H?kon Wium Lie CTO ??e?? howcome at opera.com http://people.opera.com/howcome From jim.ley at gmail.com Tue Apr 19 06:17:39 2005 From: jim.ley at gmail.com (Jim Ley) Date: Tue, 19 Apr 2005 14:17:39 +0100 Subject: [whatwg] XPointer In-Reply-To: <16997.508.231272.647857@howcome.oslo.opera.com> References: <41954E56.7050205@students.cs.uu.nl> <Pine.LNX.4.61.0504191005440.20636@dhalsim.dreamhost.com> <851c8d310504190336406fac75@mail.gmail.com> <Pine.LNX.4.61.0504191059460.7599@dhalsim.dreamhost.com> <851c8d31050419050595205d3@mail.gmail.com> <16997.508.231272.647857@howcome.oslo.opera.com> Message-ID: <851c8d31050419061756266fc7@mail.gmail.com> On 4/19/05, H?kon Wium Lie <howcome at opera.com> wrote: > Also sprach Jim Ley: > Personally, I'd like to keep the list of requirements to an absolute > minimum. I do not want to include XPointer on that list, even if it > starts with an X. I would to, I don't think requiring XPointer is a necessarily a good idea, but the reason given that "it's not appropriate for the spec to require things" is simply misleading and was done from a position of power to stop debate, rather than as a sensible argument of why it's not appropriate. Seen as both Opera and Mozillla already have an XPointer implementation (or Opera will have as soon as they have a conformant SVG viewer) I hardly think the requirement is particular onerous one, and should certainly be discussed on its merits not on simply "it's not appropriate". Jim. From olav at olav.dk Tue Apr 19 13:09:47 2005 From: olav at olav.dk (=?ISO-8859-1?Q?Olav_Junker_Kj=E6r?=) Date: Tue, 19 Apr 2005 22:09:47 +0200 Subject: [whatwg] Editing In-Reply-To: <Pine.LNX.4.61.0504190941500.20636@dhalsim.dreamhost.com> References: <42637CF5.7020509@olav.dk> <4263AD44.4050107@edwards.name> <6.2.1.2.2.20050418174446.02abcc30@pop.mail.yahoo.com> <Pine.LNX.4.61.0504190941500.20636@dhalsim.dreamhost.com> Message-ID: <4265658B.2020503@olav.dk> Ian Hickson wrote: > So, if you have proposals for Web Apps-y features, please let's hear them. > I was mainly working on semantics stuff since that's what people were > posting about. I have been thinking about HTML editing, which I think is a critical feature. IE has it, Mozilla has a limited form (designMode but not contentEditable), and Safari is rumored to get support for it soon. Therefore I think its quite important to get it specified sooner rather than later. The WA1 requirements includes: - Rich text editing: an underlying architecture upon which domain-specific editors can be created, including things like control over the caret position. - A predefined HTML editor based on the rich text editing architecture. - Text selection manipulation APIs. I think the initial goal of the spec should be to describe the level of implementation in IE 6, since this is already used in lots of apps (primarily CMS'es). However, the IE model is not very flexible, the spec should preferably be more open and allowing customization on different levels. I'm not sure about the "predefined HTML editor" requirement. Is this just the editing logic, or is it a complete editor widget with toolbar etc.? Something like <htmlarea> which automatically included toolbars could be cool. Its not critical, though, since it's easy to build a toolbar if the editing logic is available, and most app authors would want to customize the toolbar anyway. Editing is a complex topic, and the question is how many details should be specified. In IE the editing commands are specified, but lots of editing logic is not documented - e.g what exactly happens if you press delete on the boundary between two block level elements. On one hand, web app authors would like consistency across browsers, on the other hand it's would be a large undertaking to specify, and by having it unspecified browsers could compete on having the most user friendly editing. Anyways, editing could be broken up into these topics: - A way to mark an element as editable (the contentEditable attribute). - Caret and selection. When an element is editable it should be possible to place and move a caret or create a selection in the element, using keyboard and mouse. The UI for this should not be specified, since this is platform and media dependent. There should, however, be an API for getting the position and contents of the current selection. Theoretically, all editing logic could be implemented in script on top of a sufficiently advanced caret/selection API. The IE selection API, however, is *not* flexible enough to implement the editing commands which is available in the higher-level editing interface (execCommand et.al). - Typing and deletion. Typing and deletion of characters is simple in most cases (just insert/remove a character in the DOM), but it gets complicated when crossing element boundaries, eg. pressing enter, or pressing delete when positioned before the first character in a element, or pressing delete when a selection crosses element boundaries. I dont think there is a single "right" way to handle these issues. For example, in a editor for structured data, element boundaries might be explicit, so you can place the caret between two adjacent opening tags, while in a simple comment editing box, element boundaries would be transparent. How much or how little should be specified? - Undo. Undo is also a major issue. Every editing action should preferable be undoable, however since this is really a UI feature and wont impact the actual html produced, it might be left unspecifed. The question is how transparently undo can be handled. E.g. should any scripted change to the DOM in a editable element be automatically undoable, and is this even possible? Or should undo be explicitly supported by specifying "save points" in the script? - Editing commands. In IE this is supported through the methods execCommand, queryCommandEnabled, queryCommandValue etc. Again the question is how detailed the actual DOM transformations and queries should be specified. There should be a way to customize existing commands and add new commands. Perhaps the execCommand-style interface should be replaced with something consistent with the WA1 Command interface. regards Olav Junker Kj?r From jerrett at bravenet.com Tue Apr 19 13:35:04 2005 From: jerrett at bravenet.com (Jerrett Taylor) Date: Tue, 19 Apr 2005 13:35:04 -0700 Subject: [whatwg] Editing In-Reply-To: <4265658B.2020503@olav.dk> References: <42637CF5.7020509@olav.dk> <4263AD44.4050107@edwards.name> <6.2.1.2.2.20050418174446.02abcc30@pop.mail.yahoo.com> <Pine.LNX.4.61.0504190941500.20636@dhalsim.dreamhost.com> <4265658B.2020503@olav.dk> Message-ID: <1113942904.9552.5.camel@wintermute> Something else that might be worth taking into consideration is the mangling (formating?) that the editors output as. Having similar behavrious is one thing, but if the markup output is drasticly different it can be a nightmare to try to get the end result displayed the same .. then you get different people editing the same content with different browsers, and changing a lot more than the typo they went to fix.... On Tue, 2005-04-19 at 22:09 +0200, Olav Junker Kj?r wrote: > Ian Hickson wrote: > > So, if you have proposals for Web Apps-y features, please let's hear them. > > I was mainly working on semantics stuff since that's what people were > > posting about. > > I have been thinking about HTML editing, which I think is a critical > feature. IE has it, Mozilla has a limited form (designMode but not > contentEditable), and Safari is rumored to get support for it soon. > Therefore I think its quite important to get it specified sooner rather > than later. > > The WA1 requirements includes: > > - Rich text editing: an underlying architecture upon which > domain-specific editors can be created, including things like control > over the caret position. > - A predefined HTML editor based on the rich text editing architecture. > - Text selection manipulation APIs. > > I think the initial goal of the spec should be to describe the level of > implementation in IE 6, since this is already used in lots of apps > (primarily CMS'es). However, the IE model is not very flexible, the > spec should preferably be more open and allowing customization on > different levels. > > I'm not sure about the "predefined HTML editor" requirement. Is this > just the editing logic, or is it a complete editor widget with toolbar > etc.? Something like <htmlarea> which automatically included toolbars > could be cool. Its not critical, though, since it's easy to build a > toolbar if the editing logic is available, and most app authors would > want to customize the toolbar anyway. > > Editing is a complex topic, and the question is how many details should > be specified. In IE the editing commands are specified, but lots of > editing logic is not documented - e.g what exactly happens if you press > delete on the boundary between two block level elements. On one hand, > web app authors would like consistency across browsers, on the other > hand it's would be a large undertaking to specify, and by having it > unspecified browsers could compete on having the most user friendly editing. > > Anyways, editing could be broken up into these topics: > > - A way to mark an element as editable (the contentEditable attribute). > > - Caret and selection. When an element is editable it should be possible > to place and move a caret or create a selection in the element, using > keyboard and mouse. The UI for this should not be specified, since this > is platform and media dependent. There should, however, be an API for > getting the position and contents of the current selection. > > Theoretically, all editing logic could be implemented in script on top > of a sufficiently advanced caret/selection API. The IE selection API, > however, is *not* flexible enough to implement the editing commands > which is available in the higher-level editing interface (execCommand > et.al). > > - Typing and deletion. Typing and deletion of characters is simple in > most cases (just insert/remove a character in the DOM), but it gets > complicated when crossing element boundaries, eg. pressing enter, or > pressing delete when positioned before the first character in a element, > or pressing delete when a selection crosses element boundaries. > I dont think there is a single "right" way to handle these issues. For > example, in a editor for structured data, element boundaries might be > explicit, so you can place the caret between two adjacent opening tags, > while in a simple comment editing box, element boundaries would be > transparent. How much or how little should be specified? > > - Undo. Undo is also a major issue. Every editing action should > preferable be undoable, however since this is really a UI feature and > wont impact the actual html produced, it might be left unspecifed. The > question is how transparently undo can be handled. E.g. should any > scripted change to the DOM in a editable element be automatically > undoable, and is this even possible? Or should undo be explicitly > supported by specifying "save points" in the script? > > - Editing commands. In IE this is supported through the methods > execCommand, queryCommandEnabled, queryCommandValue etc. Again the > question is how detailed the actual DOM transformations and queries > should be specified. > There should be a way to customize existing commands and add new > commands. Perhaps the execCommand-style interface should be replaced > with something consistent with the WA1 Command interface. > > > > regards > Olav Junker Kj?r From olav at olav.dk Tue Apr 19 15:02:08 2005 From: olav at olav.dk (=?ISO-8859-1?Q?Olav_Junker_Kj=E6r?=) Date: Wed, 20 Apr 2005 00:02:08 +0200 Subject: [whatwg] form charset In-Reply-To: <Pine.LNX.4.61.0504131121020.13833@dhalsim.dreamhost.com> References: <Pine.LNX.4.61.0504112004530.20461@dhalsim.dreamhost.com> <425BA7D4.5080606@annevankesteren.nl> <Pine.LNX.4.61.0504121331270.12923@dhalsim.dreamhost.com> <851c8d31050413010947decf60@mail.gmail.com> <Pine.LNX.4.61.0504130826040.9@dhalsim.dreamhost.com> <425CFB56.4040406@olav.dk> <Pine.LNX.4.61.0504131121020.13833@dhalsim.dreamhost.com> Message-ID: <42657FE0.7090805@olav.dk> I understand that the _charset_ field is needed in url encoded requests, since any encoding can be chosen through accept-charset and there is no other way to know the encoding. However, is it really the right thing to allow arbitrary encodings of GET queries in the first place? The official Right Way to encode URLs is to use Utf8, and it seems strange to allow a different encoding after the question mark. Also, URLs are supposed to be context independent, e.g. you should be able to bookmark a query, send it in a mail and so on. This might be problematic if the correct interpretation of the URL is dependent on the encoding or the accept-charset attribute on the form in the originating page. Of course we cannot just mandate utf8 always, since there is the issue of backwards compatibility. If I'm not mistaken, browsers usually urlencode forms using the same charset as the page. I we want to avoid breakage of server scripts, this should remain the default. However, the only legal value in accept-charset should be utf8 when the method is GET. regards Olav Junker Kj?r From ian at hixie.ch Tue Apr 19 16:41:21 2005 From: ian at hixie.ch (Ian Hickson) Date: Tue, 19 Apr 2005 23:41:21 +0000 (UTC) Subject: [whatwg] Re: form charset In-Reply-To: <42657FE0.7090805@olav.dk> References: <Pine.LNX.4.61.0504112004530.20461@dhalsim.dreamhost.com> <425BA7D4.5080606@annevankesteren.nl> <Pine.LNX.4.61.0504121331270.12923@dhalsim.dreamhost.com> <851c8d31050413010947decf60@mail.gmail.com> <Pine.LNX.4.61.0504130826040.9@dhalsim.dreamhost.com> <425CFB56.4040406@olav.dk> <Pine.LNX.4.61.0504131121020.13833@dhalsim.dreamhost.com> <42657FE0.7090805@olav.dk> Message-ID: <Pine.LNX.4.61.0504192336490.7599@dhalsim.dreamhost.com> On Wed, 20 Apr 2005, Olav Junker Kj?r wrote: > > I understand that the _charset_ field is needed in url encoded requests, > since any encoding can be chosen through accept-charset and there is no > other way to know the encoding. _charset_ is a horrible solution to a problem that (as you point out) should just be solved by UTF-8. However, in practice sites depend on it because IE does it, and so I included it in the spec so that other vendors had something to refer to when dealing with customer demands. > However, the only legal value in accept-charset should be utf8 when the > method is GET. Fair enough. Added. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From peter at opera.com Wed Apr 20 00:01:19 2005 From: peter at opera.com (Peter Karlsson) Date: Wed, 20 Apr 2005 08:01:19 +0100 (CET) Subject: [whatwg] Re: form charset In-Reply-To: <42657FE0.7090805@olav.dk> References: <Pine.LNX.4.61.0504112004530.20461@dhalsim.dreamhost.com> <425BA7D4.5080606@annevankesteren.nl> <Pine.LNX.4.61.0504121331270.12923@dhalsim.dreamhost.com> <851c8d31050413010947decf60@mail.gmail.com> <Pine.LNX.4.61.0504130826040.9@dhalsim.dreamhost.com> <425CFB56.4040406@olav.dk> <Pine.LNX.4.61.0504131121020.13833@dhalsim.dreamhost.com> <42657FE0.7090805@olav.dk> Message-ID: <Pine.LNX.4.62.0504200756080.4030@peter.oslo.opera.com> Olav Junker Kj?r on 2005-04-20: > However, is it really the right thing to allow arbitrary encodings of GET > queries in the first place? The official Right Way to encode URLs is to > use Utf8, and it seems strange to allow a different encoding after the > question mark. Strange as it may seem, that's the way it is currently done. HTML 4.01 says that the character encoding of any forms data should be the document character encoding, unless there is an accept-charset attribute on the form stating otherwise. This means that you do need to handle the part of the URL after the first question mark differently from the the part before it (but then again, you also do need to handle the domain name different from the path component, so this segmentation isn't that unexpected). This is usually not a problem until you find something like this embedded in a search page (where "{chinese}" is the Chinese search text you just entered in the search field): <a href="/search?q={chinese}">Next &gt;</a> And yes, this very much does exist in the wild. > Of course we cannot just mandate utf8 always, since there is the issue of > backwards compatibility. If I'm not mistaken, browsers usually urlencode > forms using the same charset as the page. Correct. > However, the only legal value in accept-charset should be utf8 when the > method is GET. UTF-8 and US-ASCII, probably. -- \\// Peter, software engineer, Opera Software The opinions expressed are my own, and not those of my employer. Please reply only by follow-ups on the mailing list. From ian at hixie.ch Wed Apr 20 02:55:47 2005 From: ian at hixie.ch (Ian Hickson) Date: Wed, 20 Apr 2005 09:55:47 +0000 (UTC) Subject: [whatwg] Re: form charset In-Reply-To: <Pine.LNX.4.62.0504200756080.4030@peter.oslo.opera.com> References: <Pine.LNX.4.61.0504112004530.20461@dhalsim.dreamhost.com> <425BA7D4.5080606@annevankesteren.nl> <Pine.LNX.4.61.0504121331270.12923@dhalsim.dreamhost.com> <851c8d31050413010947decf60@mail.gmail.com> <Pine.LNX.4.61.0504130826040.9@dhalsim.dreamhost.com> <425CFB56.4040406@olav.dk> <Pine.LNX.4.61.0504131121020.13833@dhalsim.dreamhost.com> <42657FE0.7090805@olav.dk> <Pine.LNX.4.62.0504200756080.4030@peter.oslo.opera.com> Message-ID: <Pine.LNX.4.61.0504200954170.24632@dhalsim.dreamhost.com> On Wed, 20 Apr 2005, Peter Karlsson wrote: > > > > However, the only legal value in accept-charset should be utf8 when > > the method is GET. > > UTF-8 and US-ASCII, probably. That's what I'd written, actually. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From fora at annevankesteren.nl Wed Apr 20 06:21:10 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Wed, 20 Apr 2005 15:21:10 +0200 Subject: [whatwg] Editing In-Reply-To: <4265658B.2020503@olav.dk> References: <42637CF5.7020509@olav.dk> <4263AD44.4050107@edwards.name> <6.2.1.2.2.20050418174446.02abcc30@pop.mail.yahoo.com> <Pine.LNX.4.61.0504190941500.20636@dhalsim.dreamhost.com> <4265658B.2020503@olav.dk> Message-ID: <42665746.7020005@annevankesteren.nl> Olav Junker Kj?r wrote: > Anyways, editing could be broken up into these topics: > > - A way to mark an element as editable (the contentEditable attribute). Besides your other points I think it would also be important to specify the content model the element can have and the possibility to restrict this content model. For example, you could allow any element that is allowed as a child of the particular element that has contentEditable set, but there should be a way to exclude certain elements (and perhaps attributes) if you don't want those. <em contentEditable="true" exclude="a em strong span"> -- Anne van Kesteren <http://annevankesteren.nl/> From dean at edwards.name Wed Apr 20 06:51:26 2005 From: dean at edwards.name (Dean Edwards) Date: Wed, 20 Apr 2005 14:51:26 +0100 Subject: [whatwg] Scripting Tweaks In-Reply-To: <42665746.7020005@annevankesteren.nl> References: <42637CF5.7020509@olav.dk> <4263AD44.4050107@edwards.name> <6.2.1.2.2.20050418174446.02abcc30@pop.mail.yahoo.com> <Pine.LNX.4.61.0504190941500.20636@dhalsim.dreamhost.com> <4265658B.2020503@olav.dk> <42665746.7020005@annevankesteren.nl> Message-ID: <42665E5E.6000007@edwards.name> There are some scripting tweaks I'd like to see in WA1. Apologies if these have been covered already: 1) Mozilla's DOMContentLoaded event is very handy. It fires when a node's content has been loaded and parsed (the DOM has been constructed). This is much better than the standard onload event as it doesn't wait for binary content to also load. 2) I'd like to be able to lock/disable an entire document. This is useful when submitting to hidden frames. It helps prevent users from re-submitting data before it has been processed. Ideally, I could disable an entire frameset. Better yet, I can display some kind of visual feedback so that the user knows the page is locked (e.g. hourglass, greyed out content). 3) I find myself using Microsoft's uniqueID property quite often. Although the ID attribute is supposed to provide a unique identifier, it often doesn't. We would probably need a complementary DOM method to retrieve an element by uniqueID (IE uses the "all" property). http://msdn.microsoft.com/workshop/author/dhtml/reference/properties/uniqueid.asp 4) Most DOM scripting revolves around elements. Consequently, I write lots of loops like this: for (var i = 0; i < childNodes.length; i++) { if (childNodes[i].nodeType == Node.NODE_ELEMENT) { // do something with the element } } It would be handy to have the following DOM properties: childElements firstChildElement lastChildElement previousElement nextElement parentElement handy but definitely not required. That's it for the time being. I'll post more as I think of them. -dean From ian at hixie.ch Wed Apr 20 07:13:31 2005 From: ian at hixie.ch (Ian Hickson) Date: Wed, 20 Apr 2005 14:13:31 +0000 (UTC) Subject: [whatwg] Scripting Tweaks In-Reply-To: <42665E5E.6000007@edwards.name> References: <42637CF5.7020509@olav.dk> <4263AD44.4050107@edwards.name> <6.2.1.2.2.20050418174446.02abcc30@pop.mail.yahoo.com> <Pine.LNX.4.61.0504190941500.20636@dhalsim.dreamhost.com> <4265658B.2020503@olav.dk> <42665746.7020005@annevankesteren.nl> <42665E5E.6000007@edwards.name> Message-ID: <Pine.LNX.4.61.0504201410420.5260@dhalsim.dreamhost.com> On Wed, 20 Apr 2005, Dean Edwards wrote: > > 1) Mozilla's DOMContentLoaded event is very handy. It fires when a > node's content has been loaded and parsed (the DOM has been > constructed). This is much better than the standard onload event as it > doesn't wait for binary content to also load. Good idea. > 2) I'd like to be able to lock/disable an entire document. This is > useful when submitting to hidden frames. It helps prevent users from > re-submitting data before it has been processed. Ideally, I could > disable an entire frameset. Better yet, I can display some kind of > visual feedback so that the user knows the page is locked (e.g. > hourglass, greyed out content). Not sure I follow here. I frequently post a form then keep browsing the page while the next one loads, opening links in the background. I don't want pages stopping that. :-) You can disable the submit button (indeed maybe UAs should just do that by default), would that do it? > 3) I find myself using Microsoft's uniqueID property quite often. > Although the ID attribute is supposed to provide a unique identifier, it > often doesn't. We would probably need a complementary DOM method to > retrieve an element by uniqueID (IE uses the "all" property). > > http://msdn.microsoft.com/workshop/author/dhtml/reference/properties/uniqueid.asp Interesting. What's the use case? > 4) Most DOM scripting revolves around elements. Consequently, I write > lots of loops like this: > > for (var i = 0; i < childNodes.length; i++) { > if (childNodes[i].nodeType == Node.NODE_ELEMENT) { > // do something with the element > } > } > > It would be handy to have the following DOM properties: > > childElements > firstChildElement > lastChildElement > previousElement > nextElement > parentElement > > handy but definitely not required. Way ahead of you: http://whatwg.org/specs/web-apps/current-work/#navigating But in general I think NodeIterator would be better. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From olav at olav.dk Wed Apr 20 07:15:38 2005 From: olav at olav.dk (=?UTF-8?B?T2xhdiBKdW5rZXIgS2rDpnI=?=) Date: Wed, 20 Apr 2005 16:15:38 +0200 Subject: [whatwg] Scripting Tweaks In-Reply-To: <42665E5E.6000007@edwards.name> References: <42637CF5.7020509@olav.dk> <4263AD44.4050107@edwards.name> <6.2.1.2.2.20050418174446.02abcc30@pop.mail.yahoo.com> <Pine.LNX.4.61.0504190941500.20636@dhalsim.dreamhost.com> <4265658B.2020503@olav.dk> <42665746.7020005@annevankesteren.nl> <42665E5E.6000007@edwards.name> Message-ID: <4266640A.8010703@olav.dk> Dean Edwards wrote: > It would be handy to have the following DOM properties: > > childElements > firstChildElement > lastChildElement > previousElement > nextElement > parentElement > > handy but definitely not required. I think "childElements" corresponds to IE's "children" collection (except that "children" includes comments). I agree that this is useful. "parentElement" would always be the same as "parentNode" though, won't it? regards Olav Junker Kj?r From dean at edwards.name Wed Apr 20 07:31:53 2005 From: dean at edwards.name (Dean Edwards) Date: Wed, 20 Apr 2005 15:31:53 +0100 Subject: [whatwg] Scripting Tweaks In-Reply-To: <Pine.LNX.4.61.0504201410420.5260@dhalsim.dreamhost.com> References: <42637CF5.7020509@olav.dk> <4263AD44.4050107@edwards.name> <6.2.1.2.2.20050418174446.02abcc30@pop.mail.yahoo.com> <Pine.LNX.4.61.0504190941500.20636@dhalsim.dreamhost.com> <4265658B.2020503@olav.dk> <42665746.7020005@annevankesteren.nl> <42665E5E.6000007@edwards.name> <Pine.LNX.4.61.0504201410420.5260@dhalsim.dreamhost.com> Message-ID: <426667D9.2020502@edwards.name> Ian Hickson wrote: > On Wed, 20 Apr 2005, Dean Edwards wrote: > >>1) Mozilla's DOMContentLoaded event is very handy. > > Good idea. > >>2) I'd like to be able to lock/disable an entire document. This is >>useful when submitting to hidden frames. It helps prevent users from >>re-submitting data before it has been processed. Ideally, I could >>disable an entire frameset. Better yet, I can display some kind of >>visual feedback so that the user knows the page is locked (e.g. >>hourglass, greyed out content). > > > Not sure I follow here. I frequently post a form then keep browsing the > page while the next one loads, opening links in the background. I don't > want pages stopping that. :-) > > You can disable the submit button (indeed maybe UAs should just do that > by default), would that do it? > Not really. There may be more than one submit button. Also, if the submit button has a value associated with it then that value wouldn't be submitted. The use case is a web app that submits data to a hidden iframe. This is common in JSP type backends. The hidden frame then updates the page with new data. Maybe this is just me working on projects that are designed wrong! Anyone else encounter this scenario? > > >>3) I find myself using Microsoft's uniqueID property quite often. >>Although the ID attribute is supposed to provide a unique identifier, it >>often doesn't. We would probably need a complementary DOM method to >>retrieve an element by uniqueID (IE uses the "all" property). >> >>http://msdn.microsoft.com/workshop/author/dhtml/reference/properties/uniqueid.asp > > > Interesting. What's the use case? > I can't think of one off the top of my head but I do find myself using it. It's certainly handy for passing string references around rather than object references. > > >>4) It would be handy to have the following DOM properties: >> >>childElements >>firstChildElement >>lastChildElement >>previousElement >>nextElement >>parentElement > > Way ahead of you: > > http://whatwg.org/specs/web-apps/current-work/#navigating > > But in general I think NodeIterator would be better. > Oops. Haven't looked at the spec in a while. Naughty me. ;-) -dean From dean at edwards.name Wed Apr 20 07:34:46 2005 From: dean at edwards.name (Dean Edwards) Date: Wed, 20 Apr 2005 15:34:46 +0100 Subject: [whatwg] Scripting Tweaks In-Reply-To: <4266640A.8010703@olav.dk> References: <42637CF5.7020509@olav.dk> <4263AD44.4050107@edwards.name> <6.2.1.2.2.20050418174446.02abcc30@pop.mail.yahoo.com> <Pine.LNX.4.61.0504190941500.20636@dhalsim.dreamhost.com> <4265658B.2020503@olav.dk> <42665746.7020005@annevankesteren.nl> <42665E5E.6000007@edwards.name> <4266640A.8010703@olav.dk> Message-ID: <42666886.9030807@edwards.name> Olav Junker Kj?r wrote: > "parentElement" would always be the same as "parentNode" though, won't it? > parentNode could also be a document fragment. From ian at hixie.ch Wed Apr 20 07:33:35 2005 From: ian at hixie.ch (Ian Hickson) Date: Wed, 20 Apr 2005 14:33:35 +0000 (UTC) Subject: [whatwg] Scripting Tweaks In-Reply-To: <426667D9.2020502@edwards.name> References: <42637CF5.7020509@olav.dk> <4263AD44.4050107@edwards.name> <6.2.1.2.2.20050418174446.02abcc30@pop.mail.yahoo.com> <Pine.LNX.4.61.0504190941500.20636@dhalsim.dreamhost.com> <4265658B.2020503@olav.dk> <42665746.7020005@annevankesteren.nl> <42665E5E.6000007@edwards.name> <Pine.LNX.4.61.0504201410420.5260@dhalsim.dreamhost.com> <426667D9.2020502@edwards.name> Message-ID: <Pine.LNX.4.61.0504201430160.5260@dhalsim.dreamhost.com> On Wed, 20 Apr 2005, Dean Edwards wrote: > > The use case is a web app that submits data to a hidden iframe. This is > common in JSP type backends. The hidden frame then updates the page with > new data. Maybe this is just me working on projects that are designed > wrong! Anyone else encounter this scenario? So you'd submit to a hidden <iframe> and then disable the main page? In past projects of this nature I used to create a new <iframe> each time I submitted something, so there'd be no problem submitting multiple times, it would just update the UI multiple times (and if they shouldn't, then I would prevent the submission by disabling the entry points to submitting). More recently I just spawn a new XMLHttpRequest for each submission. > I can't think of one off the top of my head but I do find myself using > it. It's certainly handy for passing string references around rather > than object references. Wouldn't object references by lighter weight? -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From dean at edwards.name Wed Apr 20 07:50:02 2005 From: dean at edwards.name (Dean Edwards) Date: Wed, 20 Apr 2005 15:50:02 +0100 Subject: [whatwg] Scripting Tweaks In-Reply-To: <Pine.LNX.4.61.0504201430160.5260@dhalsim.dreamhost.com> References: <42637CF5.7020509@olav.dk> <4263AD44.4050107@edwards.name> <6.2.1.2.2.20050418174446.02abcc30@pop.mail.yahoo.com> <Pine.LNX.4.61.0504190941500.20636@dhalsim.dreamhost.com> <4265658B.2020503@olav.dk> <42665746.7020005@annevankesteren.nl> <42665E5E.6000007@edwards.name> <Pine.LNX.4.61.0504201410420.5260@dhalsim.dreamhost.com> <426667D9.2020502@edwards.name> <Pine.LNX.4.61.0504201430160.5260@dhalsim.dreamhost.com> Message-ID: <42666C1A.7050203@edwards.name> Ian Hickson wrote: > On Wed, 20 Apr 2005, Dean Edwards wrote: > >>The use case is a web app that submits data to a hidden iframe. This is >>common in JSP type backends. The hidden frame then updates the page with >>new data. Maybe this is just me working on projects that are designed >>wrong! Anyone else encounter this scenario? > > > So you'd submit to a hidden <iframe> and then disable the main page? > Yep. The iframe then unlocks the page when submission is complete. Forgetting about iframes for a minute. This is analogous to disabling the entire application (not the chrome). Most GUI apps have this behavior to some degree. > In past projects of this nature I used to create a new <iframe> each time > I submitted something, so there'd be no problem submitting multiple times, > it would just update the UI multiple times (and if they shouldn't, then I > would prevent the submission by disabling the entry points to submitting). > > More recently I just spawn a new XMLHttpRequest for each submission. > For this particular use case there are now better techniques it's true. > >>I can't think of one off the top of my head but I do find myself using >>it. It's certainly handy for passing string references around rather >>than object references. > > > Wouldn't object references by lighter weight? > Sometimes you want to construct eval code. A string reference is the only way to do this. Here is some sample code from IE7 that disables unsuccessful form controls on submission: [code] elem[i].disabled = true; setTimeout("document.all." + elem[i].uniqueID + ".disabled=false", 1); [/code] To do the same using object references you would have to create a closure. The string version is easier. As I say, I found myself using this surprisingly often. But then I do write some pretty freaky code... ;-) -dean From ian at hixie.ch Wed Apr 20 07:52:57 2005 From: ian at hixie.ch (Ian Hickson) Date: Wed, 20 Apr 2005 14:52:57 +0000 (UTC) Subject: [whatwg] Scripting Tweaks In-Reply-To: <42666C1A.7050203@edwards.name> References: <42637CF5.7020509@olav.dk> <4263AD44.4050107@edwards.name> <6.2.1.2.2.20050418174446.02abcc30@pop.mail.yahoo.com> <Pine.LNX.4.61.0504190941500.20636@dhalsim.dreamhost.com> <4265658B.2020503@olav.dk> <42665746.7020005@annevankesteren.nl> <42665E5E.6000007@edwards.name> <Pine.LNX.4.61.0504201410420.5260@dhalsim.dreamhost.com> <426667D9.2020502@edwards.name> <Pine.LNX.4.61.0504201430160.5260@dhalsim.dreamhost.com> <42666C1A.7050203@edwards.name> Message-ID: <Pine.LNX.4.61.0504201446470.5260@dhalsim.dreamhost.com> On Wed, 20 Apr 2005, Dean Edwards wrote: > > > > So you'd submit to a hidden <iframe> and then disable the main page? > > Yep. The iframe then unlocks the page when submission is complete. > Forgetting about iframes for a minute. This is analogous to disabling > the entire application (not the chrome). Most GUI apps have this > behavior to some degree. Most GUI applications don't have the possibility of the network dying and never re-enabling the page. :-) > > > I can't think of one off the top of my head but I do find myself > > > using it. It's certainly handy for passing string references around > > > rather than object references. > > > > Wouldn't object references by lighter weight? > > Sometimes you want to construct eval code. A string reference is the > only way to do this. Here is some sample code from IE7 that disables > unsuccessful form controls on submission: > > [code] > elem[i].disabled = true; > setTimeout("document.all." + elem[i].uniqueID + ".disabled=false", 1); > [/code] > > To do the same using object references you would have to create a > closure. The string version is easier. As I say, I found myself using > this surprisingly often. But then I do write some pretty freaky code... > ;-) I beg to differ: elem[i].disabled = true; setTimeout(function () { elem[i].disabled = false }, 1); That looks a lot easier than the eval() to me. And shorter. And it will have syntax errors caught at compile time. Is there another use case? :-) -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From dean at edwards.name Wed Apr 20 08:18:09 2005 From: dean at edwards.name (Dean Edwards) Date: Wed, 20 Apr 2005 16:18:09 +0100 Subject: [whatwg] Scripting Tweaks In-Reply-To: <Pine.LNX.4.61.0504201446470.5260@dhalsim.dreamhost.com> References: <42637CF5.7020509@olav.dk> <4263AD44.4050107@edwards.name> <6.2.1.2.2.20050418174446.02abcc30@pop.mail.yahoo.com> <Pine.LNX.4.61.0504190941500.20636@dhalsim.dreamhost.com> <4265658B.2020503@olav.dk> <42665746.7020005@annevankesteren.nl> <42665E5E.6000007@edwards.name> <Pine.LNX.4.61.0504201410420.5260@dhalsim.dreamhost.com> <426667D9.2020502@edwards.name> <Pine.LNX.4.61.0504201430160.5260@dhalsim.dreamhost.com> <42666C1A.7050203@edwards.name> <Pine.LNX.4.61.0504201446470.5260@dhalsim.dreamhost.com> Message-ID: <426672B1.8020304@edwards.name> Ian Hickson wrote: > On Wed, 20 Apr 2005, Dean Edwards wrote: > >>>So you'd submit to a hidden <iframe> and then disable the main page? >> >>Yep. The iframe then unlocks the page when submission is complete. >>Forgetting about iframes for a minute. This is analogous to disabling >>the entire application (not the chrome). Most GUI apps have this >>behavior to some degree. > > > Most GUI applications don't have the possibility of the network dying and > never re-enabling the page. :-) > > True. However, if the network dies the page is not going to reflect that anyway. I've seen many users continuing to click submit because they don't get immediate feedback. A good server application will handle this of course. But this would not be an issue in a GUI which would usually disable its interface when processing. Remember, I'm talking about disabling the page /not/ the browser. > >>>>I can't think of one off the top of my head but I do find myself >>>>using it. It's certainly handy for passing string references around >>>>rather than object references. >>> >>>Wouldn't object references by lighter weight? > > I beg to differ: > > elem[i].disabled = true; > setTimeout(function () { elem[i].disabled = false }, 1); > > That looks a lot easier than the eval() to me. And shorter. And it will > have syntax errors caught at compile time. > Yes, but as I said initially, that creates a closure. This is not always the most efficient solution. Your code won't work anyway because "i" is variable. The closure would need to be more complicated to work properly. > Is there another use case? :-) > OK. You're making me work hard here. :-) If I want to build a list of elements that I've already processed: var processed = {}; for (var i in elements) { if (!processed[elements[i].uniqueID]) { process(elements[i]); processed[elements[i].uniqueID] = true; } } I can't think of another way of doing that. -dean From dolphinling at myrealbox.com Wed Apr 20 08:17:11 2005 From: dolphinling at myrealbox.com (dolphinling) Date: Wed, 20 Apr 2005 11:17:11 -0400 Subject: [whatwg] canvas Message-ID: <42667277.3020202@myrealbox.com> On Anne Van Kesteren's blog (http://annevankesteren.nl/archives/2005/04/canvas-element), Sjoerd Visscher said: > This should never have been an element. The best way to do this is to > only create a canvas interface, just like the audio interface. With > the interface you would have to choose an image in the document to > replace. Canvas has no right being an element because it doesn't do > anything without scripting. Ian Hickson replied: > Sjoerd: You shoulda said something on the WHATWG list. :-) (Unless you > did? I don't remember discussing this and can't find any outstanding > open issues on <canvas>.) > > I don't see why an element should stop being an element just because > it is only useful with scripting. I expect plenty of elements in HTML5 > to be intrinsincly linked to scripting. They're still elements. We > still win by having UAs be able to spot them a mile away. Dimitri Glazkov replied: > I guess the real question is: how canvas is pertinent to the content > of the page? > > As a way to put it in perspective: Is the photo paper part of the > picture? Sjoerd Visscher replied: > Ian: I hadn't thought of this solution before. On performance: if you > put a script element in the head of the document containing var > canvas1 = new Canvas(), UAs can initialize a canvas before actually > encountering the location in the document where the canvas will be > rendered. > > Dimitri: wrong perspective. My perspective: the canvas element is like > issuing a newspaper with blanks for the pictures, and adding an > addendum with drawing instructions. I think I agree with Sjoerd here. Changing canvas to be applied to the img/object elements instead of its own element would be much more semantic, and would also provide better fallback. -- dolphinling <http://dolphinling.net/> From olav at olav.dk Wed Apr 20 08:20:28 2005 From: olav at olav.dk (=?ISO-8859-1?Q?Olav_Junker_Kj=E6r?=) Date: Wed, 20 Apr 2005 17:20:28 +0200 Subject: [whatwg] Canvas element Message-ID: <4266733C.4060901@olav.dk> I don't completely understand the rationale for the canvas-element in WA1. It seems to overlap a lot with the use case for SVG. Of course WF2 competes directly with XForms also, but WF2 has the critical advantage that it is backwards compatible, implementable in script (which allows an IE implementation), and leverages existing knowledge. Canvas does none of this, its completely new and has to be implemented by the browser vendors. This rules out that it will ever be supported by IE, which in turn means that it will not be used on the world wide web in the foreseeable future (and most likely never). I understand that it was invented by Apple for use in platform specific applications. This makes sense, and it also makes sense that other vendors might want to support it in non-www contexts. Mozilla could use it in XUL, for example. However I dont think it belongs in a spec which is intended to cover *web* applications. SVG is at least usable in IE through a plug-in for IE, but realistically, anyone who needs interactive vector graphics on the web is going to use flash. regards Olav Junker Kj?r From dean at w3.org Wed Apr 20 10:21:10 2005 From: dean at w3.org (Dean Jackson) Date: Thu, 21 Apr 2005 03:21:10 +1000 Subject: [whatwg] Canvas element In-Reply-To: <4266733C.4060901@olav.dk> References: <4266733C.4060901@olav.dk> Message-ID: <3bcac13cfc2b82777b6cae74581e244f@w3.org> On 21 Apr 2005, at 01:20, Olav Junker Kj?r wrote: > I don't completely understand the rationale for the canvas-element in > WA1. > > It seems to overlap a lot with the use case for SVG. Of course WF2 > competes directly with XForms also, but WF2 has the critical advantage > that it is backwards compatible, implementable in script (which allows > an IE implementation), and leverages existing knowledge. > > Canvas does none of this, its completely new and has to be implemented > by the browser vendors. This rules out that it will ever be supported > by IE, which in turn means that it will not be used on the world wide > web in the foreseeable future (and most likely never). I understand > that it was invented by Apple for use in platform specific > applications. This makes sense, and it also makes sense that other > vendors might want to support it in non-www contexts. Mozilla could > use it in XUL, for example. Furthermore, it's a completely different model to the one that Web developers are used to. Why would you go against accepted practise? In HTML, you use script to modify the content of the document using the DOM. Your model is the document. If you want to change the view, then you update the model via the DOM and the view is changed accordingly. With <canvas> your document doesn't have the content. You don't update the document, you just call javascript methods. Obviously this has pretty significant accessibility problems. There is no content in <canvas> - it's just script. With document-based graphics solutions, such as SVG and even Flash, there is real content in the document. Accessibility tools can access that content and provide alternate renderings (such as voice). For example, when you draw a circle in SVG you add a <circle> element into the document. That element has attributes, such as position, radius, fill colour, a textual description, etc. All these attributes are part of the DOM and available to accessibility tools. There *really* is a circle in the document. Using canvas there isn't a circle. There isn't anything. All that has happened is that some pixels on the screen have been coloured in. Those pixels don't have any meaning. Imagine if you had to call document.write to generate your *entire* HTML document everytime you wanted to change anything? Actually even that is better than canvas. Imagine if you had to draw all the pixels of all the text, rather than put the text in the document? How do you style a canvas? You can't, because there are no elements. Well, that isn't really true. You could, in your javascript code that is doing all the drawing everytime you want an update, decide to query the CSS OM and work out, in script, whether or not any styling rules should apply. But it isn't as easy as doing: circle { fill: red; } The canvas model is what we call immediate mode drawing in the graphics community. It's popular, but suited to drawing millions and millions of objects where it is impractical to keep the content in memory. There are performance tradeoffs on the graphics side as well. Developers will have to implement code in Javascript to do the graphics management (redrawing everything all the time is usually a bad idea). I won't look forward to coding this again and again. Using a document model solution the implementation doesn't need to redraw everything. It knows what parts need updating. It can cache renderings of elements that have not changed for increased performance, The developer doesn't need to worry. Canvas exists to draw graphics. The workflow of such applications typically involves a designer drawing the artwork in an illustration tool. How would you get that illustration into canvas? It would be pretty difficult, not to mention extremely verbose and unmaintainable, to convert the illustration into Javascript commands. Compare this to a document model such as SVG where you simply export the illustration. You can reuse that illustration in multiple places, in multiple documents. I'm not against the idea completely as it has a certain set of limited areas where it is applicable. But I think there are other solutions which are better suited in the vast majority of cases, have a higher level of semantics, more in line with the accepted Web architecture and developer experience and much more accessible. I've seen the Dashboard widgets that use canvas (there isn't many of them). In every case it would be just as easy to use SVG, and much more suitable (and probably with better performance). My feeling is that canvas provides a worse alternative to a problem that is already solved by SVG (and implemented in Opera and Firefox). Or even Flash.... and believe me it hurts to say that. Dean From bfults at gmail.com Wed Apr 20 10:28:01 2005 From: bfults at gmail.com (Brad Fults) Date: Wed, 20 Apr 2005 10:28:01 -0700 Subject: [whatwg] Editing In-Reply-To: <42665746.7020005@annevankesteren.nl> References: <42637CF5.7020509@olav.dk> <4263AD44.4050107@edwards.name> <6.2.1.2.2.20050418174446.02abcc30@pop.mail.yahoo.com> <Pine.LNX.4.61.0504190941500.20636@dhalsim.dreamhost.com> <4265658B.2020503@olav.dk> <42665746.7020005@annevankesteren.nl> Message-ID: <1959130b0504201028460e8d25@mail.gmail.com> On 4/20/05, Anne van Kesteren <fora at annevankesteren.nl> wrote: > Besides your other points I think it would also be important to specify > the content model the element can have and the possibility to restrict > this content model. > ... > <em contentEditable="true" exclude="a em strong span"> Although such a selection method would be convenient, I think it makes more sense to specify such exceptions on the elements themselves, removing the need to add a new attribute. For instance, <div contenteditable="true"> <a href="#header" contenteditable="false">Header</a> <a href="#footer">Footer</a> </div> In this case the first link would be manipulated as an unbreakable unit inside the div. -- Brad Fults NeatBox From jg307 at cam.ac.uk Wed Apr 20 10:35:29 2005 From: jg307 at cam.ac.uk (James Graham) Date: Wed, 20 Apr 2005 18:35:29 +0100 Subject: [whatwg] Editing In-Reply-To: <1959130b0504201028460e8d25@mail.gmail.com> References: <42637CF5.7020509@olav.dk> <4263AD44.4050107@edwards.name> <6.2.1.2.2.20050418174446.02abcc30@pop.mail.yahoo.com> <Pine.LNX.4.61.0504190941500.20636@dhalsim.dreamhost.com> <4265658B.2020503@olav.dk> <42665746.7020005@annevankesteren.nl> <1959130b0504201028460e8d25@mail.gmail.com> Message-ID: <426692E1.9050504@cam.ac.uk> Brad Fults wrote: >On 4/20/05, Anne van Kesteren <fora at annevankesteren.nl> wrote: > > >>Besides your other points I think it would also be important to specify >>the content model the element can have and the possibility to restrict >>this content model. >>... >> <em contentEditable="true" exclude="a em strong span"> >> >> > >Although such a selection method would be convenient, I think it makes >more sense to specify such exceptions on the elements themselves, >removing the need to add a new attribute. For instance, > ><div contenteditable="true"> > <a href="#header" contenteditable="false">Header</a> > <a href="#footer">Footer</a> ></div> > >In this case the first link would be manipulated as an unbreakable >unit inside the div. > > But this alone doesn't prevent the authot _inserting_ another <a> element into the contenteditable <div>. Anne's solution does allow for such restrictions but doesn't seem to generalise well e.g. it's not clear how to prevent an attribute from being inserted on an editable element or allow for realistic restrictions like "href attributes in <a> elements must point to http:// resources". Given that, I'm not sure what of the restrictions should be managed declaratively and what should be managed via scripting, since, at some level, scripting will almost certainly be needed to ensure acceptable input. -- "But if science you say still sounds too deep, Just do what Beaker does, just shrug and 'Meep!'" -- Dr. Bunsen Honeydew & Beaker of Muppet Labs From jg307 at cam.ac.uk Wed Apr 20 10:40:46 2005 From: jg307 at cam.ac.uk (James Graham) Date: Wed, 20 Apr 2005 18:40:46 +0100 Subject: [whatwg] Canvas element In-Reply-To: <3bcac13cfc2b82777b6cae74581e244f@w3.org> References: <4266733C.4060901@olav.dk> <3bcac13cfc2b82777b6cae74581e244f@w3.org> Message-ID: <4266941E.9040301@cam.ac.uk> Dean Jackson wrote: > I've seen the Dashboard widgets that use canvas (there isn't many of > them). In every case it would be just as easy to use SVG, and much > more suitable (and probably with better performance). My feeling is > that canvas provides a worse alternative to a problem that is already > solved by SVG (and implemented in Opera and Firefox). Or even Flash.... > and believe me it hurts to say that. If <canvas> is so terrible, it presumably won't gain much traction. However it still makes sense to have a specification for it since: a) It is relatively widely implemented (2/4 of the well known UAs) and specifications help ensure that the implementations don't diverge too far b) Through specification, certain incremental improvements to concerns such as accessibility can be made (e.g. <canvas> as specified by the WHATWG allows for fallback content, which the apple implementation does not) -- "But if science you say still sounds too deep, Just do what Beaker does, just shrug and 'Meep!'" -- Dr. Bunsen Honeydew & Beaker of Muppet Labs From bfults at gmail.com Wed Apr 20 10:42:45 2005 From: bfults at gmail.com (Brad Fults) Date: Wed, 20 Apr 2005 10:42:45 -0700 Subject: [whatwg] Scripting Tweaks In-Reply-To: <426672B1.8020304@edwards.name> References: <42637CF5.7020509@olav.dk> <4265658B.2020503@olav.dk> <42665746.7020005@annevankesteren.nl> <42665E5E.6000007@edwards.name> <Pine.LNX.4.61.0504201410420.5260@dhalsim.dreamhost.com> <426667D9.2020502@edwards.name> <Pine.LNX.4.61.0504201430160.5260@dhalsim.dreamhost.com> <42666C1A.7050203@edwards.name> <Pine.LNX.4.61.0504201446470.5260@dhalsim.dreamhost.com> <426672B1.8020304@edwards.name> Message-ID: <1959130b05042010421c119da@mail.gmail.com> On 4/20/05, Dean Edwards <dean at edwards.name> wrote: > Ian Hickson wrote: > > On Wed, 20 Apr 2005, Dean Edwards wrote: > > I beg to differ: > > > > elem[i].disabled = true; > > setTimeout(function () { elem[i].disabled = false }, 1); > > > > That looks a lot easier than the eval() to me. And shorter. And it will > > have syntax errors caught at compile time. > > > > Yes, but as I said initially, that creates a closure. This is not always > the most efficient solution. Your code won't work anyway because "i" is > variable. The closure would need to be more complicated to work properly. Talking about eval() and "efficient" should set off sirens in any JS developer's mind. Using eval() requires re-compilation of the code at runtime and is very rarely ever a real solution. In addition, the proper argument to the setTimeout() function is a function reference, not a string. If you have a basic understanding of closures, they're not all that scary. Observe: function fnMakeEnabled(oEl) { return function() { oEl.disabled = false; }; } ... for (...) { elem[i].disabled = true; setTimeout(fnMakeEnabled(elem[i]), 1); } -- Brad Fults NeatBox From dolphinling at myrealbox.com Wed Apr 20 10:59:20 2005 From: dolphinling at myrealbox.com (dolphinling) Date: Wed, 20 Apr 2005 13:59:20 -0400 Subject: [whatwg] Canvas element In-Reply-To: <4266733C.4060901@olav.dk> References: <4266733C.4060901@olav.dk> Message-ID: <42669878.8060205@myrealbox.com> ? wrote: > I don't completely understand the rationale for the canvas-element in WA1. > > It seems to overlap a lot with the use case for SVG. I'm guessing here, as I haven't really followed or studied it, but I believe it's a way for authors to change bitmap images through script, as opposed to vector images that SVG provides. -- dolphinling <http://dolphinling.net/> From fora at annevankesteren.nl Wed Apr 20 11:03:33 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Wed, 20 Apr 2005 20:03:33 +0200 Subject: [whatwg] Canvas element In-Reply-To: <3bcac13cfc2b82777b6cae74581e244f@w3.org> References: <4266733C.4060901@olav.dk> <3bcac13cfc2b82777b6cae74581e244f@w3.org> Message-ID: <42669975.9050501@annevankesteren.nl> Dean Jackson wrote: > Obviously this has pretty significant accessibility problems. There > is no content in <canvas> - it's just script. With document-based > graphics solutions, such as SVG and even Flash, there is real content > in the document. Accessibility tools can access that content and > provide alternate renderings (such as voice). The content from the CANVAS element is the fallback content. <canvas> ... alternate content ... </canvas> -- Anne van Kesteren <http://annevankesteren.nl/> From fora at annevankesteren.nl Wed Apr 20 11:07:27 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Wed, 20 Apr 2005 20:07:27 +0200 Subject: [whatwg] Editing In-Reply-To: <1959130b0504201028460e8d25@mail.gmail.com> References: <42637CF5.7020509@olav.dk> <4263AD44.4050107@edwards.name> <6.2.1.2.2.20050418174446.02abcc30@pop.mail.yahoo.com> <Pine.LNX.4.61.0504190941500.20636@dhalsim.dreamhost.com> <4265658B.2020503@olav.dk> <42665746.7020005@annevankesteren.nl> <1959130b0504201028460e8d25@mail.gmail.com> Message-ID: <42669A5F.7060705@annevankesteren.nl> Brad Fults wrote: >>Besides your other points I think it would also be important to specify >>the content model the element can have and the possibility to restrict >>this content model. >>... >> <em contentEditable="true" exclude="a em strong span"> > > Although such a selection method would be convenient, I think it makes > more sense to specify such exceptions on the elements themselves, > removing the need to add a new attribute. For instance, > > <div contenteditable="true"> > <a href="#header" contenteditable="false">Header</a> > <a href="#footer">Footer</a> > </div> > > In this case the first link would be manipulated as an unbreakable > unit inside the div. This inheritance model is already in the specification. I was proposing something different but I haven't really given the syntax a thought as James Graham points out. Excluding some elements may be nice, but you probably want to restrict attributes or even element/attribute values as well. -- Anne van Kesteren <http://annevankesteren.nl/> From bkn3 at columbia.edu Wed Apr 20 11:10:48 2005 From: bkn3 at columbia.edu (Brad Neuberg) Date: Wed, 20 Apr 2005 11:10:48 -0700 Subject: [whatwg] Desired Features for Web Applications Message-ID: <6.2.1.2.2.20050420105518.02a402d0@pop.mail.yahoo.com> As someone who works with web application development, here's some of the things that would make my life easier. Also, including certain methods as part of the standard that I usually have to roll on my own would make things more standardized: * Have a document.getByPath() method that takes an XPath expression to traverse and find any nodes in the document; this would be _extremely_ powerful and would erase a huge amount of boilerplate code needed for walking over the DOM using the standard DOM traversal methods. This would have to be a fast implementation though or else it couldn't be depended on. * Have methods for traversing the DOM based on the 'class' attribute. If you have XPath type traversal this is somewhat less needed, but I find myself rolling methods in most projects to work with my document by class name. Example methods I have rolled for myself along these lines: * xGetElementsByClassName(rootElement, className, tagName) - Gets all the elements rooted at rootElement with the given className, optionally restricted by tagName * xGetSingleElementByClassName(rootElement, className, tagName) - Same as the above, but just returns one element * xGetParentElementByClassName(rootElement, className, tagName) - Navigates upwards until we hit a parent element with the given class name and optional tag name. * Formalization of innerHTML as being a standard part of creating web applications * Right now most people directly access an elements className property, without realizing that they might be clobbering multi-classed elements (i.e. something with class="class1 class2"). I usually have to create wrapper methods to ensure that this doesn't happen, such as xAddClass(target, className), xRemoveClass(target, className), and xHasClass(target, className), but it would be much nicer if the className property itself had better support for multi-classed elements. Some example possibilities of what this might look like: * someElement.className.add("someNewClass") * someElement.className.remove("SomeOldClass") * someElement.className.hasClass("someClass") * The lack of min-width and max-width in IE's CSS makes things difficult. Brad Brad Neuberg, bkn3 at columbia.edu Senior Software Engineer, Rojo Networks Weblog: http://www.codinginparadise.org ===================================================================== Check out Rojo, an RSS and Atom news aggregator that I work on. Visit http://rojo.com for more info. Feel free to ask me for an invite! Rojo is Hiring! If you're interested in RSS, Weblogs, Social Networking, Java, Open Source, etc... then come work with us at Rojo. If you recommend someone and we hire them you'll get a free iPod! See http://www.rojonetworks.com/JobsAtRojo.html. From dean at edwards.name Wed Apr 20 11:27:18 2005 From: dean at edwards.name (Dean Edwards) Date: Wed, 20 Apr 2005 19:27:18 +0100 Subject: [whatwg] Scripting Tweaks In-Reply-To: <1959130b05042010421c119da@mail.gmail.com> References: <42637CF5.7020509@olav.dk> <4265658B.2020503@olav.dk> <42665746.7020005@annevankesteren.nl> <42665E5E.6000007@edwards.name> <Pine.LNX.4.61.0504201410420.5260@dhalsim.dreamhost.com> <426667D9.2020502@edwards.name> <Pine.LNX.4.61.0504201430160.5260@dhalsim.dreamhost.com> <42666C1A.7050203@edwards.name> <Pine.LNX.4.61.0504201446470.5260@dhalsim.dreamhost.com> <426672B1.8020304@edwards.name> <1959130b05042010421c119da@mail.gmail.com> Message-ID: <42669F06.7070600@edwards.name> Brad Fults wrote: > On 4/20/05, Dean Edwards <dean at edwards.name> wrote: >>Yes, but as I said initially, that creates a closure. This is not always >>the most efficient solution. Your code won't work anyway because "i" is >>variable. The closure would need to be more complicated to work properly. > > Talking about eval() and "efficient" should set off sirens in any JS > developer's mind. Using eval() requires re-compilation of the code at > runtime and is very rarely ever a real solution. > > In addition, the proper argument to the setTimeout() function is a > function reference, not a string. If you have a basic understanding of > closures, they're not all that scary. Observe: > > function fnMakeEnabled(oEl) > { > return function() { oEl.disabled = false; }; > } > ... > for (...) > { > elem[i].disabled = true; > setTimeout(fnMakeEnabled(elem[i]), 1); > } > The issue is not about closures it is about the ability to represent an element as a unique string. This can be useful for all sorts of reasons. The example "non-scary" closure you supplied is too difficult for many programmers. Even Ian got it wrong at first and he is far from being a beginner. But, as I say, this is not the real issue. Speaking of setTimeout, where is this defined? -dean From dean at edwards.name Wed Apr 20 11:30:17 2005 From: dean at edwards.name (Dean Edwards) Date: Wed, 20 Apr 2005 19:30:17 +0100 Subject: [whatwg] Desired Features for Web Applications In-Reply-To: <6.2.1.2.2.20050420105518.02a402d0@pop.mail.yahoo.com> References: <6.2.1.2.2.20050420105518.02a402d0@pop.mail.yahoo.com> Message-ID: <42669FB9.90609@edwards.name> Brad Neuberg wrote: > * Right now most people directly access an elements className property, > without realizing that they might be clobbering multi-classed elements > (i.e. something with class="class1 class2"). I usually have to create > wrapper methods to ensure that this doesn't happen, such as > xAddClass(target, className), xRemoveClass(target, className), and > xHasClass(target, className), but it would be much nicer if the > className property itself had better support for multi-classed > elements. Some example possibilities of what this might look like: > * someElement.className.add("someNewClass") > * someElement.className.remove("SomeOldClass") > * someElement.className.hasClass("someClass") > +1 From dimitri.glazkov at gmail.com Wed Apr 20 11:28:33 2005 From: dimitri.glazkov at gmail.com (Dimitri Glazkov) Date: Wed, 20 Apr 2005 13:28:33 -0500 Subject: [whatwg] Canvas element In-Reply-To: <42669975.9050501@annevankesteren.nl> References: <4266733C.4060901@olav.dk> <3bcac13cfc2b82777b6cae74581e244f@w3.org> <42669975.9050501@annevankesteren.nl> Message-ID: <fb15ac21050420112840ff9300@mail.gmail.com> I guess I am still struggling to grasp the concepts, so please be patient with me. Isn't the main functional value behind the canvas element is the rendering context? If so, what is the significance of the canvas element itself? Take away the behavior, and you've got yourself another SPACER tag. Why not allow creating rendering context on all block-level elements? Why does the content have to contain information which block level element is meant for drawing? Also, I am having hard time the "fallback content" phrase. IMHO, it's not the fallback content, it's _the content_ of the element. The rendering context is presentation (hopefully, visual interpretation of the content), and so are all functional behaviors that come with it. However, if the rendering context is available on all block-level elements, you can do some really neat stuff, such as using the content of a block-level element as arguments for rendering. For instance, the markup of an ordered list of links and images is transformed into an image gallery. :DG< On 4/20/05, Anne van Kesteren <fora at annevankesteren.nl> wrote: > Dean Jackson wrote: > > Obviously this has pretty significant accessibility problems. There > > is no content in <canvas> - it's just script. With document-based > > graphics solutions, such as SVG and even Flash, there is real content > > in the document. Accessibility tools can access that content and > > provide alternate renderings (such as voice). > > The content from the CANVAS element is the fallback content. > > <canvas> > ... alternate content ... > </canvas> > > -- > Anne van Kesteren > <http://annevankesteren.nl/> > > From fora at annevankesteren.nl Wed Apr 20 11:25:42 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Wed, 20 Apr 2005 20:25:42 +0200 Subject: [whatwg] Desired Features for Web Applications In-Reply-To: <6.2.1.2.2.20050420105518.02a402d0@pop.mail.yahoo.com> References: <6.2.1.2.2.20050420105518.02a402d0@pop.mail.yahoo.com> Message-ID: <42669EA6.2090605@annevankesteren.nl> Brad Neuberg wrote: > * Have a document.getByPath() method that takes an XPath expression to > traverse and find any nodes in the document; this would be _extremely_ > powerful and would erase a huge amount of boilerplate code needed for > walking over the DOM using the standard DOM traversal methods. This > would have to be a fast implementation though or else it couldn't be > depended on. <http://www.w3.org/TR/DOM-Level-3-XPath/> > * Have methods for traversing the DOM based on the 'class' attribute. > If you have XPath type traversal this is somewhat less needed, but I > find myself rolling methods in most projects to work with my document by > class name. Example methods I have rolled for myself along these lines: > * xGetElementsByClassName(rootElement, className, tagName) - > Gets all the elements rooted at rootElement with the given className, > optionally restricted by tagName > * xGetSingleElementByClassName(rootElement, className, tagName) > - Same as the above, but just returns one element > * xGetParentElementByClassName(rootElement, className, tagName) > - Navigates upwards until we hit a parent element with the given class > name and optional tag name. <http://whatwg.org/specs/web-apps/current-work/#getelementsbyclass0> > * Formalization of innerHTML as being a standard part of creating web > applications <http://whatwg.org/specs/web-apps/current-work/#serialization> > * Right now most people directly access an elements className property, > without realizing that they might be clobbering multi-classed elements > (i.e. something with class="class1 class2"). I usually have to create > wrapper methods to ensure that this doesn't happen, such as > xAddClass(target, className), xRemoveClass(target, className), and > xHasClass(target, className), but it would be much nicer if the > className property itself had better support for multi-classed > elements. Some example possibilities of what this might look like: > * someElement.className.add("someNewClass") > * someElement.className.remove("SomeOldClass") > * someElement.className.hasClass("someClass") This would be useful. > * The lack of min-width and max-width in IE's CSS makes things difficult. There are hacks for this. -- Anne van Kesteren <http://annevankesteren.nl/> From fora at annevankesteren.nl Wed Apr 20 11:35:50 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Wed, 20 Apr 2005 20:35:50 +0200 Subject: [whatwg] Canvas element In-Reply-To: <fb15ac21050420112840ff9300@mail.gmail.com> References: <4266733C.4060901@olav.dk> <3bcac13cfc2b82777b6cae74581e244f@w3.org> <42669975.9050501@annevankesteren.nl> <fb15ac21050420112840ff9300@mail.gmail.com> Message-ID: <4266A106.20906@annevankesteren.nl> Dimitri Glazkov wrote: > Isn't the main functional value behind the canvas element is the > rendering context? If so, what is the significance of the canvas > element itself? Take away the behavior, and you've got yourself > another SPACER tag. Not really. Since you know what the element is for it has some additional semantics. Which can be used I guess one way or another. > Why not allow creating rendering context on all block-level elements? > Why does the content have to contain information which block level > element is meant for drawing? I'm not sure what you mean here. > Also, I am having hard time the "fallback content" phrase. IMHO, it's > not the fallback content, it's _the content_ of the element. The > rendering context is presentation (hopefully, visual interpretation of > the content), and so are all functional behaviors that come with it. No, not really. If you take a simple OBJECT element example: <object data="logo"> Company's logo </object> ... then the image itself has more semantics than the fallback content. It is much more descriptive and shows what is actually meant. The fallback content can probably never match that, nor should it. Same goes up for the image you draw for the CANVAS element imho. > However, if the rendering context is available on all block-level > elements, you can do some really neat stuff, such as using the content > of a block-level element as arguments for rendering. For instance, the > markup of an ordered list of links and images is transformed into an > image gallery. Such things are already possible using CSS and XBL. This would be abuse of the CANVAS element as noted in the beginning of the section. -- Anne van Kesteren <http://annevankesteren.nl/> From jim.ley at gmail.com Wed Apr 20 13:11:24 2005 From: jim.ley at gmail.com (Jim Ley) Date: Wed, 20 Apr 2005 21:11:24 +0100 Subject: [whatwg] Scripting Tweaks In-Reply-To: <42669F06.7070600@edwards.name> References: <42637CF5.7020509@olav.dk> <42665E5E.6000007@edwards.name> <Pine.LNX.4.61.0504201410420.5260@dhalsim.dreamhost.com> <426667D9.2020502@edwards.name> <Pine.LNX.4.61.0504201430160.5260@dhalsim.dreamhost.com> <42666C1A.7050203@edwards.name> <Pine.LNX.4.61.0504201446470.5260@dhalsim.dreamhost.com> <426672B1.8020304@edwards.name> <1959130b05042010421c119da@mail.gmail.com> <42669F06.7070600@edwards.name> Message-ID: <851c8d31050420131136409a83@mail.gmail.com> On 4/20/05, Dean Edwards <dean at edwards.name> wrote: > Speaking of setTimeout, where is this defined? Nowhere, and in fact the string method is the commoner implementation, there are a number of implementations which do not support a function reference. uniqueID is very useful, I to use it all the time for patterns such as your hashtable of objects. I certainly support the idea, and with the strong issues that closures of DOM objects have in IE, it's even more valuable. It's certainly a pattern I would rather encourage in the dabblers who are always on the team. Jim. From dimitri.glazkov at gmail.com Wed Apr 20 13:30:46 2005 From: dimitri.glazkov at gmail.com (Dimitri Glazkov) Date: Wed, 20 Apr 2005 15:30:46 -0500 Subject: [whatwg] Canvas element In-Reply-To: <4266A106.20906@annevankesteren.nl> References: <4266733C.4060901@olav.dk> <3bcac13cfc2b82777b6cae74581e244f@w3.org> <42669975.9050501@annevankesteren.nl> <fb15ac21050420112840ff9300@mail.gmail.com> <4266A106.20906@annevankesteren.nl> Message-ID: <fb15ac21050420133027fd1c60@mail.gmail.com> On 4/20/05, Anne van Kesteren <fora at annevankesteren.nl> wrote: > > Isn't the main functional value behind the canvas element is the > > rendering context? If so, what is the significance of the canvas > > element itself? Take away the behavior, and you've got yourself > > another SPACER tag. > > Not really. Since you know what the element is for it has some > additional semantics. Which can be used I guess one way or another. Ok, let me rephrase that. What is the *content* significance of the the canvas element? Semantically, it's a placeholder for some multimedia behavior, the nature of which is not know from the perspective of content. That's just begging for all kinds of abuse. Besides, in terms of progressive enhancement, you are actually defining an element in the markup that is _meant_ to regress gracelessly. Canvas element, IMHO, is part of the declarative application development school of thought, and this school of thought does not mix very well with the structural markup school of thought. As an element, canvas belongs more with the XAML people than with the XHTML people. Or maybe WA1 is indeed about declarative application development? You guys tell me. I certainly don't see how you could mix the two (and you would have to, if you strive to become HTML5) and still get away with something that is not a frankenstein. Instead of this: <canvas id="weightedTags">A neat, animated graph representation of Technorati tags, which you poor slob can't see because your agent doesn't support it.</canvas> I would rather see this: <ol id="weightedTags"> <li class="weight-3">Stuff</li> <!-- ... more tags --> </ol> with this as bound behavior: var weightedTags = document.getElementById("weightedTags"); var context = weightedTags.getContext("CanvasRenderingContext2D"); // use content of the weightedTags to draw with context // ... Does this make any sense? :DG< From sjoerd at w3future.com Wed Apr 20 14:45:39 2005 From: sjoerd at w3future.com (Sjoerd Visscher) Date: Wed, 20 Apr 2005 23:45:39 +0200 Subject: [whatwg] Canvas element In-Reply-To: <fb15ac21050420133027fd1c60@mail.gmail.com> References: <4266733C.4060901@olav.dk> <3bcac13cfc2b82777b6cae74581e244f@w3.org> <42669975.9050501@annevankesteren.nl> <fb15ac21050420112840ff9300@mail.gmail.com> <4266A106.20906@annevankesteren.nl> <fb15ac21050420133027fd1c60@mail.gmail.com> Message-ID: <4266CD83.2020308@w3future.com> Dimitri Glazkov wrote: > I would rather see this: > > <ol id="weightedTags"> > <li class="weight-3">Stuff</li> > <!-- ... more tags --> > </ol> > > with this as bound behavior: > > var weightedTags = document.getElementById("weightedTags"); > var context = weightedTags.getContext("CanvasRenderingContext2D"); > // use content of the weightedTags to draw with context > // ... > > Does this make any sense? I think it does, I really like it. It is comparable with allowing the src attribute on any element, as XHTML2 is doing. -- Sjoerd Visscher http://w3future.com/weblog/ From dolphinling at myrealbox.com Wed Apr 20 15:08:22 2005 From: dolphinling at myrealbox.com (dolphinling) Date: Wed, 20 Apr 2005 18:08:22 -0400 Subject: [whatwg] Canvas element In-Reply-To: <fb15ac21050420133027fd1c60@mail.gmail.com> References: <4266733C.4060901@olav.dk> <3bcac13cfc2b82777b6cae74581e244f@w3.org> <42669975.9050501@annevankesteren.nl> <fb15ac21050420112840ff9300@mail.gmail.com> <4266A106.20906@annevankesteren.nl> <fb15ac21050420133027fd1c60@mail.gmail.com> Message-ID: <4266D2D6.2060802@myrealbox.com> +1 I would ask what semantics canvas has. ol means the content is an ordered list, em means the content is emphasized, span and div mean the content is different, but in a way not associated with any element. Even img and object mean the content is external, (usually) with non-html semantics. At best I can see canvas being equivelant to img and object, but without the use case of the content being external. But even so, they come with default semantics (the image or whatever else is being represented in them) whereas canvas doesn't, it has to be scripted in. So am I missing something here? What semantics does canvas have? -- dolphinling <http://dolphinling.net/> From dean at edwards.name Wed Apr 20 15:18:18 2005 From: dean at edwards.name (Dean Edwards) Date: Wed, 20 Apr 2005 23:18:18 +0100 Subject: [whatwg] Canvas element In-Reply-To: <4266D2D6.2060802@myrealbox.com> References: <4266733C.4060901@olav.dk> <3bcac13cfc2b82777b6cae74581e244f@w3.org> <42669975.9050501@annevankesteren.nl> <fb15ac21050420112840ff9300@mail.gmail.com> <4266A106.20906@annevankesteren.nl> <fb15ac21050420133027fd1c60@mail.gmail.com> <4266D2D6.2060802@myrealbox.com> Message-ID: <4266D52A.1030301@edwards.name> dolphinling wrote: > +1 > > > I would ask what semantics canvas has. ol means the content is an > ordered list, em means the content is emphasized, span and div mean the > content is different, but in a way not associated with any element. Even > img and object mean the content is external, (usually) with non-html > semantics. > > At best I can see canvas being equivelant to img and object, but without > the use case of the content being external. But even so, they come with > default semantics (the image or whatever else is being represented in > them) whereas canvas doesn't, it has to be scripted in. > > So am I missing something here? What semantics does canvas have? > I see the CANVAS element as analogous to the IMG element. It has similar content (it's ultimately an image) but that content is defined differently (using script). I can certainly see the advantage of having a programmable image. One use may be for generating avatars. It would be easier to combine skin tone, hair colour, eyes etc programmatically than have thousands of images sitting on the server. I agree that it may be open to abuse but I've never been convinced that this is a good reason to disallow anything. -dean From dimitri.glazkov at gmail.com Wed Apr 20 15:40:11 2005 From: dimitri.glazkov at gmail.com (Dimitri Glazkov) Date: Wed, 20 Apr 2005 17:40:11 -0500 Subject: [whatwg] Canvas element In-Reply-To: <4266D52A.1030301@edwards.name> References: <4266733C.4060901@olav.dk> <3bcac13cfc2b82777b6cae74581e244f@w3.org> <42669975.9050501@annevankesteren.nl> <fb15ac21050420112840ff9300@mail.gmail.com> <4266A106.20906@annevankesteren.nl> <fb15ac21050420133027fd1c60@mail.gmail.com> <4266D2D6.2060802@myrealbox.com> <4266D52A.1030301@edwards.name> Message-ID: <fb15ac2105042015401d468dc1@mail.gmail.com> Oh yeah, I agree on programmable image being quite useful. The question is why only limit the capability to a special CANVAS element (whose semantics are questionable), when any block-level element could have this ability. The thing is, programmable image is with almost 100% certainty will be a presentational graphic. And presentational graphic has no place in markup. Therefore, if you utilize rendering context to create a dynamic image, you won't necessarily be doing it inside of an IMG (or CANVAS) element -- the dynamic image will be a presentational graphic for the content, expressed in markup. Take your example with eyes and hair, for instance. This is the markup that I would expect seeing instead of a canvas element (I am improvising here): <span class="photorobot"> <span class="hairColor">green</span> <span class="eyeColor">yellow</span> <span class="mouthType">puckered</span> </span> Then the behavior would be attached to span.photorobot to create a canvas and draw a mug shot. Oddly enough, I just wrote about this whole graphics and markup thing this weekend: http://glazkov.com/blog/archive/2005/04/18/430.aspx :DG< On 4/20/05, Dean Edwards <dean at edwards.name> wrote: > dolphinling wrote: > > +1 > > > > > > I would ask what semantics canvas has. ol means the content is an > > ordered list, em means the content is emphasized, span and div mean the > > content is different, but in a way not associated with any element. Even > > img and object mean the content is external, (usually) with non-html > > semantics. > > > > At best I can see canvas being equivelant to img and object, but without > > the use case of the content being external. But even so, they come with > > default semantics (the image or whatever else is being represented in > > them) whereas canvas doesn't, it has to be scripted in. > > > > So am I missing something here? What semantics does canvas have? > > > > I see the CANVAS element as analogous to the IMG element. It has similar > content (it's ultimately an image) but that content is defined > differently (using script). > > I can certainly see the advantage of having a programmable image. One > use may be for generating avatars. It would be easier to combine skin > tone, hair colour, eyes etc programmatically than have thousands of > images sitting on the server. > > I agree that it may be open to abuse but I've never been convinced that > this is a good reason to disallow anything. > > -dean > > From ian at hixie.ch Wed Apr 20 16:05:02 2005 From: ian at hixie.ch (Ian Hickson) Date: Wed, 20 Apr 2005 23:05:02 +0000 (UTC) Subject: [whatwg] Scripting Tweaks In-Reply-To: <42669F06.7070600@edwards.name> References: <42637CF5.7020509@olav.dk> <4265658B.2020503@olav.dk> <42665746.7020005@annevankesteren.nl> <42665E5E.6000007@edwards.name> <Pine.LNX.4.61.0504201410420.5260@dhalsim.dreamhost.com> <426667D9.2020502@edwards.name> <Pine.LNX.4.61.0504201430160.5260@dhalsim.dreamhost.com> <42666C1A.7050203@edwards.name> <Pine.LNX.4.61.0504201446470.5260@dhalsim.dreamhost.com> <426672B1.8020304@edwards.name> <1959130b05042010421c119da@mail.gmail.com> <42669F06.7070600@edwards.name> Message-ID: <Pine.LNX.4.61.0504202303320.22264@dhalsim.dreamhost.com> [I'll get back to the rest of the thread when I actually work on the relevant parts of the spec (I agree with the proposals in general, so there isn't much for me to add), but just jumping in here:] On Wed, 20 Apr 2005, Dean Edwards wrote: > > Speaking of setTimeout, where is this defined? http://whatwg.org/specs/web-apps/current-work/#settimeout -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From bkn3 at columbia.edu Wed Apr 20 16:08:03 2005 From: bkn3 at columbia.edu (Brad Neuberg) Date: Wed, 20 Apr 2005 16:08:03 -0700 Subject: [whatwg] Scripting Tweaks In-Reply-To: <851c8d31050420131136409a83@mail.gmail.com> References: <42637CF5.7020509@olav.dk> <42665E5E.6000007@edwards.name> <Pine.LNX.4.61.0504201410420.5260@dhalsim.dreamhost.com> <426667D9.2020502@edwards.name> <Pine.LNX.4.61.0504201430160.5260@dhalsim.dreamhost.com> <42666C1A.7050203@edwards.name> <Pine.LNX.4.61.0504201446470.5260@dhalsim.dreamhost.com> <426672B1.8020304@edwards.name> <1959130b05042010421c119da@mail.gmail.com> <42669F06.7070600@edwards.name> <851c8d31050420131136409a83@mail.gmail.com> Message-ID: <6.2.1.2.2.20050420160735.02ae2dd8@pop.mail.yahoo.com> At 01:11 PM 4/20/2005, you wrote: >On 4/20/05, Dean Edwards <dean at edwards.name> wrote: > > Speaking of setTimeout, where is this defined? > >Nowhere, and in fact the string method is the commoner implementation, >there are a number of implementations which do not support a function >reference. > >uniqueID is very useful, I to use it all the time for patterns such as >your hashtable of objects. I certainly support the idea, and with >the strong issues that closures of DOM objects have in IE, interesting, tell me more; I didn't know IE has issues with certain kinds of closures. >it's even >more valuable. It's certainly a pattern I would rather encourage in >the dabblers who are always on the team. > >Jim. Brad Neuberg, bkn3 at columbia.edu Senior Software Engineer, Rojo Networks Weblog: http://www.codinginparadise.org ===================================================================== Check out Rojo, an RSS and Atom news aggregator that I work on. Visit http://rojo.com for more info. Feel free to ask me for an invite! Rojo is Hiring! If you're interested in RSS, Weblogs, Social Networking, Java, Open Source, etc... then come work with us at Rojo. If you recommend someone and we hire them you'll get a free iPod! See http://www.rojonetworks.com/JobsAtRojo.html. From ian at hixie.ch Wed Apr 20 16:16:55 2005 From: ian at hixie.ch (Ian Hickson) Date: Wed, 20 Apr 2005 23:16:55 +0000 (UTC) Subject: [whatwg] Desired Features for Web Applications In-Reply-To: <6.2.1.2.2.20050420105518.02a402d0@pop.mail.yahoo.com> References: <6.2.1.2.2.20050420105518.02a402d0@pop.mail.yahoo.com> Message-ID: <Pine.LNX.4.61.0504202309290.22264@dhalsim.dreamhost.com> On Wed, 20 Apr 2005, Brad Neuberg wrote: > > As someone who works with web application development, here's some of > the things that would make my life easier. Also, including certain > methods as part of the standard that I usually have to roll on my own > would make things more standardized: Thanks for your input! > * Have a document.getByPath() method that takes an XPath expression to > traverse and find any nodes in the document; this would be _extremely_ > powerful and would erase a huge amount of boilerplate code needed for > walking over the DOM using the standard DOM traversal methods. This > would have to be a fast implementation though or else it couldn't be > depended on. http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html#XPathEvaluator I also hope to have a getElementsBySelector() method somewhere (either in DOM3 Style or in Web Apps, whichever I happen to edit first). > * Have methods for traversing the DOM based on the 'class' attribute. If you > have XPath type traversal this is somewhat less needed, but I find myself > rolling methods in most projects to work with my document by class name. > Example methods I have rolled for myself along these lines: > * xGetElementsByClassName(rootElement, className, tagName) - Gets all > the elements rooted at rootElement with the given className, optionally > restricted by tagName http://whatwg.org/specs/web-apps/current-work/#selecting (Can't restrict by tag name, but that seems a bit arbitrary -- why not by attribute, or whatever? At that point you're back to getElementsBySelector or some such.) > * xGetSingleElementByClassName(rootElement, className, tagName) - Same > as the above, but just returns one element Just use getElementsByClass(...)[0]. (Since the returned NodeList is live, it can be lazily evaulated and thus would be no less efficient.) > * xGetParentElementByClassName(rootElement, className, tagName) - > Navigates upwards until we hit a parent element with the given class name and > optional tag name. Interesting idea. Noted. > * Formalization of innerHTML as being a standard part of creating web > applications http://whatwg.org/specs/web-apps/current-work/#serialization > * Right now most people directly access an elements className property, > without realizing that they might be clobbering multi-classed elements (i.e. > something with class="class1 class2"). I usually have to create wrapper > methods to ensure that this doesn't happen, such as xAddClass(target, > className), xRemoveClass(target, className), and xHasClass(target, className), > but it would be much nicer if the className property itself had better support > for multi-classed elements. Some example possibilities of what this might > look like: > * someElement.className.add("someNewClass") > * someElement.className.remove("SomeOldClass") > * someElement.className.hasClass("someClass") Agreed. Noted. > * The lack of min-width and max-width in IE's CSS makes things difficult. Not much we can do about this from a spec point of view. Thanks, -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From dean at edwards.name Wed Apr 20 16:20:36 2005 From: dean at edwards.name (Dean Edwards) Date: Thu, 21 Apr 2005 00:20:36 +0100 Subject: [whatwg] Scripting Tweaks In-Reply-To: <Pine.LNX.4.61.0504202303320.22264@dhalsim.dreamhost.com> References: <42637CF5.7020509@olav.dk> <4265658B.2020503@olav.dk> <42665746.7020005@annevankesteren.nl> <42665E5E.6000007@edwards.name> <Pine.LNX.4.61.0504201410420.5260@dhalsim.dreamhost.com> <426667D9.2020502@edwards.name> <Pine.LNX.4.61.0504201430160.5260@dhalsim.dreamhost.com> <42666C1A.7050203@edwards.name> <Pine.LNX.4.61.0504201446470.5260@dhalsim.dreamhost.com> <426672B1.8020304@edwards.name> <1959130b05042010421c119da@mail.gmail.com> <42669F06.7070600@edwards.name> <Pine.LNX.4.61.0504202303320.22264@dhalsim.dreamhost.com> Message-ID: <4266E3C4.80608@edwards.name> Ian Hickson wrote: >>Speaking of setTimeout, where is this defined? > > http://whatwg.org/specs/web-apps/current-work/#settimeout > OK. That's twice in one day. I'm off to read the WA1 spec.... -dean From dean at w3.org Wed Apr 20 21:42:15 2005 From: dean at w3.org (Dean Jackson) Date: Thu, 21 Apr 2005 14:42:15 +1000 Subject: [whatwg] Canvas element In-Reply-To: <fb15ac2105042015401d468dc1@mail.gmail.com> References: <4266733C.4060901@olav.dk> <3bcac13cfc2b82777b6cae74581e244f@w3.org> <42669975.9050501@annevankesteren.nl> <fb15ac21050420112840ff9300@mail.gmail.com> <4266A106.20906@annevankesteren.nl> <fb15ac21050420133027fd1c60@mail.gmail.com> <4266D2D6.2060802@myrealbox.com> <4266D52A.1030301@edwards.name> <fb15ac2105042015401d468dc1@mail.gmail.com> Message-ID: <f34106194665e12b1258154d7e9bbd2a@w3.org> On 21 Apr 2005, at 08:40, Dimitri Glazkov wrote: > Oh yeah, I agree on programmable image being quite useful. The > question is why only limit the capability to a special CANVAS element > (whose semantics are questionable), when any block-level element could > have this ability. I agree with this, and with everything else Dimitri says in his weblog entry. I believe Sjoerd was saying a similar thing. Rather than an element itself, canvas should be a behaviour that is attached to an existing element. Dean > > The thing is, programmable image is with almost 100% certainty will be > a presentational graphic. And presentational graphic has no place in > markup. Therefore, if you utilize rendering context to create a > dynamic image, you won't necessarily be doing it inside of an IMG (or > CANVAS) element -- the dynamic image will be a presentational graphic > for the content, expressed in markup. > > Take your example with eyes and hair, for instance. This is the markup > that I would expect seeing instead of a canvas element (I am > improvising here): > > <span class="photorobot"> > <span class="hairColor">green</span> > <span class="eyeColor">yellow</span> > <span class="mouthType">puckered</span> > </span> > > Then the behavior would be attached to span.photorobot to create a > canvas and draw a mug shot. > > Oddly enough, I just wrote about this whole graphics and markup thing > this weekend: > > http://glazkov.com/blog/archive/2005/04/18/430.aspx > > :DG< > > On 4/20/05, Dean Edwards <dean at edwards.name> wrote: >> dolphinling wrote: >>> +1 >>> >>> >>> I would ask what semantics canvas has. ol means the content is an >>> ordered list, em means the content is emphasized, span and div mean >>> the >>> content is different, but in a way not associated with any element. >>> Even >>> img and object mean the content is external, (usually) with non-html >>> semantics. >>> >>> At best I can see canvas being equivelant to img and object, but >>> without >>> the use case of the content being external. But even so, they come >>> with >>> default semantics (the image or whatever else is being represented in >>> them) whereas canvas doesn't, it has to be scripted in. >>> >>> So am I missing something here? What semantics does canvas have? >>> >> >> I see the CANVAS element as analogous to the IMG element. It has >> similar >> content (it's ultimately an image) but that content is defined >> differently (using script). >> >> I can certainly see the advantage of having a programmable image. One >> use may be for generating avatars. It would be easier to combine skin >> tone, hair colour, eyes etc programmatically than have thousands of >> images sitting on the server. >> >> I agree that it may be open to abuse but I've never been convinced >> that >> this is a good reason to disallow anything. >> >> -dean >> >> From frodrish at yahoo.com Wed Apr 20 20:09:11 2005 From: frodrish at yahoo.com (Frederic Simard) Date: Wed, 20 Apr 2005 20:09:11 -0700 (PDT) Subject: [whatwg] Comment about WF2 and the readonly attribute restriction Message-ID: <20050421030911.69923.qmail@web32106.mail.mud.yahoo.com> I have some concern about restriction on the applicability of the readonly attribute on some of the form elements. The readonly attribute should be applicable to all form elements that can change. This means that the elements that should not support the readonly attribute is the output and button elements. I do not see good reasons to not support readonly attributes on checkbox, radio and select elements. >From my point of view for those elements have the same requirement in regards readonly functionality that the input element have. That is why they should also support the readonly attribute. The support of the readonly attribute for those elements will make the spec more consistent and it will also simplify the creation of a readonly version of a web page. Frederic __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From dean at edwards.name Wed Apr 20 23:41:27 2005 From: dean at edwards.name (Dean Edwards) Date: Thu, 21 Apr 2005 07:41:27 +0100 Subject: [whatwg] WA1 Section 2 In-Reply-To: <Pine.LNX.4.61.0504202309290.22264@dhalsim.dreamhost.com> References: <6.2.1.2.2.20050420105518.02a402d0@pop.mail.yahoo.com> <Pine.LNX.4.61.0504202309290.22264@dhalsim.dreamhost.com> Message-ID: <42674B17.8040804@edwards.name> Ian, I'm not sure that Section 2 of WA1 belongs in the spec. None of it seems to have much to do with web applications and it makes up 50% of the document. I know I've said this before but shouldn't this be a separate document? Wasn't that the plan for the other bits and pieces of HTML5 anyway? -dean From ian at hixie.ch Wed Apr 20 23:41:50 2005 From: ian at hixie.ch (Ian Hickson) Date: Thu, 21 Apr 2005 06:41:50 +0000 (UTC) Subject: [whatwg] Re: WA1 Section 2 In-Reply-To: <42674B17.8040804@edwards.name> References: <6.2.1.2.2.20050420105518.02a402d0@pop.mail.yahoo.com> <Pine.LNX.4.61.0504202309290.22264@dhalsim.dreamhost.com> <42674B17.8040804@edwards.name> Message-ID: <Pine.LNX.4.61.0504210638451.29809@dhalsim.dreamhost.com> On Thu, 21 Apr 2005, Dean Edwards wrote: > > I'm not sure that Section 2 of WA1 belongs in the spec. None of it seems > to have much to do with web applications and it makes up 50% of the > document. I originally would have agreed, however when making the Web Forms 2 spec one important piece of feedback I got, and something that I found quite annoying myself, was that structuring the spec as a "diff" to another spec is way more complicated than it should be. Hence in Web Apps 1 I took the alternative (but effectively equivalent) option of just making it the new version of the spec, instead of a "diff". > I know I've said this before but shouldn't this be a separate document? > Wasn't that the plan for the other bits and pieces of HTML5 anyway? Having HTML5 Core + Web Forms 2 + Web Apps 1 was the original idea, but based on my experience doing the WF2 part, I think it would be better to just merge the three into one coherent self-contained spec. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From jim.ley at gmail.com Thu Apr 21 01:28:56 2005 From: jim.ley at gmail.com (Jim Ley) Date: Thu, 21 Apr 2005 09:28:56 +0100 Subject: [whatwg] Scripting Tweaks In-Reply-To: <4266E3C4.80608@edwards.name> References: <42637CF5.7020509@olav.dk> <426667D9.2020502@edwards.name> <Pine.LNX.4.61.0504201430160.5260@dhalsim.dreamhost.com> <42666C1A.7050203@edwards.name> <Pine.LNX.4.61.0504201446470.5260@dhalsim.dreamhost.com> <426672B1.8020304@edwards.name> <1959130b05042010421c119da@mail.gmail.com> <42669F06.7070600@edwards.name> <Pine.LNX.4.61.0504202303320.22264@dhalsim.dreamhost.com> <4266E3C4.80608@edwards.name> Message-ID: <851c8d310504210128443e8d46@mail.gmail.com> On 4/21/05, Dean Edwards <dean at edwards.name> wrote: > Ian Hickson wrote: > >>Speaking of setTimeout, where is this defined? > > > > http://whatwg.org/specs/web-apps/current-work/#settimeout > > > > OK. That's twice in one day. I'm off to read the WA1 spec.... It's rather odd though, as it's been defined such that the mozilla implementation will be non-conformant, either the mozilla implementation will need to change to be conformant - breaking compatibility with existing scripts. Or mozilla will not be able to be conformant. Jim. From jim.ley at gmail.com Thu Apr 21 01:29:16 2005 From: jim.ley at gmail.com (Jim Ley) Date: Thu, 21 Apr 2005 09:29:16 +0100 Subject: [whatwg] Scripting Tweaks In-Reply-To: <6.2.1.2.2.20050420160735.02ae2dd8@pop.mail.yahoo.com> References: <42637CF5.7020509@olav.dk> <426667D9.2020502@edwards.name> <Pine.LNX.4.61.0504201430160.5260@dhalsim.dreamhost.com> <42666C1A.7050203@edwards.name> <Pine.LNX.4.61.0504201446470.5260@dhalsim.dreamhost.com> <426672B1.8020304@edwards.name> <1959130b05042010421c119da@mail.gmail.com> <42669F06.7070600@edwards.name> <851c8d31050420131136409a83@mail.gmail.com> <6.2.1.2.2.20050420160735.02ae2dd8@pop.mail.yahoo.com> Message-ID: <851c8d31050421012988c6b26@mail.gmail.com> On 4/21/05, Brad Neuberg <bkn3 at columbia.edu> wrote: > At 01:11 PM 4/20/2005, you wrote: > >uniqueID is very useful, I to use it all the time for patterns such as > >your hashtable of objects. I certainly support the idea, and with > >the strong issues that closures of DOM objects have in IE, > > interesting, tell me more; I didn't know IE has issues with certain kinds > of closures. http://jibbering.com/faq/faq_notes/closures.html#clMem Jim. From ian at hixie.ch Thu Apr 21 03:03:21 2005 From: ian at hixie.ch (Ian Hickson) Date: Thu, 21 Apr 2005 10:03:21 +0000 (UTC) Subject: [whatwg] Comment about WF2 and the readonly attribute restriction In-Reply-To: <20050421030911.69923.qmail@web32106.mail.mud.yahoo.com> References: <20050421030911.69923.qmail@web32106.mail.mud.yahoo.com> Message-ID: <Pine.LNX.4.61.0504211001240.24720@dhalsim.dreamhost.com> On Wed, 20 Apr 2005, Frederic Simard wrote: > > I have some concern about restriction on the > applicability of the readonly attribute on some of the > form elements. The readonly attribute should be > applicable to all form elements that can change. This > means that the elements that should not support the > readonly attribute is the output and button elements. > I do not see good reasons to not support readonly > attributes on checkbox, radio and select elements. >From a UI point of view, there simply is no concept of a "readonly" checkbox, radio, or select element (try to find an example in your operating system to see what I mean). What you want is <output>. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From ian at hixie.ch Thu Apr 21 04:51:08 2005 From: ian at hixie.ch (Ian Hickson) Date: Thu, 21 Apr 2005 11:51:08 +0000 (UTC) Subject: [whatwg] [html5] tags, elements and generated DOM In-Reply-To: <4261C38D.2070405@inkedblade.net> References: <42524E27.6060006@annevankesteren.nl> <Pine.LNX.4.61.0504062335130.20461@dhalsim.dreamhost.com> <4254CE93.4000403@lachy.id.au> <Pine.LNX.4.61.0504071037490.20461@dhalsim.dreamhost.com> <42550FFD.20201@annevankesteren.nl> <Pine.LNX.4.61.0504071050580.20461@dhalsim.dreamhost.com> <851c8d310504070356287eb4b1@mail.gmail.com> <Pine.LNX.4.61.0504071058300.20461@dhalsim.dreamhost.com> <851c8d3105040704092d099949@mail.gmail.com> <4d793a4ca44b70508a082e60c1264388@iki.fi> <851c8d3105040711474e8b3f0@mail.gmail.com> <4261C38D.2070405@inkedblade.net> Message-ID: <Pine.LNX.4.61.0504211149350.24720@dhalsim.dreamhost.com> On Sat, 16 Apr 2005, fantasai wrote: > Jim Ley wrote: > > > > Or at the very least use something that would not confuse people into > > > > thinking that it is an > > > > application of SGML or XML. > > > > > > Do you want to replace "NONSGML" with "THIS-IS-NOT-SGML"? > > > > No, I want to replace <!DOCTYPE - with something completely different, > > the whole point that anything that looks like an SGML (or XHTML) > > doctype will confuse users into thinking that it is an application of > > SGML. > > The vast majority of people out there have never heard of SGML, > and the ones who have are probably clever enough to figure out > that NONSGML means it's not SGML. Of course (ironically) they'd be wrong... NONSGML is an SGML keyword meaning that the DTD in question is not an SGML DTD, it doesn't mean that the document isn't an SGML document. I'm currently leaning towards something simpler, maybe just: <!DOCTYPE HTML5> This would still trigger standards mode (I believe; we'd have to check, of course) and would be a lot easier to remember. But I won't be looking at this in detail for some time (probably not until I start working on the "Parsing" section). -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From dimitri.glazkov at gmail.com Thu Apr 21 05:26:01 2005 From: dimitri.glazkov at gmail.com (Dimitri Glazkov) Date: Thu, 21 Apr 2005 07:26:01 -0500 Subject: [whatwg] Some likeness of DOM Session scope Message-ID: <fb15ac210504210526262c6bc@mail.gmail.com> IMHO, one of the biggest obstacles for growth in Web applications development is the fact that the entire application lives in the scope of one request. Once next request is made, the browser essentially "forgets" everything and the whole new cycle of loading, initialization, and binding begins. Yes, you can simulate the effect of retaining scope across several requests with XmlHttpRequest and even frames, but it's the "simulate" part that bothers me. "Simulate" means "hacking", and "hacking" inevitably means inconsistent and/or incomplete implementations. It seems that a future Web Application platform should have this type of functionality readily available. What do you think about the idea of having some likeness of a scope that's inherently wider than request? Consider this example (improvising here): Request 1: function SyntaxHighlighter() { // code goes here to provide on-the-fly beautification of code } document.session.highlighter = new SyntaxHighlighter(); Request 2+: if (document.session.highighter) { var codeSections = document.getElementsBySelector("pre > code") for(var i = 0; i < codeSections.length; i++) { SyntaxHighlighter.apply(codeSections[i]); } } Is this a totally asinine idea? :DG< From ian at hixie.ch Thu Apr 21 06:07:45 2005 From: ian at hixie.ch (Ian Hickson) Date: Thu, 21 Apr 2005 13:07:45 +0000 (UTC) Subject: [whatwg] Some likeness of DOM Session scope In-Reply-To: <fb15ac210504210526262c6bc@mail.gmail.com> References: <fb15ac210504210526262c6bc@mail.gmail.com> Message-ID: <Pine.LNX.4.61.0504211259410.24720@dhalsim.dreamhost.com> On Thu, 21 Apr 2005, Dimitri Glazkov wrote: > > It seems that a future Web Application platform should have this type of > functionality readily available. What do you think about the idea of > having some likeness of a scope that's inherently wider than request? I entirely agree that this is a good idea. I'm not 100% sure what a good way to do this is. Some sort of per-domain, per-window (tab, in modern browsers) object that is shared across pages from that domain is what I had in mind, but I'm not sure what the object should do. I was considering having it be a DOM (so basically you stored data in an XML document), but that seems unwieldly. I also considered just a list of strings, but that seems too unstructured. An object containing object references wouldn't really work other, because there's no way to serialise it (so that it lasts longer than the current browser session, e.g.). Anyone have any concrete proposals? :-) -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From kornel at ldreams.net Thu Apr 21 07:13:01 2005 From: kornel at ldreams.net (Kornel Lesinski) Date: Thu, 21 Apr 2005 15:13:01 +0100 Subject: [whatwg] Some likeness of DOM Session scope In-Reply-To: <Pine.LNX.4.61.0504211259410.24720@dhalsim.dreamhost.com> References: <fb15ac210504210526262c6bc@mail.gmail.com> <Pine.LNX.4.61.0504211259410.24720@dhalsim.dreamhost.com> Message-ID: <op.spk5rziu602458@idlaptop02.ideadesigners.local> On Thu, 21 Apr 2005 14:07:45 +0100, Ian Hickson <ian at hixie.ch> wrote: > Anyone have any concrete proposals? :-) Persistent associative array that stores anything*, just like session object in PHP and ASP. This might be called: document.localCookies Scope would be just like in HTTP cookies, but these wouldn't be sent to the server and wouldn't have length limit. To store object: document.localCookies['key_name'].value = anything; To retrieve object: anything = document.localCookies['key_name'].value; * only /Storable/ objects should be allowed. Storable objects are the ones that implement "sleep" and "wake" methods that (un)serialize them. That would be save/load XML for DOMNodes, toString/parseInt/etc for basic types. -- regards, Kornel Lesinski From olav at olav.dk Thu Apr 21 07:49:59 2005 From: olav at olav.dk (=?ISO-8859-1?Q?Olav_Junker_Kj=E6r?=) Date: Thu, 21 Apr 2005 16:49:59 +0200 Subject: [whatwg] Some likeness of DOM Session scope In-Reply-To: <Pine.LNX.4.61.0504211259410.24720@dhalsim.dreamhost.com> References: <fb15ac210504210526262c6bc@mail.gmail.com> <Pine.LNX.4.61.0504211259410.24720@dhalsim.dreamhost.com> Message-ID: <4267BD97.60707@olav.dk> Ian Hickson wrote: > I entirely agree that this is a good idea. I'm not 100% sure what a good > way to do this is. Some sort of per-domain, per-window (tab, in modern > browsers) object that is shared across pages from that domain is what I > had in mind, but I'm not sure what the object should do. I was considering > having it be a DOM (so basically you stored data in an XML document), but > that seems unwieldly. I also considered just a list of strings, but that > seems too unstructured. An object containing object references wouldn't > really work other, because there's no way to serialise it (so that it > lasts longer than the current browser session, e.g.). > > Anyone have any concrete proposals? :-) How about a javascript structure which may be arbitrary deep, but only may contain javascript built-in types (Object, Array, string, number, bool, Date etc.)? This would be very easy to use, although it might be confusing for authors that you can save a string but not e.g. a textnode. There is some larger issues here, though. A web page with an URL should be "reentrant", e.g. if you bookmark it and visit it later, it should work. Pages which is dependent on info generated on other pages should either have that info encoded in the URL, or be accessed through a POST request. In the first case, the context is preserved, in the second the page can't (easily) be bookmarked and revisited, since browsers treats pages which is the result of a POST request differently, which avoids the problem of the missing context. Ordinary web sites are usually "stateless" in the sense that you can visit the pages in any order. Stateful transactions (like payment) are usually handled as a sequence of POST's. Web applications on the other hand are usually very stateful, but precisely because they are usually confined to a single page with a single URL, you dont get the "reentrance" problem. You can only bookmark the initial state, which is safe. If an app spans several pages with distinct URL's, but is stateful in such a way that pages are dependent on local state generated on earlier pages, it gets very fragile. We might start to see lots of "You seem to be visiting this page out of context" messages on Google :-) Thats not to say that the proposal is a bad idea. I see some very strong use cases for it. For example, I might have written half a page of text in a CMS, but when i hit "save", I'm informed that the network connection is broken, and it wont get fixed before monday. In this case it would be very nice if the client side script could save data in a persistent local store - only accesible to this page, of course. regards Olav Junker Kj?r From mint at franklinmint.fm Thu Apr 21 14:37:14 2005 From: mint at franklinmint.fm (Robert Sayre) Date: Thu, 21 Apr 2005 17:37:14 -0400 Subject: [whatwg] Some likeness of DOM Session scope In-Reply-To: <4267BD97.60707@olav.dk> References: <fb15ac210504210526262c6bc@mail.gmail.com> <Pine.LNX.4.61.0504211259410.24720@dhalsim.dreamhost.com> <4267BD97.60707@olav.dk> Message-ID: <42681D0A.1020807@franklinmint.fm> Olav Junker Kj?r wrote: > Ian Hickson wrote: >> Anyone have any concrete proposals? :-) http://www.crockford.com/JSON/index.html ? > If an app spans several pages with distinct URL's, but is stateful in > such a way that pages are dependent on local state generated on earlier > pages, it gets very fragile. We might start to see lots of "You seem to > be visiting this page out of context" messages on Google :-) Might be nice to add the ability to tie the objects to a given transaction by associating a POE URI with them: http://www.ietf.org/internet-drafts/draft-nottingham-http-poe-00.txt Robert Sayre From bradneuberg at yahoo.com Thu Apr 21 20:47:09 2005 From: bradneuberg at yahoo.com (Brad Neuberg) Date: Thu, 21 Apr 2005 20:47:09 -0700 (PDT) Subject: [whatwg] Some likeness of DOM Session scope In-Reply-To: 6667 Message-ID: <20050422034709.21654.qmail@web60709.mail.yahoo.com> Something along these lines that would be useful is control over what goes into the history (and what affects the back button) and what _doesn't_. Alot of times I shoot off RPC type functions using XmlHttpRequest that I _dont_ want in the history, since they wouldnt be appropriate for the back button, and other times I want the back button to be affected. Brad --- Dimitri Glazkov <dimitri.glazkov at gmail.com> wrote: > IMHO, one of the biggest obstacles for growth in Web > applications > development is the fact that the entire application > lives in the scope > of one request. > > Once next request is made, the browser essentially > "forgets" > everything and the whole new cycle of loading, > initialization, and > binding begins. > > Yes, you can simulate the effect of retaining scope > across several > requests with XmlHttpRequest and even frames, but > it's the "simulate" > part that bothers me. "Simulate" means "hacking", > and "hacking" > inevitably means inconsistent and/or incomplete > implementations. > > It seems that a future Web Application platform > should have this type > of functionality readily available. What do you > think about the idea > of having some likeness of a scope that's inherently > wider than > request? > > Consider this example (improvising here): > > Request 1: > > function SyntaxHighlighter() > { > // code goes here to provide on-the-fly > beautification of code > } > document.session.highlighter = new > SyntaxHighlighter(); > > Request 2+: > > if (document.session.highighter) > { > var codeSections = > document.getElementsBySelector("pre > code") > for(var i = 0; i < codeSections.length; i++) > { > SyntaxHighlighter.apply(codeSections[i]); > } > } > > Is this a totally asinine idea? > > :DG< > From bradneuberg at yahoo.com Thu Apr 21 22:24:26 2005 From: bradneuberg at yahoo.com (Brad Neuberg) Date: Thu, 21 Apr 2005 22:24:26 -0700 (PDT) Subject: [whatwg] Canvas element In-Reply-To: 6667 Message-ID: <20050422052426.52574.qmail@web60701.mail.yahoo.com> +1 on the canvas API being able to be applied to any block-level element; this would be a very powerful capability, and its true that a specialized CANVAS element doesn't really mean anything in terms of semantic markup. Can we also apply this API to inline elements? As a matter of fact, why should the 'display' property affect this at all? I might want to use an absolute or relative positioned block as a surface to draw on. It doesn't seem like whether it is inline, block, fixed, absolute, etc. is what influences whether it is a drawable surface. Should we specify in CSS that some element is "drawable"? This sounds like a straightforward way: someElement { drawable: true; } This then tells the browser to initialize the canvas API on this element and to expect that its drawing surface might be updated through script. Sure seems like an appropriate place to put this, since it is a style-like property that one would attach to with CSS. One issue with this is that the actual canvas API calls would happen with JavaScript, which is seperate from the CSS. So another alternative for this would be that any element can have the canvas API on it, without having to go through CSS. Instead, you either start the canvas API up through JavaScript with an explicit method or attribute call: var someElement = document.getElementById("someElement"); // alternative 1 someElement.setDrawable(true); // alternative 2 - these are very similar from // javascripts perspective someElement.drawable = true; // alternative 3 - you just start using the canvas API // on any element someElement.canvas.moveTo(33); Does it affect performance that the rendering engine won't know before hand that some elements can be arbitrarily drawn on and others can't? Also, how does the canvas API on an element's surface affect other CSS properties, like 'overflow'? Brad Neuberg --- Dean Jackson <dean at w3.org> wrote: > On 21 Apr 2005, at 08:40, Dimitri Glazkov wrote: > > > Oh yeah, I agree on programmable image being quite > useful. The > > question is why only limit the capability to a > special CANVAS element > > (whose semantics are questionable), when any > block-level element could > > have this ability. > > I agree with this, and with everything else Dimitri > says > in his weblog entry. I believe Sjoerd was saying a > similar > thing. > > Rather than an element itself, canvas should be a > behaviour that > is attached to an existing element. > > Dean > > > > > The thing is, programmable image is with almost > 100% certainty will be > > a presentational graphic. And presentational > graphic has no place in > > markup. Therefore, if you utilize rendering > context to create a > > dynamic image, you won't necessarily be doing it > inside of an IMG (or > > CANVAS) element -- the dynamic image will be a > presentational graphic > > for the content, expressed in markup. > > > > Take your example with eyes and hair, for > instance. This is the markup > > that I would expect seeing instead of a canvas > element (I am > > improvising here): > > > > <span class="photorobot"> > > <span class="hairColor">green</span> > > <span class="eyeColor">yellow</span> > > <span class="mouthType">puckered</span> > > </span> > > > > Then the behavior would be attached to > span.photorobot to create a > > canvas and draw a mug shot. > > > > Oddly enough, I just wrote about this whole > graphics and markup thing > > this weekend: > > > > > http://glazkov.com/blog/archive/2005/04/18/430.aspx > > > > :DG< > > > > On 4/20/05, Dean Edwards <dean at edwards.name> > wrote: > >> dolphinling wrote: > >>> +1 > >>> > >>> > >>> I would ask what semantics canvas has. ol means > the content is an > >>> ordered list, em means the content is > emphasized, span and div mean > >>> the > >>> content is different, but in a way not > associated with any element. > >>> Even > >>> img and object mean the content is external, > (usually) with non-html > >>> semantics. > >>> > >>> At best I can see canvas being equivelant to img > and object, but > >>> without > >>> the use case of the content being external. But > even so, they come > >>> with > >>> default semantics (the image or whatever else is > being represented in > >>> them) whereas canvas doesn't, it has to be > scripted in. > >>> > >>> So am I missing something here? What semantics > does canvas have? > >>> > >> > >> I see the CANVAS element as analogous to the IMG > element. It has > >> similar > >> content (it's ultimately an image) but that > content is defined > >> differently (using script). > >> > >> I can certainly see the advantage of having a > programmable image. One > >> use may be for generating avatars. It would be > easier to combine skin > >> tone, hair colour, eyes etc programmatically than > have thousands of > >> images sitting on the server. > >> > >> I agree that it may be open to abuse but I've > never been convinced > >> that > >> this is a good reason to disallow anything. > >> > >> -dean > >> > >> > > From hyatt at apple.com Thu Apr 21 23:16:58 2005 From: hyatt at apple.com (Dave Hyatt) Date: Thu, 21 Apr 2005 23:16:58 -0700 Subject: [whatwg] Canvas element In-Reply-To: <20050422052426.52574.qmail@web60701.mail.yahoo.com> References: <20050422052426.52574.qmail@web60701.mail.yahoo.com> Message-ID: <47885CCE-8A49-452F-95C8-AEB2F041F9D5@apple.com> We have been thinking about this feature for WebCore. In addition to primitive drawing operations, you really want higher level programmatic drawing control as well. For example, it would be interesting to be able to programmatically draw the background of your element, the border of your element, the outline of your element, etc., knowing that the image would be drawn in the appropriate z-index relative to the other components of your element (or children). For example, it would be particularly convenient to have APIs like "drawCSSBorderLine" that could automatically draw a line using the correct CSS-specified border style, or a method like "drawCSSBackground" that could be used to tile the background image into a specified rect. In addition of course to custom painting is the need to allow control over layout itself, so that people can easily define their own custom layouts. It is not clear to me that this work should be standardized, however, as browsers may need to come up with somewhat engine-specific solutions based off how they happen to implement these concepts (and the tie-in to native code like Objective-C may result in differences as well). dave (hyatt at apple.com) On Apr 21, 2005, at 10:24 PM, Brad Neuberg wrote: > +1 on the canvas API being able to be applied to any > block-level element; this would be a very powerful > capability, and its true that a specialized CANVAS > element doesn't really mean anything in terms of > semantic markup. > > Can we also apply this API to inline elements? As a > matter of fact, why should the 'display' property > affect this at all? I might want to use an absolute or > relative positioned block as a surface to draw on. It > doesn't seem like whether it is inline, block, fixed, > absolute, etc. is what influences whether it is a > drawable surface. > > Should we specify in CSS that some element is > "drawable"? This sounds like a straightforward way: > > someElement { > drawable: true; > } > > This then tells the browser to initialize the canvas > API on this element and to expect that its drawing > surface might be updated through script. > > Sure seems like an appropriate place to put this, > since it is a style-like property that one would > attach to with CSS. > > One issue with this is that the actual canvas API > calls would happen with JavaScript, which is seperate > from the CSS. So another alternative for this would > be that any element can have the canvas API on it, > without having to go through CSS. Instead, you either > start the canvas API up through JavaScript with an > explicit method or attribute call: > > var someElement = > document.getElementById("someElement"); > > // alternative 1 > someElement.setDrawable(true); > > // alternative 2 - these are very similar from > // javascripts perspective > someElement.drawable = true; > > // alternative 3 - you just start using the canvas API > // on any element > someElement.canvas.moveTo(33); > > Does it affect performance that the rendering engine > won't know before hand that some elements can be > arbitrarily drawn on and others can't? Also, how does > the canvas API on an element's surface affect other > CSS properties, like 'overflow'? > > Brad Neuberg > > --- Dean Jackson <dean at w3.org> wrote: > >> On 21 Apr 2005, at 08:40, Dimitri Glazkov wrote: >> >> >>> Oh yeah, I agree on programmable image being quite >>> >> useful. The >> >>> question is why only limit the capability to a >>> >> special CANVAS element >> >>> (whose semantics are questionable), when any >>> >> block-level element could >> >>> have this ability. >>> >> >> I agree with this, and with everything else Dimitri >> says >> in his weblog entry. I believe Sjoerd was saying a >> similar >> thing. >> >> Rather than an element itself, canvas should be a >> behaviour that >> is attached to an existing element. >> >> Dean >> >> >>> >>> The thing is, programmable image is with almost >>> >> 100% certainty will be >> >>> a presentational graphic. And presentational >>> >> graphic has no place in >> >>> markup. Therefore, if you utilize rendering >>> >> context to create a >> >>> dynamic image, you won't necessarily be doing it >>> >> inside of an IMG (or >> >>> CANVAS) element -- the dynamic image will be a >>> >> presentational graphic >> >>> for the content, expressed in markup. >>> >>> Take your example with eyes and hair, for >>> >> instance. This is the markup >> >>> that I would expect seeing instead of a canvas >>> >> element (I am >> >>> improvising here): >>> >>> <span class="photorobot"> >>> <span class="hairColor">green</span> >>> <span class="eyeColor">yellow</span> >>> <span class="mouthType">puckered</span> >>> </span> >>> >>> Then the behavior would be attached to >>> >> span.photorobot to create a >> >>> canvas and draw a mug shot. >>> >>> Oddly enough, I just wrote about this whole >>> >> graphics and markup thing >> >>> this weekend: >>> >>> >>> >> http://glazkov.com/blog/archive/2005/04/18/430.aspx >> >>> >>> :DG< >>> >>> On 4/20/05, Dean Edwards <dean at edwards.name> >>> >> wrote: >> >>>> dolphinling wrote: >>>> >>>>> +1 >>>>> >>>>> >>>>> I would ask what semantics canvas has. ol means >>>>> >> the content is an >> >>>>> ordered list, em means the content is >>>>> >> emphasized, span and div mean >> >>>>> the >>>>> content is different, but in a way not >>>>> >> associated with any element. >> >>>>> Even >>>>> img and object mean the content is external, >>>>> >> (usually) with non-html >> >>>>> semantics. >>>>> >>>>> At best I can see canvas being equivelant to img >>>>> >> and object, but >> >>>>> without >>>>> the use case of the content being external. But >>>>> >> even so, they come >> >>>>> with >>>>> default semantics (the image or whatever else is >>>>> >> being represented in >> >>>>> them) whereas canvas doesn't, it has to be >>>>> >> scripted in. >> >>>>> >>>>> So am I missing something here? What semantics >>>>> >> does canvas have? >> >>>>> >>>>> >>>> >>>> I see the CANVAS element as analogous to the IMG >>>> >> element. It has >> >>>> similar >>>> content (it's ultimately an image) but that >>>> >> content is defined >> >>>> differently (using script). >>>> >>>> I can certainly see the advantage of having a >>>> >> programmable image. One >> >>>> use may be for generating avatars. It would be >>>> >> easier to combine skin >> >>>> tone, hair colour, eyes etc programmatically than >>>> >> have thousands of >> >>>> images sitting on the server. >>>> >>>> I agree that it may be open to abuse but I've >>>> >> never been convinced >> >>>> that >>>> this is a good reason to disallow anything. >>>> >>>> -dean >>>> >>>> >>>> >> >> > From hsivonen at iki.fi Fri Apr 22 07:21:48 2005 From: hsivonen at iki.fi (Henri Sivonen) Date: Fri, 22 Apr 2005 17:21:48 +0300 Subject: [whatwg] Canvas element In-Reply-To: <4266D2D6.2060802@myrealbox.com> References: <4266733C.4060901@olav.dk> <3bcac13cfc2b82777b6cae74581e244f@w3.org> <42669975.9050501@annevankesteren.nl> <fb15ac21050420112840ff9300@mail.gmail.com> <4266A106.20906@annevankesteren.nl> <fb15ac21050420133027fd1c60@mail.gmail.com> <4266D2D6.2060802@myrealbox.com> Message-ID: <e06e01ec2cb663550835cdd78c2168f4@iki.fi> On Apr 21, 2005, at 01:08, dolphinling wrote: > What semantics does canvas have? It has the semantics of a rendering context to which scripts can draw. -- Henri Sivonen hsivonen at iki.fi http://hsivonen.iki.fi/ From judell at gmail.com Fri Apr 22 07:40:56 2005 From: judell at gmail.com (Jon Udell) Date: Fri, 22 Apr 2005 10:40:56 -0400 Subject: [whatwg] Re: Radio UserLand: Mail from Ian Hickson In-Reply-To: <200504221017.j3MAHXPn006119@bigrack.userland.com> References: <200504221017.j3MAHXPn006119@bigrack.userland.com> Message-ID: <94a59c7d0504220740638f95fd@mail.gmail.com> On 4/22/05, radio at spam.hixie.ch <radio at spam.hixie.ch> wrote: > You write "If JavaScript is going to be an appropriate technology of intermediation, would > it make sense for it to offer an easy way to issue a non-interactive HTTP POST?" > > Yes, it would. I urge you to send your suggestions to whatwg at whatwg.org, where > we're discussing this kind of thing and writing specs that browsers will be implementing. OK. Then I do propose an easy way to issue a non-interactive HTTP POST. As to how, I'm probably the wrong guy to propose something. My first thought was that, if a list were assigned to location.href, then the base URL would be the first element and the URL-encoded data the second. This maps to how curl and Python work. But a problem here is that POST is only implicit, so what about PUT, DELETE, etc.? Perhaps one could make a case that POST is important enough to be included in the most basic idiom, along with GET, and for other stuff there's an advanced idiom? - Jon From dimitri.glazkov at gmail.com Fri Apr 22 07:58:43 2005 From: dimitri.glazkov at gmail.com (Dimitri Glazkov) Date: Fri, 22 Apr 2005 09:58:43 -0500 Subject: [whatwg] Some likeness of DOM Session scope In-Reply-To: <20050422034709.21654.qmail@web60709.mail.yahoo.com> References: <20050422034709.21654.qmail@web60709.mail.yahoo.com> Message-ID: <fb15ac210504220758504b6da6@mail.gmail.com> At first, I envisioned a fairly simplistic (perhaps naiive would be a better word) functionality: An initially empty JS object, which survives from request to request until the browser window is closed. This object is implicitly instantiated once per session for each domain, and is the same across all windows/tabs. Being the associative array that it is, the object can be populated by whatever data or functions that need to survive throughout the session. Obviously, you can see some serious potential security, memory usage, and just plain compartmentalization issues here. Then, after reading the thread, it seemed that maybe I am looking at the problem from the wrong end: Maybe it would a better idea to introduce functionality that standardizes a usability-perfect simulation of a request within the same page? I think that is what Brad is writing about. In other words, instead of trying to come up with a vehicle that allows you to pass data across independent requests, devise ways to: * identify (create) state of an application inside of a page * communicate it to the browser's address bar and history navigation * restore the state when the browser asks for it (via back/forward or bookmark). With this in place, history can be manipulated at will and a transparent user experience of browsing multiple pages can be created within the same actual page. I believe Microsoft has toyed with this concept in IE5 by introducing #default#saveFavorite and #default#saveHistory behaviors. Or maybe it's both: a serializable/deserializable persistence mechanism across independents requests and the way to manipulate the history. What do you guys think? :DG< On 4/21/05, Brad Neuberg <bradneuberg at yahoo.com> wrote: > Something along these lines that would be useful is > control over what goes into the history (and what > affects the back button) and what _doesn't_. Alot of > times I shoot off RPC type functions using > XmlHttpRequest that I _dont_ want in the history, > since they wouldnt be appropriate for the back button, > and other times I want the back button to be affected. > > Brad > > --- Dimitri Glazkov <dimitri.glazkov at gmail.com> wrote: > > IMHO, one of the biggest obstacles for growth in Web > > applications > > development is the fact that the entire application > > lives in the scope > > of one request. > > > > Once next request is made, the browser essentially > > "forgets" > > everything and the whole new cycle of loading, > > initialization, and > > binding begins. > > > > Yes, you can simulate the effect of retaining scope > > across several > > requests with XmlHttpRequest and even frames, but > > it's the "simulate" > > part that bothers me. "Simulate" means "hacking", > > and "hacking" > > inevitably means inconsistent and/or incomplete > > implementations. > > > > It seems that a future Web Application platform > > should have this type > > of functionality readily available. What do you > > think about the idea > > of having some likeness of a scope that's inherently > > wider than > > request? > > > > Consider this example (improvising here): > > > > Request 1: > > > > function SyntaxHighlighter() > > { > > // code goes here to provide on-the-fly > > beautification of code > > } > > document.session.highlighter = new > > SyntaxHighlighter(); > > > > Request 2+: > > > > if (document.session.highighter) > > { > > var codeSections = > > document.getElementsBySelector("pre > code") > > for(var i = 0; i < codeSections.length; i++) > > { > > SyntaxHighlighter.apply(codeSections[i]); > > } > > } > > > > Is this a totally asinine idea? > > > > :DG< > > > From jim.ley at gmail.com Fri Apr 22 08:00:26 2005 From: jim.ley at gmail.com (Jim Ley) Date: Fri, 22 Apr 2005 16:00:26 +0100 Subject: [whatwg] Canvas element In-Reply-To: <e06e01ec2cb663550835cdd78c2168f4@iki.fi> References: <4266733C.4060901@olav.dk> <3bcac13cfc2b82777b6cae74581e244f@w3.org> <42669975.9050501@annevankesteren.nl> <fb15ac21050420112840ff9300@mail.gmail.com> <4266A106.20906@annevankesteren.nl> <fb15ac21050420133027fd1c60@mail.gmail.com> <4266D2D6.2060802@myrealbox.com> <e06e01ec2cb663550835cdd78c2168f4@iki.fi> Message-ID: <851c8d310504220800549069a4@mail.gmail.com> On 4/22/05, Henri Sivonen <hsivonen at iki.fi> wrote: > On Apr 21, 2005, at 01:08, dolphinling wrote: > > > What semantics does canvas have? > > It has the semantics of a rendering context to which scripts can draw. So it only has presentational semantics, so should be in a rendering language like CSS? Jim. From robmientjes at gmail.com Fri Apr 22 08:09:37 2005 From: robmientjes at gmail.com (Rob Mientjes) Date: Fri, 22 Apr 2005 17:09:37 +0200 Subject: [whatwg] Canvas element In-Reply-To: <851c8d310504220800549069a4@mail.gmail.com> References: <4266733C.4060901@olav.dk> <3bcac13cfc2b82777b6cae74581e244f@w3.org> <42669975.9050501@annevankesteren.nl> <fb15ac21050420112840ff9300@mail.gmail.com> <4266A106.20906@annevankesteren.nl> <fb15ac21050420133027fd1c60@mail.gmail.com> <4266D2D6.2060802@myrealbox.com> <e06e01ec2cb663550835cdd78c2168f4@iki.fi> <851c8d310504220800549069a4@mail.gmail.com> Message-ID: <e8e97f9f0504220809596db2db@mail.gmail.com> On 4/22/05, Jim Ley <jim.ley at gmail.com> wrote: > > It has the semantics of a rendering context to which scripts can draw. > > So it only has presentational semantics, so should be in a rendering > language like CSS? That's the endless quandry. 'CSS can only do so much!' 'Markup should be about content, not presentation.' Maybe someone else can think of a suitable description that doesn't get in the way of anti-presentational markup purists. -- Cheers, Rob. http://zooibaai.nl | http://digital-proof.org | http://chancecube.com From dean at edwards.name Fri Apr 22 08:27:27 2005 From: dean at edwards.name (Dean Edwards) Date: Fri, 22 Apr 2005 16:27:27 +0100 Subject: [whatwg] Canvas element In-Reply-To: <e8e97f9f0504220809596db2db@mail.gmail.com> References: <4266733C.4060901@olav.dk> <3bcac13cfc2b82777b6cae74581e244f@w3.org> <42669975.9050501@annevankesteren.nl> <fb15ac21050420112840ff9300@mail.gmail.com> <4266A106.20906@annevankesteren.nl> <fb15ac21050420133027fd1c60@mail.gmail.com> <4266D2D6.2060802@myrealbox.com> <e06e01ec2cb663550835cdd78c2168f4@iki.fi> <851c8d310504220800549069a4@mail.gmail.com> <e8e97f9f0504220809596db2db@mail.gmail.com> Message-ID: <426917DF.8020402@edwards.name> Rob Mientjes wrote: > On 4/22/05, Jim Ley <jim.ley at gmail.com> wrote: > >>>It has the semantics of a rendering context to which scripts can draw. >> >>So it only has presentational semantics, so should be in a rendering >>language like CSS? > > > That's the endless quandry. 'CSS can only do so much!' 'Markup should > be about content, not presentation.' > > Maybe someone else can think of a suitable description that doesn't > get in the way of anti-presentational markup purists. HTML: IMG --> CANVAS CSS: background-image --> background-canvas ? div#flag { background-canvas: draw; } div#flag.blank { background-canvas: none; } -dean From bkn3 at columbia.edu Fri Apr 22 10:14:17 2005 From: bkn3 at columbia.edu (Brad Neuberg) Date: Fri, 22 Apr 2005 10:14:17 -0700 Subject: [whatwg] Canvas element - Keep It Simple In-Reply-To: <e8e97f9f0504220809596db2db@mail.gmail.com> References: <4266733C.4060901@olav.dk> <3bcac13cfc2b82777b6cae74581e244f@w3.org> <42669975.9050501@annevankesteren.nl> <fb15ac21050420112840ff9300@mail.gmail.com> <4266A106.20906@annevankesteren.nl> <fb15ac21050420133027fd1c60@mail.gmail.com> <4266D2D6.2060802@myrealbox.com> <e06e01ec2cb663550835cdd78c2168f4@iki.fi> <851c8d310504220800549069a4@mail.gmail.com> <e8e97f9f0504220809596db2db@mail.gmail.com> Message-ID: <6.2.1.2.2.20050422100505.02aa1e88@pop.mail.yahoo.com> One thing I'm worried about is if we make canvas too generic, we will make it very difficult to implement as well as have all sorts of boundry conditions that we won't completely realize until the spec has been tested in the wild, leading to bugs. For example, if we allow any element to be drawn on, let's say on an absolutely positioned div that is located in a relative one, and this absolutely positioned div has overflow: auto in it's CSS, and someone uses it as a canvas and draws on it in such a way that its content goes beyond the elements containing space, scroll bars will have to appear. What if some browsers forget this boundry condition? How many other boundry conditions are there? I'm all for exactness and purity, but I'm for simplicity too ;) Here's another proposal: In your source you simply have an IMG tag. Then, either through CSS, an HTML attribute, or JavaScript you 'turn' this IMG tag into a canvas and can start drawing on it. So browsers that support IMGs as canvases will get a nice surface to draw on, while those that don't will degrade nicely into some already retrieved image. An example use: In the HTML: <img id="someImage" src="http://example.com/degraded_image.gif" /> In the CSS: #someImage { drawable: true; } Now in our JavaScript: var someImage = document.getElementById("someImage"); // now start drawing What do y'all think? Seems easy for implementors, and the underlying rendering engine can still treat it as an image but one in which the image data is generated by code, which should make it easier to put together (I think ease of implementation and simplicity should definently be a target of the WHAT-WG; we don't want to end up with a DSSSL-like standard that takes forever to implement and work the kinks out of). One thing I can imagine is that some people will want IMG tags that are canvases that _don't_ show up in older browsers (i.e. they don't even want a way for it to degrade, because it can't be implemented using a normal IMG src value). Any ideas on how to do this using the kind of pseudocode above? Brad Neuberg At 08:09 AM 4/22/2005, Rob Mientjes wrote: >On 4/22/05, Jim Ley <jim.ley at gmail.com> wrote: > > > It has the semantics of a rendering context to which scripts can draw. > > > > So it only has presentational semantics, so should be in a rendering > > language like CSS? > >That's the endless quandry. 'CSS can only do so much!' 'Markup should >be about content, not presentation.' > >Maybe someone else can think of a suitable description that doesn't >get in the way of anti-presentational markup purists. >-- >Cheers, >Rob. > >http://zooibaai.nl | http://digital-proof.org | http://chancecube.com Brad Neuberg, bkn3 at columbia.edu Senior Software Engineer, Rojo Networks Weblog: http://www.codinginparadise.org ===================================================================== Check out Rojo, an RSS and Atom news aggregator that I work on. Visit http://rojo.com for more info. Feel free to ask me for an invite! Rojo is Hiring! If you're interested in RSS, Weblogs, Social Networking, Java, Open Source, etc... then come work with us at Rojo. If you recommend someone and we hire them you'll get a free iPod! See http://www.rojonetworks.com/JobsAtRojo.html. From bkn3 at columbia.edu Fri Apr 22 10:25:55 2005 From: bkn3 at columbia.edu (Brad Neuberg) Date: Fri, 22 Apr 2005 10:25:55 -0700 Subject: [whatwg] Updating Location Bar for RPC Type Apps Message-ID: <6.2.1.2.2.20050422101421.02aaf1b0@pop.mail.yahoo.com> Whenever I implement a DHTML (Ajax?) type app that needs to talk to the server without refreshing the client, such as through a hidden iframe or an XmlHttpRequest object, I always wish that I could update the window location bar to show a bookmarkable and copyable URL, but update it in such a way that it _doesn't_ refresh the browser or change it's location (window.location.href changes the location). For example, lets say I am showing a page that has a table of elements on it, with a sorting pulldown that can change the sorting of the elements either by NAME or by a TAG sorting scheme. Let's say the URL show in the location bar when the user first hits this page is the following: http://www.rojo.com/manage-subscriptions This page has a sorting pull down with two options, sort by NAME and sort by TAG. When the user selects the TAG pulldown we shoot off a request through a hidden iframe, which travels to the server. The server then generates new table content as HTML and sends it basic in the background, and the client simply does an innerHTML on a div in the center of the page with the new sorting type. However, the URL in the location bar stays as "http://www.rojo.com/manage-subscriptions", when I would like it to update to "http://www.rojo.com/manage-subscriptions?sortby=TAG", so that a user can bookmark it, email it, or a programmer can see what the URL is in a clear way and can script it using HTTP (REST?). Now we would have to be careful or this could lead to phishing attacks, where someone could update the URL arbitrarily. We would have to enforce the same-host rule on the URL, the same rule that is applied to where an XmlHttpRequest object can communicate to (i.e. same host, same protocol, same port, etc.) This also ties in with an earlier email I sent out about controlling the history/back-button as well. In this case if the user hits the back button they actually _dont_ get anything we've sent through the iframe, when I want to plug these things into the history. If we make it possible for programmers to control whether a remote URL sent through XmlHttpRequest is placed into the history or not I think we should think through the security, phishing, and general annoyance factors this could cause (imagine pushing hundreds of entries into the history, so that a user can't hit the back page to their original page to keep a user on the current page). In fact, we should do a security, phishing, and annoyance scan (blink tag anyone?) over the WHAT-WG draft itself sometime, forming a threat model before so we know what potential attackers would actually be trying to do. When we take this into account we should remember that sometimes email programs embed the browser into themselves, so that WHAT standards could be embedded into email messages, leading to various kinds of attacks and general wierdness. Brad Neuberg Brad Neuberg, bkn3 at columbia.edu Senior Software Engineer, Rojo Networks Weblog: http://www.codinginparadise.org ===================================================================== Check out Rojo, an RSS and Atom news aggregator that I work on. Visit http://rojo.com for more info. Feel free to ask me for an invite! Rojo is Hiring! If you're interested in RSS, Weblogs, Social Networking, Java, Open Source, etc... then come work with us at Rojo. If you recommend someone and we hire them you'll get a free iPod! See http://www.rojonetworks.com/JobsAtRojo.html. From bkn3 at columbia.edu Fri Apr 22 10:35:04 2005 From: bkn3 at columbia.edu (Brad Neuberg) Date: Fri, 22 Apr 2005 10:35:04 -0700 Subject: [whatwg] Some likeness of DOM Session scope --> Steal Flash's SharedObject Syntax In-Reply-To: <fb15ac210504220758504b6da6@mail.gmail.com> References: <20050422034709.21654.qmail@web60709.mail.yahoo.com> <fb15ac210504220758504b6da6@mail.gmail.com> Message-ID: <6.2.1.2.2.20050422102952.02b39960@pop.mail.yahoo.com> Flash MX has a scriptable object named SharedObject that can contain far more application state than a normal cookie can, but for Flash movies. Perhaps this is a good concept to steal from Flash? They've thought through the API pretty well. One thing that is unique about these is that they can store binary, so that you can actually serialize the state of your Flash ActionScript (which is just JavaScript now) right into your cookie, making programming in Flash very productive. You can also store images, sounds, video etc., leading to very fast startup time for apps that use these. Some more info on SharedObjects at http://www.macromedia.com/support/flash/action_scripts/local_shared_object/: "Local shared objects provide a way to maintain locally persistent data (similar to "cookies" stored by web browsers). For example, you can create a shared object, such as a calculator with memory, in the player. Because the shared object is locally persistent, Macromedia Flash MX saves its data attributes on the user's machine when the movie ends. The next time the movie runs, the calculator contains the values it had when the movie ended. Alternatively, you can delete the shared object before the movie ends, in which case the calculator opens without any prior values the next time the movie runs. " About size considerations: "Local shared objects are always persistent on the client, up to available memory and disk space. By default, Macromedia Flash MXcan save locally persistent remote shared objects up to 100 K in size. When you try to save a larger object, the Macromedia Flash Player 6displays the Local Storage dialog box, which lets the user allow or deny local storage for the domain that is requesting access. Make sure your Stage size is at least 215 x 138 pixels; this is the minimum size Macromedia Flash MX requires to display the dialog box." In terms of security, we should be careful that these can't be used as a vector to attack the local system, either through a buffer overflow attack or a way to get a binary image onto a machine that can then be manipulated. One note: when a user clears their cookies we should also clear out these SharedObjects, probably presenting them to the user as super-charged cookies, to prevent a similar security bug that affected Flash. There is a sneaky adware attack called PIE that stores cookies into a Flash's SharedObjects, pulling them back out if a user clears their cookies since Flash didn't hook clearing the SharedObjects into clearing the cookies in the browser. At 07:58 AM 4/22/2005, Dimitri Glazkov wrote: >At first, I envisioned a fairly simplistic (perhaps naiive would be a >better word) functionality: > >An initially empty JS object, which survives from request to request >until the browser window is closed. This object is implicitly >instantiated once per session for each domain, and is the same across >all windows/tabs. > >Being the associative array that it is, the object can be populated by >whatever data or functions that need to survive throughout the >session. > >Obviously, you can see some serious potential security, memory usage, >and just plain compartmentalization issues here. > >Then, after reading the thread, it seemed that maybe I am looking at >the problem from the wrong end: > >Maybe it would a better idea to introduce functionality that >standardizes a usability-perfect simulation of a request within the >same page? I think that is what Brad is writing about. > >In other words, instead of trying to come up with a vehicle that >allows you to pass data across independent requests, devise ways to: > >* identify (create) state of an application inside of a page >* communicate it to the browser's address bar and history navigation >* restore the state when the browser asks for it (via back/forward or >bookmark). > >With this in place, history can be manipulated at will and a >transparent user experience of browsing multiple pages can be created >within the same actual page. > >I believe Microsoft has toyed with this concept in IE5 by introducing >#default#saveFavorite and #default#saveHistory behaviors. > >Or maybe it's both: a serializable/deserializable persistence >mechanism across independents requests and the way to manipulate the >history. > >What do you guys think? > >:DG< > >On 4/21/05, Brad Neuberg <bradneuberg at yahoo.com> wrote: > > Something along these lines that would be useful is > > control over what goes into the history (and what > > affects the back button) and what _doesn't_. Alot of > > times I shoot off RPC type functions using > > XmlHttpRequest that I _dont_ want in the history, > > since they wouldnt be appropriate for the back button, > > and other times I want the back button to be affected. > > > > Brad > > > > --- Dimitri Glazkov <dimitri.glazkov at gmail.com> wrote: > > > IMHO, one of the biggest obstacles for growth in Web > > > applications > > > development is the fact that the entire application > > > lives in the scope > > > of one request. > > > > > > Once next request is made, the browser essentially > > > "forgets" > > > everything and the whole new cycle of loading, > > > initialization, and > > > binding begins. > > > > > > Yes, you can simulate the effect of retaining scope > > > across several > > > requests with XmlHttpRequest and even frames, but > > > it's the "simulate" > > > part that bothers me. "Simulate" means "hacking", > > > and "hacking" > > > inevitably means inconsistent and/or incomplete > > > implementations. > > > > > > It seems that a future Web Application platform > > > should have this type > > > of functionality readily available. What do you > > > think about the idea > > > of having some likeness of a scope that's inherently > > > wider than > > > request? > > > > > > Consider this example (improvising here): > > > > > > Request 1: > > > > > > function SyntaxHighlighter() > > > { > > > // code goes here to provide on-the-fly > > > beautification of code > > > } > > > document.session.highlighter = new > > > SyntaxHighlighter(); > > > > > > Request 2+: > > > > > > if (document.session.highighter) > > > { > > > var codeSections = > > > document.getElementsBySelector("pre > code") > > > for(var i = 0; i < codeSections.length; i++) > > > { > > > SyntaxHighlighter.apply(codeSections[i]); > > > } > > > } > > > > > > Is this a totally asinine idea? > > > > > > :DG< > > > > > Brad Neuberg, bkn3 at columbia.edu Senior Software Engineer, Rojo Networks Weblog: http://www.codinginparadise.org ===================================================================== Check out Rojo, an RSS and Atom news aggregator that I work on. Visit http://rojo.com for more info. Feel free to ask me for an invite! Rojo is Hiring! If you're interested in RSS, Weblogs, Social Networking, Java, Open Source, etc... then come work with us at Rojo. If you recommend someone and we hire them you'll get a free iPod! See http://www.rojonetworks.com/JobsAtRojo.html. From bkn3 at columbia.edu Fri Apr 22 10:51:04 2005 From: bkn3 at columbia.edu (Brad Neuberg) Date: Fri, 22 Apr 2005 10:51:04 -0700 Subject: [whatwg] Re: Radio UserLand: Mail from Ian Hickson In-Reply-To: <94a59c7d0504220740638f95fd@mail.gmail.com> References: <200504221017.j3MAHXPn006119@bigrack.userland.com> <94a59c7d0504220740638f95fd@mail.gmail.com> Message-ID: <6.2.1.2.2.20050422104745.02b75f28@pop.mail.yahoo.com> Here's a possible API for GET and POST semantics without XmlHttpRequest: window.location.href = base URL + URL parameters already appended window.location.method = GET or POST, nothing else supported If the method is a POST method, the internal code simply pulls all the parameters off of window.location.href and builds up a POST request using them. Should it URL encode each query parameter and key first, or assume that they are already URL-encoded? Brad At 07:40 AM 4/22/2005, Jon Udell wrote: >On 4/22/05, radio at spam.hixie.ch <radio at spam.hixie.ch> wrote: > > > You write "If JavaScript is going to be an appropriate technology of > intermediation, would > > it make sense for it to offer an easy way to issue a non-interactive > HTTP POST?" > > > > Yes, it would. I urge you to send your suggestions to > whatwg at whatwg.org, where > > we're discussing this kind of thing and writing specs that browsers > will be implementing. > >OK. Then I do propose an easy way to issue a non-interactive HTTP POST. > >As to how, I'm probably the wrong guy to propose something. My first >thought was that, if a list were assigned to location.href, then the >base URL would be the first element and the URL-encoded data the >second. This maps to how curl and Python work. But a problem here is >that POST is only implicit, so what about PUT, DELETE, etc.? > >Perhaps one could make a case that POST is important enough to be >included in the most basic idiom, along with GET, and for other stuff >there's an advanced idiom? > >- Jon Brad Neuberg, bkn3 at columbia.edu Senior Software Engineer, Rojo Networks Weblog: http://www.codinginparadise.org ===================================================================== Check out Rojo, an RSS and Atom news aggregator that I work on. Visit http://rojo.com for more info. Feel free to ask me for an invite! Rojo is Hiring! If you're interested in RSS, Weblogs, Social Networking, Java, Open Source, etc... then come work with us at Rojo. If you recommend someone and we hire them you'll get a free iPod! See http://www.rojonetworks.com/JobsAtRojo.html. From fora at annevankesteren.nl Fri Apr 22 10:55:12 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Fri, 22 Apr 2005 19:55:12 +0200 Subject: [whatwg] Canvas element - Keep It Simple In-Reply-To: <6.2.1.2.2.20050422100505.02aa1e88@pop.mail.yahoo.com> References: <4266733C.4060901@olav.dk> <3bcac13cfc2b82777b6cae74581e244f@w3.org> <42669975.9050501@annevankesteren.nl> <fb15ac21050420112840ff9300@mail.gmail.com> <4266A106.20906@annevankesteren.nl> <fb15ac21050420133027fd1c60@mail.gmail.com> <4266D2D6.2060802@myrealbox.com> <e06e01ec2cb663550835cdd78c2168f4@iki.fi> <851c8d310504220800549069a4@mail.gmail.com> <e8e97f9f0504220809596db2db@mail.gmail.com> <6.2.1.2.2.20050422100505.02aa1e88@pop.mail.yahoo.com> Message-ID: <42693A80.5020006@annevankesteren.nl> Brad Neuberg wrote: > What do y'all think? Seems easy for implementors, and the underlying > rendering engine can still treat it as an image but one in which the > image data is generated by code, which should make it easier to put > together (I think ease of implementation and simplicity should > definently be a target of the WHAT-WG; we don't want to end up with a > DSSSL-like standard that takes forever to implement and work the kinks > out of). As there are already implementations and implementors are not likely to change it all back I don't think this is going to work, but if this somehow gets through then please choose the OBJECT element instead. -- Anne van Kesteren <http://annevankesteren.nl/> From olav at olav.dk Fri Apr 22 11:12:25 2005 From: olav at olav.dk (=?ISO-8859-1?Q?Olav_Junker_Kj=E6r?=) Date: Fri, 22 Apr 2005 20:12:25 +0200 Subject: [whatwg] Updating Location Bar for RPC Type Apps In-Reply-To: <6.2.1.2.2.20050422101421.02aaf1b0@pop.mail.yahoo.com> References: <6.2.1.2.2.20050422101421.02aaf1b0@pop.mail.yahoo.com> Message-ID: <42693E89.5000807@olav.dk> Brad Neuberg wrote: > > Whenever I implement a DHTML (Ajax?) type app that needs to talk to the > server without refreshing the client, such as through a hidden iframe or > an XmlHttpRequest object, I always wish that I could update the window > location bar to show a bookmarkable and copyable URL, but update it in > such a way that it _doesn't_ refresh the browser or change it's location > (window.location.href changes the location). You can do this by changing the fragment, e.g. set window.location to: http://www.rojo.com/manage-subscriptions#sortby=TAG" This is useful for changing to a new bookmarkable state on the client side without reloading the page. regards Olav Junker Kj?r From dean at edwards.name Fri Apr 22 11:15:18 2005 From: dean at edwards.name (Dean Edwards) Date: Fri, 22 Apr 2005 19:15:18 +0100 Subject: [whatwg] Updating Location Bar for RPC Type Apps In-Reply-To: <42693E89.5000807@olav.dk> References: <6.2.1.2.2.20050422101421.02aaf1b0@pop.mail.yahoo.com> <42693E89.5000807@olav.dk> Message-ID: <42693F36.70201@edwards.name> Olav Junker Kj?r wrote: > You can do this by changing the fragment, e.g. set window.location to: > http://www.rojo.com/manage-subscriptions#sortby=TAG" > This is useful for changing to a new bookmarkable state on the client > side without reloading the page. > Try using this in conjunction with location.replace() to avoid adding to the back button as well. -dean From ian at hixie.ch Fri Apr 22 12:27:25 2005 From: ian at hixie.ch (Ian Hickson) Date: Fri, 22 Apr 2005 19:27:25 +0000 (UTC) Subject: [whatwg] Updating Location Bar for RPC Type Apps In-Reply-To: <6.2.1.2.2.20050422101421.02aaf1b0@pop.mail.yahoo.com> References: <6.2.1.2.2.20050422101421.02aaf1b0@pop.mail.yahoo.com> Message-ID: <Pine.LNX.4.61.0504221920510.13557@dhalsim.dreamhost.com> On Fri, 22 Apr 2005, Brad Neuberg wrote: > > In fact, we should do a security, phishing, and annoyance scan (blink > tag anyone?) over the WHAT-WG draft itself sometime, forming a threat > model before so we know what potential attackers would actually be > trying to do. Yes, this would (naturally) be a good idea. I encourage anyone who has the time to do this regularly. (Of course, I'm thinking carefully about security whenever adding features to the draft, so hopefully there won't be any! But there always are...) -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From hsivonen at iki.fi Fri Apr 22 14:35:56 2005 From: hsivonen at iki.fi (Henri Sivonen) Date: Sat, 23 Apr 2005 00:35:56 +0300 Subject: [whatwg] Canvas element In-Reply-To: <851c8d310504220800549069a4@mail.gmail.com> References: <4266733C.4060901@olav.dk> <3bcac13cfc2b82777b6cae74581e244f@w3.org> <42669975.9050501@annevankesteren.nl> <fb15ac21050420112840ff9300@mail.gmail.com> <4266A106.20906@annevankesteren.nl> <fb15ac21050420133027fd1c60@mail.gmail.com> <4266D2D6.2060802@myrealbox.com> <e06e01ec2cb663550835cdd78c2168f4@iki.fi> <851c8d310504220800549069a4@mail.gmail.com> Message-ID: <b8c66d4d312f6e787d11cdc634e3c40c@iki.fi> On Apr 22, 2005, at 18:00, Jim Ley wrote: > On 4/22/05, Henri Sivonen <hsivonen at iki.fi> wrote: >> On Apr 21, 2005, at 01:08, dolphinling wrote: >> >>> What semantics does canvas have? >> >> It has the semantics of a rendering context to which scripts can draw. > > So it only has presentational semantics, So it seems. > so should be in a rendering language like CSS? If you value hard-line anti-presentationalism over pragmatism. From hsivonen at iki.fi Fri Apr 22 14:45:12 2005 From: hsivonen at iki.fi (Henri Sivonen) Date: Sat, 23 Apr 2005 00:45:12 +0300 Subject: [whatwg] Re: why, e.g., input/@checked="checked" ? In-Reply-To: <424BC3B3.6010907@inkedblade.net> References: <42456E16.90702@koberg.com> <42477798.99123562@smtp.bjoern.hoehrmann.de> <42457D73.5070708@koberg.com> <20050326152537.GB14917@us-lot.org> <424580FC.4070004@koberg.com> <20050326155449.GC14917@us-lot.org> <Pine.GSO.4.58.0503261853450.14336@korppi.cs.tut.fi> <424BC3B3.6010907@inkedblade.net> Message-ID: <997f1efad8cf3d78196cf83a9e9f9a1f@iki.fi> On Mar 31, 2005, at 12:32, fantasai wrote: > So, for example, I could use attribute minimalization to > shorten the 'type="checkbox"' part like so: > <input checkbox checked> What should text/html flavor HTML5 conformance checkers allow? The tendency has been towards browser reality as opposed the allowing all SGMLisms. -- Henri Sivonen hsivonen at iki.fi http://hsivonen.iki.fi/ From bkn3 at columbia.edu Fri Apr 22 16:13:14 2005 From: bkn3 at columbia.edu (Brad Neuberg) Date: Fri, 22 Apr 2005 16:13:14 -0700 Subject: [whatwg] Updating Location Bar for RPC Type Apps In-Reply-To: <Pine.LNX.4.61.0504221920510.13557@dhalsim.dreamhost.com> References: <6.2.1.2.2.20050422101421.02aaf1b0@pop.mail.yahoo.com> <Pine.LNX.4.61.0504221920510.13557@dhalsim.dreamhost.com> Message-ID: <6.2.1.2.2.20050422161247.02a58530@pop.mail.yahoo.com> Do you have an idea of what the threat model might be? I.e. who is attacking, why are they attacking, and how will they usually be attacking. Brad At 12:27 PM 4/22/2005, Ian Hickson wrote: >On Fri, 22 Apr 2005, Brad Neuberg wrote: > > > > In fact, we should do a security, phishing, and annoyance scan (blink > > tag anyone?) over the WHAT-WG draft itself sometime, forming a threat > > model before so we know what potential attackers would actually be > > trying to do. > >Yes, this would (naturally) be a good idea. I encourage anyone who has the >time to do this regularly. > >(Of course, I'm thinking carefully about security whenever adding features >to the draft, so hopefully there won't be any! But there always are...) > >-- >Ian Hickson U+1047E )\._.,--....,'``. fL >http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. >Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' Brad Neuberg, bkn3 at columbia.edu Senior Software Engineer, Rojo Networks Weblog: http://www.codinginparadise.org ===================================================================== Check out Rojo, an RSS and Atom news aggregator that I work on. Visit http://rojo.com for more info. Feel free to ask me for an invite! Rojo is Hiring! If you're interested in RSS, Weblogs, Social Networking, Java, Open Source, etc... then come work with us at Rojo. If you recommend someone and we hire them you'll get a free iPod! See http://www.rojonetworks.com/JobsAtRojo.html. From ian at hixie.ch Fri Apr 22 16:51:04 2005 From: ian at hixie.ch (Ian Hickson) Date: Fri, 22 Apr 2005 23:51:04 +0000 (UTC) Subject: [whatwg] Updating Location Bar for RPC Type Apps In-Reply-To: <6.2.1.2.2.20050422161247.02a58530@pop.mail.yahoo.com> References: <6.2.1.2.2.20050422101421.02aaf1b0@pop.mail.yahoo.com> <Pine.LNX.4.61.0504221920510.13557@dhalsim.dreamhost.com> <6.2.1.2.2.20050422161247.02a58530@pop.mail.yahoo.com> Message-ID: <Pine.LNX.4.61.0504222335390.1260@dhalsim.dreamhost.com> On Fri, 22 Apr 2005, Brad Neuberg wrote: > > Do you have an idea of what the threat model might be? I.e. who is > attacking, why are they attacking, and how will they usually be > attacking. There are a number of attack vectors but the main ones are letting scripts access data from other hosts or from the computer itself, letting scripts affect the user's experience with the computer and the internet outside the site in question, and making it easier for sites to spoof other sites or system services in order to fradulently obtain personal information. So for example ways to disable the "back" button, or ways to override the user's window manager, and ways for sites to make it appear that they are other sites would be features that should never be allowed in the spec. (<script src="">, <img src="">, and window.open() are examples of features that currently exist in HTML browsers but suffer from these problems to one extent or another.) -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From jim.ley at gmail.com Sat Apr 23 12:12:59 2005 From: jim.ley at gmail.com (Jim Ley) Date: Sat, 23 Apr 2005 20:12:59 +0100 Subject: [whatwg] Canvas element In-Reply-To: <b8c66d4d312f6e787d11cdc634e3c40c@iki.fi> References: <4266733C.4060901@olav.dk> <3bcac13cfc2b82777b6cae74581e244f@w3.org> <42669975.9050501@annevankesteren.nl> <fb15ac21050420112840ff9300@mail.gmail.com> <4266A106.20906@annevankesteren.nl> <fb15ac21050420133027fd1c60@mail.gmail.com> <4266D2D6.2060802@myrealbox.com> <e06e01ec2cb663550835cdd78c2168f4@iki.fi> <851c8d310504220800549069a4@mail.gmail.com> <b8c66d4d312f6e787d11cdc634e3c40c@iki.fi> Message-ID: <851c8d3105042312125ac38d87@mail.gmail.com> On 4/22/05, Henri Sivonen <hsivonen at iki.fi> wrote: > On Apr 22, 2005, at 18:00, Jim Ley wrote: > > so should be in a rendering language like CSS? > > If you value hard-line anti-presentationalism over pragmatism. Er, There are very good reasons why the presentation is split, the most important of course being accessibilty, it's clear from this list that people prefer being able to draw on-top of any element, or perhaps just an img element, and I'm sure that's not from any anti-presentationalism, but simply because they don't see efficient ways to author a canvas element in a backwardsly compatbile accessible manner. Repeatedly in WF2, new elements have been rejected due to their difficulty in implementing in IE6, why is canvas different? (and yes we could implement it in IE6 without much difficulty) Jim. From dolphinling at myrealbox.com Sat Apr 23 12:16:14 2005 From: dolphinling at myrealbox.com (dolphinling) Date: Sat, 23 Apr 2005 15:16:14 -0400 Subject: [whatwg] Canvas element - Keep It Simple In-Reply-To: <42693A80.5020006@annevankesteren.nl> References: <4266733C.4060901@olav.dk> <3bcac13cfc2b82777b6cae74581e244f@w3.org> <42669975.9050501@annevankesteren.nl> <fb15ac21050420112840ff9300@mail.gmail.com> <4266A106.20906@annevankesteren.nl> <fb15ac21050420133027fd1c60@mail.gmail.com> <4266D2D6.2060802@myrealbox.com> <e06e01ec2cb663550835cdd78c2168f4@iki.fi> <851c8d310504220800549069a4@mail.gmail.com> <e8e97f9f0504220809596db2db@mail.gmail.com> <6.2.1.2.2.20050422100505.02aa1e88@pop.mail.yahoo.com> <42693A80.5020006@annevankesteren.nl> Message-ID: <426A9EFE.9030605@myrealbox.com> Anne van Kesteren wrote: > Brad Neuberg wrote: > >> What do y'all think? Seems easy for implementors, and the underlying >> rendering engine can still treat it as an image but one in which the >> image data is generated by code, which should make it easier to put >> together (I think ease of implementation and simplicity should >> definently be a target of the WHAT-WG; we don't want to end up with a >> DSSSL-like standard that takes forever to implement and work the kinks >> out of). > > > As there are already implementations and implementors are not likely to > change it all back I don't think this is going to work, There's one implementation, and one implementation in testing builds. It would also be an easy change to make for those implementations (and they could still keep support for the "old way" if they need). > but if this > somehow gets through then please choose the OBJECT element instead. Does IE6 support gif/jpg/png in OBJECT? If not, allow it in both for backwards compatablity. I agree, though, it should be focused on OBJECT. -- dolphinling <http://dolphinling.net/> From jim.ley at gmail.com Sat Apr 23 12:18:53 2005 From: jim.ley at gmail.com (Jim Ley) Date: Sat, 23 Apr 2005 20:18:53 +0100 Subject: [whatwg] Updating Location Bar for RPC Type Apps In-Reply-To: <42693E89.5000807@olav.dk> References: <6.2.1.2.2.20050422101421.02aaf1b0@pop.mail.yahoo.com> <42693E89.5000807@olav.dk> Message-ID: <851c8d3105042312182f601b89@mail.gmail.com> On 4/22/05, Olav Junker Kj?r <olav at olav.dk> wrote: > Brad Neuberg wrote: > > > > Whenever I implement a DHTML (Ajax?) type app that needs to talk to the > > server without refreshing the client, such as through a hidden iframe or > > an XmlHttpRequest object, I always wish that I could update the window > > location bar to show a bookmarkable and copyable URL, but update it in > > such a way that it _doesn't_ refresh the browser or change it's location > > (window.location.href changes the location). > > You can do this by changing the fragment, e.g. set window.location to: > http://www.rojo.com/manage-subscriptions#sortby=TAG" > This is useful for changing to a new bookmarkable state on the client > side without reloading the page. Hmm, but then you need client-side intelligence to test the hash portion of the string, and then make subsequent requests to get the relevant data from the server. The original suggestion is much more powerful than that, as it allows the server to respond directly to a request. I've certainly wanted this, a sensible compromise is to only be able to set the query portion of the url. Jim. From jim.ley at gmail.com Sat Apr 23 12:24:53 2005 From: jim.ley at gmail.com (Jim Ley) Date: Sat, 23 Apr 2005 20:24:53 +0100 Subject: [whatwg] Canvas element - Keep It Simple In-Reply-To: <42693A80.5020006@annevankesteren.nl> References: <4266733C.4060901@olav.dk> <fb15ac21050420112840ff9300@mail.gmail.com> <4266A106.20906@annevankesteren.nl> <fb15ac21050420133027fd1c60@mail.gmail.com> <4266D2D6.2060802@myrealbox.com> <e06e01ec2cb663550835cdd78c2168f4@iki.fi> <851c8d310504220800549069a4@mail.gmail.com> <e8e97f9f0504220809596db2db@mail.gmail.com> <6.2.1.2.2.20050422100505.02aa1e88@pop.mail.yahoo.com> <42693A80.5020006@annevankesteren.nl> Message-ID: <851c8d3105042312242e49f5e3@mail.gmail.com> On 4/22/05, Anne van Kesteren <fora at annevankesteren.nl> wrote: > As there are already implementations and implementors are not likely to > change it all back Until today, the spec was very clear that it wasn't appropriate to implement any feature on the spec, today for some unexplained reason it's changed to just a general it could change warning. Either way any implementor would've been aware of the highly draft nature of the specification, so should have been expecting it to change. There are certainly no sites relying on the functionality. > I don't think this is going to work, but if this > somehow gets through then please choose the OBJECT element instead. OBJECT is indeed a good idea, for any extension of that needs fallback behaviour. Jim. From hsivonen at iki.fi Sat Apr 23 18:22:25 2005 From: hsivonen at iki.fi (Henri Sivonen) Date: Sun, 24 Apr 2005 04:22:25 +0300 Subject: [whatwg] Canvas element - Keep It Simple In-Reply-To: <426A9EFE.9030605@myrealbox.com> References: <4266733C.4060901@olav.dk> <3bcac13cfc2b82777b6cae74581e244f@w3.org> <42669975.9050501@annevankesteren.nl> <fb15ac21050420112840ff9300@mail.gmail.com> <4266A106.20906@annevankesteren.nl> <fb15ac21050420133027fd1c60@mail.gmail.com> <4266D2D6.2060802@myrealbox.com> <e06e01ec2cb663550835cdd78c2168f4@iki.fi> <851c8d310504220800549069a4@mail.gmail.com> <e8e97f9f0504220809596db2db@mail.gmail.com> <6.2.1.2.2.20050422100505.02aa1e88@pop.mail.yahoo.com> <42693A80.5020006@annevankesteren.nl> <426A9EFE.9030605@myrealbox.com> Message-ID: <b0fed924a48f6abbac9cff8dbdb3e4de@iki.fi> On Apr 23, 2005, at 22:16, dolphinling wrote: > There's one implementation, and one implementation in testing builds. > It would also be an easy change to make for those implementations (and > they could still keep support for the "old way" if they need). The release date of Tiger is very near. Safari will ship with canvas. Once it is out, you can't pull it back. -- Henri Sivonen hsivonen at iki.fi http://hsivonen.iki.fi/ From hsivonen at iki.fi Sat Apr 23 18:24:33 2005 From: hsivonen at iki.fi (Henri Sivonen) Date: Sun, 24 Apr 2005 04:24:33 +0300 Subject: [whatwg] Canvas element In-Reply-To: <851c8d3105042312125ac38d87@mail.gmail.com> References: <4266733C.4060901@olav.dk> <3bcac13cfc2b82777b6cae74581e244f@w3.org> <42669975.9050501@annevankesteren.nl> <fb15ac21050420112840ff9300@mail.gmail.com> <4266A106.20906@annevankesteren.nl> <fb15ac21050420133027fd1c60@mail.gmail.com> <4266D2D6.2060802@myrealbox.com> <e06e01ec2cb663550835cdd78c2168f4@iki.fi> <851c8d310504220800549069a4@mail.gmail.com> <b8c66d4d312f6e787d11cdc634e3c40c@iki.fi> <851c8d3105042312125ac38d87@mail.gmail.com> Message-ID: <f3fa68c9e7804c5ec3c44c377ea3b2d1@iki.fi> On Apr 23, 2005, at 22:12, Jim Ley wrote: > On 4/22/05, Henri Sivonen <hsivonen at iki.fi> wrote: >> On Apr 22, 2005, at 18:00, Jim Ley wrote: >>> so should be in a rendering language like CSS? >> >> If you value hard-line anti-presentationalism over pragmatism. > > Er, There are very good reasons why the presentation is split, the > most important of course being accessibilty How would moving the graphics context establishment syntax to another place improve accessiblity? -- Henri Sivonen hsivonen at iki.fi http://hsivonen.iki.fi/ From jim.ley at gmail.com Sun Apr 24 01:26:03 2005 From: jim.ley at gmail.com (Jim Ley) Date: Sun, 24 Apr 2005 09:26:03 +0100 Subject: [whatwg] Canvas element - Keep It Simple In-Reply-To: <b0fed924a48f6abbac9cff8dbdb3e4de@iki.fi> References: <4266733C.4060901@olav.dk> <fb15ac21050420133027fd1c60@mail.gmail.com> <4266D2D6.2060802@myrealbox.com> <e06e01ec2cb663550835cdd78c2168f4@iki.fi> <851c8d310504220800549069a4@mail.gmail.com> <e8e97f9f0504220809596db2db@mail.gmail.com> <6.2.1.2.2.20050422100505.02aa1e88@pop.mail.yahoo.com> <42693A80.5020006@annevankesteren.nl> <426A9EFE.9030605@myrealbox.com> <b0fed924a48f6abbac9cff8dbdb3e4de@iki.fi> Message-ID: <851c8d3105042401263d26e49d@mail.gmail.com> On 4/24/05, Henri Sivonen <hsivonen at iki.fi> wrote: > On Apr 23, 2005, at 22:16, dolphinling wrote: > > > There's one implementation, and one implementation in testing builds. > > It would also be an easy change to make for those implementations (and > > they could still keep support for the "old way" if they need). > > The release date of Tiger is very near. Safari will ship with canvas. So? What's that got to do with the Web Applications Standard? > Once it is out, you can't pull it back. It's never been in a published standard, the specification still states that it's subject to change. I'm very disappointed that the "do not implement in released software" has been removed without any discussion on the list of the maturity of the specification, but that's just the normal high handed approach of the working group. But even without that, there's no need to bless a poor implementation decisison simply because one minority browser has implemented it and used it solely in non-web content. If successful shipped implementations is what matters, then there's lots of successful IE extensions that do the same as canvas and other elements which it would be much more sensible to go with. Jim. From ian at hixie.ch Sun Apr 24 03:26:03 2005 From: ian at hixie.ch (Ian Hickson) Date: Sun, 24 Apr 2005 10:26:03 +0000 (UTC) Subject: [whatwg] Canvas element - Keep It Simple In-Reply-To: <b0fed924a48f6abbac9cff8dbdb3e4de@iki.fi> References: <4266733C.4060901@olav.dk> <3bcac13cfc2b82777b6cae74581e244f@w3.org> <42669975.9050501@annevankesteren.nl> <fb15ac21050420112840ff9300@mail.gmail.com> <4266A106.20906@annevankesteren.nl> <fb15ac21050420133027fd1c60@mail.gmail.com> <4266D2D6.2060802@myrealbox.com> <e06e01ec2cb663550835cdd78c2168f4@iki.fi> <851c8d310504220800549069a4@mail.gmail.com> <e8e97f9f0504220809596db2db@mail.gmail.com> <6.2.1.2.2.20050422100505.02aa1e88@pop.mail.yahoo.com> <42693A80.5020006@annevankesteren.nl> <426A9EFE.9030605@myrealbox.com> <b0fed924a48f6abbac9cff8dbdb3e4de@iki.fi> Message-ID: <Pine.LNX.4.61.0504241025190.25563@dhalsim.dreamhost.com> On Sun, 24 Apr 2005, Henri Sivonen wrote: > > The release date of Tiger is very near. Safari will ship with canvas. > Once it is out, you can't pull it back. The Safari in Tiger was already RTM before this thread started, for what it's worth. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From kornel at ldreams.net Sun Apr 24 07:12:26 2005 From: kornel at ldreams.net (Kornel Lesinski) Date: Sun, 24 Apr 2005 15:12:26 +0100 Subject: [whatwg] Canvas element - Keep It Simple In-Reply-To: <42693A80.5020006@annevankesteren.nl> References: <4266733C.4060901@olav.dk> <3bcac13cfc2b82777b6cae74581e244f@w3.org> <42669975.9050501@annevankesteren.nl> <fb15ac21050420112840ff9300@mail.gmail.com> <4266A106.20906@annevankesteren.nl> <fb15ac21050420133027fd1c60@mail.gmail.com> <4266D2D6.2060802@myrealbox.com> <e06e01ec2cb663550835cdd78c2168f4@iki.fi> <851c8d310504220800549069a4@mail.gmail.com> <e8e97f9f0504220809596db2db@mail.gmail.com> <6.2.1.2.2.20050422100505.02aa1e88@pop.mail.yahoo.com> <42693A80.5020006@annevankesteren.nl> Message-ID: <op.spqpq0np602458@idlaptop02.ideadesigners.local> On Fri, 22 Apr 2005 18:55:12 +0100, Anne van Kesteren <fora at annevankesteren.nl> wrote: > As there are already implementations and implementors are not likely to > change it all back I don't think this is going to work, but if this > somehow gets through then please choose the OBJECT element instead. I think <canvas> is the best solution. <object> is already complex and too many ways of defining it's contents led to poor support. canvas doesn't belong to CSS, because CSS can't use it. Developers would use it via object.style.canvas = 'enabled' or something like that. Enabling via JS IMHO doesn't work either. Just adds unneccesary code: <div id="canvas"></div> <script type="text/javascript">document.getElementById('canvas').drawable=true</script> It has been mentioned before that UAs probably won't manage to support drawing on every element, so authors would limit themselves just to something basic like static or abslutely positioned div. <canvas> as element has some advantages: It would be possible to modify prototype of HTMLCanvasElement to add functions that are missing in some implementations or - in case of safari - find all <canvas> elements and replace them with safari-compatible ones - that would be very difficult if canvas was enabled via CSS or JS method. Another problem is that it would be very useful to create images for CSS via scripting (like rounded corners, shades, patterns), but I don't see any elegant way of joining those two... foo {background: url(#id_of_canvas_element);} canvas.onlyForCSS {display: none;} -- regards, Kornel Lesinski From jim.ley at gmail.com Sun Apr 24 08:14:29 2005 From: jim.ley at gmail.com (Jim Ley) Date: Sun, 24 Apr 2005 16:14:29 +0100 Subject: [whatwg] Canvas element - Keep It Simple In-Reply-To: <op.spqpq0np602458@idlaptop02.ideadesigners.local> References: <4266733C.4060901@olav.dk> <4266A106.20906@annevankesteren.nl> <fb15ac21050420133027fd1c60@mail.gmail.com> <4266D2D6.2060802@myrealbox.com> <e06e01ec2cb663550835cdd78c2168f4@iki.fi> <851c8d310504220800549069a4@mail.gmail.com> <e8e97f9f0504220809596db2db@mail.gmail.com> <6.2.1.2.2.20050422100505.02aa1e88@pop.mail.yahoo.com> <42693A80.5020006@annevankesteren.nl> <op.spqpq0np602458@idlaptop02.ideadesigners.local> Message-ID: <851c8d31050424081417b2ab2@mail.gmail.com> On 4/24/05, Kornel Lesinski <kornel at ldreams.net> wrote: > canvas doesn't belong to CSS, because CSS can't use it. Neither can HTML - it's always blank unless script is supported, so by that argument, Script, and only Script is the appropriate place. > Enabling via JS IMHO doesn't work either. Just adds unneccesary code: > > <div id="canvas"></div> > <script > type="text/javascript">document.getElementById('canvas').drawable=true</script> You've made these seem bloated, but you're ignoring the fact that the only "extra" code in that example is the .drawable=true - if that really is a problem, then it would be trivial to not require it and just allow drawing to start on top of any element. > It would be possible to modify prototype of HTMLCanvasElement > to add functions that are missing in some implementations or The existence of an HTMLCanvasElement prototype is not standard currently - are you suggesting that the Web Application specification should require the prototyping of these objects? I would be very much opposed to this, requiring a particular coupling to javascript is not a good idea. Jim. From kornel at ldreams.net Sun Apr 24 08:44:15 2005 From: kornel at ldreams.net (Kornel Lesinski) Date: Sun, 24 Apr 2005 16:44:15 +0100 Subject: [whatwg] Canvas element - Keep It Simple In-Reply-To: <851c8d31050424081417b2ab2@mail.gmail.com> References: <4266733C.4060901@olav.dk> <4266A106.20906@annevankesteren.nl> <fb15ac21050420133027fd1c60@mail.gmail.com> <4266D2D6.2060802@myrealbox.com> <e06e01ec2cb663550835cdd78c2168f4@iki.fi> <851c8d310504220800549069a4@mail.gmail.com> <e8e97f9f0504220809596db2db@mail.gmail.com> <6.2.1.2.2.20050422100505.02aa1e88@pop.mail.yahoo.com> <42693A80.5020006@annevankesteren.nl> <op.spqpq0np602458@idlaptop02.ideadesigners.local> <851c8d31050424081417b2ab2@mail.gmail.com> Message-ID: <op.spqtz1af602458@idlaptop02.ideadesigners.local> On Sun, 24 Apr 2005 16:14:29 +0100, Jim Ley <jim.ley at gmail.com> wrote: > Neither can HTML - it's always blank unless script is supported, so by > that argument, Script, and only Script is the appropriate place. It needs to be in DOM. If every element could be made canvas by script, each DOM element would have to implement neccessary interface. <canvas> limits this support only to certain elements and lets browsers attach neccesary styling and behaviour beforehand. > You've made these seem bloated, but you're ignoring the fact that the > only "extra" code in that example is the .drawable=true - if that > really is a problem, then it would be trivial to not require it and > just allow drawing to start on top of any element. Drawable <img> is pretty easy to implement (change to internal bitmap), but drawable <div> might be really difficult (additional overlay of bitmap). >> It would be possible to modify prototype of HTMLCanvasElement >> to add functions that are missing in some implementations or > > The existence of an HTMLCanvasElement prototype is not standard > currently It's in current draft, with width/height properties and getContext method. > - are you suggesting that the Web Application specification > should require the prototyping of these objects? I would be very > much opposed to this, requiring a particular coupling to javascript is > not a good idea. But such coupling is already there for every current form element. Prototypes are required by ECMA script already. -- regards, Kornel Lesinski From jim.ley at gmail.com Sun Apr 24 09:42:31 2005 From: jim.ley at gmail.com (Jim Ley) Date: Sun, 24 Apr 2005 17:42:31 +0100 Subject: [whatwg] Canvas element - Keep It Simple In-Reply-To: <op.spqtz1af602458@idlaptop02.ideadesigners.local> References: <4266733C.4060901@olav.dk> <4266D2D6.2060802@myrealbox.com> <e06e01ec2cb663550835cdd78c2168f4@iki.fi> <851c8d310504220800549069a4@mail.gmail.com> <e8e97f9f0504220809596db2db@mail.gmail.com> <6.2.1.2.2.20050422100505.02aa1e88@pop.mail.yahoo.com> <42693A80.5020006@annevankesteren.nl> <op.spqpq0np602458@idlaptop02.ideadesigners.local> <851c8d31050424081417b2ab2@mail.gmail.com> <op.spqtz1af602458@idlaptop02.ideadesigners.local> Message-ID: <851c8d31050424094238388b24@mail.gmail.com> On 4/24/05, Kornel Lesinski <kornel at ldreams.net> wrote: > On Sun, 24 Apr 2005 16:14:29 +0100, Jim Ley <jim.ley at gmail.com> wrote: > Drawable <img> is pretty easy to implement (change to internal bitmap), So the proposal to have img alone switch to drawable seems a good one. The WHAT-WG members have previously said that new elements are a bad idea as they're more complicated to implement - re-using image seems a good option. Especially as it would give us the ability to use the image itself as a background - and to provide fallback support for the user. Look at google maps, it draws on top of img elements, adding in extra canvas elements would seem to be highly redundant? > > The existence of an HTMLCanvasElement prototype is not standard > > currently > > It's in current draft, with width/height properties and getContext method. Could you point to where? Or was I not clear enough about talking about the _prototype_ that's the thing that is not currently specified and I believe is hugely unwarranted. [Prototypes] > But such coupling is already there for every current form element. > Prototypes are required by ECMA script already. Could you point me to the part of the specification? Because by my reading of the ECMA spec prototypes are not required on host objects such as the DOM in a webbrowser. Jim. From bradneuberg at yahoo.com Sun Apr 24 16:07:26 2005 From: bradneuberg at yahoo.com (Brad Neuberg) Date: Sun, 24 Apr 2005 16:07:26 -0700 (PDT) Subject: [whatwg] Canvas element - Keep It Simple In-Reply-To: 6667 Message-ID: <20050424230726.72862.qmail@web60707.mail.yahoo.com> --- Jim Ley <jim.ley at gmail.com> wrote: > On 4/24/05, Henri Sivonen <hsivonen at iki.fi> wrote: > > On Apr 23, 2005, at 22:16, dolphinling wrote: > > > > > There's one implementation, and one > implementation in testing builds. > > > It would also be an easy change to make for > those implementations (and > > > they could still keep support for the "old way" > if they need). > > > > The release date of Tiger is very near. Safari > will ship with canvas. > > So? What's that got to do with the Web Applications > Standard? > > > Once it is out, you can't pull it back. > > It's never been in a published standard, the > specification still > states that it's subject to change. I'm very > disappointed that the "do > not implement in released software" has been removed > without any > discussion on the list of the maturity of the > specification, but > that's just the normal high handed approach of the > working group. But > even without that, there's no need to bless a poor > implementation > decisison simply because one minority browser has > implemented it and > used it solely in non-web content. > > If successful shipped implementations is what > matters, then there's > lots of successful IE extensions that do the same as > canvas and other > elements which it would be much more sensible to go > with. I'm not against that; I thought one of the ideas behind the WHAT working group is to take already working defacto standards and simply specify them and implement them in other browsers, such as innerHTML and XmlHttpRequest. I'd much rather choose an already existing, if not perfect, canvas or drawable surface type defacto standard than create an imaginary "perfect" one like we seem to be doing on this list. Running code is king.... Brad > > Jim. > From jim.ley at gmail.com Mon Apr 25 01:17:04 2005 From: jim.ley at gmail.com (Jim Ley) Date: Mon, 25 Apr 2005 09:17:04 +0100 Subject: [whatwg] Canvas element - Keep It Simple In-Reply-To: <20050424230726.72862.qmail@web60707.mail.yahoo.com> References: <20050424230726.72862.qmail@web60707.mail.yahoo.com> Message-ID: <851c8d31050425011752d88d7@mail.gmail.com> On 4/25/05, Brad Neuberg <bradneuberg at yahoo.com> wrote: > > If successful shipped implementations is what > > matters, then there's > > lots of successful IE extensions that do the same as > > canvas and other > > elements which it would be much more sensible to go > > with. > > I'm not against that; I thought one of the ideas > behind the WHAT working group is to take already > working defacto standards and simply specify them and > implement them in other browsers, such as innerHTML > and XmlHttpRequest. I'd much rather choose an already > existing, if not perfect, canvas or drawable surface > type defacto standard than create an imaginary > "perfect" one like we seem to be doing on this list. > Running code is king.... Great, lets go with VML, supported on the majority of desktops out there, used by high profile sites such as Google, It's a much better option albeit more complicated than canvas. Jim. From olav at olav.dk Mon Apr 25 02:46:37 2005 From: olav at olav.dk (=?ISO-8859-1?Q?Olav_Junker_Kj=E6r?=) Date: Mon, 25 Apr 2005 11:46:37 +0200 Subject: [whatwg] Canvas element - Keep It Simple In-Reply-To: <851c8d31050425011752d88d7@mail.gmail.com> References: <20050424230726.72862.qmail@web60707.mail.yahoo.com> <851c8d31050425011752d88d7@mail.gmail.com> Message-ID: <426CBC7D.50303@olav.dk> Jim Ley wrote: > Great, lets go with VML, supported on the majority of desktops out > there, used by high profile sites such as Google, It's a much better > option albeit more complicated than canvas. First I thought you were joking, but that is actually a great idea! VML does integrate with HTML, not just XHTML, which was one of Dave Hyatts major criticisms against SVG. http://weblogs.mozillazine.org/hyatt/archives/2004_07.html#005928 It's certainly a lot more work to implement that canvas, but if it became supported by other browsers than IE, it would be useful on the wold wide web a lot sooner than canvas or SVG. Even if Microsoft committed to support SVG or canvas in a future version of IE (which I think is unlikely), it would still take years for the implementation to penetrate. OTOH VML is already widely supported - it's just ignored by developers because it is perceived as proprietary, and because Flash has an even wider penetration (and better tools). regards Olav Junker Kj?r From bkn3 at columbia.edu Mon Apr 25 12:06:10 2005 From: bkn3 at columbia.edu (Brad Neuberg) Date: Mon, 25 Apr 2005 12:06:10 -0700 Subject: [whatwg] Canvas element - Keep It Simple In-Reply-To: <851c8d31050424094238388b24@mail.gmail.com> References: <4266733C.4060901@olav.dk> <4266D2D6.2060802@myrealbox.com> <e06e01ec2cb663550835cdd78c2168f4@iki.fi> <851c8d310504220800549069a4@mail.gmail.com> <e8e97f9f0504220809596db2db@mail.gmail.com> <6.2.1.2.2.20050422100505.02aa1e88@pop.mail.yahoo.com> <42693A80.5020006@annevankesteren.nl> <op.spqpq0np602458@idlaptop02.ideadesigners.local> <851c8d31050424081417b2ab2@mail.gmail.com> <op.spqtz1af602458@idlaptop02.ideadesigners.local> <851c8d31050424094238388b24@mail.gmail.com> Message-ID: <6.2.1.2.2.20050425120411.02a24758@pop.mail.yahoo.com> At 09:42 AM 4/24/2005, Jim Ley wrote: >On 4/24/05, Kornel Lesinski <kornel at ldreams.net> wrote: > > On Sun, 24 Apr 2005 16:14:29 +0100, Jim Ley <jim.ley at gmail.com> wrote: > > Drawable <img> is pretty easy to implement (change to internal bitmap), > >So the proposal to have img alone switch to drawable seems a good one. > The WHAT-WG members have previously said that new elements are a bad >idea as they're more complicated to implement - re-using image seems a >good option. Especially as it would give us the ability to use the >image itself as a background - and to provide fallback support for the >user. > >Look at google maps, it draws on top of img elements, adding in extra >canvas elements would seem to be highly redundant? > > > > The existence of an HTMLCanvasElement prototype is not standard > > > currently > > > > It's in current draft, with width/height properties and getContext method. > >Could you point to where? Or was I not clear enough about talking >about the _prototype_ that's the thing that is not currently specified >and I believe is hugely unwarranted. > >[Prototypes] > > But such coupling is already there for every current form element. > > Prototypes are required by ECMA script already. > >Could you point me to the part of the specification? Because by my >reading of the ECMA spec prototypes are not required on host objects >such as the DOM in a webbrowser. True, but having prototypes on DOM objects can be extremely useful and provide all sorts of very powerful options. Mozilla allows manipulation of the prototype object on DOM objects (except for removing the original native methods and attributes, for security reasons). Unfortunately, IE doesn't support this, so this ability can't really be used in practice. Brad >Jim. Brad Neuberg, bkn3 at columbia.edu Senior Software Engineer, Rojo Networks Weblog: http://www.codinginparadise.org ===================================================================== Check out Rojo, an RSS and Atom news aggregator that I work on. Visit http://rojo.com for more info. Feel free to ask me for an invite! Rojo is Hiring! If you're interested in RSS, Weblogs, Social Networking, Java, Open Source, etc... then come work with us at Rojo. If you recommend someone and we hire them you'll get a free iPod! See http://www.rojonetworks.com/JobsAtRojo.html. From bkn3 at columbia.edu Mon Apr 25 12:17:17 2005 From: bkn3 at columbia.edu (Brad Neuberg) Date: Mon, 25 Apr 2005 12:17:17 -0700 Subject: [whatwg] Canvas element - Keep It Simple In-Reply-To: <851c8d31050425011752d88d7@mail.gmail.com> References: <20050424230726.72862.qmail@web60707.mail.yahoo.com> <851c8d31050425011752d88d7@mail.gmail.com> Message-ID: <6.2.1.2.2.20050425121648.02a4b510@pop.mail.yahoo.com> Here's the VML standard if folks are interested: http://www.w3.org/TR/1998/NOTE-VML-19980513 How closely does IE correspond to the VML standard? I love the idea of embracing and extending things from Microsoft, co-opting them. ;) Brad At 01:17 AM 4/25/2005, Jim Ley wrote: >On 4/25/05, Brad Neuberg <bradneuberg at yahoo.com> wrote: > > > If successful shipped implementations is what > > > matters, then there's > > > lots of successful IE extensions that do the same as > > > canvas and other > > > elements which it would be much more sensible to go > > > with. > > > > I'm not against that; I thought one of the ideas > > behind the WHAT working group is to take already > > working defacto standards and simply specify them and > > implement them in other browsers, such as innerHTML > > and XmlHttpRequest. I'd much rather choose an already > > existing, if not perfect, canvas or drawable surface > > type defacto standard than create an imaginary > > "perfect" one like we seem to be doing on this list. > > Running code is king.... > >Great, lets go with VML, supported on the majority of desktops out >there, used by high profile sites such as Google, It's a much better >option albeit more complicated than canvas. > >Jim. Brad Neuberg, bkn3 at columbia.edu Senior Software Engineer, Rojo Networks Weblog: http://www.codinginparadise.org ===================================================================== Check out Rojo, an RSS and Atom news aggregator that I work on. Visit http://rojo.com for more info. Feel free to ask me for an invite! Rojo is Hiring! If you're interested in RSS, Weblogs, Social Networking, Java, Open Source, etc... then come work with us at Rojo. If you recommend someone and we hire them you'll get a free iPod! See http://www.rojonetworks.com/JobsAtRojo.html. From hsivonen at iki.fi Mon Apr 25 12:46:45 2005 From: hsivonen at iki.fi (Henri Sivonen) Date: Mon, 25 Apr 2005 22:46:45 +0300 Subject: [whatwg] text/html flavor conformance checkers and <foo /> Message-ID: <6999888fe81645cb9750235153c271d3@iki.fi> What should text/html flavor conformance checkers say about <foo />? Silently treat as <foo>> as per SGML? Silently treat as <foo> as per real world? Report a warning? Report an error? What about <foo/>? I am leaning towards reporting an error. -- Henri Sivonen hsivonen at iki.fi http://hsivonen.iki.fi/ From bkn3 at columbia.edu Mon Apr 25 12:58:08 2005 From: bkn3 at columbia.edu (Brad Neuberg) Date: Mon, 25 Apr 2005 12:58:08 -0700 Subject: [whatwg] text/html flavor conformance checkers and <foo /> In-Reply-To: <6999888fe81645cb9750235153c271d3@iki.fi> References: <6999888fe81645cb9750235153c271d3@iki.fi> Message-ID: <6.2.1.2.2.20050425125702.02a303c8@pop.mail.yahoo.com> At 12:46 PM 4/25/2005, Henri Sivonen wrote: >What should text/html flavor conformance checkers say about <foo />? > >Silently treat as <foo>> as per SGML? >Silently treat as <foo> as per real world? >Report a warning? >Report an error? > >What about <foo/>? > >I am leaning towards reporting an error. Unfortunately, <foo /> is the real world way of "hacking" XHTML support into IE, since IE will belch if you give <foo/>. You also have to serve it up as text/html for IE..... You should probably transform it into what people expect it in the real world, which is turning <foo /> into <foo>. Brad >-- >Henri Sivonen >hsivonen at iki.fi >http://hsivonen.iki.fi/ > Brad Neuberg, bkn3 at columbia.edu Senior Software Engineer, Rojo Networks Weblog: http://www.codinginparadise.org ===================================================================== Check out Rojo, an RSS and Atom news aggregator that I work on. Visit http://rojo.com for more info. Feel free to ask me for an invite! Rojo is Hiring! If you're interested in RSS, Weblogs, Social Networking, Java, Open Source, etc... then come work with us at Rojo. If you recommend someone and we hire them you'll get a free iPod! See http://www.rojonetworks.com/JobsAtRojo.html. From fora at annevankesteren.nl Mon Apr 25 13:00:32 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Mon, 25 Apr 2005 22:00:32 +0200 Subject: [whatwg] text/html flavor conformance checkers and <foo /> In-Reply-To: <6.2.1.2.2.20050425125702.02a303c8@pop.mail.yahoo.com> References: <6999888fe81645cb9750235153c271d3@iki.fi> <6.2.1.2.2.20050425125702.02a303c8@pop.mail.yahoo.com> Message-ID: <426D4C60.6070307@annevankesteren.nl> Brad Neuberg wrote: >> What should text/html flavor conformance checkers say about <foo />? >> >> Silently treat as <foo>> as per SGML? >> Silently treat as <foo> as per real world? >> Report a warning? >> Report an error? >> >> What about <foo/>? >> >> I am leaning towards reporting an error. > > Unfortunately, <foo /> is the real world way of "hacking" XHTML support > into IE, since IE will belch if you give <foo/>. You also have to serve > it up as text/html for IE..... You should probably transform it into > what people expect it in the real world, which is turning <foo /> into > <foo>. That was my first though too, until Henri pointed out he was talking about conformance checkers and not about parsers. -- Anne van Kesteren <http://annevankesteren.nl/> From olav at olav.dk Mon Apr 25 13:21:05 2005 From: olav at olav.dk (=?ISO-8859-1?Q?Olav_Junker_Kj=E6r?=) Date: Mon, 25 Apr 2005 22:21:05 +0200 Subject: [whatwg] text/html flavor conformance checkers and <foo /> In-Reply-To: <6999888fe81645cb9750235153c271d3@iki.fi> References: <6999888fe81645cb9750235153c271d3@iki.fi> Message-ID: <426D5131.2070201@olav.dk> Both <foo /> and <foo/> are errors in HTML and should be flagged by a conformance checker. XHTML 1.0 appendix C arguably allows a hybrid syntax which is HTML and XHTML at the same time. This is not relevant for HTML5 though, since HTML5 explicitly disallows serving XHTML as text/html, so a HTML5 document is always either HTML or XHTML dependent on the mime type. regards Olav Junker Kj?r Henri Sivonen wrote: > What should text/html flavor conformance checkers say about <foo />? > > Silently treat as <foo>> as per SGML? > Silently treat as <foo> as per real world? > Report a warning? > Report an error? > > What about <foo/>? > > I am leaning towards reporting an error. > From ian at hixie.ch Mon Apr 25 16:23:11 2005 From: ian at hixie.ch (Ian Hickson) Date: Mon, 25 Apr 2005 23:23:11 +0000 (UTC) Subject: [whatwg] Re: HTTP 205 response In-Reply-To: <426D659E.9020907@mit.edu> References: <426D659E.9020907@mit.edu> Message-ID: <Pine.LNX.4.61.0504252317260.25513@dhalsim.dreamhost.com> On Mon, 25 Apr 2005, Boris Zbarsky wrote: > > Step 8 at http://whatwg.org/specs/web-forms/current-work/#form-submission > doesn't seem particularly well-defined to me. In particular, > > 1) There is no definition of the term "form" here (if there is one > elsewhere in the specification, please link to it). Would a form in > a Flash plugin be considered a form? What about XForms? What about > other languages (eg XUL) defining HTML-form-like semantics? Changed to specifically refer to <form> elements. > 2) It's not clear to me why simply resetting forms to their current > defaultValues (as opposed to their initial defaultValues) follows > the HTTP specification being cited Changed to say that the requirement in WF2 is based on the HTTP one, but that the HTTP one is vague. > See also https://bugzilla.mozilla.org/show_bug.cgi?id=198309 for some > discussion on the issue. Did you have any specific comments in mind? Thanks for your input, I have updated the spec accordingly. Please let me know if there's anything that could be improved. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From ian at hixie.ch Tue Apr 26 01:44:47 2005 From: ian at hixie.ch (Ian Hickson) Date: Tue, 26 Apr 2005 08:44:47 +0000 (UTC) Subject: [whatwg] Re: HTTP 205 response In-Reply-To: <426DAF2C.2090906@mit.edu> References: <426D659E.9020907@mit.edu> <Pine.LNX.4.61.0504252317260.25513@dhalsim.dreamhost.com> <426DAF2C.2090906@mit.edu> Message-ID: <Pine.LNX.4.61.0504260831060.25513@dhalsim.dreamhost.com> On Mon, 25 Apr 2005, Boris Zbarsky wrote: > > > > Changed to specifically refer to <form> elements. > > I assume the specification somewhere makes it clear that element names > in orange (is this a good idea accessibility-wise?) mean <html:*> > elements or something equivalent? The terminology section says: "Unless otherwise stated, XML elements defined in this specification are elements in the http://www.w3.org/1999/xhtml namespace, and attributes defined in this specification have no namespace." ...is that enough? (The orange colour applies to all <code> elements.) > > > See also https://bugzilla.mozilla.org/show_bug.cgi?id=198309 for some > > > discussion on the issue. > > > > Did you have any specific comments in mind? > > Yes. It's not clear which document should be reset when the 205 > response is received if the form had a target attribute. Note that if > that happened the 205 may be received after the original document no > longer exists. Also note that in the simplest and most straightforward > implementation of form submission (as just another load in a window) the > HTTP request may only be aware of the target document, not the one it > was "dispatched from" (whatever that means, in general; see next > paragraph). > > One other thing. When a 205 is received, will the onreset handlers of > the relevant forms fire? Addressed the above points. http://whatwg.org/specs/web-forms/current-work/#form-submission Let me know if you can find any other holes! :-) > It's also not clear what should happen if a 205 response is received in > response to an HTTP request that is NOT a form submission (say a link > click, the user typing a URI in the URL bar, a window.open call, etc, > etc). It may be that the specification wishes to leave these cases > undefined; it may be worth clearly saying so in that case. Those cases will be defined in the Web Apps spec in due course, but are out of scope of the Web Forms spec. I don't really know where to put the note in the WF2 spec; putting it in the middle of the forms submission algorithm seems a bit weird (obviously that stuff doesn't apply to things other than form submission, it's right in the middle of sections that are exclusively about form submission). Thanks hugely for your input, -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From tato at game.gr.jp Mon Apr 25 04:25:25 2005 From: tato at game.gr.jp (Toshirou Takahashi) Date: Mon, 25 Apr 2005 20:25:25 +0900 Subject: [whatwg] about 2.12. Scripting Message-ID: <20050425193543.603E.TATO@game.gr.jp> hi(^^)/ about 2.12. Scripting http://whatwg.org/specs/web-apps/current-work/#the-script interface HTMLScriptElement : HTMLElement { attribute DOMString text; attribute DOMString src; attribute DOMString type; }; Why isn't there Charset attribute ? i think ... the charset attribute is necessary for Script Tag. Because, beforehand, we do not know charset that read by src attribute. reference: HTML4.0 http://www.w3.org/TR/REC-html40/interact/scripts.html#h-18.2.1 <!ELEMENT SCRIPT - - %Script; -- script statements --> <!ATTLIST SCRIPT charset %Charset; #IMPLIED -- char encoding of linked resource -- type %ContentType; #REQUIRED -- content type of script language -- src %URI; #IMPLIED -- URI for an external script -- defer (defer) #IMPLIED -- UA may defer execution of script -- > DOM1 http://www.w3.org/TR/DOM-Level-1/level-one-html.html#ID-81598695 interface HTMLScriptElement : HTMLElement { attribute DOMString text; attribute DOMString htmlFor; attribute DOMString event; attribute DOMString charset; attribute boolean defer; attribute DOMString src; attribute DOMString type; }; MSDN http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/objects/script.asp -- Toshirou Takahashi <tato at game.gr.jp> http://allabout.co.jp/career/javascript/profile/mbiopage.htm http://jsgt.org/mt/01/ From bzbarsky at mit.edu Mon Apr 25 20:02:04 2005 From: bzbarsky at mit.edu (Boris Zbarsky) Date: Mon, 25 Apr 2005 22:02:04 -0500 Subject: [whatwg] Re: HTTP 205 response In-Reply-To: <Pine.LNX.4.61.0504252317260.25513@dhalsim.dreamhost.com> References: <426D659E.9020907@mit.edu> <Pine.LNX.4.61.0504252317260.25513@dhalsim.dreamhost.com> Message-ID: <426DAF2C.2090906@mit.edu> Ian Hickson wrote: > Changed to specifically refer to <form> elements. I assume the specification somewhere makes it clear that element names in orange (is this a good idea accessibility-wise?) mean <html:*> elements or something equivalent? >>See also https://bugzilla.mozilla.org/show_bug.cgi?id=198309 for some >>discussion on the issue. > > Did you have any specific comments in mind? Yes. It's not clear which document should be reset when the 205 response is received if the form had a target attribute. Note that if that happened the 205 may be received after the original document no longer exists. Also note that in the simplest and most straightforward implementation of form submission (as just another load in a window) the HTTP request may only be aware of the target document, not the one it was "dispatched from" (whatever that means, in general; see next paragraph). It's also not clear what should happen if a 205 response is received in response to an HTTP request that is NOT a form submission (say a link click, the user typing a URI in the URL bar, a window.open call, etc, etc). It may be that the specification wishes to leave these cases undefined; it may be worth clearly saying so in that case. One other thing. When a 205 is received, will the onreset handlers of the relevant forms fire? -Boris From fora at annevankesteren.nl Tue Apr 26 04:24:54 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Tue, 26 Apr 2005 13:24:54 +0200 Subject: [whatwg] [html5] Use cases for DI element Message-ID: <426E2506.3060708@annevankesteren.nl> As use cases were requested for the DI element: 1. Identifying a definition group. 2. Editing a definition group When you have a list of items: <dl> <dt>foo <dt>bar <dt>baz <dd>terms <dd>programmar's slang <dt>HTML <dt>CSS <dd>Internet languages </dl> ... there is no simple way to identify a definition group. One way would be to give the first DT element an ID attribute but than the definition for ID would have to be changed. Also, when later through contentEditable a new DT element is inserted above the DT element with an ID attribute the ID attribute would have to be moved. (It is useful to have an ID attribute for FAQs, et cetera where you want to link to the answers.) Using a DI element that is easily solved as the DI element with an ID attribute would identify the definition group. It also makes editing of a definition group easier. Say users may edit a single group, you do: <dl contentEditable="false"> <dt>foo <dt>bar <dd>terms <dt contentEditable="true">HTML <dt contentEditable="true">CSS <dd contentEditable="true">Internet languages </dl> ... however, now you can't insert new definitions like "XML" or new descriptions. Using the opposite does enable that (setting contentEditable to true for the DL element and setting it to false for all elements that shouldn't be editable) but it creates another problem namely that people can insert new definitions. Again, a DI element would solve the issue. -- Anne van Kesteren <http://annevankesteren.nl/> From lachlan.hunt at lachy.id.au Tue Apr 26 05:57:19 2005 From: lachlan.hunt at lachy.id.au (Lachlan Hunt) Date: Tue, 26 Apr 2005 22:57:19 +1000 Subject: [whatwg] text/html flavor conformance checkers and <foo /> In-Reply-To: <6999888fe81645cb9750235153c271d3@iki.fi> References: <6999888fe81645cb9750235153c271d3@iki.fi> Message-ID: <426E3AAF.1040800@lachy.id.au> Henri Sivonen wrote: > What should text/html flavor conformance checkers say about <foo />? > > Silently treat as <foo>> as per SGML? Yes. > Silently treat as <foo> as per real world? Intentionally buggy/broken behaviour should not be carried over into conformance checkers. > Report a warning? Yes. > Report an error? I don't think it should be an error. A warning like the WDG validator issues is appropriate. > What about <foo/>? Same as <foo />. -- Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox From jg307 at cam.ac.uk Tue Apr 26 06:49:00 2005 From: jg307 at cam.ac.uk (James Graham) Date: Tue, 26 Apr 2005 14:49:00 +0100 Subject: [whatwg] text/html flavor conformance checkers and <foo /> In-Reply-To: <426D4C60.6070307@annevankesteren.nl> References: <6999888fe81645cb9750235153c271d3@iki.fi> <6.2.1.2.2.20050425125702.02a303c8@pop.mail.yahoo.com> <426D4C60.6070307@annevankesteren.nl> Message-ID: <426E46CC.7090409@cam.ac.uk> Anne van Kesteren wrote: > Brad Neuberg wrote: > >>> What should text/html flavor conformance checkers say about <foo />? >>> >>> Silently treat as <foo>> as per SGML? >>> Silently treat as <foo> as per real world? >>> Report a warning? >>> Report an error? >>> >>> What about <foo/>? >>> >>> I am leaning towards reporting an error. >> >> >> Unfortunately, <foo /> is the real world way of "hacking" XHTML >> support into IE, since IE will belch if you give <foo/>. You also >> have to serve it up as text/html for IE..... You should probably >> transform it into what people expect it in the real world, which is >> turning <foo /> into <foo>. > > > That was my first though too, until Henri pointed out he was talking > about conformance checkers and not about parsers. Is there a good reason that <foo /> cannot be valid HTML5? Any parser which doesn't support <foo /> also doesn't support much of the web content produced in the last 2 years. In this case a conformance checker could emit a warning (maybe only a strict warning) since it's not impossible that people will expect HTML5 to work in a parser that's incompatible with real-world HTML4. -- "But if science you say still sounds too deep, Just do what Beaker does, just shrug and 'Meep!'" -- Dr. Bunsen Honeydew & Beaker of Muppet Labs From fora at annevankesteren.nl Tue Apr 26 07:04:50 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Tue, 26 Apr 2005 16:04:50 +0200 Subject: [whatwg] text/html flavor conformance checkers and <foo /> In-Reply-To: <426E46CC.7090409@cam.ac.uk> References: <6999888fe81645cb9750235153c271d3@iki.fi> <6.2.1.2.2.20050425125702.02a303c8@pop.mail.yahoo.com> <426D4C60.6070307@annevankesteren.nl> <426E46CC.7090409@cam.ac.uk> Message-ID: <426E4A82.1010600@annevankesteren.nl> James Graham wrote: > Is there a good reason that <foo /> cannot be valid HTML5? Any parser > which doesn't support <foo /> also doesn't support much of the web > content produced in the last 2 years. I'm not sure about "a good reason". Mostly consistency I guess and giving people a single option. Note that parsers most likely have to parse <foo />, <foo/> and <foo> in the same way in order to be compatible with the web. That however, does not make it valid HTML5, that just makes the web work. Same for leaving out non optional end tags. HTML5 should define what should happen to the DOM tree. Leaving them out should be invalid. > In this case a conformance checker could emit a warning (maybe only a > strict warning) since it's not impossible that people will expect > HTML5 to work in a parser that's incompatible with real-world HTML4. Real-world HTML4 is exactly what HTML5 is going to represent. I'm not sure if I understand this correctly. -- Anne van Kesteren <http://annevankesteren.nl/> From olav at olav.dk Tue Apr 26 07:18:11 2005 From: olav at olav.dk (=?UTF-8?B?T2xhdiBKdW5rZXIgS2rDpnI=?=) Date: Tue, 26 Apr 2005 16:18:11 +0200 Subject: [whatwg] text/html flavor conformance checkers and <foo /> In-Reply-To: <426E46CC.7090409@cam.ac.uk> References: <6999888fe81645cb9750235153c271d3@iki.fi> <6.2.1.2.2.20050425125702.02a303c8@pop.mail.yahoo.com> <426D4C60.6070307@annevankesteren.nl> <426E46CC.7090409@cam.ac.uk> Message-ID: <426E4DA3.6050306@olav.dk> James Graham wrote: > Is there a good reason that <foo /> cannot be valid HTML5? Any parser > which doesn't support <foo /> also doesn't support much of the web > content produced in the last 2 years. In this case a conformance checker > could emit a warning (maybe only a strict warning) since it's not > impossible that people will expect HTML5 to work in a parser that's > incompatible with real-world HTML4. A conformance checker should check conformance to the spec, not conformance to the behavior of actual UA's. But new specs should (arguable) be aligned with the behavior of actual UA's if they are to be backwards compatible. There have been discussions about redefining the low-level parsing of HTML to bring it more in alignment with how current UA's works. If we want XHTML 1.0 to be legal HTML, it would make sense to allow the trailing slash in empty elements. That way, you could legally server the same content as both HTML and XHTML. (You can do that now, but it won't validate as HTML which is a drag. If you want to be able to serve the same content as both HTML and XHTML, you would want to make sure that it validates as both HTML and XHTML.) regards Olav Junker Kj?r From hsivonen at iki.fi Tue Apr 26 08:00:14 2005 From: hsivonen at iki.fi (Henri Sivonen) Date: Tue, 26 Apr 2005 18:00:14 +0300 Subject: [whatwg] text/html flavor conformance checkers and <foo /> In-Reply-To: <426E3AAF.1040800@lachy.id.au> References: <6999888fe81645cb9750235153c271d3@iki.fi> <426E3AAF.1040800@lachy.id.au> Message-ID: <426E577E.2080900@iki.fi> Lachlan Hunt wrote: > Henri Sivonen wrote: > >> What should text/html flavor conformance checkers say about <foo />? >> >> Silently treat as <foo>> as per SGML? > > Yes. What useful purpose would be served by doing so? >> Silently treat as <foo> as per real world? > > Intentionally buggy/broken behaviour should not be carried over into > conformance checkers. What do you suggest the parser layer of an text/html conformance checker say about <input checkbox ...>? 1. Silently treat as <input type="checkbox" ...>? 2. Treat as <input type="checkbox" ...> but warn? 3. Treat as <input checkbox="checkbox" ...> causing an error to be reported on a higher layer? 4. Treat as fatal error in the parser? I'm inclined to choose 3. -- Henri Sivonen hsivonen at iki.fi http://hsivonen.iki.fi/ From jax at opera.com Tue Apr 26 09:04:39 2005 From: jax at opera.com (Jonny Axelsson) Date: Tue, 26 Apr 2005 18:04:39 +0200 Subject: [whatwg] text/html flavor conformance checkers and <foo /> In-Reply-To: <426E577E.2080900@iki.fi> References: <6999888fe81645cb9750235153c271d3@iki.fi> <426E3AAF.1040800@lachy.id.au> <426E577E.2080900@iki.fi> Message-ID: <op.spuj91t7oh2a7v@jax-xp.upc.no> On Tue, 26 Apr 2005 17:00:14 +0200, Henri Sivonen <hsivonen at iki.fi> wrote: > Lachlan Hunt wrote: >> Henri Sivonen wrote: >>> What should text/html flavor conformance checkers say about <foo />? >>> Silently treat as <foo>> as per SGML? >> Yes. > > What useful purpose would be served by doing so? HTML never became a SGML application, and though SGML was believed to be on the verge of taking over the world in the middle nineties that never happened. There is no benefit in my opinion for a modern spec to include counter-intuitive SGML features that made sense at the time (or rather in a SGML universe). Neither would SGML dependency be desireable. > I'm inclined to choose 3. Seconded. -- Jonny Axelsson, Documentation, Opera Software ASA From fantasai.lists at inkedblade.net Tue Apr 26 09:08:20 2005 From: fantasai.lists at inkedblade.net (fantasai) Date: Tue, 26 Apr 2005 12:08:20 -0400 Subject: [whatwg] text/html flavor conformance checkers and <foo /> In-Reply-To: <426E577E.2080900@iki.fi> References: <6999888fe81645cb9750235153c271d3@iki.fi> <426E3AAF.1040800@lachy.id.au> <426E577E.2080900@iki.fi> Message-ID: <426E6774.4030308@inkedblade.net> Henri Sivonen wrote: > > What do you suggest the parser layer of an text/html conformance checker > say about <input checkbox ...>? > > 1. Silently treat as <input type="checkbox" ...>? > 2. Treat as <input type="checkbox" ...> but warn? > 3. Treat as <input checkbox="checkbox" ...> causing an error to be > reported on a higher layer? > 4. Treat as fatal error in the parser? > > I'm inclined to choose 3. *Why?* Why of all things would you choose to interpret it like /that/? It's neither reporting a useful error, nor handling it per SGML rules. ~fantasai From fora at annevankesteren.nl Tue Apr 26 09:16:32 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Tue, 26 Apr 2005 18:16:32 +0200 Subject: [whatwg] text/html flavor conformance checkers and <foo /> In-Reply-To: <426E577E.2080900@iki.fi> References: <6999888fe81645cb9750235153c271d3@iki.fi> <426E3AAF.1040800@lachy.id.au> <426E577E.2080900@iki.fi> Message-ID: <426E6960.2010901@annevankesteren.nl> Henri Sivonen wrote: > What do you suggest the parser layer of an text/html conformance checker > say about > <input checkbox ...>? > > 1. Silently treat as <input type="checkbox" ...>? > 2. Treat as <input type="checkbox" ...> but warn? > 3. Treat as <input checkbox="checkbox" ...> causing an error to be > reported on a higher layer? > 4. Treat as fatal error in the parser? A combination of 3 and 4. As |checkbox="checkbox"| is not a valid attribute and not a valid attribute value of the invalid attribute as far as I know. Or did you mean something else by 4? (It might be that we just agree...) -- Anne van Kesteren <http://annevankesteren.nl/> From fora at annevankesteren.nl Tue Apr 26 09:17:20 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Tue, 26 Apr 2005 18:17:20 +0200 Subject: [whatwg] text/html flavor conformance checkers and <foo /> In-Reply-To: <426E6774.4030308@inkedblade.net> References: <6999888fe81645cb9750235153c271d3@iki.fi> <426E3AAF.1040800@lachy.id.au> <426E577E.2080900@iki.fi> <426E6774.4030308@inkedblade.net> Message-ID: <426E6990.2040205@annevankesteren.nl> fantasai wrote: > *Why?* Why of all things would you choose to interpret it like /that/? > It's neither reporting a useful error, nor handling it per SGML rules. Because that is expected. -- Anne van Kesteren <http://annevankesteren.nl/> From bkn3 at columbia.edu Tue Apr 26 09:30:35 2005 From: bkn3 at columbia.edu (Brad Neuberg) Date: Tue, 26 Apr 2005 09:30:35 -0700 Subject: [whatwg] text/html flavor conformance checkers and <foo /> In-Reply-To: <op.spuj91t7oh2a7v@jax-xp.upc.no> References: <6999888fe81645cb9750235153c271d3@iki.fi> <426E3AAF.1040800@lachy.id.au> <426E577E.2080900@iki.fi> <op.spuj91t7oh2a7v@jax-xp.upc.no> Message-ID: <6.2.1.2.2.20050426093007.02af2cc8@pop.mail.yahoo.com> At 09:04 AM 4/26/2005, Jonny Axelsson wrote: >On Tue, 26 Apr 2005 17:00:14 +0200, Henri Sivonen <hsivonen at iki.fi> wrote: >>Lachlan Hunt wrote: >>>Henri Sivonen wrote: > >>>>What should text/html flavor conformance checkers say about <foo />? >>>>Silently treat as <foo>> as per SGML? >>> Yes. >> >>What useful purpose would be served by doing so? > >HTML never became a SGML application, and though SGML was believed to be >on the verge of taking over the world in the middle nineties that never >happened. There is no benefit in my opinion for a modern spec to include >counter-intuitive SGML features that made sense at the time (or rather in >a SGML universe). Neither would SGML dependency be desireable. +1. When will people stop pretending that HTML is not SGML (it's also not currently XML)? It has developed into its own technology with its own set of practices. >>I'm inclined to choose 3. >Seconded. > >-- >Jonny Axelsson, Documentation, Opera Software ASA Brad Neuberg, bkn3 at columbia.edu Senior Software Engineer, Rojo Networks Weblog: http://www.codinginparadise.org ===================================================================== Check out Rojo, an RSS and Atom news aggregator that I work on. Visit http://rojo.com for more info. Feel free to ask me for an invite! Rojo is Hiring! If you're interested in RSS, Weblogs, Social Networking, Java, Open Source, etc... then come work with us at Rojo. If you recommend someone and we hire them you'll get a free iPod! See http://www.rojonetworks.com/JobsAtRojo.html. From bkn3 at columbia.edu Tue Apr 26 10:32:03 2005 From: bkn3 at columbia.edu (Brad Neuberg) Date: Tue, 26 Apr 2005 10:32:03 -0700 Subject: [whatwg] Questions: IE 6 Compatibility, HTML 5, Spec Timeframe, and Implementation Timeframe Message-ID: <6.2.1.2.2.20050426102545.02ab5f10@pop.mail.yahoo.com> I have several questions and concerns. First, what exactly is the stance in regard to IE 6 compatibility for Web Forms 2.0 and Web Applications 1.0? I've been hearing things lately concerning Web Applications 1.0 that seem like they would be very difficult, impossible, or cause slow performance if emulated in IE 6. Whats the exact relationship between these specs and IE 6? Will there be a baseline of support in IE 6, a low water mark? Second, what is the relationship of HTML 5 to these two specs? Who is developing this standard? At first glance it seems like a large dependency. Third, is there a timeframe for completing these two specs and for getting actual implementations out the door? I'm concerned that proprietary web app/rich web app defacto standards will succeed faster than the WHAT-WG, like Flash and Avalon, and one of the things that attracted me to the WHAT-WG was its focus on being real-world and pragmatic, getting it out the door rather than getting it perfect, co-opting and using existing de-facto standards like innerHTML rather than rolling new ivory tower ones. Would hard deadlines on both specs, including deadlines for implementations, help this? I don't want to end up with another SVG, a giant spec that was announced, took years to develop, and still doesn't have real implementations or critical mass. We need this stuff yesterday; it's just too important. ;) Best, Brad Neuberg Brad Neuberg, bkn3 at columbia.edu Senior Software Engineer, Rojo Networks Weblog: http://www.codinginparadise.org ===================================================================== Check out Rojo, an RSS and Atom news aggregator that I work on. Visit http://rojo.com for more info. Feel free to ask me for an invite! Rojo is Hiring! If you're interested in RSS, Weblogs, Social Networking, Java, Open Source, etc... then come work with us at Rojo. If you recommend someone and we hire them you'll get a free iPod! See http://www.rojonetworks.com/JobsAtRojo.html. From hsivonen at iki.fi Tue Apr 26 11:17:20 2005 From: hsivonen at iki.fi (Henri Sivonen) Date: Tue, 26 Apr 2005 21:17:20 +0300 Subject: [whatwg] text/html flavor conformance checkers and <foo /> In-Reply-To: <426E6960.2010901@annevankesteren.nl> References: <6999888fe81645cb9750235153c271d3@iki.fi> <426E3AAF.1040800@lachy.id.au> <426E577E.2080900@iki.fi> <426E6960.2010901@annevankesteren.nl> Message-ID: <260a2ed6009595acb31f973972d6dcba@iki.fi> On Apr 26, 2005, at 19:16, Anne van Kesteren wrote: > Henri Sivonen wrote: >> What do you suggest the parser layer of an text/html conformance >> checker say about >> <input checkbox ...>? >> 1. Silently treat as <input type="checkbox" ...>? >> 2. Treat as <input type="checkbox" ...> but warn? >> 3. Treat as <input checkbox="checkbox" ...> causing an error to be >> reported on a higher layer? >> 4. Treat as fatal error in the parser? > > A combination of 3 and 4. As |checkbox="checkbox"| is not a valid > attribute and not a valid attribute value of the invalid attribute as > far as I know. If you pick 4, you never get to the higher layer. > Or did you mean something else by 4? (It might be that we just > agree...) I meant that in case 4 the error would be reported in the component that has responsibilities similar to the responsibilities of the XML processor in the XHTML case. Since an XML processor would not flag <input checkbox="checkbox"/> as an error, I think requiring the HTML parser to know about particular attributes would be bad design. My vision of a conformance checker looks like this: http://hsivonen.iki.fi/img/what-wg-conformance-checker.png I think the requirements for conformance checkers should be formulated in such a way that the box labeled "Tag-level HTML parser" would not need to know about any particular element or attribute names. -- Henri Sivonen hsivonen at iki.fi http://hsivonen.iki.fi/ From hsivonen at iki.fi Tue Apr 26 11:21:58 2005 From: hsivonen at iki.fi (Henri Sivonen) Date: Tue, 26 Apr 2005 21:21:58 +0300 Subject: [whatwg] text/html flavor conformance checkers and <foo /> In-Reply-To: <426E6774.4030308@inkedblade.net> References: <6999888fe81645cb9750235153c271d3@iki.fi> <426E3AAF.1040800@lachy.id.au> <426E577E.2080900@iki.fi> <426E6774.4030308@inkedblade.net> Message-ID: <3eb7972b01befae4bd976fd969435de3@iki.fi> On Apr 26, 2005, at 19:08, fantasai wrote: > Henri Sivonen wrote: >> What do you suggest the parser layer of an text/html conformance >> checker say about <input checkbox ...>? >> 1. Silently treat as <input type="checkbox" ...>? >> 2. Treat as <input type="checkbox" ...> but warn? >> 3. Treat as <input checkbox="checkbox" ...> causing an error to be >> reported on a higher layer? >> 4. Treat as fatal error in the parser? >> I'm inclined to choose 3. > > *Why?* Why of all things would you choose to interpret it like /that/? > It's neither reporting a useful error, nor handling it per SGML rules. To make the separation of concerns similar to what it would be on the XML side while being real about SGMLness being fiction. That is, the parser does not need to know if an attribute is allowed. That's a job for a higher layer. -- Henri Sivonen hsivonen at iki.fi http://hsivonen.iki.fi/ From dean at edwards.name Tue Apr 26 11:27:34 2005 From: dean at edwards.name (Dean Edwards) Date: Tue, 26 Apr 2005 19:27:34 +0100 Subject: [whatwg] Questions: IE 6 Compatibility, HTML 5, Spec Timeframe, and Implementation Timeframe In-Reply-To: <6.2.1.2.2.20050426102545.02ab5f10@pop.mail.yahoo.com> References: <6.2.1.2.2.20050426102545.02ab5f10@pop.mail.yahoo.com> Message-ID: <426E8816.7040705@edwards.name> Brad Neuberg wrote: > I have several questions and concerns. > > First, what exactly is the stance in regard to IE 6 compatibility for > Web Forms 2.0 and Web Applications 1.0? I've been hearing things > lately concerning Web Applications 1.0 that seem like they would be > very difficult, impossible, or cause slow performance if emulated in > IE 6. Most of WF2 can be implemented in IE6 without a noticeable degradation in performance. Obviously, it will have some limits. A page with hundreds of form controls might cause some slowdown on older spec machines. An IE6 implementation is never going to be perfect but I believe you can script WF2 to a more than acceptable level on this platform. I'm not sure about WA1 as I haven't thought about it so much from an implementer's point of view. What bits of it do you think are difficult to implement? It seems to me that some of it does not need to be implemented at all. > Whats the exact relationship between these specs and IE 6? Will > there be a baseline of support in IE 6, a low water mark? > I don't think we've set a water mark but it has always been the intention to produce a WF2 spec capable of being supported on IE6. > Second, what is the relationship of HTML 5 to these two specs? Who is > developing this standard? At first glance it seems like a large > dependency. > WF2 and WA1 are components of HTML5: http://listserver.dreamhost.com/pipermail/whatwg-whatwg.org/2005-April/003746.html > Third, is there a timeframe for completing these two specs and for > getting actual implementations out the door? > one of the things that attracted me to the WHAT-WG was its focus on > being real-world and pragmatic, getting it out the door rather than > getting it perfect, co-opting and using existing de-facto standards This is pretty much the reason I got involved too. :-) > Would hard deadlines on both specs, including deadlines for > implementations, help this? As a programmer I always hated hard deadlines. > We need this stuff yesterday; it's just too important. ;) > I agree. ;-) Some of the developers on this list are collaborating on a WF2 implementation for IE5/6. It won't be ready yesterday but it will be built. We'll announce more about this development when there is something concrete to demonstrate. Does that satisfy your concerns? -dean From bkn3 at columbia.edu Tue Apr 26 11:49:42 2005 From: bkn3 at columbia.edu (Brad Neuberg) Date: Tue, 26 Apr 2005 11:49:42 -0700 Subject: [whatwg] Questions: IE 6 Compatibility, HTML 5, Spec Timeframe, and Implementation Timeframe In-Reply-To: <426E8816.7040705@edwards.name> References: <6.2.1.2.2.20050426102545.02ab5f10@pop.mail.yahoo.com> <426E8816.7040705@edwards.name> Message-ID: <6.2.1.2.2.20050426114558.02b1b820@pop.mail.yahoo.com> My focus is actually mostly on Web Applications 1.0 rather than Web Forms 2.0. Responses inline. >I'm not sure about WA1 as I haven't thought about it so much from an >implementer's point of view. What bits of it do you think are difficult >to implement? It seems to me that some of it does not need to be >implemented at all. I'll need to think about that. I'll have to read through the spec and think about what might be difficult or slow to emulate on IE. As a start some of the email list discussion on changing the semantics and parsing of basic HTML elements and re-interpreting what they mean concerned me in terms of IE, since doing this might be difficult especially since you can't modify the prototype objects of the DOM in IE. >>Whats the exact relationship between these specs and IE 6? Will >>there be a baseline of support in IE 6, a low water mark? > >I don't think we've set a water mark but it has always been the >intention to produce a WF2 spec capable of being supported on IE6. How about for Web Applications 1.0? If there are SHOULD and MAY portions of the spec, would all SHOULD elements be supported in IE while all MAY elements would not? >>Second, what is the relationship of HTML 5 to these two specs? Who is >> developing this standard? At first glance it seems like a large >> dependency. > >WF2 and WA1 are components of HTML5: > >http://listserver.dreamhost.com/pipermail/whatwg-whatwg.org/2005-April/003746.html > >>Third, is there a timeframe for completing these two specs and for >>getting actual implementations out the door? > >>one of the things that attracted me to the WHAT-WG was its focus on >>being real-world and pragmatic, getting it out the door rather than >>getting it perfect, co-opting and using existing de-facto standards > >This is pretty much the reason I got involved too. :-) > >>Would hard deadlines on both specs, including deadlines for >>implementations, help this? > >As a programmer I always hated hard deadlines. Me too, but they help, especially when you get to define them yourself. ;) I think it's good to a certain degree cuse its easy to get perfectionistic about this stuff, and a hard deadline can force you to accept that something won't be perfect and ship it out the door. >>We need this stuff yesterday; it's just too important. ;) > >I agree. ;-) > >Some of the developers on this list are collaborating on a WF2 >implementation for IE5/6. It won't be ready yesterday but it will be >built. We'll announce more about this development when there is >something concrete to demonstrate. > >Does that satisfy your concerns? A bit; I know that you also share an interest in real world specs that are "good enough", but does the group and the spec writers? Also, I'm mostly interested in Web Apps 1.0 so there are alot of questions still there. Best, Brad >-dean > Brad Neuberg, bkn3 at columbia.edu Senior Software Engineer, Rojo Networks Weblog: http://www.codinginparadise.org ===================================================================== Check out Rojo, an RSS and Atom news aggregator that I work on. Visit http://rojo.com for more info. Feel free to ask me for an invite! Rojo is Hiring! If you're interested in RSS, Weblogs, Social Networking, Java, Open Source, etc... then come work with us at Rojo. If you recommend someone and we hire them you'll get a free iPod! See http://www.rojonetworks.com/JobsAtRojo.html. From ian at hixie.ch Tue Apr 26 11:51:47 2005 From: ian at hixie.ch (Ian Hickson) Date: Tue, 26 Apr 2005 18:51:47 +0000 (UTC) Subject: [whatwg] Questions: IE 6 Compatibility, HTML 5, Spec Timeframe, and Implementation Timeframe In-Reply-To: <6.2.1.2.2.20050426102545.02ab5f10@pop.mail.yahoo.com> References: <6.2.1.2.2.20050426102545.02ab5f10@pop.mail.yahoo.com> Message-ID: <Pine.LNX.4.61.0504261754530.3661@dhalsim.dreamhost.com> On Tue, 26 Apr 2005, Brad Neuberg wrote: > > First, what exactly is the stance in regard to IE 6 compatibility for > Web Forms 2.0 and Web Applications 1.0? Basically: * New features must gracefully fallback to legacy UAs: although that fallback may be simple lack of support for that feature, using new features in legacy UAs must not cause the experience in older UAs to be worse than if the feature was simply not used. Examples: * <object></object> in HTML4 allows graceful fallback, and is fine. * <img alt=""> doesn't allow good fallback, but degrades to nothing at all, so could be considered if there were no other better ideas. * Switching to a different MIME type makes the file unusable in older browsers, so it would be unacceptable. * Ideally, new features should be implementable using shims in WinIE, but there may be cases where that's not possible, and in those cases we're not going to avoid adding the feature just because WinIE can't do it. Example: * a 3D context for <canvas> is probably not something we can realisticly expect to see implemented in IE using JS, but it's still something we've had demand for and thus something we'll likely be working on. > I've been hearing things lately concerning Web Applications 1.0 that > seem like they would be very difficult, impossible, or cause slow > performance if emulated in IE 6. Whats the exact relationship between > these specs and IE 6? Will there be a baseline of support in IE 6, a > low water mark? The relationship is that most people won't use features that don't work in IE, so most features have to bear that in mind. Some people have specific needs (<canvas> for example is something we've heard a lot of demand for from people wanting to write games and the like), which they can't ever expect to really have work in IE, and so for those we need to offer features designed so that they can still provide alternative versions for IE (i.e. fallback). > Second, what is the relationship of HTML 5 to these two specs? Who is > developing this standard? At first glance it seems like a large > dependency. HTML5 is the Web Apps spec. It isn't called that yet in the headings for political reasons. > Third, is there a timeframe for completing these two specs and for > getting actual implementations out the door? Web Forms 2 is basically done and will be going to Call For Implementations shortly. Web Apps 1 has no ETA yet. Implementations of some parts have shipped for years (XMLHttpRequest), implementations of others are likely to ship soon (<canvas>), implementations of other parts aren't likely for a long time (relatively speaking). > I'm concerned that proprietary web app/rich web app defacto standards > will succeed faster than the WHAT-WG, like Flash and Avalon, and one of > the things that attracted me to the WHAT-WG was its focus on being > real-world and pragmatic, getting it out the door rather than getting it > perfect, co-opting and using existing de-facto standards like innerHTML > rather than rolling new ivory tower ones. Would hard deadlines on both > specs, including deadlines for implementations, help this? I agree that we have to move fast. I believe the main ways to do this are to (a) write text at a steady rate (as I am doing), (b) to get feedback on the spec (as is happening), and (c) to stop adding new features. There is one more feature I think we need to add to the spec that isn't there already, namely the session stuff that people have been discussing. Other than that I'm of the opinion that we have enough features for "HTML5" now and so "all" that remains is fleshing the spec out. I don't think deadlines would help, really. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From jim.ley at gmail.com Tue Apr 26 11:53:25 2005 From: jim.ley at gmail.com (Jim Ley) Date: Tue, 26 Apr 2005 19:53:25 +0100 Subject: [whatwg] Questions: IE 6 Compatibility, HTML 5, Spec Timeframe, and Implementation Timeframe In-Reply-To: <6.2.1.2.2.20050426114558.02b1b820@pop.mail.yahoo.com> References: <6.2.1.2.2.20050426102545.02ab5f10@pop.mail.yahoo.com> <426E8816.7040705@edwards.name> <6.2.1.2.2.20050426114558.02b1b820@pop.mail.yahoo.com> Message-ID: <851c8d3105042611532fddb287@mail.gmail.com> On 4/26/05, Brad Neuberg <bkn3 at columbia.edu> wrote: > How about for Web Applications 1.0? If there are SHOULD and MAY portions > of the spec, would all SHOULD elements be supported in IE while all MAY > elements would not? We don't want optional things in specifications, optional bits and profiles etc. just fragment the supported parts even more than the simple incomplete/buggy implementation reality. Jim. From jim.ley at gmail.com Tue Apr 26 11:56:59 2005 From: jim.ley at gmail.com (Jim Ley) Date: Tue, 26 Apr 2005 19:56:59 +0100 Subject: [whatwg] Questions: IE 6 Compatibility, HTML 5, Spec Timeframe, and Implementation Timeframe In-Reply-To: <Pine.LNX.4.61.0504261754530.3661@dhalsim.dreamhost.com> References: <6.2.1.2.2.20050426102545.02ab5f10@pop.mail.yahoo.com> <Pine.LNX.4.61.0504261754530.3661@dhalsim.dreamhost.com> Message-ID: <851c8d3105042611561e65fea@mail.gmail.com> On 4/26/05, Ian Hickson <ian at hixie.ch> wrote: > On Tue, 26 Apr 2005, Brad Neuberg wrote: > Example: > > * a 3D context for <canvas> is probably not something we can > realisticly expect to see implemented in IE using JS, but it's > still something we've had demand for and thus something we'll > likely be working on. A 3D canvas is just, if not more implementable than a 2D one. Once again, rather than invent strange new things which then make us need to add shims to make it work in IE, why not take the existing massively supported on hundreds of millions of desktops and use that? > (<canvas> for example is something we've heard a lot of demand for > from people wanting to write games and the like), Could you provide more details? Surely Flash meets all the use cases for games developers, what's missing? > Web Forms 2 is basically done and will be going to Call For > Implementations shortly. When will we see a last call for comments? Jim. From bkn3 at columbia.edu Tue Apr 26 12:00:36 2005 From: bkn3 at columbia.edu (Brad Neuberg) Date: Tue, 26 Apr 2005 12:00:36 -0700 Subject: [whatwg] Questions: IE 6 Compatibility, HTML 5, Spec Timeframe, and Implementation Timeframe In-Reply-To: <Pine.LNX.4.61.0504261754530.3661@dhalsim.dreamhost.com> References: <6.2.1.2.2.20050426102545.02ab5f10@pop.mail.yahoo.com> <Pine.LNX.4.61.0504261754530.3661@dhalsim.dreamhost.com> Message-ID: <6.2.1.2.2.20050426115802.0297a1d0@pop.mail.yahoo.com> At 11:51 AM 4/26/2005, Ian Hickson wrote: >On Tue, 26 Apr 2005, Brad Neuberg wrote: > > > > First, what exactly is the stance in regard to IE 6 compatibility for > > Web Forms 2.0 and Web Applications 1.0? > >Basically: > > * New features must gracefully fallback to legacy UAs: although that > fallback may be simple lack of support for that feature, using new > features in legacy UAs must not cause the experience in older UAs to > be worse than if the feature was simply not used. > > Examples: > > * <object></object> in HTML4 allows graceful fallback, and is fine. > > * <img alt=""> doesn't allow good fallback, but degrades to nothing > at all, so could be considered if there were no other better ideas. > > * Switching to a different MIME type makes the file unusable in older > browsers, so it would be unacceptable. Nice. I like this policy. Perhaps the spec can specify a new behavior, and then describe how it falls back in IE across all the elements. > * Ideally, new features should be implementable using shims in WinIE, but > there may be cases where that's not possible, and in those cases we're > not going to avoid adding the feature just because WinIE can't do it. > > Example: > > * a 3D context for <canvas> is probably not something we can > realisticly expect to see implemented in IE using JS, but it's > still something we've had demand for and thus something we'll > likely be working on. Yeah, shims are great but I also agree that we shouldn't let IE hold back progress. A middle ground sounds like the best approach, which you have described. > > I've been hearing things lately concerning Web Applications 1.0 that > > seem like they would be very difficult, impossible, or cause slow > > performance if emulated in IE 6. Whats the exact relationship between > > these specs and IE 6? Will there be a baseline of support in IE 6, a > > low water mark? > >The relationship is that most people won't use features that don't work in >IE, so most features have to bear that in mind. Some people have specific >needs (<canvas> for example is something we've heard a lot of demand for >from people wanting to write games and the like), which they can't ever >expect to really have work in IE, and so for those we need to offer >features designed so that they can still provide alternative versions for >IE (i.e. fallback). > > > > Second, what is the relationship of HTML 5 to these two specs? Who is > > developing this standard? At first glance it seems like a large > > dependency. > >HTML5 is the Web Apps spec. It isn't called that yet in the headings for >political reasons. That makes sense. So, Web Forms 2.0 is a response to XForms, since XForms isn't realistic, and Web Applications is basicly a realistic HTML 5, which the W3C won't or can't provide in the terms the web needs today? > > Third, is there a timeframe for completing these two specs and for > > getting actual implementations out the door? > >Web Forms 2 is basically done and will be going to Call For >Implementations shortly. Nice >Web Apps 1 has no ETA yet. Implementations of some parts have shipped for >years (XMLHttpRequest), implementations of others are likely to ship soon >(<canvas>), implementations of other parts aren't likely for a long time >(relatively speaking). > > > > I'm concerned that proprietary web app/rich web app defacto standards > > will succeed faster than the WHAT-WG, like Flash and Avalon, and one of > > the things that attracted me to the WHAT-WG was its focus on being > > real-world and pragmatic, getting it out the door rather than getting it > > perfect, co-opting and using existing de-facto standards like innerHTML > > rather than rolling new ivory tower ones. Would hard deadlines on both > > specs, including deadlines for implementations, help this? > >I agree that we have to move fast. I believe the main ways to do this are >to (a) write text at a steady rate (as I am doing), (b) to get feedback on >the spec (as is happening), and (c) to stop adding new features. There is >one more feature I think we need to add to the spec that isn't there >already, namely the session stuff that people have been discussing. Other >than that I'm of the opinion that we have enough features for "HTML5" now >and so "all" that remains is fleshing the spec out. > >I don't think deadlines would help, really. I agree; I like your approach. Thanks for all the work and being responsive to people's concerns. Thats not easy. :) Best, Brad >-- >Ian Hickson U+1047E )\._.,--....,'``. fL >http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. >Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' Brad Neuberg, bkn3 at columbia.edu Senior Software Engineer, Rojo Networks Weblog: http://www.codinginparadise.org ===================================================================== Check out Rojo, an RSS and Atom news aggregator that I work on. Visit http://rojo.com for more info. Feel free to ask me for an invite! Rojo is Hiring! If you're interested in RSS, Weblogs, Social Networking, Java, Open Source, etc... then come work with us at Rojo. If you recommend someone and we hire them you'll get a free iPod! See http://www.rojonetworks.com/JobsAtRojo.html. From ian at hixie.ch Tue Apr 26 12:12:20 2005 From: ian at hixie.ch (Ian Hickson) Date: Tue, 26 Apr 2005 19:12:20 +0000 (UTC) Subject: [whatwg] Questions: IE 6 Compatibility, HTML 5, Spec Timeframe, and Implementation Timeframe In-Reply-To: <6.2.1.2.2.20050426115802.0297a1d0@pop.mail.yahoo.com> References: <6.2.1.2.2.20050426102545.02ab5f10@pop.mail.yahoo.com> <Pine.LNX.4.61.0504261754530.3661@dhalsim.dreamhost.com> <6.2.1.2.2.20050426115802.0297a1d0@pop.mail.yahoo.com> Message-ID: <Pine.LNX.4.61.0504261902300.3661@dhalsim.dreamhost.com> On Tue, 26 Apr 2005, Brad Neuberg wrote: > > > > > > Second, what is the relationship of HTML 5 to these two specs? Who > > > is developing this standard? At first glance it seems like a large > > > dependency. > > > > HTML5 is the Web Apps spec. It isn't called that yet in the headings > > for political reasons. > > That makes sense. So, Web Forms 2.0 is a response to XForms, since > XForms isn't realistic, and Web Applications is basicly a realistic HTML > 5, which the W3C won't or can't provide in the terms the web needs > today? "No, we are working with the W3C and these drafts are merely proposals that we fully intend to develop with the W3C in due course. XForms and XHTML2 are good technologies and the WHATWG specifications are in no way intended to compete with them." > I agree; I like your approach. Thanks for all the work and being > responsive to people's concerns. Thats not easy. :) Heh, thanks. Please do continue to send comments on the spec, they are very helpful. I reply to the comments as I get to the relevant parts of the spec, so please don't worry if there is a long delay before you get a reply, they are not being ignored... -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From ian at hixie.ch Tue Apr 26 15:56:47 2005 From: ian at hixie.ch (Ian Hickson) Date: Tue, 26 Apr 2005 22:56:47 +0000 (UTC) Subject: [whatwg] Questions: IE 6 Compatibility, HTML 5, Spec Timeframe, and Implementation Timeframe In-Reply-To: <851c8d3105042611561e65fea@mail.gmail.com> References: <6.2.1.2.2.20050426102545.02ab5f10@pop.mail.yahoo.com> <Pine.LNX.4.61.0504261754530.3661@dhalsim.dreamhost.com> <851c8d3105042611561e65fea@mail.gmail.com> Message-ID: <Pine.LNX.4.61.0504262252301.3661@dhalsim.dreamhost.com> On Tue, 26 Apr 2005, Jim Ley wrote: > > > Web Forms 2 is basically done and will be going to Call For > > Implementations shortly. > > When will we see a last call for comments? The first call for "final comments" was last December. That would make the current draft the third "last call", in W3C terminology. See also: http://whatwg.org/news/ -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From fantasai.lists at inkedblade.net Tue Apr 26 18:13:44 2005 From: fantasai.lists at inkedblade.net (fantasai) Date: Tue, 26 Apr 2005 21:13:44 -0400 Subject: [whatwg] text/html flavor conformance checkers and <foo /> In-Reply-To: <3eb7972b01befae4bd976fd969435de3@iki.fi> References: <6999888fe81645cb9750235153c271d3@iki.fi> <426E3AAF.1040800@lachy.id.au> <426E577E.2080900@iki.fi> <426E6774.4030308@inkedblade.net> <3eb7972b01befae4bd976fd969435de3@iki.fi> Message-ID: <426EE748.5020100@inkedblade.net> Henri Sivonen wrote: > On Apr 26, 2005, at 19:08, fantasai wrote: > >> Henri Sivonen wrote: >> >>> What do you suggest the parser layer of an text/html conformance >>> checker say about <input checkbox ...>? >>> 1. Silently treat as <input type="checkbox" ...>? >>> 2. Treat as <input type="checkbox" ...> but warn? >>> 3. Treat as <input checkbox="checkbox" ...> causing an error to be >>> reported on a higher layer? >>> 4. Treat as fatal error in the parser? >>> I'm inclined to choose 3. >> >> >> *Why?* Why of all things would you choose to interpret it like /that/? >> It's neither reporting a useful error, nor handling it per SGML rules. > > To make the separation of concerns similar to what it would be on the > XML side while being real about SGMLness being fiction. That is, the > parser does not need to know if an attribute is allowed. That's a job > for a higher layer. I still don't understand how this interpretation is useful or required. If you want to make <input checkbox> invalid, handle it the same way you'd handle <input foo>. Expanding the attribute from checked to checked="checked" is neither conforming to SGML parsing rules nor helping the author understand what was wrong. I mean, I understand you're disillusioned with the state of HTML parsing in the world, but it doesn't mean you need to be /reactionary/ about it. ~fantasai From hsivonen at iki.fi Wed Apr 27 02:42:31 2005 From: hsivonen at iki.fi (Henri Sivonen) Date: Wed, 27 Apr 2005 12:42:31 +0300 Subject: [whatwg] text/html flavor conformance checkers and <foo /> In-Reply-To: <426EE748.5020100@inkedblade.net> References: <6999888fe81645cb9750235153c271d3@iki.fi> <426E3AAF.1040800@lachy.id.au> <426E577E.2080900@iki.fi> <426E6774.4030308@inkedblade.net> <3eb7972b01befae4bd976fd969435de3@iki.fi> <426EE748.5020100@inkedblade.net> Message-ID: <8a441b56e25d97379ae0bd537dbb887e@iki.fi> On Apr 27, 2005, at 04:13, fantasai wrote: > Henri Sivonen wrote: >> On Apr 26, 2005, at 19:08, fantasai wrote: >>> Henri Sivonen wrote: >>> >>>> What do you suggest the parser layer of an text/html conformance >>>> checker say about <input checkbox ...>? >>>> 1. Silently treat as <input type="checkbox" ...>? >>>> 2. Treat as <input type="checkbox" ...> but warn? >>>> 3. Treat as <input checkbox="checkbox" ...> causing an error to be >>>> reported on a higher layer? >>>> 4. Treat as fatal error in the parser? >>>> I'm inclined to choose 3. >>> >>> >>> *Why?* Why of all things would you choose to interpret it like >>> /that/? >>> It's neither reporting a useful error, nor handling it per SGML >>> rules. >> To make the separation of concerns similar to what it would be on the >> XML side while being real about SGMLness being fiction. That is, the >> parser does not need to know if an attribute is allowed. That's a job >> for a higher layer. > > I still don't understand how this interpretation is useful or required. It is useful, because it doesn't require knowledge of allowable minimizable attributes on the lowest parser level. > If you want to make <input checkbox> invalid, handle it the same way > you'd handle <input foo>. That's what I am suggesting. The parser would treat <input foo> as <input foo="foo">, which would be caught on the RELAX NG validation layer in my diagram. > Expanding the attribute from checked to checked="checked" is neither > conforming to SGML parsing rules ITYM checkbox to checkbox="checkbox". > nor helping the author understand what was wrong. Would "Attribute 'checkbox' not allowed here." or something along those lines be any more incomprehensible that validation errors in general? > I mean, I understand you're disillusioned with the state of HTML > parsing in the world, but it doesn't mean you need to be /reactionary/ > about it. Authors get constantly confused when validator.w3.org feeds them SGML fiction. Why shouldn't the QA tools be better aligned with reality? -- Henri Sivonen hsivonen at iki.fi http://hsivonen.iki.fi/ From ian at hixie.ch Wed Apr 27 03:09:48 2005 From: ian at hixie.ch (Ian Hickson) Date: Wed, 27 Apr 2005 10:09:48 +0000 (UTC) Subject: [whatwg] how to handle minimised attributes in HTML5 In-Reply-To: <426E577E.2080900@iki.fi> References: <6999888fe81645cb9750235153c271d3@iki.fi> <426E3AAF.1040800@lachy.id.au> <426E577E.2080900@iki.fi> Message-ID: <Pine.LNX.4.61.0504271008220.9723@dhalsim.dreamhost.com> On Tue, 26 Apr 2005, Henri Sivonen wrote: > > What do you suggest the parser layer of an text/html conformance checker > say about <input checkbox ...>? > > 1. Silently treat as <input type="checkbox" ...>? > 2. Treat as <input type="checkbox" ...> but warn? > 3. Treat as <input checkbox="checkbox" ...> causing an error to be reported on > a higher layer? > 4. Treat as fatal error in the parser? 5. Treat as <input checkbox=""> The only exception, I believe, would be for <table border>, which would instead be treated as <table border="1">. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From fora at annevankesteren.nl Wed Apr 27 03:13:56 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Wed, 27 Apr 2005 12:13:56 +0200 Subject: [whatwg] how to handle minimised attributes in HTML5 In-Reply-To: <Pine.LNX.4.61.0504271008220.9723@dhalsim.dreamhost.com> References: <6999888fe81645cb9750235153c271d3@iki.fi> <426E3AAF.1040800@lachy.id.au> <426E577E.2080900@iki.fi> <Pine.LNX.4.61.0504271008220.9723@dhalsim.dreamhost.com> Message-ID: <426F65E4.1020308@annevankesteren.nl> Ian Hickson wrote: > 5. Treat as <input checkbox=""> > > The only exception, I believe, would be for <table border>, which would > instead be treated as <table border="1">. But as the BORDER attribute is not part of HTML5 that is for someone else to specify. Not? -- Anne van Kesteren <http://annevankesteren.nl/> From ian at hixie.ch Wed Apr 27 03:25:52 2005 From: ian at hixie.ch (Ian Hickson) Date: Wed, 27 Apr 2005 10:25:52 +0000 (UTC) Subject: [whatwg] how to handle minimised attributes in HTML5 In-Reply-To: <426F65E4.1020308@annevankesteren.nl> References: <6999888fe81645cb9750235153c271d3@iki.fi> <426E3AAF.1040800@lachy.id.au> <426E577E.2080900@iki.fi> <Pine.LNX.4.61.0504271008220.9723@dhalsim.dreamhost.com> <426F65E4.1020308@annevankesteren.nl> Message-ID: <Pine.LNX.4.61.0504271024500.9723@dhalsim.dreamhost.com> On Wed, 27 Apr 2005, Anne van Kesteren wrote: > Ian Hickson wrote: > > 5. Treat as <input checkbox=""> > > > > The only exception, I believe, would be for <table border>, which would > > instead be treated as <table border="1">. > > But as the BORDER attribute is not part of HTML5 that is for someone > else to specify. Not? True. We might want to include an optional section that describes how UAs should act around obsolete features, though, even if using them is non-compliant. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From bzbarsky at mit.edu Wed Apr 27 09:58:28 2005 From: bzbarsky at mit.edu (Boris Zbarsky) Date: Wed, 27 Apr 2005 11:58:28 -0500 Subject: [whatwg] Re: HTTP 205 response In-Reply-To: <Pine.LNX.4.61.0504260831060.25513@dhalsim.dreamhost.com> References: <426D659E.9020907@mit.edu> <Pine.LNX.4.61.0504252317260.25513@dhalsim.dreamhost.com> <426DAF2C.2090906@mit.edu> <Pine.LNX.4.61.0504260831060.25513@dhalsim.dreamhost.com> Message-ID: <426FC4B4.1070607@mit.edu> Ian Hickson wrote: > The terminology section says: Ah, ok. > Addressed the above points. > > http://whatwg.org/specs/web-forms/current-work/#form-submission > > Let me know if you can find any other holes! :-) ... the document from which the submission initiated (or, if there is a target attribute, the document in the appropriate frame or window) is left in place, and all the form elements in the document are reset ... I think it would make more sense to say something more like: ... the document in the frame or window targeted by the form submission is left in place and all form elements in it are reset ... This makes it clearer that the form elements are reset in the _target_ document. I also think that "document in the frame or window targeted by the form submission" is clearer than "the document from which the submission initiated (or, if there is a target attribute, the document in the appropriate frame or window)". In fact, it may be even clearer to define the term "target document" up front in this section and then use it throughout (with links back to the definition). > Those cases will be defined in the Web Apps spec in due course, but are > out of scope of the Web Forms spec. I don't really know where to put the > note in the WF2 spec; putting it in the middle of the forms submission > algorithm seems a bit weird (obviously that stuff doesn't apply to things > other than form submission, it's right in the middle of sections that are > exclusively about form submission). Yeah.... Perhaps include a note here anyway indicating that this specification is not trying to define behavior of 205 responses in cases other than a form submission? At this point, though, the spec looks like it would be reasonably straightforward to implement interoperably. One other drive-by comment: Otherwise, how the UA responds to a response would be better as: Otherwise, how the UA handles a response -Boris From jim.ley at gmail.com Wed Apr 27 12:29:22 2005 From: jim.ley at gmail.com (Jim Ley) Date: Wed, 27 Apr 2005 20:29:22 +0100 Subject: [whatwg] Re: HTTP 205 response In-Reply-To: <426FC4B4.1070607@mit.edu> References: <426D659E.9020907@mit.edu> <Pine.LNX.4.61.0504252317260.25513@dhalsim.dreamhost.com> <426DAF2C.2090906@mit.edu> <Pine.LNX.4.61.0504260831060.25513@dhalsim.dreamhost.com> <426FC4B4.1070607@mit.edu> Message-ID: <851c8d31050427122935df4a94@mail.gmail.com> On 4/27/05, Boris Zbarsky <bzbarsky at mit.edu> wrote: > This makes it clearer that the form elements are reset in the _target_ document. > I also think that "document in the frame or window targeted by the form > submission" is clearer than "the document from which the submission initiated What if the document in the target window has changed? what if the document in the target window is in a different domain, what if another document with a form in is partially way through being rendered in the the other window? What about the situation where 2 seperate form posts target the same window, one of which sends a replace values, the other a reset - which is honoured, what does it depend on, the order of submission, the order of recieving, random? Cheers, Jim. From hsivonen at iki.fi Wed Apr 27 12:37:37 2005 From: hsivonen at iki.fi (Henri Sivonen) Date: Wed, 27 Apr 2005 22:37:37 +0300 Subject: [whatwg] Re: how to handle minimised attributes in HTML5 In-Reply-To: <Pine.LNX.4.61.0504271008220.9723@dhalsim.dreamhost.com> References: <6999888fe81645cb9750235153c271d3@iki.fi> <426E3AAF.1040800@lachy.id.au> <426E577E.2080900@iki.fi> <Pine.LNX.4.61.0504271008220.9723@dhalsim.dreamhost.com> Message-ID: <56b5567d5d1186b888bbd40ee2730892@iki.fi> On Apr 27, 2005, at 13:09, Ian Hickson wrote: > On Tue, 26 Apr 2005, Henri Sivonen wrote: >> >> What do you suggest the parser layer of an text/html conformance >> checker >> say about <input checkbox ...>? >> >> 1. Silently treat as <input type="checkbox" ...>? >> 2. Treat as <input type="checkbox" ...> but warn? >> 3. Treat as <input checkbox="checkbox" ...> causing an error to be >> reported on >> a higher layer? >> 4. Treat as fatal error in the parser? > > 5. Treat as <input checkbox=""> Why? XHTML requires "boolean attributes" to be represented as foo='foo'. If <input checked ...> was treated as <input checked='' ...>, one could not reuse XHTML schemas on top a minimal text/html flavor parser. > The only exception, I believe, would be for <table border>, which would > instead be treated as <table border="1">. Do you mean <table border> should pass a conformance check? -- Henri Sivonen hsivonen at iki.fi http://hsivonen.iki.fi/ From jim.ley at gmail.com Wed Apr 27 14:11:50 2005 From: jim.ley at gmail.com (Jim Ley) Date: Wed, 27 Apr 2005 22:11:50 +0100 Subject: [whatwg] Re: HTTP 205 response In-Reply-To: <851c8d31050427122935df4a94@mail.gmail.com> References: <426D659E.9020907@mit.edu> <Pine.LNX.4.61.0504252317260.25513@dhalsim.dreamhost.com> <426DAF2C.2090906@mit.edu> <Pine.LNX.4.61.0504260831060.25513@dhalsim.dreamhost.com> <426FC4B4.1070607@mit.edu> <851c8d31050427122935df4a94@mail.gmail.com> Message-ID: <851c8d310504271411237394@mail.gmail.com> On 4/27/05, Jim Ley <jim.ley at gmail.com> wrote: > On 4/27/05, Boris Zbarsky <bzbarsky at mit.edu> wrote: > > This makes it clearer that the form elements are reset in the _target_ document. > > I also think that "document in the frame or window targeted by the form > > submission" is clearer than "the document from which the submission initiated > > What if the document in the target window has changed? what if the > document in the target window is in a different domain, what if > another document with a form in is partially way through being > rendered in the the other window? What about the situation where 2 > seperate form posts target the same window, one of which sends a > replace values, the other a reset - which is honoured, what does it > depend on, the order of submission, the order of recieving, random? Oh, and the other thing, what's the use case for the 205, I realise it's mostly tidying up the hinted at HTTP spec, but I'm not really sure there's much of a use case, especially as you can achieve the same with a replace post which uses almost the same amount of bandwidth on typical pages. I can't think of a single good case where just reseting is appropriate, a result with no feedback doesn't strike me as useful - especially when there's replace which can provide the same not reloading page, but can provide feedback in an output element. I really think this is complicating the specification without providing anything of use. Jim. From rikkert at rikkertkoppes.com Thu Apr 28 00:27:50 2005 From: rikkert at rikkertkoppes.com (R.J.Koppes) Date: Thu, 28 Apr 2005 09:27:50 +0200 Subject: [whatwg] text/html flavor conformance checkers and <foo /> References: <6999888fe81645cb9750235153c271d3@iki.fi><426E3AAF.1040800@lachy.id.au> <426E577E.2080900@iki.fi><426E6774.4030308@inkedblade.net><3eb7972b01befae4bd976fd969435de3@iki.fi><426EE748.5020100@inkedblade.net> <8a441b56e25d97379ae0bd537dbb887e@iki.fi> Message-ID: <001701c54bc3$c8d44e70$0401a8c0@s446964> I'd say the "/" in <foo /> should be treated as an invalid character by conformance checkers, I guess something like <foo ?> is treated that way too? If not it should. So it might raise an error reporting an illegal character and it might raise another error in a further stage if the </foo> closing tag is mandatory (in the case of <script> for instance) Alternatively, if one allows "/" (and "?") characters in attributes (is there a passage on that anyway? since HTML only allows predefined attributes, it should not be nescesary anyway)), than <foo /> and <foo ?> should raise an error reporting an invalid attribute, another error reporting a missing attribute value and possibly raising an third error reporting a missing closing tag. UA's however should either treat the "/" as invalid character and discard it (preferred error checking, say) or apply SGML rules and treat the trailing ">" as redundant character (SGML based error checking). Either way <foo /> is treated as <foo> and the DOM tree should be built as if that were the case. I am not sure which rule UA's are applying at the moment Rikkert Koppes www.rikkertkoppes.com ----- Original Message ----- From: "Henri Sivonen" <hsivonen at iki.fi> To: "WHAT WG List" <whatwg at whatwg.org> Sent: Wednesday, April 27, 2005 11:42 AM Subject: Re: [whatwg] text/html flavor conformance checkers and <foo /> > On Apr 27, 2005, at 04:13, fantasai wrote: > > > Henri Sivonen wrote: > >> On Apr 26, 2005, at 19:08, fantasai wrote: > >>> Henri Sivonen wrote: > >>> > >>>> What do you suggest the parser layer of an text/html conformance > >>>> checker say about <input checkbox ...>? > >>>> 1. Silently treat as <input type="checkbox" ...>? > >>>> 2. Treat as <input type="checkbox" ...> but warn? > >>>> 3. Treat as <input checkbox="checkbox" ...> causing an error to be > >>>> reported on a higher layer? > >>>> 4. Treat as fatal error in the parser? > >>>> I'm inclined to choose 3. > >>> > >>> > >>> *Why?* Why of all things would you choose to interpret it like > >>> /that/? > >>> It's neither reporting a useful error, nor handling it per SGML > >>> rules. > >> To make the separation of concerns similar to what it would be on the > >> XML side while being real about SGMLness being fiction. That is, the > >> parser does not need to know if an attribute is allowed. That's a job > >> for a higher layer. > > > > I still don't understand how this interpretation is useful or required. > > It is useful, because it doesn't require knowledge of allowable > minimizable attributes on the lowest parser level. > > > If you want to make <input checkbox> invalid, handle it the same way > > you'd handle <input foo>. > > That's what I am suggesting. The parser would treat <input foo> as > <input foo="foo">, which would be caught on the RELAX NG validation > layer in my diagram. > > > Expanding the attribute from checked to checked="checked" is neither > > conforming to SGML parsing rules > > ITYM checkbox to checkbox="checkbox". > > > nor helping the author understand what was wrong. > > Would "Attribute 'checkbox' not allowed here." or something along those > lines be any more incomprehensible that validation errors in general? > > > I mean, I understand you're disillusioned with the state of HTML > > parsing in the world, but it doesn't mean you need to be /reactionary/ > > about it. > > Authors get constantly confused when validator.w3.org feeds them SGML > fiction. Why shouldn't the QA tools be better aligned with reality? > > -- > Henri Sivonen > hsivonen at iki.fi > http://hsivonen.iki.fi/ > > From mint at franklinmint.fm Thu Apr 28 11:44:51 2005 From: mint at franklinmint.fm (Robert Sayre) Date: Thu, 28 Apr 2005 14:44:51 -0400 Subject: [whatwg] base/xml:base Message-ID: <42712F23.4020602@franklinmint.fm> I'm not sure where this fits in the WhatWG backwards compatibility requirements, but would it be possible to allow finer-grained control over the baseURI in sections of a page? I gather that Mozilla already does this with xml:base and that sticking base elements in the HTML body is a hack that seems to work in some browsers (ick). I believe it's quite likely page authors will want to aggregate content with disparate baseURIs, whether from syndication, dashboard widgets, or something else. So, could one of the new elements in WA 1.0 grow a base attribute and explicit support for xml:base? Robert Sayre From mattraymond at earthlink.net Thu Apr 28 12:12:11 2005 From: mattraymond at earthlink.net (Matthew Raymond) Date: Thu, 28 Apr 2005 15:12:11 -0400 Subject: [whatwg] Web Applications and 3D Message-ID: <4271358B.9050309@earthlink.net> I've been pondering how someone would have 3D graphics inside a Web application using current web standards and some in development (XBL2, HTML5, et cetera), and while I have a general idea, I'm not exactly sure how it would work. One method would be to give <canvas> a "3d" rendering context. This would solve some problems, but what happens when you want objects for your 3D world to exist in the DOM? What happens when you want 3D effects that change when you use a different stylesheet? Don't we need a method of including 3D graphics for styling that doesn't use Javascript? Let's look at possible solutions: 1) <canvas> - This requires you to manage your 3D objects in Javascript or some other scripting language. It also means defining a "3d" context, which could get complicated _really_ fast. 2) XHTML + CSS + XBL2 + X3D - This would allow the greatest flexibility, but it comes with a serious learning curve. Also, it wouldn't work with HTML. 3) HTML + "CSS3D" - The idea is to extend CSS to allow for 3D backgrounds and such. The trouble with this is that it's hard to change the 3D content dynamically. I'm leaning toward either 1) or 2). I suspect the second choice would be better in the long run, but what I don't understand is what a page using all these standards would look like. If someone is up to the challenge, I'd like to see someone come up with examples for the following: 1) A Web standards version of Microsoft's "Flipin' CD Button" example. 2) An example of something similar to Quake done entirely as a web application, with a HUD. 3) An example of a simple 2D GUI with 3D effects as a web application. Not that I'm looking for very basic proof-of-concept examples and not fully developed web apps. Any takers? From fora at annevankesteren.nl Thu Apr 28 12:22:56 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Thu, 28 Apr 2005 21:22:56 +0200 Subject: [whatwg] base/xml:base In-Reply-To: <42712F23.4020602@franklinmint.fm> References: <42712F23.4020602@franklinmint.fm> Message-ID: <42713810.8030100@annevankesteren.nl> Robert Sayre wrote: > I'm not sure where this fits in the WhatWG backwards compatibility > requirements, but would it be possible to allow finer-grained control > over the baseURI in sections of a page? I gather that Mozilla already > does this with xml:base and that sticking base elements in the HTML body > is a hack that seems to work in some browsers (ick). I believe it's > quite likely page authors will want to aggregate content with disparate > baseURIs, whether from syndication, dashboard widgets, or something > else. So, could one of the new elements in WA 1.0 grow a base attribute > and explicit support for xml:base? <http://whatwg.org/specs/web-apps/current-work/#the-base> States that for XML documents you must use xml:base and must not use xhtml:base. -- Anne van Kesteren <http://annevankesteren.nl/> From ian at hixie.ch Thu Apr 28 13:00:44 2005 From: ian at hixie.ch (Ian Hickson) Date: Thu, 28 Apr 2005 20:00:44 +0000 (UTC) Subject: [whatwg] Web Applications and 3D In-Reply-To: <4271358B.9050309@earthlink.net> References: <4271358B.9050309@earthlink.net> Message-ID: <Pine.LNX.4.61.0504281942480.20679@dhalsim.dreamhost.com> On Thu, 28 Apr 2005, Matthew Raymond wrote: > > I've been pondering how someone would have 3D graphics inside a Web > application using current web standards and some in development (XBL2, > HTML5, et cetera), and while I have a general idea, I'm not exactly sure > how it would work. The current idea is to do the same for '3d' as for '2d', probably using an OpenGL ES API subset, tweaked to be appropriate for use from JavaScript. Unfortunately I know very little about 3D graphics myself so someone else is going to have to actually define the API. > ...what happens when you want objects for your 3D world to exist in the > DOM? What happens when you want 3D effects that change when you use a > different stylesheet? What's the use case? The use cases that people have raised for 3D so far are primarily games (as in Quake-like things). In those, you don't really need to have a DOM representation, and stylesheets are unlikely to be used for styling them. Having said that, there are probably use cases for declarative 3D, just like there are with declarative 2D. And for those you would use a dedicated markup language, just like you use SVG for 2D graphics. > 1) A Web standards version of Microsoft's "Flipin' CD Button" example. The markup for that is easy: <input type="button"> ...or some such. Making it actually look like something 3D would involve CSS, XBL, and either X3D or <canvas> (or some other 3D solution). > 2) An example of something similar to Quake done entirely as a web > application, with a HUD. That's pure <canvas>, with a 3D context for the 3D, and a 2D context for the HUD. > 3) An example of a simple 2D GUI with 3D effects as a web application. Not sure what you mean there. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From rikkert at rikkertkoppes.com Thu Apr 28 13:38:06 2005 From: rikkert at rikkertkoppes.com (R.J.Koppes) Date: Thu, 28 Apr 2005 22:38:06 +0200 Subject: [whatwg] Web Applications and 3D References: <4271358B.9050309@earthlink.net> <Pine.LNX.4.61.0504281942480.20679@dhalsim.dreamhost.com> Message-ID: <008301c54c32$2ee25db0$0401a8c0@s446964> one usecase for "generic" 3d applications I can think of is an implementation of cml. There could be other applications, like technical drawings (which might have an xsl to transform it to 2d svg drawings and another to make it some generic 3d picture). So apart from high end application like games, I think it could be useful to have some generic 3d drawing canvas Rikkert Koppes www.rikkertkoppes.com ----- Original Message ----- From: "Ian Hickson" <ian at hixie.ch> To: "Matthew Raymond" <mattraymond at earthlink.net> Cc: "WHAT WG List" <whatwg at whatwg.org> Sent: Thursday, April 28, 2005 10:00 PM Subject: Re: [whatwg] Web Applications and 3D > On Thu, 28 Apr 2005, Matthew Raymond wrote: > > > > I've been pondering how someone would have 3D graphics inside a Web > > application using current web standards and some in development (XBL2, > > HTML5, et cetera), and while I have a general idea, I'm not exactly sure > > how it would work. > > The current idea is to do the same for '3d' as for '2d', probably using an > OpenGL ES API subset, tweaked to be appropriate for use from JavaScript. > > Unfortunately I know very little about 3D graphics myself so someone else > is going to have to actually define the API. > > > > ...what happens when you want objects for your 3D world to exist in the > > DOM? What happens when you want 3D effects that change when you use a > > different stylesheet? > > What's the use case? The use cases that people have raised for 3D so far > are primarily games (as in Quake-like things). In those, you don't really > need to have a DOM representation, and stylesheets are unlikely to be used > for styling them. > > Having said that, there are probably use cases for declarative 3D, just > like there are with declarative 2D. And for those you would use a > dedicated markup language, just like you use SVG for 2D graphics. > > > > 1) A Web standards version of Microsoft's "Flipin' CD Button" example. > > The markup for that is easy: > > <input type="button"> > > ...or some such. Making it actually look like something 3D would involve > CSS, XBL, and either X3D or <canvas> (or some other 3D solution). > > > > 2) An example of something similar to Quake done entirely as a web > > application, with a HUD. > > That's pure <canvas>, with a 3D context for the 3D, and a 2D context for > the HUD. > > > > 3) An example of a simple 2D GUI with 3D effects as a web application. > > Not sure what you mean there. > > -- > Ian Hickson U+1047E )\._.,--....,'``. fL > http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. > Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' > From bkn3 at columbia.edu Thu Apr 28 15:03:14 2005 From: bkn3 at columbia.edu (Brad Neuberg) Date: Thu, 28 Apr 2005 15:03:14 -0700 Subject: [whatwg] Web Applications and 3D In-Reply-To: <Pine.LNX.4.61.0504281942480.20679@dhalsim.dreamhost.com> References: <4271358B.9050309@earthlink.net> <Pine.LNX.4.61.0504281942480.20679@dhalsim.dreamhost.com> Message-ID: <6.2.1.2.2.20050428150242.02b2e800@pop.mail.yahoo.com> Sounds like scope creep to me, and outside the purview of WHAT. Brad At 01:00 PM 4/28/2005, Ian Hickson wrote: >On Thu, 28 Apr 2005, Matthew Raymond wrote: > > > > I've been pondering how someone would have 3D graphics inside a Web > > application using current web standards and some in development (XBL2, > > HTML5, et cetera), and while I have a general idea, I'm not exactly sure > > how it would work. > >The current idea is to do the same for '3d' as for '2d', probably using an >OpenGL ES API subset, tweaked to be appropriate for use from JavaScript. > >Unfortunately I know very little about 3D graphics myself so someone else >is going to have to actually define the API. > > > > ...what happens when you want objects for your 3D world to exist in the > > DOM? What happens when you want 3D effects that change when you use a > > different stylesheet? > >What's the use case? The use cases that people have raised for 3D so far >are primarily games (as in Quake-like things). In those, you don't really >need to have a DOM representation, and stylesheets are unlikely to be used >for styling them. > >Having said that, there are probably use cases for declarative 3D, just >like there are with declarative 2D. And for those you would use a >dedicated markup language, just like you use SVG for 2D graphics. > > > > 1) A Web standards version of Microsoft's "Flipin' CD Button" example. > >The markup for that is easy: > > <input type="button"> > >...or some such. Making it actually look like something 3D would involve >CSS, XBL, and either X3D or <canvas> (or some other 3D solution). > > > > 2) An example of something similar to Quake done entirely as a web > > application, with a HUD. > >That's pure <canvas>, with a 3D context for the 3D, and a 2D context for >the HUD. > > > > 3) An example of a simple 2D GUI with 3D effects as a web application. > >Not sure what you mean there. > >-- >Ian Hickson U+1047E )\._.,--....,'``. fL >http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. >Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' Brad Neuberg, bkn3 at columbia.edu Senior Software Engineer, Rojo Networks Weblog: http://www.codinginparadise.org ===================================================================== Check out Rojo, an RSS and Atom news aggregator that I work on. Visit http://rojo.com for more info. Feel free to ask me for an invite! Rojo is Hiring! If you're interested in RSS, Weblogs, Social Networking, Java, Open Source, etc... then come work with us at Rojo. If you recommend someone and we hire them you'll get a free iPod! See http://www.rojonetworks.com/JobsAtRojo.html. From mattraymond at earthlink.net Thu Apr 28 18:44:21 2005 From: mattraymond at earthlink.net (Matthew Raymond) Date: Thu, 28 Apr 2005 21:44:21 -0400 Subject: [whatwg] Web Applications and 3D In-Reply-To: <Pine.LNX.4.61.0504281942480.20679@dhalsim.dreamhost.com> References: <4271358B.9050309@earthlink.net> <Pine.LNX.4.61.0504281942480.20679@dhalsim.dreamhost.com> Message-ID: <42719175.9010103@earthlink.net> Ian Hickson wrote: > On Thu, 28 Apr 2005, Matthew Raymond wrote: >>I've been pondering how someone would have 3D graphics inside a Web >>application using current web standards and some in development (XBL2, >>HTML5, et cetera), and while I have a general idea, I'm not exactly sure >>how it would work. > > The current idea is to do the same for '3d' as for '2d', probably using an > OpenGL ES API subset, tweaked to be appropriate for use from JavaScript. > > Unfortunately I know very little about 3D graphics myself so someone else > is going to have to actually define the API. I've done some work with OpenGL. I'd be happy to write a first draft. >>...what happens when you want objects for your 3D world to exist in the >>DOM? What happens when you want 3D effects that change when you use a >>different stylesheet? > > What's the use case? The use cases that people have raised for 3D so far > are primarily games (as in Quake-like things). In those, you don't really > need to have a DOM representation, and stylesheets are unlikely to be used > for styling them. The problem with a <canvas> solution is that the entirety of the 3D data has to exist within the <canvas> element. If you want multiple elements in the markup to map to a single 3D window, then <canvas> doesn't really work. (Well, you could have them as "display: none" with XBL bindings that map to Javascript code which adds the object to a canvas, but at that point, you're implementing something like X3D using XBL + Javascript + <canvas>, which really doesn't make sense.) > Having said that, there are probably use cases for declarative 3D, just > like there are with declarative 2D. And for those you would use a > dedicated markup language, just like you use SVG for 2D graphics. My point was that I'd like to see a CDF (not the CAD kind, but the W3C kind) that uses XHTML + X3D, or XHTML + CSS+ XBL2 + X3D. While I think it has a lot of potential, I don't know enough about how the respective standards to determine would work together. (This is partly because of my lack of knowledge of XBL2 and X3D...) >>1) A Web standards version of Microsoft's "Flipin' CD Button" example. > > The markup for that is easy: > > <input type="button"> > > ...or some such. Making it actually look like something 3D would involve > CSS, XBL, and either X3D or <canvas> (or some other 3D solution). I already knew the HTML. I was kinda hoping to see the CSS/XBL2 part of that equation. That's the part I'm confused about. Does XBL2 have a CSS binding property like XBL 1.0? >>2) An example of something similar to Quake done entirely as a web >>application, with a HUD. > > That's pure <canvas>, with a 3D context for the 3D, and a 2D context for > the HUD. Well, that depends on whether you're using <canvas> or X3D. Personally, I'd like to see how X3D would be used in a compound document. I'm thinking that you could use X3D in combination with XBL to implement LOD and similar features so that 3D models can degrade gracefully into simpler models with fewer features if hardware doesn't support all the features and polygons. >>3) An example of a simple 2D GUI with 3D effects as a web application. > > Not sure what you mean there. I mean stuff like having windows that get smaller when they're further back in the Z-order. Perhaps there's a fog effect. You could have various <section> elements rendered within a 3D environment, where the user looks in a specific direction or in a specific place to see the <section> inside a 3D environment. Stuff like that. From mattraymond at earthlink.net Thu Apr 28 18:45:23 2005 From: mattraymond at earthlink.net (Matthew Raymond) Date: Thu, 28 Apr 2005 21:45:23 -0400 Subject: [whatwg] Web Applications and 3D In-Reply-To: <6.2.1.2.2.20050428150242.02b2e800@pop.mail.yahoo.com> References: <4271358B.9050309@earthlink.net> <Pine.LNX.4.61.0504281942480.20679@dhalsim.dreamhost.com> <6.2.1.2.2.20050428150242.02b2e800@pop.mail.yahoo.com> Message-ID: <427191B3.4000905@earthlink.net> Brad Neuberg wrote: > Sounds like scope creep to me, and outside the purview of WHAT. Why? Because you don't consider programs that use 3D graphics are applications? If a motorcycle manufacturer creates an app that lets you order a custom bike, and it displays the bike in 3D as you change various options for the order, is that not a valid web application? Remember, people used to think that 2D graphics were only for games. In an age where every computer ships with 3D graphics acceleration built-in, why would we limit web applications to 2D? From ian at hixie.ch Fri Apr 29 01:06:01 2005 From: ian at hixie.ch (Ian Hickson) Date: Fri, 29 Apr 2005 08:06:01 +0000 (UTC) Subject: [whatwg] Web Applications and 3D In-Reply-To: <42719175.9010103@earthlink.net> References: <4271358B.9050309@earthlink.net> <Pine.LNX.4.61.0504281942480.20679@dhalsim.dreamhost.com> <42719175.9010103@earthlink.net> Message-ID: <Pine.LNX.4.61.0504290755080.1177@dhalsim.dreamhost.com> On Thu, 28 Apr 2005, Matthew Raymond wrote: > > > > The current idea is to do the same for '3d' as for '2d', probably > > using an OpenGL ES API subset, tweaked to be appropriate for use from > > JavaScript. > > > > Unfortunately I know very little about 3D graphics myself so someone > > else is going to have to actually define the API. > > I've done some work with OpenGL. I'd be happy to write a first draft. That would be great. > > > ...what happens when you want objects for your 3D world to exist in > > > the DOM? What happens when you want 3D effects that change when you > > > use a different stylesheet? > > > > What's the use case? The use cases that people have raised for 3D so > > far are primarily games (as in Quake-like things). In those, you don't > > really need to have a DOM representation, and stylesheets are unlikely > > to be used for styling them. > > The problem with a <canvas> solution is that the entirety of the 3D data > has to exist within the <canvas> element. If you want multiple elements in the > markup to map to a single 3D window, then <canvas> doesn't really work. Right, but my question is what's the use case for having objects for your 3D world exist in the DOM? > > Having said that, there are probably use cases for declarative 3D, > > just like there are with declarative 2D. And for those you would use a > > dedicated markup language, just like you use SVG for 2D graphics. > > My point was that I'd like to see a CDF (not the CAD kind, but the W3C > kind) that uses XHTML + X3D, or XHTML + CSS + XBL2 + X3D. While I think > it has a lot of potential, I don't know enough about how the respective > standards to determine would work together. (This is partly because of > my lack of knowledge of XBL2 and X3D...) If it wouldn't work together, it indicates a problem in the X3D spec (or the lack of an appropriate 3D declarative markup language). Creating a 3D markup language is somewhat outside the purview of this working group, though. > I already knew the HTML. I was kinda hoping to see the CSS/XBL2 part of > that equation. That's the part I'm confused about. Does XBL2 have a CSS > binding property like XBL 1.0? XBL2 doesn't exist yet, but the idea is it will have that, yes. > > > 2) An example of something similar to Quake done entirely as a web > > > application, with a HUD. > > > > That's pure <canvas>, with a 3D context for the 3D, and a 2D context > > for the HUD. > > Well, that depends on whether you're using <canvas> or X3D. I don't see people writing 3D games using a declarative format. Maybe for the models, as external files that are slurped in (just like external bitmaps are used as sprites with 2D canvas), but that's very different from having the 3D in the document. > I mean stuff like having windows that get smaller when they're further > back in the Z-order. Perhaps there's a fog effect. You could have > various <section> elements rendered within a 3D environment, where the > user looks in a specific direction or in a specific place to see the > <section> inside a 3D environment. Stuff like that. That'd just be up to the UA, really. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From jim.ley at gmail.com Fri Apr 29 01:21:18 2005 From: jim.ley at gmail.com (Jim Ley) Date: Fri, 29 Apr 2005 09:21:18 +0100 Subject: [whatwg] Web Applications and 3D In-Reply-To: <4271358B.9050309@earthlink.net> References: <4271358B.9050309@earthlink.net> Message-ID: <851c8d31050429012167d20b9c@mail.gmail.com> On 4/28/05, Matthew Raymond <mattraymond at earthlink.net> wrote: > I've been pondering how someone would have 3D graphics inside a Web > application using current web standards and some in development (XBL2, > HTML5, et cetera), and while I have a general idea, I'm not exactly sure > how it would work. There are hundreds of millions of browsers that support 3D graphics in their default configuration, it's been successfully deployed with implementation experience going back over 6 years. Please do not re-invent the wheel, but standardise this (or a subset) functionality. The supposed motivation of WHAT-WG is compatibility with IE6, VML and DirectAnimation provide 2D and 3D drawing contexts that are compatibile with Internet Explorer, use them, or start coming up with some reasons why not to. As always, I'm still waiting to hear the use cases for both 2D and 3D javascript drawing - "Quake like games" which is the only example I've heard so far, may be a use case, but it's not yet been explained why an HTML document is appropriate for such a game. Jim. From mattraymond at earthlink.net Fri Apr 29 06:14:37 2005 From: mattraymond at earthlink.net (Matthew Raymond) Date: Fri, 29 Apr 2005 09:14:37 -0400 Subject: [whatwg] Web Applications and 3D In-Reply-To: <Pine.LNX.4.61.0504290755080.1177@dhalsim.dreamhost.com> References: <4271358B.9050309@earthlink.net> <Pine.LNX.4.61.0504281942480.20679@dhalsim.dreamhost.com> <42719175.9010103@earthlink.net> <Pine.LNX.4.61.0504290755080.1177@dhalsim.dreamhost.com> Message-ID: <4272333D.1080807@earthlink.net> Ian Hickson wrote: > On Thu, 28 Apr 2005, Matthew Raymond wrote: >>The problem with a <canvas> solution is that the entirety of the 3D data >>has to exist within the <canvas> element. If you want multiple elements in the >>markup to map to a single 3D window, then <canvas> doesn't really work. > > Right, but my question is what's the use case for having objects for your > 3D world exist in the DOM? Well, in situations with Javascript off, the benefits are obvious. There's also the potential to use XBL to apply special behavior to specific tags. For instance, instead of having a static Sun in the sky, you could have it rise and set by using XBL to pull in code that moves the model and lighting around. >>>Having said that, there are probably use cases for declarative 3D, >>>just like there are with declarative 2D. And for those you would use a >>>dedicated markup language, just like you use SVG for 2D graphics. >> >>My point was that I'd like to see a CDF (not the CAD kind, but the W3C >>kind) that uses XHTML + X3D, or XHTML + CSS + XBL2 + X3D. While I think >>it has a lot of potential, I don't know enough about how the respective >>standards to determine would work together. (This is partly because of >>my lack of knowledge of XBL2 and X3D...) > > If it wouldn't work together, it indicates a problem in the X3D spec (or > the lack of an appropriate 3D declarative markup language). > > Creating a 3D markup language is somewhat outside the purview of this > working group, though. I'm not saying there's a problem with X3D. I'm just trying to make sure there is a clear idea of how to make XHTML + X3D compound documents. In other words, I'm trying to find the weak link, if there is one, and at the moment that seems to be a lack of examples on the Internet. >>I already knew the HTML. I was kinda hoping to see the CSS/XBL2 part of >>that equation. That's the part I'm confused about. Does XBL2 have a CSS >>binding property like XBL 1.0? > > XBL2 doesn't exist yet, but the idea is it will have that, yes. Good. I don't see nearly as strong a use case for XBL without such binding. > I don't see people writing 3D games using a declarative format. Maybe for > the models, as external files that are slurped in (just like external > bitmaps are used as sprites with 2D canvas), but that's very different > from having the 3D in the document. My thinking is that a "3d" context for <canvas> may require Javascript as complex as a 3D rendering engine built on top of OpenGL. By contrast, something like X3D would require only DOM manipulation, because the rendering engine would be either a plug-in or part of the UA. X3D could also use XBL to achieve special effects that a programmer would otherwise have to code into their <canvas>-based engine. Imagine LOD, particle effects, fog, et cetera, turned on and off by simply selecting an alternate stylesheet. (Well, I suppose you could do that stylesheet thing with <canvas> and XBL, but it wouldn't be pretty.) >>I mean stuff like having windows that get smaller when they're further >>back in the Z-order. Perhaps there's a fog effect. You could have >>various <section> elements rendered within a 3D environment, where the >>user looks in a specific direction or in a specific place to see the >><section> inside a 3D environment. Stuff like that. > > That'd just be up to the UA, really. No, I meant as in the web author implementing that with web standards, not the UA adding those effects to vanilla HTML5. From ian at hixie.ch Fri Apr 29 06:25:23 2005 From: ian at hixie.ch (Ian Hickson) Date: Fri, 29 Apr 2005 13:25:23 +0000 (UTC) Subject: [whatwg] Re: HTTP 205 response In-Reply-To: <426FC4B4.1070607@mit.edu> References: <426D659E.9020907@mit.edu> <Pine.LNX.4.61.0504252317260.25513@dhalsim.dreamhost.com> <426DAF2C.2090906@mit.edu> <Pine.LNX.4.61.0504260831060.25513@dhalsim.dreamhost.com> <426FC4B4.1070607@mit.edu> Message-ID: <Pine.LNX.4.61.0504291234010.21216@dhalsim.dreamhost.com> On Wed, 27 Apr 2005, Boris Zbarsky wrote: > >| ... the document from which the submission initiated (or, if there is a >| target attribute, the document in the appropriate frame or window) is >| left in place, and all the form elements in the document are reset ... > > I think it would make more sense to say something more like: > > ... the document in the frame or window targeted by the form submission is > left in place and all form elements in it are reset ... Done. > In fact, it may be even clearer to define the term "target document" up > front in this section and then use it throughout (with links back to the > definition). I'm trying to avoid doing much with the "target" attribute in WF2. It'll be defined in more depth in WA1. > Yeah.... Perhaps include a note here anyway indicating that this > specification is not trying to define behavior of 205 responses in cases > other than a form submission? Ok. > At this point, though, the spec looks like it would be reasonably > straightforward to implement interoperably. Great! > One other drive-by comment: > > Otherwise, how the UA responds to a response > > would be better as: > > Otherwise, how the UA handles a response Fixed. Thanks! -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From ian at hixie.ch Fri Apr 29 06:43:37 2005 From: ian at hixie.ch (Ian Hickson) Date: Fri, 29 Apr 2005 13:43:37 +0000 (UTC) Subject: [whatwg] Web Applications and 3D In-Reply-To: <4272333D.1080807@earthlink.net> References: <4271358B.9050309@earthlink.net> <Pine.LNX.4.61.0504281942480.20679@dhalsim.dreamhost.com> <42719175.9010103@earthlink.net> <Pine.LNX.4.61.0504290755080.1177@dhalsim.dreamhost.com> <4272333D.1080807@earthlink.net> Message-ID: <Pine.LNX.4.61.0504291326030.21216@dhalsim.dreamhost.com> On Fri, 29 Apr 2005, Matthew Raymond wrote: > > > > Right, but my question is what's the use case for having objects for > > your 3D world exist in the DOM? > > Well, in situations with Javascript off, the benefits are obvious. I don't mean to be obtuse, but: they aren't to me. I guess I could imagine wanting declarative 3D for when you want to show someone around your office or something like that, but I can't say I've seen much demand for that, and even less integrated with HTML. In any case, that would be something to be addressed by another specification, like X3D. HTML (specifically XHTML) already supports integrating with other namespaces. > There's also the potential to use XBL to apply special behavior to > specific tags. For instance, instead of having a static Sun in the sky, > you could have it rise and set by using XBL to pull in code that moves > the model and lighting around. What sky? :-) I haven't seen many applications with skies... > I'm not saying there's a problem with X3D. I'm just trying to make sure > there is a clear idea of how to make XHTML + X3D compound documents. In > other words, I'm trying to find the weak link, if there is one, and at > the moment that seems to be a lack of examples on the Internet. The biggest problem with integrating X3D and XHTML is, as far as I can tell, the lack of a namespace to identify X3D content. (This is similar to the problem preventing Docbook integration.) > My thinking is that a "3d" context for <canvas> may require Javascript > as complex as a 3D rendering engine built on top of OpenGL. By contrast, > something like X3D would require only DOM manipulation, because the > rendering engine would be either a plug-in or part of the UA. X3D could > also use XBL to achieve special effects that a programmer would > otherwise have to code into their <canvas>-based engine. Imagine LOD, > particle effects, fog, et cetera, turned on and off by simply selecting > an alternate stylesheet. (Well, I suppose you could do that stylesheet > thing with <canvas> and XBL, but it wouldn't be pretty.) I doubt it would be that simple, but sure. If you want declarative 3D integrated into the Web browser pipeline, alongside the DOM, JS, XHTML, SVG, CSS, XBL, etc, I encourage you to bring this up with the Web3D consortium. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From mattraymond at earthlink.net Fri Apr 29 07:04:28 2005 From: mattraymond at earthlink.net (Matthew Raymond) Date: Fri, 29 Apr 2005 10:04:28 -0400 Subject: [whatwg] Web Applications and 3D In-Reply-To: <851c8d31050429012167d20b9c@mail.gmail.com> References: <4271358B.9050309@earthlink.net> <851c8d31050429012167d20b9c@mail.gmail.com> Message-ID: <42723EEC.8040302@earthlink.net> Jim Ley wrote: > Please do not re-invent the wheel, but standardise this (or a subset) > functionality. > > The supposed motivation of WHAT-WG is compatibility with IE6, VML and > DirectAnimation provide 2D and 3D drawing contexts that are > compatibile with Internet Explorer, use them, or start coming up with > some reasons why not to. The examples I've seen with regard to DirectAnimation are done through an <object> and use an ActiveX control, so standardizing such an interface isn't appropriate. It may be useful to examine the APIs, though. We may want to be able to implement the "3d" context for <canvas> on top of DirectAnimation. > As always, I'm still waiting to hear the use cases for both 2D and 3D > javascript drawing - "Quake like games" which is the only example > I've heard so far, may be a use case, but it's not yet been explained > why an HTML document is appropriate for such a game. I've already suggested the use of 3D for previewing a custom ordered product such as a motorcycle. I also brought up the "Flippin' CD Button" example from Microsoft. Also, imagine Mapquest with a 3D animation of your route from start to end. Travelocity or Expedia may have animations showing the cities you'll be passing over on your flight. Perhaps you want to see a 3D representation of the hotel room you plan to book. Same for real estate. If you're ordering a ticket from a concert, wouldn't it be nice to see what the stage will look like from your seat? Need I go on? From mattraymond at earthlink.net Fri Apr 29 07:25:02 2005 From: mattraymond at earthlink.net (Matthew Raymond) Date: Fri, 29 Apr 2005 10:25:02 -0400 Subject: [whatwg] XHTML + X3D (was Re: Web Applications and 3D) In-Reply-To: <Pine.LNX.4.61.0504291326030.21216@dhalsim.dreamhost.com> References: <4271358B.9050309@earthlink.net> <Pine.LNX.4.61.0504281942480.20679@dhalsim.dreamhost.com> <42719175.9010103@earthlink.net> <Pine.LNX.4.61.0504290755080.1177@dhalsim.dreamhost.com> <4272333D.1080807@earthlink.net> <Pine.LNX.4.61.0504291326030.21216@dhalsim.dreamhost.com> Message-ID: <427243BE.7010109@earthlink.net> Ian Hickson wrote: > On Fri, 29 Apr 2005, Matthew Raymond wrote: >>Well, in situations with Javascript off, the benefits are obvious. > > I don't mean to be obtuse, but: they aren't to me. I guess I could imagine > wanting declarative 3D for when you want to show someone around your > office or something like that, but I can't say I've seen much demand for > that, and even less integrated with HTML. > > In any case, that would be something to be addressed by another > specification, like X3D. HTML (specifically XHTML) already supports > integrating with other namespaces. I'm not suggesting integration with HTML5. I'm perfectly happy with using X3D (or some other separate language, like XGL). My concern is the lack of analysis of how these technologies fit together. It's like fitting an engine to an airframe. I don't want the engine to necessarily be part of the airframe design, but they still have to work together, and you won't know where the problems are until you try fitting them together. >>There's also the potential to use XBL to apply special behavior to >>specific tags. For instance, instead of having a static Sun in the sky, >>you could have it rise and set by using XBL to pull in code that moves >>the model and lighting around. > > What sky? :-) I haven't seen many applications with skies... I'll try to come up with a less game-like example next time... Question: Game != Application? >>I'm not saying there's a problem with X3D. I'm just trying to make sure >>there is a clear idea of how to make XHTML + X3D compound documents. In >>other words, I'm trying to find the weak link, if there is one, and at >>the moment that seems to be a lack of examples on the Internet. > > The biggest problem with integrating X3D and XHTML is, as far as I can > tell, the lack of a namespace to identify X3D content. (This is similar to > the problem preventing Docbook integration.) Good, now we're getting somewhere. Let's say X3D did have a namespace, like "x3d". Could we use <x3d:x3d> or <x3d:scene> as the container/viewport? > If you want declarative 3D integrated into the Web browser pipeline, > alongside the DOM, JS, XHTML, SVG, CSS, XBL, etc, I encourage you to bring > this up with the Web3D consortium. Very well. I'll also look into competing languages being developed. From ian at hixie.ch Fri Apr 29 07:38:16 2005 From: ian at hixie.ch (Ian Hickson) Date: Fri, 29 Apr 2005 14:38:16 +0000 (UTC) Subject: [whatwg] Re: XHTML + X3D (was Re: Web Applications and 3D) In-Reply-To: <427243BE.7010109@earthlink.net> References: <4271358B.9050309@earthlink.net> <Pine.LNX.4.61.0504281942480.20679@dhalsim.dreamhost.com> <42719175.9010103@earthlink.net> <Pine.LNX.4.61.0504290755080.1177@dhalsim.dreamhost.com> <4272333D.1080807@earthlink.net> <Pine.LNX.4.61.0504291326030.21216@dhalsim.dreamhost.com> <427243BE.7010109@earthlink.net> Message-ID: <Pine.LNX.4.61.0504291427490.21216@dhalsim.dreamhost.com> On Fri, 29 Apr 2005, Matthew Raymond wrote: > > I'm not suggesting integration with HTML5. I'm perfectly happy with > using X3D (or some other separate language, like XGL). My concern is the > lack of analysis of how these technologies fit together. It's like > fitting an engine to an airframe. I don't want the engine to necessarily > be part of the airframe design, but they still have to work together, > and you won't know where the problems are until you try fitting them > together. I guess I don't understand what you mean by "fit together" if you don't mean "integrate". Any format can "fit" with XHTML, including PDF, Flash, PNG, SVG, MP3, AVI, MPEG, etc, and including X3D and its predecessor VRML, if integration isn't the point. > > > There's also the potential to use XBL to apply special behavior to > > > specific tags. For instance, instead of having a static Sun in the > > > sky, you could have it rise and set by using XBL to pull in code > > > that moves the model and lighting around. > > > > What sky? :-) I haven't seen many applications with skies... > > I'll try to come up with a less game-like example next time... Would you really expect a game to be written with declarative 3D? I guess it's possible, but my impression based on talking with 3D people and game designers asking for Web-deployed 3D games that re-use the existing framework (HTML) is that they really just want access to the underlying APIs so that they can make their own, optimised 3D engines that do what _they_ want, as opposed to having a particular framework. (Note that DOM manipulation is relatively expensive, by the way, in terms of runtime performance.) > Question: Game != Application? No, not at all -- games are in fact often the leading edge of applications, and often have even more extreme needs. Games are definitiely part of the WHATWG target application segment. > > The biggest problem with integrating X3D and XHTML is, as far as I can > > tell, the lack of a namespace to identify X3D content. (This is > > similar to the problem preventing Docbook integration.) > > Good, now we're getting somewhere. Let's say X3D did have a namespace, > like "x3d". Could we use <x3d:x3d> or <x3d:scene> as the > container/viewport? Assuming X3D defined how that worked, yes. (It would basically need to define a the contents of, and dimensions of, a 2D rectangular area that represented the X3D content. That would then be a replaced element and would fit into the CSS model directly.) > > If you want declarative 3D integrated into the Web browser pipeline, > > alongside the DOM, JS, XHTML, SVG, CSS, XBL, etc, I encourage you to > > bring this up with the Web3D consortium. > > Very well. I'll also look into competing languages being developed. Cool. (Note that X3D is on the ISO standards track, which gives it a lot of weight.) -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From jim.ley at gmail.com Fri Apr 29 07:55:52 2005 From: jim.ley at gmail.com (Jim Ley) Date: Fri, 29 Apr 2005 15:55:52 +0100 Subject: [whatwg] Web Applications and 3D In-Reply-To: <42723EEC.8040302@earthlink.net> References: <4271358B.9050309@earthlink.net> <851c8d31050429012167d20b9c@mail.gmail.com> <42723EEC.8040302@earthlink.net> Message-ID: <851c8d310504290755578658bf@mail.gmail.com> On 4/29/05, Matthew Raymond <mattraymond at earthlink.net> wrote: > Jim Ley wrote: > > Please do not re-invent the wheel, but standardise this (or a subset) > > functionality. > > > > The supposed motivation of WHAT-WG is compatibility with IE6, VML and > > DirectAnimation provide 2D and 3D drawing contexts that are > > compatibile with Internet Explorer, use them, or start coming up with > > some reasons why not to. > > The examples I've seen with regard to DirectAnimation are done > through an <object> and use an ActiveX control, so standardizing such an > interface isn't appropriate. Could you explain why? ActiveX is just the mechanism windows uses for componentisation - WHAT-WG is already standardising things implemented as ActiveX in IE. If you're saying that the creation mechanism for a 3D canvas is wrong - there's something wrong with using OBJECT, and we need to use CANVAS3D instead, then perhaps you might have a point, I'd like to hear a lot more motivation for inventing new elements for this, given the problems with new elements highlighted so often by Ian and others. However the creation is one minor part of the 3D API, and it's the API I was talking about. > We may want to be able to implement the "3d" context for > <canvas> on top of DirectAnimation. Could you describe why this might be a motivation, what do you see as so lacking in the current implementation that it's not takeable as a whole? > > As always, I'm still waiting to hear the use cases for both 2D and 3D > > javascript drawing - "Quake like games" which is the only example > > I've heard so far, may be a use case, but it's not yet been explained > > why an HTML document is appropriate for such a game. > > I've already suggested the use of 3D for previewing a custom ordered > product such as a motorcycle. All drawn in client-side javascript? - remember the use cases I'm looking for are not use cases for 3D, but for use cases for a 3D canvas in a webpage, that has no state, and relies wholly on all the information being drawn by javascript onload or later? I do not accept that the above is a practical use case. > Perhaps you > want to see a 3D representation of the hotel room you plan to book. Same > for real estate. If you're ordering a ticket from a concert, wouldn't it > be nice to see what the stage will look like from your seat? > > Need I go on? Yes, because none of these are being addressed by a 3d drawable canvas and a javascript API, the simple creation of any of these is not appropriate to a programming language, they are all declaritive, and the WHAT-WG individual has made it clear that a declaritive 3D mechanism is not on the agenda. If that is all that we get, then none of those use cases will be fulfilled. So I'm still searching for what use cases a javascript API to a 3D canvas provides, it's been possible in IE since 1997, I've done lots with it in that time, yet I've never come across a real wbe situation that has used it - I used it once to write some very quick pages that were 3D to be used on some notebooks at a trade show, back when notebooks having 3D graphics cards was a selling point. Jim. From fora at annevankesteren.nl Fri Apr 29 08:11:24 2005 From: fora at annevankesteren.nl (Anne van Kesteren) Date: Fri, 29 Apr 2005 17:11:24 +0200 Subject: [whatwg] [html5] 2.20.1. The datagrid element Message-ID: <42724E9C.80105@annevankesteren.nl> Some initial comments on possible problems I spotted. # Columns, rows, and cells can each have specific classes applied to # them by the data provider. Classes is nowhere defined. Is this about the HTML CLASS attribute? If so, could that be more clearly stated. If otherwise, could it be elaborated for a bit to make it more understandable. # getRowCount(): The number of rows returned by the default data # provider must be the number of tr elements that are children of tbody # elements that are children of the table, if there are any tbody # elements. If there are no tbody elements then the number of rows # returned must be the number of tr elements that are children of the # table. What happens here: <table> <xhtmlfoo:content> <tr> ... ... should it return 0? Or should it look for all descendents of TABLE when there is neither a TBODY or TR child element. # getColumnCount(): If the table has a thead element child, and the # first such element has a tr element child, then the number of columns # returned by the default data provider must be the number of th # element children in the first such tr element, if there are any such # th elements. This 'messes up' perfectly valid tables like: <table> <thead> <tr> <th colspan="2">Male <th colspan="2">Female <tr> <th>Alcoholic <th>Suicidel ... ... not? # getCaptionText(i): If the table has no thead element child, or if its # first thead element child has no tr element child, the default data # provider must return the empty string for all captions. Otherwise, # the value of the textContent attribute of the ith th element child # of the first tr element child of the first thead element child of the # table element must be returned. If there is no such th element, the # empty string must be returned. How about trying to select the value of the CAPTION element[1] first? The same might apply to getCaptionClasses(i, classes). By the way, it would make more sense to say: <datagrid sortable=""> ... or: <datagrid sortable="sortable"> ... or: <datagrid class="sortable"> ... and that it then applies to all columns. Like some implementations have implemented it[2]. [1]<http://www.w3.org/TR/1999/REC-html401-19991224/struct/tables.html#h-11.2.2> [2]<http://www.letselplein.nl/~exemplarisch/sort-table/sort-table-rows.html> -- Anne van Kesteren <http://annevankesteren.nl/> From dhtmlkitchen at gmail.com Fri Apr 29 22:08:36 2005 From: dhtmlkitchen at gmail.com (Garrett Smith) Date: Fri, 29 Apr 2005 22:08:36 -0700 Subject: [whatwg] Fragment Loading (not xmlhttp and iframe buffers) Message-ID: <c9e126605042922083f46ce02@mail.gmail.com> There is no current standard way to load content into an element. There is no way to load content into an element without using javascript. Everyone wants to use XmlHttp now and not really caring much about accessibility. It is a desirable effect, and not one that is easy to acheive gracefully. I propose a simple way to load content into an element by using an a href and giving the target an IDREF value (of a node in the containing document). If the node-finding operation fails (due to the node not being found or the browser not supporting the operation), the browser will open a new window (this is what browsers do now) <a href="ch2.html#part1" target="#section" fragment="part1.html">part 1</a> Attributes: href - The user agent downloads the file in href. If a hash is specified, the browser loads the document fragment contained by the IDREF specified in the hash. The user agent may optionally download only the fragment, to increase performance. target - the target can now be an IDREF of a node in the document. If the target attribute begins with a hash mark, the contents of the element matching that IDREF will be cleared and new contents will be loaded into the element. fragment - If the fragment attribute is specified, the user agent ignores the href and downloads the content specified for the value of the fragment attribute. Example: <a href="ch2.html#part1" target="#section" fragment="part1.html">part 1</a> <div id="section"> <h1>This is some content that will be cleared</h1> </div> If a user clicks on the link, the file "part1.html" will load into the div with the id="section". If the operation fails, the browser opens a new window and loads the file "ch2.html#part1". The reason for having a fragment attribute is so that authors can specify a document fragment and then have a fallback for user-agents which do not support fragment loading. There you have it, loading document fragments without javascript. What more could you ask for? From dhtmlkitchen at gmail.com Sat Apr 30 14:09:38 2005 From: dhtmlkitchen at gmail.com (Garrett Smith) Date: Sat, 30 Apr 2005 14:09:38 -0700 Subject: [whatwg] Styling form controls Message-ID: <c9e1266050430140959a9b738@mail.gmail.com> I want to be able to style form controls. For example <button style="display: block; border:1px solid red;padding:0;margin:0"><div>content</div></button> Safari is the only browser that renders the above example correctly: A button with form element behavior, styled as specified. Browsers should all do this, but none (except safari) do. Moz, Opera, and IE do some sort of compromise (Moz & Op just blindly mimic IE to some degree). Perhaps display: auto would describe what most UA's do now; they just use their own native-type of gui. I want to use my gui and have the button funtion as a button. If I want to submit or reset the form, I'll use the appropriate type attribute. What do page authors do now? Well, most will use something as inaccessible as this w/o even blinking: <div style="..."><a href="javascript:submitForm()"></div> Javascript should not be relied upon for page submissions and its up to the browser vendors to give page authors more flexibility. So how about letting us style form controls. -- http://dhtmlkitchen.com/ From ian at hixie.ch Sat Apr 30 15:51:06 2005 From: ian at hixie.ch (Ian Hickson) Date: Sat, 30 Apr 2005 22:51:06 +0000 (UTC) Subject: [whatwg] Styling form controls In-Reply-To: <c9e1266050430140959a9b738@mail.gmail.com> References: <c9e1266050430140959a9b738@mail.gmail.com> Message-ID: <Pine.LNX.4.61.0504302250200.26870@dhalsim.dreamhost.com> On Sat, 30 Apr 2005, Garrett Smith wrote: > > I want to be able to style form controls. Nothing in HTML4 or in the WHATWG specs would preclude that. CSS should be better defined to handle this case, maybe; that would be an issue to raise with the www-style at w3.org mailing list, though. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' From tato at fureai.or.jp Sat Apr 30 20:24:59 2005 From: tato at fureai.or.jp (Toshirou Takahashi) Date: Sun, 01 May 2005 12:24:59 +0900 Subject: [whatwg] charset attribute of HTMLScriptElement Message-ID: <20050501122151.C07C.TATO@fureai.or.jp> i hope to add the charset attribute to HTMLScriptElement, on 2.12.1. The script element of The Web Applications 1.0 http://whatwg.org/specs/web-apps/current-work/#the-script now :(Working Draft ? 29 April 2005) interface HTMLScriptElement : HTMLElement { attribute DOMString text; attribute DOMString src; attribute DOMString type; }; i hope : interface HTMLScriptElement : HTMLElement { attribute DOMString text; attribute DOMString src; attribute DOMString type; attribute DOMString charset; }; Because the person who made .js file doesn't know whether the file is used with what charset all over the world. For instance, there is someone using the file written with utf-8 on the page of shift_JIS and others. By the way, DOM 1 http://www.w3.org/TR/DOM-Level-1/level-one-html.html#ID-81598695 interface HTMLScriptElement : HTMLElement { attribute DOMString text; attribute DOMString htmlFor; attribute DOMString event; attribute DOMString charset; attribute boolean defer; attribute DOMString src; attribute DOMString type; }; HTML4.0 http://www.w3.org/TR/REC-html40/interact/scripts.html#h-18.2.1 <!ELEMENT SCRIPT - - %Script; -- script statements --> <!ATTLIST SCRIPT charset %Charset; #IMPLIED -- char encoding of linked resource -- type %ContentType; #REQUIRED -- content type of script language -- src %URI; #IMPLIED -- URI for an external script -- defer (defer) #IMPLIED -- UA may defer execution of script -- > Regards, -- Toshirou Takahashi <http://jsgt.org/mt/01/>