[whatwg] Pre, code and semantics in HTML5: Wishful thinking?

2008-06-22 Thread Edward Z. Yang
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I was reading through the HTML5 spec the other day and I noticed this tidbit: To represent a block of computer code, the pre element can be used with a code element; to represent a block of computer output the pre element can be used with a samp

Re: [whatwg] What should the value attribute be for multi-file upload controls in WF2?

2008-06-22 Thread Lachlan Hunt
Michael A. Puls II wrote: Anyway, the use case for .value is: ... pFile to attach: p pinput type=file onchange=document.getElementsByTagName('p')[0].innerHTML += this.value;/p ... How is that a use case? Please explain why outputting the value of the control in an adjacent

Re: [whatwg] Pre, code and semantics in HTML5: Wishful thinking?

2008-06-22 Thread Smylers
Edward Z. Yang writes: ... authors are recommended to use precode to wrap all of their programming code instead of a lone pre, if they wish to be fully semantic. This ... makes it extremely difficult to style pre as a block for code, as the only semantic indication that the contents of the

Re: [whatwg] What should the value attribute be for multi-file upload controls in WF2?

2008-06-22 Thread Michael A. Puls II
On 6/22/08, Lachlan Hunt [EMAIL PROTECTED] wrote: Michael A. Puls II wrote: Anyway, the use case for .value is: ... pFile to attach: p pinput type=file onchange=document.getElementsByTagName('p')[0].innerHTML += this.value;/p ... How is that a use case?

[whatwg] document.readyState and its initial value

2008-06-22 Thread Dan Fabulich
document.readyState was added to HTML5 in April of this year. http://lists.whatwg.org/pipermail/commit-watchers-whatwg.org/2008/000652.html http://www.whatwg.org/specs/web-apps/current-work/multipage/dom.html#current Each document has a current document readiness. When a Document object is

Re: [whatwg] document.readyState and its initial value

2008-06-22 Thread Ian Hickson
On Sun, 22 Jun 2008, Dan Fabulich wrote: The point is small and not very important because it's almost impossible to encounter an HTML document in Internet Explorer in the uninitialized state. But I think the fix is small and uncontroversial: Actually the testability is the most important

Re: [whatwg] document.readyState and its initial value

2008-06-22 Thread Dan Fabulich
Ian Hickson wrote: On Sun, 22 Jun 2008, Dan Fabulich wrote: The point is small and not very important because it's almost impossible to encounter an HTML document in Internet Explorer in the uninitialized state. But I think the fix is small and uncontroversial: Actually the testability is