Skip to content

Commit

Permalink
[] (0) Variety of editorial cleanup; also, fix the Action facet of <i…
Browse files Browse the repository at this point in the history
…nput> controls.

git-svn-id: http://svn.whatwg.org/webapps@3302 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Jun 17, 2009
1 parent 78b6a7a commit 73bca69
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 118 deletions.
90 changes: 32 additions & 58 deletions index
Expand Up @@ -39262,8 +39262,8 @@ explain that only direct children of the <menu> matter

<p>If the <a href=#command-facet-type title=command-facet-Type>Type</a> is "command",
then it is the string given by the <code title=attr-input-value><a href=#attr-input-value>value</a></code> attribute, if any, and a
<span>UA-dependent value</span><!-- XXX xref--> that the UA uses to
label the button itself if the attribute is absent.</p>
UA-dependent, locale-dependent value that the UA uses to label the
button itself if the attribute is absent.</p>

<p>Otherwise, the <a href=#command-facet-type title=command-facet-Type>Type</a> is
"radio" or "checkbox". If the element is a <a href=#labeled-control>labeled
Expand Down Expand Up @@ -39301,9 +39301,11 @@ explain that only direct children of the <menu> matter
attribute, and false otherwise.</p>

<p>The <a href=#command-facet-action title=command-facet-Action>Action</a> of the
command is to <a href=#fire-a-click-event title="fire a click event">fire a <code title=event-click>click</code> event</a> at the element.</p> <!-- XXX this
is probably wrong for radio and checkbox types, depending on how we
define <input>. -->
command, if the element has a defined <a href=#activation-behavior>activation
behavior</a>, is to <a href=#run-synthetic-click-activation-steps>run synthetic click activation
steps</a> on the element. Otherwise, it is just to <a href=#fire-a-click-event>fire a
<code title=event-click>click</code> event</a> at the
element.</p>


<h5 id=using-the-option-element-to-define-a-command><span class=secno>4.11.6.4 </span><dfn title=option-command>Using the <code>option</code> element to define a command</dfn></h5>
Expand Down Expand Up @@ -39591,15 +39593,11 @@ explain that only direct children of the <menu> matter
<a href=#represents>represents</a> its children. It can be used with the <code title=attr-class><a href=#classes>class</a></code>, <code title=attr-lang><a href=#attr-lang>lang</a></code>, and <code title=attr-title><a href=#the-title-attribute>title</a></code> attributes to mark up semantics
common to a group of consecutive elements.</p>

<p class=XXX>Allowing <code><a href=#the-div-element>div</a></code> elements to contain
phrasing content makes it easy for authors to abuse
<code><a href=#the-div-element>div</a></code>, using it with the <code>class=""</code> attribute
to the point of not having any other elements in the markup. This is
a disaster from an accessibility point of view, and it would be nice
if we could somehow make such pages non-compliant without preventing
people from using <code><a href=#the-div-element>div</a></code>s as the extension mechanism that
they are, to handle things the spec can't otherwise do (like making
new widgets).</p>
<p class=note>Authors are strongly encouraged to view the
<code><a href=#the-div-element>div</a></code> element as an element of last resort, for when no
other element is suitable. Use of the <code><a href=#the-div-element>div</a></code> element
instead of more appropriate elements leads to poor accessibility for
readers and poor maintainability for authors.</p>



Expand Down Expand Up @@ -41154,18 +41152,6 @@ document.body.appendChild(outer);</pre>
defined in the CCITT specifications E.163 and X.121, or an <a href=#concept-item title=concept-item>item</a> with zero or more <code title=md-vcard-tel-type><a href=#md-vcard-tel-type>type</a></code> properties and exactly one
<code title=md-vcard-tel-value><a href=#md-vcard-tel-value>value</a></code> property. <a href=#refsE163>[E.163]</a> <a href=#X.121>[X.121]</a></p>

<!-- XXX refs

[E.163] Recommendation E.163 - Numbering Plan for The
International Telephone Service, CCITT Blue Book,
Fascicle II.2, pp. 128-134, November, 1988.

[X.121] Recommendation X.121 - International Numbering Plan for
Public Data Networks, CCITT Blue Book, Fascicle VIII.3,
pp. 317-332, November, 1988.

-->

