[html5] r1438 - /
whatwg at whatwg.org
whatwg at whatwg.org
Sun Apr 13 01:27:23 PDT 2008
Author: ianh
Date: 2008-04-13 01:27:18 -0700 (Sun, 13 Apr 2008)
New Revision: 1438
Modified:
index
source
Log:
[] (0) execCommand('insertHTML') support
Modified: index
===================================================================
--- index 2008-04-13 08:09:47 UTC (rev 1437)
+++ index 2008-04-13 08:27:18 UTC (rev 1438)
@@ -36208,7 +36208,7 @@
title="">Element.renameNode()</code> method had been used) to <var
title="">value</var>, using the HTML namespace.</p>
- <p>If there is no selection, then, where in the description below
+ <p>If there is no selection, then, where in the description above
refers to the selection, the user agent must act as if the selection
was an empty range (with just one position) at the caret position.</p>
</ol>
@@ -36265,6 +36265,43 @@
<dd><strong>Value:</strong> Always the string "<code
title="">false</code>".
+ <dt><dfn id=inserthtml
+ title=command-insertHTML><code>insertHTML</code></dfn>
+
+ <dd>
+ <p><strong>Action:</strong> The user agent must run the following steps:</p>
+
+ <ol>
+ <li>
+ <p>If the <var title="">value</var> argument wasn't specified, abort
+ these steps without doing anything.
+
+ <li>
+ <p>If there is a selection, act as if the user had requested that <a
+ href="#contenteditable-delete">the selection be deleted</a>.
+
+ <li>
+ <p>Invoke the <a href="#html-fragment0">HTML fragment parsing
+ algorithm</a> with an arbitrary orphan <code><a
+ href="#body0">body</a></code> element as the <i><a
+ href="#context0">context</a></i> element and with the <var
+ title="">value</var> argument as <i>input</i>.
+
+ <li>
+ <p>Insert the nodes returned by the previous step into the document at
+ the location of the caret.
+ </ol>
+
+ <dd><strong>Enabled When:</strong> The document is <a href="#ready">ready
+ for editing host commands</a>.
+
+ <dd><strong>Indeterminate When:</strong> Never.
+
+ <dd><strong>State:</strong> Always false.
+
+ <dd><strong>Value:</strong> Always the string "<code
+ title="">false</code>".
+
<dt><dfn id=insertlinebreak
title=command-insertLineBreak><code>insertLineBreak</code></dfn>
Modified: source
===================================================================
--- source 2008-04-13 08:09:47 UTC (rev 1437)
+++ source 2008-04-13 08:27:18 UTC (rev 1438)
@@ -33725,7 +33725,7 @@
title="">Element.renameNode()</code> method had been used) to
<var title="">value</var>, using the HTML namespace.</p>
<p>If there is no selection, then, where in the description
- below refers to the selection, the user agent must act as if the
+ above refers to the selection, the user agent must act as if the
selection was an empty range (with just one position) at the
caret position.</p>
</li>
@@ -33766,6 +33766,29 @@
<dd><strong>State:</strong> Always false.</dd>
<dd><strong>Value:</strong> Always the string "<code title="">false</code>".</dd>
+ <dt><dfn title="command-insertHTML"><code>insertHTML</code></dfn></dt>
+ <dd>
+ <p><strong>Action:</strong> The user agent must run the following
+ steps:</p>
+ <ol>
+ <li><p>If the <var title="">value</var> argument wasn't
+ specified, abort these steps without doing anything.</p></li>
+ <li><p>If there is a selection, act as if the user had requested
+ that <a href="#contenteditable-delete">the selection be
+ deleted</a>.</p></li>
+ <li><p>Invoke the <span>HTML fragment parsing algorithm</span>
+ with an arbitrary orphan <code>body</code> element as the
+ <i>context</i> element and with the <var title="">value</var>
+ argument as <i>input</i>.</p></li>
+ <li><p>Insert the nodes returned by the previous step into the
+ document at the location of the caret.</p></li>
+ </dd>
+ <dd><strong>Enabled When:</strong> The document is <span>ready for
+ editing host commands</span>.</dd>
+ <dd><strong>Indeterminate When:</strong> Never.</dd>
+ <dd><strong>State:</strong> Always false.</dd>
+ <dd><strong>Value:</strong> Always the string "<code title="">false</code>".</dd>
+
<dt><dfn title="command-insertLineBreak"><code>insertLineBreak</code></dfn></dt>
<dd><strong>Action:</strong> The user agent must act as if the user
had <a href="#contenteditable-br">requested a line
More information about the Commit-Watchers
mailing list