--- a/editing.html Fri Aug 05 11:50:14 2011 -0600
+++ b/editing.html Fri Aug 05 12:28:22 2011 -0600
@@ -1709,8 +1709,6 @@
<li>If <var title="">command</var> is "subscript" or "superscript":
<ol>
- <li>If <var title="">element</var> is not an <a href=#inline-node>inline node</a>, return null.
-
<li>If <var title="">element</var> is a <code class=external data-anolis-spec=html title="the sub and sup elements"><a href=http://www.whatwg.org/html/#the-sub-and-sup-elements>sup</a></code>, return "superscript".
<li>If <var title="">element</var> is a <code class=external data-anolis-spec=html title="the sub and sup elements"><a href=http://www.whatwg.org/html/#the-sub-and-sup-elements>sub</a></code>, return "subscript".
--- a/implementation.js Fri Aug 05 11:50:14 2011 -0600
+++ b/implementation.js Fri Aug 05 12:28:22 2011 -0600
@@ -2008,11 +2008,6 @@
// "If command is "subscript" or "superscript":"
if (command == "subscript" || command == "superscript") {
- // "If element is not an inline node, return null."
- if (!isInlineNode(element)) {
- return null;
- }
-
// "If element is a sup, return "superscript"."
if (isHtmlElement(element, "sup")) {
return "superscript";
--- a/source.html Fri Aug 05 11:50:14 2011 -0600
+++ b/source.html Fri Aug 05 12:28:22 2011 -0600
@@ -1683,8 +1683,6 @@
<li>If <var>command</var> is "subscript" or "superscript":
<ol>
- <li>If <var>element</var> is not an <span>inline node</span>, return null.
-
<li>If <var>element</var> is a [[sup]], return "superscript".
<li>If <var>element</var> is a [[sub]], return "subscript".