HTML Standard Tracker

Filter

File a bug

SVNBugCommentTime (UTC)
3837Define 'being rendered'.2009-09-14 07:18
@@ -42426,21 +42426,21 @@ interface <dfn>HTMLOptionElement</dfn> : <span>HTMLElement</span> {
    the elements given in <var title="">unhandled invalid
    controls</var> to the user. User agents may focus one of those
    elements in the process, by running the <span>focusing steps</span>
    for that element, and may change the scrolling position of the
    document, or perform some other action that brings the element to
    the user's attention. User agents may report more than one
    constraint violation. User agents may coalesce related constraint
    violation reports if appropriate (e.g. if multiple radio buttons in
    a <span title="radio button group">group</span> are marked as
    required, only one error need be reported). If one of the controls
-   is not visible to the user (e.g. it has the <code
+   is not <span>being rendered</span> (e.g. it has the <code
    title="attr-hidden">hidden</code> attribute set) then user agents
    may report a script error.</p></li>
 
    <li><p>Return a <i>negative</i> result.</p></li>
 
   </ol>
 
   </div>
 
 
@@ -65529,21 +65529,21 @@ interface <dfn>SQLTransactionSync</dfn> {
   <h3>Focus</h3>
 
   <!-- http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C!DOCTYPE%20html%3E%20%0A...%3Cform%3E%3Cinput%20name%3Da%20onfocus%3D%22value%2B%3D1%3Bd.name%3D%27a%27%3Bname%3D%27d%27%3Bb.focus()%22%3E%0A%3Cinput%20name%3Db%20onfocus%3D%22value%2B%3D1%3Bc.focus()%22%3E%0A%3Cinput%20name%3Dc%20onfocus%3D%22value%2B%3D1%3Bd.focus()%22%3E%0A%3Cinput%20name%3Dd%20onfocus%3D%22value%2B%3D1%3Ba.focus()%22%3E -->
 
   <!-- http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C!DOCTYPE%20html%3E%0A...%3Cform%3E%0A%3Ctextarea%20name%3Dt%20cols%3D100%20rows%3D3%3E%3C%2Ftextarea%3E%3Cp%3E%0A%3Cinput%20name%3Da%20onfocus%3D%22t.value%2B%3D%27af1%20%27%3Bb.focus()%3Balert(document.activeElement.name)%3Bt.value%2B%3D%27af2%20%27%3B%22%20onblur%3D%22t.value%2B%3D%27ab%20%27%3B%22%3E%0A%3Cinput%20name%3Db%20onfocus%3D%22t.value%2B%3D%27bf1%20%27%3Bc.focus()%3Bt.value%2B%3D%27bf2%20%27%3B%22%20onblur%3D%22t.value%2B%3D%27bb%20%27%3B%22%3E%0A%3Cinput%20name%3Dc%20onfocus%3D%22t.value%2B%3D%27cf1%20%27%3Bc.focus()%3Bt.value%2B%3D%27cf2%20%27%3B%22%20onblur%3D%22t.value%2B%3D%27cb%20%27%3B%22%3E%0A -->
 
   <!-- http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C!DOCTYPE%20html%3E%3Cbody%20onload%3D%22document.forms%5B0%5D.a.focus()%22%3E%0A...%3Cform%3E%0A%3Ctextarea%20name%3Dt%20cols%3D100%20rows%3D3%3E%3C%2Ftextarea%3E%3Cp%3E%0A%3Cinput%20name%3Da%20onblur%3D%22t.value%2B%3D'ab%20'%3B%20b.focus()%3B%22%3E%0A%3Cinput%20name%3Db%20onfocus%3D%22t.value%2B%3D'bf1%20'%3Ba.focus()%3Bt.value%2B%3D'bf2%20'%3B%22%20onblur%3D%22t.value%2B%3D'bb%20'%3B%22%3E -->
 
   <!-- http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C!DOCTYPE%20html%3E%3Cbody%3E...%3Cform%3E%0A%3Ctextarea%20name%3Dt%20cols%3D100%20rows%3D3%3E%3C%2Ftextarea%3E%3Cp%3E%0A%3Cinput%20name%3Da%20onfocus%3D%22t.value%2B%3D%27af%20%27%3B%22%20onblur%3D%22t.value%2B%3D%27ab1%20%27%3Bb.focus()%3Bt.value%2B%3D%27ab2%20%27%3B%22%3E%0A%3Cinput%20name%3Db%20onfocus%3D%22t.value%2B%3D%27bf1%20%27%3Ba.focus()%3Bt.value%2B%3D%27bf2%20%27%3B%22%20onblur%3D%22t.value%2B%3D%27bb%20%27%3B%22%3E -->
 
-  <!-- XXX
+  <!-- v2: more things to define, if no other specs define them:
    - define onfocus/onblur behaviour for Window
    - Other things to look at are IE's focus APIs (HTMLElement.setActive(),
      onBeforeActivate, onActivate, onBeforeDeactivate, onDeactivate):
        https://bugzilla.mozilla.org/show_bug.cgi?id=296471
        https://bugzilla.mozilla.org/show_bug.cgi?id=296469
        http://msdn.microsoft.com/workshop/author/dhtml/reference/methods/setactive.asp
        http://msdn.microsoft.com/workshop/author/dhtml/reference/events/onbeforeactivate.asp
   -->
 
   <div class="impl">
@@ -65685,23 +65685,21 @@ interface <dfn>SQLTransactionSync</dfn> {
 
   <p class="note">This means that an element that is only focusable
   because of its <code title="attr-tabindex">tabindex</code> attribute
   will fire a <code title="event-click">click</code> event in response
   to a non-mouse activation (e.g. hitting the "enter" key while the
   element is focused).</p>
 
   <p>An element is <dfn>focusable</dfn> if the user agent's default
   behavior allows it to be focusable or if the element is
   <span>specially focusable</span>, but only if the element is
-  <span>being rendered</span><!-- XXX xref, define display:none,
-  orphan nodes as not being rendered, off-screen as being rendered?
-  -->.</p>
+  <span>being rendered</span>.</p>
 
   <p>User agents should make the following elements
   <span>focusable</span>, unless platform conventions dictate
   otherwise:</p>
 
   <ul>
 
    <li><code>a</code> elements that have an <code
    title="attr-hyperlink-href">href</code> attribute</li>
 
@@ -84020,20 +84018,35 @@ http://lxr.mozilla.org/seamonkey/search?string=nested
   style sheets), user agents are expected to render an element so that
   it conveys to the user the meaning that the element
   <dfn>represents</dfn>, as described by this specification.</p>
 
   <p>The suggestions in this section generally assume a visual output
   medium with a resolution of 96dpi or greater, but HTML is intended
   to apply to multiple media (it is a <i>media-independent</i>
   language). User agents are encouraged to adapt the suggestions in
   this section to their target media.</p>
 
+  <hr>
+
+  <p>An element is <dfn>being rendered</dfn> if it is <span>in a
+  <code>Document</code></span>, either its parent node is itself
+  <span>being rendered</span> or it is the <code>Document</code> node,
+  and it is not explicitly excluded from the rendering using the CSS
+  'display' property's 'none' value or equivalent in other styling
+  languages.</p>
+
+  <p class="note">Just being off-screen does not mean the element is
+  not <span>being rendered</span>. The presence of the <code
+  title="attr-hidden">hidden</code> attribute normaly means the
+  element is not <span>being rendered</span>, though this might be
+  overriden by the style sheets.</p>
+
   </div>
 
 
   <div class="impl">
 
   <h3>The CSS user agent style sheet and presentational hints</h3>
 
   <h4>Introduction</h4>
 
   <p>The CSS rules given in these subsections are, unless otherwise

|