W3C home > Mailing lists > Public > public-html-diffs@w3.org > March 2010

hixie: Cover more possible misuses for hidden=''. Anyone got good suggestions of short examples where hidden='' is useful? All the examples I can think of are huge... (whatwg r4846)

From: poot <cvsmail@w3.org>
Date: Sat, 13 Mar 2010 09:37:27 +0900 (JST)
To: public-html-diffs@w3.org
Message-Id: <20100313003727.7D2CD2BC0C@toro.w3.mag.keio.ac.jp>
hixie: Cover more possible misuses for hidden=''. Anyone got good
suggestions of short examples where hidden='' is useful? All the
examples I can think of are huge... (whatwg r4846)

http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.3881&r2=1.3882&f=h
http://html5.org/tools/web-apps-tracker?from=4845&to=4846

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.3881
retrieving revision 1.3882
diff -u -d -r1.3881 -r1.3882
--- Overview.html	13 Mar 2010 00:05:40 -0000	1.3881
+++ Overview.html	13 Mar 2010 00:37:11 -0000	1.3882
@@ -46838,7 +46838,24 @@
   presentation. For example, it is incorrect to use <code title="attr-hidden"><a href="#the-hidden-attribute">hidden</a></code> to hide panels in a tabbed dialog,
   because the tabbed interface is merely a kind of overflow
   presentation &mdash; showing all the form controls in one big page
-  with a scrollbar would be equivalent, and no less correct.<p>Elements in a section hidden by the <code title="attr-hidden"><a href="#the-hidden-attribute">hidden</a></code> attribute are still active,
+  with a scrollbar would be equivalent, and no less correct. It is
+  similarly incorrect to use this attribute to hide content just from
+  one presentation &mdash; if something is marked <code title="attr-hidden"><a href="#the-hidden-attribute">hidden</a></code>, it is hidden from all
+  presentations, including, for instance, screen readers.</p><!-- for example, "<a hidden href=#content>Skip to content</a>" would be inappropriate. --><!-- (but only add that example if you first add some more good valid examples --><p>Elements that are not <code title="attr-hidden"><a href="#the-hidden-attribute">hidden</a></code>
+  should not link to or refer to elements that are <code title="attr-hidden"><a href="#the-hidden-attribute">hidden</a></code>.<div class="example">
+
+   <p>For example, it would be incorrect to use the <code title="attr-hyperlink-href"><a href="#attr-hyperlink-href">href</a></code> attribute to link to a
+   section marked with the <code title="attr-hidden"><a href="#the-hidden-attribute">hidden</a></code>
+   attribute. If the content is not applicable or relevant, then there
+   is no reason to link to it.</p>
+
+   <p>It would similarly be incorrect to use the ARIA <code title="attr-aria-describedby">aria-describedby</code> attribute to
+   refer to descriptions that are themselves <code title="attr-hidden"><a href="#the-hidden-attribute">hidden</a></code>. Hiding a section means that it
+   is not applicable or relevant to anyone at the current time, so
+   clearly it cannot be a valid description of content the user can
+   interact with.</p>
+
+  </div><p>Elements in a section hidden by the <code title="attr-hidden"><a href="#the-hidden-attribute">hidden</a></code> attribute are still active,
   e.g. scripts and form controls in such sections still execute
   and submit respectively. Only their presentation to the user
   changes.<div class="impl">
@@ -68655,7 +68672,7 @@
   Aaron Leventhal,
   Adam Barth,
   Adam de Boor,
-  Adam Hepton
+  Adam Hepton,
   Adam Roben,
   Addison Phillips,
   Adele Peterson,
Received on Saturday, 13 March 2010 00:37:55 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 18 December 2010 06:14:18 GMT