Skip to content

Commit

Permalink
[] (0) execCommand('insertHTML') support
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.whatwg.org/webapps@1438 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Apr 13, 2008
1 parent b7de527 commit e8201d0
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 2 deletions.
39 changes: 38 additions & 1 deletion index
Original file line number Diff line number Diff line change
Expand Up @@ -36208,7 +36208,7 @@ http://developer.apple.com/documentation/AppleApplications/Conceptual/SafariJSPr
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>
Expand Down Expand Up @@ -36262,6 +36262,43 @@ http://developer.apple.com/documentation/AppleApplications/Conceptual/SafariJSPr

<dd><strong>State:</strong> Always false.

<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>".

Expand Down
25 changes: 24 additions & 1 deletion source
Original file line number Diff line number Diff line change
Expand Up @@ -33725,7 +33725,7 @@ http://developer.apple.com/documentation/AppleApplications/Conceptual/SafariJSPr
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>
Expand Down Expand Up @@ -33766,6 +33766,29 @@ http://developer.apple.com/documentation/AppleApplications/Conceptual/SafariJSPr
<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
Expand Down

0 comments on commit e8201d0

Please sign in to comment.