Remove a line that's now basically redundant
authorAryeh Gregor <AryehGregor+gitcommit@gmail.com>
Fri, 05 Aug 2011 12:28:22 -0600
changeset 499 8f862352eefe
parent 498 0642e8783522
child 500 9de15e506169
Remove a line that's now basically redundant

Previously we needed the special case because we cared about
vertical-align and that only applies (in the way we care about) to
inline nodes, but now we don't care about vertical-align, so no need for
the extra check. Authors who set sub/sup to display other than inline
will get what they deserve.
editing.html
implementation.js
source.html
--- 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".