[html5] r7495 - [e] (0) Clarify that 'directionality' applies to all elements. Fixing https://ww [...]

whatwg at whatwg.org whatwg at whatwg.org
Wed Oct 31 16:28:43 PDT 2012


Author: ianh
Date: 2012-10-31 16:28:42 -0700 (Wed, 31 Oct 2012)
New Revision: 7495

Modified:
   complete.html
   index
   source
Log:
[e] (0) Clarify that 'directionality' applies to all elements.
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=18339
Affected topics: HTML

Modified: complete.html
===================================================================
--- complete.html	2012-10-31 23:14:29 UTC (rev 7494)
+++ complete.html	2012-10-31 23:28:42 UTC (rev 7495)
@@ -11771,8 +11771,9 @@
   </dl><p>The attribute has no <i>invalid value default</i> and no
   <i>missing value default</i>.</p>
 
-  <p><dfn id=the-directionality>The directionality</dfn> of an element is either '<dfn id=concept-ltr title=concept-ltr>ltr</dfn>' or '<dfn id=concept-rtl title=concept-rtl>rtl</dfn>', and is determined as per the first
-  appropriate set of steps from the following list:</p>
+  <p><dfn id=the-directionality>The directionality</dfn> of an element (any element, not just an <a href=#html-elements title="HTML
+  elements">HTML element</a>) is either '<dfn id=concept-ltr title=concept-ltr>ltr</dfn>' or '<dfn id=concept-rtl title=concept-rtl>rtl</dfn>', and is determined as per the first appropriate set of steps from
+  the following list:</p>
 
   <dl class=switch><dt>If the element's <code title=attr-dir><a href=#the-dir-attribute>dir</a></code> attribute is
    in the <a href=#attr-dir-ltr-state title=attr-dir-ltr-state>ltr</a> state</dt>
@@ -11859,7 +11860,13 @@
    directionality">directionality</a>.</dd>
 
 
-  </dl><p>The effect of this attribute is primarily on the presentation
+  </dl><p class=note>Since the <code title=attr-dir><a href=#the-dir-attribute>dir</a></code> attribute is only defined for
+  <a href=#html-elements>HTML elements</a>, it cannot be present on elements from other namespaces. Thus, elements
+  from other namespaces always just inherit their <a href=#the-directionality title="the
+  directionality">directionality</a> from their parent element, or, if they don't have one,
+  default to '<a href=#concept-ltr title=concept-ltr>ltr</a>'.</p>
+
+  <p>The effect of this attribute is primarily on the presentation
   layer. For example, the rendering section in this specification
   defines a mapping from this attribute to the CSS 'direction' and
   'unicode-bidi' properties, and CSS defines rendering in terms of

Modified: index
===================================================================
--- index	2012-10-31 23:14:29 UTC (rev 7494)
+++ index	2012-10-31 23:28:42 UTC (rev 7495)
@@ -11771,8 +11771,9 @@
   </dl><p>The attribute has no <i>invalid value default</i> and no
   <i>missing value default</i>.</p>
 
-  <p><dfn id=the-directionality>The directionality</dfn> of an element is either '<dfn id=concept-ltr title=concept-ltr>ltr</dfn>' or '<dfn id=concept-rtl title=concept-rtl>rtl</dfn>', and is determined as per the first
-  appropriate set of steps from the following list:</p>
+  <p><dfn id=the-directionality>The directionality</dfn> of an element (any element, not just an <a href=#html-elements title="HTML
+  elements">HTML element</a>) is either '<dfn id=concept-ltr title=concept-ltr>ltr</dfn>' or '<dfn id=concept-rtl title=concept-rtl>rtl</dfn>', and is determined as per the first appropriate set of steps from
+  the following list:</p>
 
   <dl class=switch><dt>If the element's <code title=attr-dir><a href=#the-dir-attribute>dir</a></code> attribute is
    in the <a href=#attr-dir-ltr-state title=attr-dir-ltr-state>ltr</a> state</dt>
@@ -11859,7 +11860,13 @@
    directionality">directionality</a>.</dd>
 
 
-  </dl><p>The effect of this attribute is primarily on the presentation
+  </dl><p class=note>Since the <code title=attr-dir><a href=#the-dir-attribute>dir</a></code> attribute is only defined for
+  <a href=#html-elements>HTML elements</a>, it cannot be present on elements from other namespaces. Thus, elements
+  from other namespaces always just inherit their <a href=#the-directionality title="the
+  directionality">directionality</a> from their parent element, or, if they don't have one,
+  default to '<a href=#concept-ltr title=concept-ltr>ltr</a>'.</p>
+
+  <p>The effect of this attribute is primarily on the presentation
   layer. For example, the rendering section in this specification
   defines a mapping from this attribute to the CSS 'direction' and
   'unicode-bidi' properties, and CSS defines rendering in terms of

Modified: source
===================================================================
--- source	2012-10-31 23:14:29 UTC (rev 7494)
+++ source	2012-10-31 23:28:42 UTC (rev 7495)
@@ -12196,10 +12196,10 @@
   <p>The attribute has no <i>invalid value default</i> and no
   <i>missing value default</i>.</p>
 
-  <p><dfn>The directionality</dfn> of an element is either '<dfn
-  title="concept-ltr">ltr</dfn>' or '<dfn
-  title="concept-rtl">rtl</dfn>', and is determined as per the first
-  appropriate set of steps from the following list:</p>
+  <p><dfn>The directionality</dfn> of an element (any element, not just an <span title="HTML
+  elements">HTML element</span>) is either '<dfn title="concept-ltr">ltr</dfn>' or '<dfn
+  title="concept-rtl">rtl</dfn>', and is determined as per the first appropriate set of steps from
+  the following list:</p>
 
   <dl class="switch">
 
@@ -12319,6 +12319,12 @@
 
   </dl>
 
+  <p class="note">Since the <code title="attr-dir">dir</code> attribute is only defined for
+  <span>HTML elements</span>, it cannot be present on elements from other namespaces. Thus, elements
+  from other namespaces always just inherit their <span title="the
+  directionality">directionality</span> from their parent element, or, if they don't have one,
+  default to '<span title="concept-ltr">ltr</span>'.</p>
+
   <p>The effect of this attribute is primarily on the presentation
   layer. For example, the rendering section in this specification
   defines a mapping from this attribute to the CSS 'direction' and




More information about the Commit-Watchers mailing list