...
> > > 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 , the 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 is part of the , and thus it is
associated with the '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.
Fox Publications Presents:
The Big Newspaper
Flood in town
The first is clearly part of the same section as the first
. The
whitespace node before the two elements are similarly obviously part
of their , and the s clearly don't start a separate section
that is independent of the and elements.
> > Even in the case of:
> >
> >
> > ...
> >
> > ...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 .
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:
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:
>
> 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