W3C home > Mailing lists > Public > whatwg@whatwg.org > July 2009

[whatwg] HTML form controls inside of editable area

From: Alexander Surkov <surkov.alexander@gmail.com>
Date: Thu, 23 Jul 2009 10:51:46 +0800
Message-ID: <faf3cb2b0907221951l3ca1ca8bp121853e62af79c12@mail.gmail.com>
Hi.

HTML 5 contentEditable section doesn't define behaviour of HTML form
controls inside of editable area explicitly
(http://dev.w3.org/html5/spec/Overview.html#user-editing-actions). The
question is the following: is behaviour on keyboard or mouse
interaction with form controls inside of editable the same like it is
for form controls outside of editable area? So that for example if I
click on HTML button inside of editable area then will button be
clicked and onclick event handler be invoked? Or, for example, if HTML
select is focused and I press down arrow key then will selected option
be changed? It's obviously some keyboard shortcuts can have one
meaning on focused HTML element and another meaning in editable area.
It's necessary to define who wins. HTML 5 specification has words
confirming implicitly the idea HTML form controls inside of editable
area should preserve behaviour. These words are "When an editable form
control is edited, the changes must be reflected in both its current
value and its default value. for select elements it means updating the
option elements' defaultSelected DOM attribute as well as the selected
DOM attribute" which means user should be able to change selected
option and therefore it's reasonable to expect form control behaves as
usually. Can I get some clarification please?

Thank you.
Alex.
Received on Wednesday, 22 July 2009 19:51:46 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:14 UTC