Re: Spec does not appear to define what it means to be a "modal" dialog (e.g. focus concerns should be included)

There's step 6:

Let dialog's Document<http://www.whatwg.org/specs/web-apps/current-work/#document>
 be blocked by the modal
dialog<http://www.whatwg.org/specs/web-apps/current-work/#blocked-by-a-modal-dialog>
 dialog.

BTW: I think spec-preview was an intermediate document that was created as
part of switching editors. It is probably irrelevant now and should be
removed.

On Fri, Nov 9, 2012 at 8:16 AM, James Craig <jcraig@apple.com> wrote:

> Quoting from ~"When showModal() is invoked:"
>
> Let control be the first element in tree order whose nearest ancestor
> dialog <http://dev.w3.org/html5/spec/single-page.html#the-dialog-element> element
> is dialog and that has an autofocus<http://dev.w3.org/html5/spec/single-page.html#attr-fe-autofocus> attribute
> specified, if any.
>
>
> I don't think that resolves my concern. Yes, this states an element inside
> the dialog should become focused upon showing the dialog, but it does not
> state that other document content outside the dialog should become
> non-focusable while a "modal" dialog is shown.
>
> James
>
> PS. What's the difference between spec and spec-preview? I thought I was
> looking at the latest spec.
>
>
> On Nov 8, 2012, at 12:59 PM, Silvia Pfeiffer <silviapfeiffer1@gmail.com>
> wrote:
>
> You might want to check the latest spec:
> http://dev.w3.org/html5/spec/single-page.html#dom-dialog-showmodal
>
> There is a step in there that speaks about autofocus. I think that
> resolves the interaction issues.
>
>
> Regards,
> Silvia.
>
> On Fri, Nov 9, 2012 at 7:48 AM, James Craig <jcraig@apple.com> wrote:
>
>> One clarification inline.
>>
>> On Nov 8, 2012, at 12:46 PM, James Craig <jcraig@apple.com> wrote:
>>
>> > I don't see a definition for "modal" in the spec section for the dialog
>> element.
>> > http://dev.w3.org/html5/spec-preview/commands.html#the-dialog-element
>> >
>> > Presumably dialog.showModal() would prevent interaction
>>
>> In case it's not clear, I should clarify I meant prevent interaction *of
>> background contents* not of content inside the dialog.
>>
>> > in any modality (including keyboard focusability), but as far as I can
>> see, it does not state anything to that effect. Unless I hear a correction,
>> I'll file a defect.
>> >
>> >
>> >
>>
>>
>>
>
>

Received on Thursday, 8 November 2012 21:30:08 UTC