<p>If no <code title=md-vcard-tel-type><a href=#md-vcard-tel-type>type</a></code> properties
are present within an <a href=#concept-item title=concept-item>item</a> that
forms the <a href=#concept-property-value title=concept-property-value>value</a> of a
Expand Down Expand Up @@ -45296,8 +45282,8 @@ interface <dfn id=window>Window</dfn> {
<a href=#windowproxy>WindowProxy</a> <a href=#dom-open title=dom-open>open</a>([Optional] in DOMString url, [Optional] in DOMString target, [Optional] in DOMString features, [Optional] in DOMString replace);

// the user agent
readonly attribute <a href=#navigator>Navigator</a> <a href=#dom-navigator title=dom-navigator>navigator</a>; <!-- XXX IE6 also has window.clientInformation pointing to this same object -->
readonly attribute <span>Storage</span> <span title=dom-localStorage>localStorage</span>; <!-- XXX split into separate interface -->
readonly attribute <a href=#navigator>Navigator</a> <a href=#dom-navigator title=dom-navigator>navigator</a>; <!-- IE also has window.clientInformation === window.navigator -->
readonly attribute <span>Storage</span> <span title=dom-localStorage>localStorage</span>;
readonly attribute <span>Storage</span> <span title=dom-sessionStorage>sessionStorage</span>;
<span>Database</span> <span title=dom-opendatabase>openDatabase</span>(in DOMString name, in DOMString version, in DOMString displayName, in unsigned long estimatedSize);
readonly attribute <a href=#applicationcache>ApplicationCache</a> <a href=#dom-applicationcache title=dom-applicationCache>applicationCache</a>;
Expand Down Expand Up @@ -45383,11 +45369,12 @@ interface <dfn id=window>Window</dfn> {
attribute <a href=#function>Function</a> <a href=#handler-onwaiting title=handler-onwaiting>onwaiting</a>;
};</pre>

<!-- XXX http://msdn.microsoft.com/workshop/author/dhtml/reference/objects/obj_window.asp
http://www.mozilla.org/docs/dom/domref/dom_window_ref.html
http://lxr.mozilla.org/mozilla/source/dom/public/idl/base/nsIDOMWindow.idl - scrollBy, etc
http://lxr.mozilla.org/mozilla/source/dom/public/idl/base/nsIDOMWindowInternal.idl - DOM level 0
-->
<!-- for more features to add here, look here:
http://msdn.microsoft.com/workshop/author/dhtml/reference/objects/obj_window.asp
http://www.mozilla.org/docs/dom/domref/dom_window_ref.html
http://lxr.mozilla.org/mozilla/source/dom/public/idl/base/nsIDOMWindow.idl - scrollBy, etc
http://lxr.mozilla.org/mozilla/source/dom/public/idl/base/nsIDOMWindowInternal.idl - DOM level 0
-->

<dl class=domintro><dt><var title="">window</var> . <code title=dom-window><a href=#dom-window>window</a></code></dt>
<dt><var title="">window</var> . <code title=dom-frames><a href=#dom-frames>frames</a></code></dt>
Expand Down Expand Up @@ -47117,7 +47104,7 @@ JSURL: http://ietfreport.isoc.org/all-ids/draft-hoehrmann-javascript-scheme-00.t
http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C!DOCTYPE%20html%3E%0A...%3Cbody%20onload%3D%22w(%27pass%27)%22%3E%0A%3Cscript%3Edocument.body.removeAttribute(%27onload%27)%3B%3C%2Fscript%3E
-->

<p class=XXX>How do we allow non-JS event handlers?</p>
<!-- v2: we should probably support HTML4's Content-Script-Type header here. -->

<div class=impl>

Expand Down Expand Up @@ -47239,10 +47226,10 @@ interface <dfn id=function>Function</dfn> {
<tr><td><dfn id=handler-onprogress title=handler-onprogress><code>onprogress</code></dfn> <td> <code title=event-progress><a href=#event-progress>progress</a></code>
<tr><td><dfn id=handler-onratechange title=handler-onratechange><code>onratechange</code></dfn> <td> <code title=event-ratechange><a href=#event-ratechange>ratechange</a></code>
<tr><td><dfn id=handler-onreadystatechange title=handler-onreadystatechange><code>onreadystatechange</code></dfn> <td> <code title=event-readystatechange>readystatechange</code>
<tr><td><dfn id=handler-onscroll title=handler-onscroll><code>onscroll</code></dfn> <td> <code title=event-scroll>scroll</code> <!-- widely used --> <!-- XXX should define when it fires -->
<tr><td><dfn id=handler-onscroll title=handler-onscroll><code>onscroll</code></dfn> <td> <code title=event-scroll>scroll</code> <!-- widely used --> <!-- [CSSOM] -->
<tr><td><dfn id=handler-onseeked title=handler-onseeked><code>onseeked</code></dfn> <td> <code title=event-seeked><a href=#event-seeked>seeked</a></code>
<tr><td><dfn id=handler-onseeking title=handler-onseeking><code>onseeking</code></dfn> <td> <code title=event-seeking><a href=#event-seeking>seeking</a></code>
<tr><td><dfn id=handler-onselect title=handler-onselect><code>onselect</code></dfn> <td> <code title=event-select>select</code> <!-- widely used --> <!-- XXX should define when it fires -->
<tr><td><dfn id=handler-onselect title=handler-onselect><code>onselect</code></dfn> <td> <code title=event-select>select</code> <!-- widely used --> <!-- [CSSOM] -->
<tr><td><dfn id=handler-onshow title=handler-onshow><code>onshow</code></dfn> <td> <code title=event-show>show</code>
<tr><td><dfn id=handler-onstalled title=handler-onstalled><code>onstalled</code></dfn> <td> <code title=event-stalled><a href=#event-stalled>stalled</a></code>
<tr><td><dfn id=handler-onsubmit title=handler-onsubmit><code>onsubmit</code></dfn> <td> <code title=event-submit>submit</code> <!-- widely used -->
Expand Down Expand Up @@ -47291,7 +47278,7 @@ interface <dfn id=function>Function</dfn> {
<tr><td><dfn id=handler-window-ononline title=handler-window-ononline><code>ononline</code></dfn> <td> <code title=event-online><a href=#event-online>online</a></code> <!-- new -->
<tr><td><dfn id=handler-window-onpopstate title=handler-window-onpopstate><code>onpopstate</code></dfn> <td> <code title=event-popstate><a href=#event-popstate>popstate</a></code> <!-- new -->
<tr><td><dfn id=handler-window-onredo title=handler-window-onredo><code>onredo</code></dfn> <td> <code title=event-redo><a href=#event-redo>redo</a></code> <!-- new -->
<tr><td><dfn id=handler-window-onresize title=handler-window-onresize><code>onresize</code></dfn> <td> <code title=event-resize>resize</code> <!-- widely used --> <!-- XXX should define when it fires -->
<tr><td><dfn id=handler-window-onresize title=handler-window-onresize><code>onresize</code></dfn> <td> <code title=event-resize>resize</code> <!-- widely used --> <!-- [CSSOM] -->
<tr><td><dfn id=handler-window-onstorage title=handler-window-onstorage><code>onstorage</code></dfn> <td> <code title=event-storage>storage</code> <!-- new -->
<tr><td><dfn id=handler-window-onundo title=handler-window-onundo><code>onundo</code></dfn> <td> <code title=event-undo><a href=#event-undo>undo</a></code> <!-- new -->
<tr><td><dfn id=handler-window-onunload title=handler-window-onunload><code>onunload</code></dfn> <td> <code title=event-unload>unload</code> <!-- widely used -->
Expand All @@ -47305,22 +47292,14 @@ interface <dfn id=function>Function</dfn> {

<h5 id=event-firing><span class=secno>6.5.6.3 </span>Event firing</h5>

<p class=XXX>maybe this should be moved higher up
(terminology? conformance? DOM?) Also, the whole terminology thing
should be changed so that we don't define any specific events here,
we only define 'simple event', 'progress event', 'mouse event', 'key
event', and the like, and have the actual dispatch use those generic
terms when firing events.</p>

<p>Certain operations and methods are defined as firing events on
elements. For example, the <code title=dom-click><a href=#dom-click>click()</a></code>
method on the <code><a href=#htmlelement>HTMLElement</a></code> interface is defined as
firing a <code title=event-click>click</code> event on the
element. <a href=#refsDOM3EVENTS>[DOM3EVENTS]</a></p>

<p><dfn id=fire-a-click-event title="fire a click event">Firing a <code title=event-click>click</code> event</dfn> means that a <a href=http://www.w3.org/TR/DOM-Level-3-Events/events.html#event-click><code>click</code></a>
event with no
namespace, which bubbles and is cancelable, and which uses the
<p><dfn id=fire-a-click-event title="fire a click event">Firing a <code title=event-click>click</code> event</dfn> means that a <code title=event-click>click</code> event with no namespace, which
bubbles and is cancelable, and which uses the
<code>MouseEvent</code> interface, must be dispatched at the given
target. The event object must have its <code title="">screenX</code>, <code title="">screenY</code>, <code title="">clientX</code>, <code title="">clientY</code>, and <code title="">button</code> attributes set to 0, its <code title="">ctrlKey</code>, <code title="">shiftKey</code>, <code title="">altKey</code>, and <code title="">metaKey</code> attributes
set according to the current state of the key input device, if any
Expand All @@ -47341,13 +47320,6 @@ interface <dfn id=function>Function</dfn> {
<p>The default action of these event is to do nothing unless
otherwise stated.</p>

<p class=XXX>If you dispatch a custom "click" event at an
element that would normally have default actions, should they get
triggered? If so, we need to go through the entire spec and make
sure that any default actions are defined in terms of <em>any</em>
event of the right type on that element, not those that are
dispatched in expected ways.</p>

</div>


Expand Down Expand Up @@ -48113,10 +48085,10 @@ interface <dfn id=function>Function</dfn> {
void <a href=#dom-navigator-registerprotocolhandler title=dom-navigator-registerProtocolHandler>registerProtocolHandler</a>(in DOMString scheme, in DOMString url, in DOMString title);
void <a href=#dom-navigator-registercontenthandler title=dom-navigator-registerContentHandler>registerContentHandler</a>(in DOMString mimeType, in DOMString url, in DOMString title);
void <a href=#dom-navigator-getstorageupdates title=dom-navigator-getStorageUpdates>getStorageUpdates</a>();
<!-- XXX cookieEnabled geolocator javaEnabled mozIsLocallyAvailable preference
<!-- v2: cookieEnabled geolocator javaEnabled mozIsLocallyAvailable preference
readonly attribute <span>MimeTypeArray</span> <span title="dom-navigator-mimeTypes">mimeTypes</span>;
readonly attribute <span>PluginArray</span> <span title="dom-navigator-plugins">plugins</span>;
(the latter is used in a <video> element demo now)
(the latter is used in a <video> element demo now, so we might need to pull this forward from v2!)
-->};</pre>

<div class=impl>
Expand All @@ -48128,9 +48100,9 @@ interface <dfn id=function>Function</dfn> {
defined separately so that other specifications can re-use parts of
the <code><a href=#navigator>Navigator</a></code> interface.)</p>

<!-- XXX also, see window.external.AddSearchProvider() and similar DOM APIs from IE -->
<!-- v2: also, see window.external.AddSearchProvider() and similar DOM APIs from IE -->

<!-- XXX also, could expose languages:
<!-- v2: also, could expose languages:
<dt><dfn title="dom-navigator-browserLanguage"><code>browserLanguage</code></dfn></dt> <!- - Opera and IE only - ->
<dd><p>Must return either null or a language code representing the language the browser uses in its interface.</p></dd>
<dt><dfn title="dom-navigator-userLanguage"><code>userLanguage</code></dfn></dt> <!- - Opera and IE only - ->
Expand Down Expand Up @@ -70066,6 +70038,7 @@ time:empty { binding: <i title="">time</i>; }</pre>
[CSSOM] CSS Object Model
[CSSUI] CSS3 UI
[CSSWEBFONTS] CSS3 Web Fonts
[E.163] Recommendation E.163 - Numbering Plan for The International Telephone Service, CCITT Blue Book, Fascicle II.2, pp. 128-134, November, 1988.
[EUCKR] Korea Industrial Standards Association, "Hangul Unix Environment," Korean Industrial Standard, 1992, Ref. No. KS C 5861-1992.
[GBK] http://www.iana.org/assignments/charset-reg/GBK

Expand All @@ -70092,6 +70065,7 @@ time:empty { binding: <i title="">time</i>; }</pre>
[WIN874] http://www.microsoft.com/globaldev/reference/sbcs/874.mspx
[WIN874] http://www.microsoft.com/globaldev/reference/sbcs/874.mspx OR http://msdn.microsoft.com/en-us/goglobal/cc305142.aspx
[WIN949] http://www.microsoft.com/globaldev/reference/dbcs/949.mspx OR http://msdn.microsoft.com/en-us/goglobal/cc305154.aspx
[X.121] Recommendation X.121 - International Numbering Plan for Public Data Networks, CCITT Blue Book, Fascicle VIII.3, pp. 317-332, November, 1988.
[X690] http://www.itu.int/ITU-T/studygroups/com17/languages/X.690-0207.pdf

-->
Expand Down

0 comments on commit 73bca69

Please sign in to comment.