Document subscript/superscript research
authorAryeh Gregor <AryehGregor+gitcommit@gmail.com>
Mon, 27 Jun 2011 14:27:27 -0600
changeset 325 13272d002cb2
parent 324 3d6fc8f9a040
child 326 96c10e10a216
Document subscript/superscript research
editcommands.html
source.html
--- a/editcommands.html	Mon Jun 27 14:11:11 2011 -0600
+++ b/editcommands.html	Mon Jun 27 14:27:27 2011 -0600
@@ -2545,6 +2545,15 @@
 is <a href=#effectively-contained>effectively contained</a> in the <a href=#active-range>active range</a> has
 <a href=#effective-value>effective value</a> "sub", and there is at least one such <code class=external data-anolis-spec=domcore><a href=http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#text>Text</a></code>
 node.  Otherwise false.
+<!--
+For <sup><sub>foo</sub></sup>, Firefox 6.0a2 and Opera 11.11 say the state is
+true for both superscript and subscript; Chrome 14 dev says it's true for
+subscript but not superscript.  We follow neither of these behaviors: we return
+false for both.  The reason is because we want to return true if we'll do
+nothing, false if we'll do something; and if we have nesting like this, we'll
+always do something, namely get rid of all those ancestors and replace them
+with a single tag.
+-->
 
 <p><a href=#relevant-css-property>Relevant CSS property</a>: "vertical-align"
 
--- a/source.html	Mon Jun 27 14:11:11 2011 -0600
+++ b/source.html	Mon Jun 27 14:27:27 2011 -0600
@@ -2522,6 +2522,15 @@
 is <span>effectively contained</span> in the <span>active range</span> has
 <span>effective value</span> "sub", and there is at least one such [[text]]
 node.  Otherwise false.
+<!--
+For <sup><sub>foo</sub></sup>, Firefox 6.0a2 and Opera 11.11 say the state is
+true for both superscript and subscript; Chrome 14 dev says it's true for
+subscript but not superscript.  We follow neither of these behaviors: we return
+false for both.  The reason is because we want to return true if we'll do
+nothing, false if we'll do something; and if we have nesting like this, we'll
+always do something, namely get rid of all those ancestors and replace them
+with a single tag.
+-->
 
 <p><span>Relevant CSS property</span>: "vertical-align"
 <!-- @} -->