Re: [whatwg] Author control over media preloading/buffering

2009-03-04 Thread Robert O'Callahan
On Thu, Feb 26, 2009 at 10:19 PM, Ian Hickson  wrote:

> On Wed, 25 Feb 2009, Robert O'Callahan wrote:
> >
> > Under "Once enough of the media data has been fetched to determine the
> > duration of the media resource, its dimensions, and other metadata",
> > after setting the state to HAVE_METADATA, steps 7 and 8 say
> >
> > > 7. Set the element's delaying-the-load-event flag to false. This stops
> > > delaying the load event.
> > >
> > > 8. This is the point at which a user agent that is attempting to
> > > reduce network usage while still fetching the metadata for each media
> > > resource would stop buffering, causing the networkState attribute to
> > > switch to the NETWORK_IDLE value, if the media element did not have an
> > > autobuffer or autoplay attribute.
> >
> > I suggested HAVE_CURRENT_DATA would be a better state for these actions,
> > and I still think so. These actions should not occur until the UA is
> > able to display the first frame of the video. Authors would want the
> > first frame of a non-autobuffered video to be visible, and the document
> > load event should fire after the first frame is available by analogy
> > with images.
>
> I've updated the note as per your suggestion.
>

In step 7 you still stop delaying the load event after loading metadata. I
still say we should keep delaying the load event until we reach
HAVE_CURRENT_DATA.

Rob
-- 
"He was pierced for our transgressions, he was crushed for our iniquities;
the punishment that brought us peace was upon him, and by his wounds we are
healed. We all, like sheep, have gone astray, each of us has turned to his
own way; and the LORD has laid on him the iniquity of us all." [Isaiah
53:5-6]


[whatwg] Historic dates in HTML5

2009-03-04 Thread Jim O'Donnell

Hello,

Apologies for coming in late but Bruce Lawson pointed me in the  
direction of this discussion  I had some comments about dates in HTML5.


Lachlan Hunt wrote:
"The time element was primarily designed to address use cases involving
contemporary dates.  It doesn't address non-Gregorian calendars or BCE
dates by design, as it is not really meant for historical dates.

Probably the most historical dates that it would really be suitably
optimised for are people's birthdates, which, for people alive today,
don't really extend back beyond the early 20th century, with very few
exceptions."

Has any consideration been given to using the  tag in the same  
manner as the  element from TEI to mark up dates, particularly  
the calendar attribute to indicate non-Gregorian calendars? (see  
http://www.tei-c.org/Guidelines/P4/html/ref-DATE.html)


I ask because one of the sites I look after is the National Maritime  
Museum archive search, which includes ~70,000 records dating from the  
16th century to present. Of those, around 3,500 predate the Gregorian  
calendar and have, presumably, Julian dates: http://is.gd/lFrh
It would be useful to mark up these dates as dates in the HTML  
versions of the catalogue records. However, from what Lachlan Hunt  
has said, it seems the  tag in HTML5 can't be used to do this.  
This then leads to a situation where some dates on the web can be  
marked up, semantically, as dates but others cannot, which seems  
somewhat ridiculous really.


Is there any suitable markup in HTML5 for dates in digitised  
documents from museums, libraries and archives?


Regards
Jim O'Donnell
j...@eatyourgreens.org.uk
http://eatyourgreens.org.uk
http://flickr.com/photos/eatyourgreens
http://twitter.com/pekingspring






[whatwg] HttpOnly cookies reference

2009-03-04 Thread Den.Molib
Section 3.2.3 says:
> This specification does not define what makes an HTTP-only cookie, and
> at the time of publication the editor is not aware of any reference
> for HTTP-only cookies. They are a feature supported by some Web
> browsers wherein an "|httponly|" parameter added to the cookie string
> causes the cookie to be hidden from script.
It is my understanding that Http-only cookies were first defined by
Michael Howard on his blog entry titled 'Some Bad News and Some Good
News' (October 21, 2002).

That content is currently hosted at:
http://msdn.microsoft.com/en-us/library/ms972826.aspx (scroll to the
section 'The Good News: Mitigating Cross-Site Scripting Issues')
Microsoft urls are not too stable. It can also be reached from
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dncode/html/secure10102002.asp?frame=true
(an old url, being used on
http://www.microsoft.com/presspass/features/2002/oct02/10-23xss-ie.mspx)
or from the Wayback machine
http://web.archive.org/web/20061007124347/http://msdn.microsoft.com/library/en-us/dncode/html/secure10102002.asp




Re: [whatwg] Address example to be changed to lowercase

2009-03-04 Thread Ian Hickson
On Wed, 4 Mar 2009, Rikkert Koppes wrote:
>
> In contrast to the rest of the spec, the address element example is 
> shown in uppercase. For clarity, this would better be put in lowercase

I intend to use a variety of correct styles in the examples, to emphasise 
that there is no "right answer" for this kind of thing. I haven't added 
many uppercase examples yet (the  ones are uppercase as part of 
an in-joke), but I expect there will be more over time. (Examples are 
something I plan to work on heavily this summer.)

-- 
Ian Hickson   U+1047E)\._.,--,'``.fL
http://ln.hixie.ch/   U+263A/,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'


Re: [whatwg] Example / pattern document for authors

2009-03-04 Thread Ian Hickson
On Wed, 4 Mar 2009, Rikkert Koppes wrote:
> 
> Would it be a nice idea to create a (non normative) example document for 
> authors, containing at least the examples from the spec, amended with 
> more elaborate examples of complete structures and real life samples? If 
> so, would the whatwg wiki be a good start to host this, with the intend 
> to create a document accompanying the specification? If the answer is 
> yes, I would be happy to create a start.

Yes, please do feel free to use the wiki for anything like this. Go nuts!

You can also blog about it, if you like, the WHATWG blog is open to all. 
(You'll need someone to push the "publish" button because we found 
spammers were abusing it; just drop me or Lachy or jgraham a note and 
we'll hook you up.)

-- 
Ian Hickson   U+1047E)\._.,--,'``.fL
http://ln.hixie.ch/   U+263A/,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'


[whatwg] Address example to be changed to lowercase

2009-03-04 Thread Rikkert Koppes
In contrast to the rest of the spec, the address element example is 
shown in uppercase. For clarity, this would better be put in lowercase


Regards,
Rikkert Koppes


[whatwg] Example / pattern document for authors

2009-03-04 Thread Rikkert Koppes

Dear all,

Would it be a nice idea to create a (non normative) example document for 
authors, containing at least the examples from the spec, amended with 
more elaborate examples of complete structures and real life samples? If 
so, would the whatwg wiki be a good start to host this, with the intend 
to create a document accompanying the specification? If the answer is 
yes, I would be happy to create a start.


Regards,
Rikkert Koppes