title: Alternative for execCommand('underline');
body: <p>Okay, some Guys will know what i mean and edit my Question but they did it wrong.</p>
  
  <p>A better explanation:</p>
  
  <p>You have a contenteditable <code>div</code> with the text <code>This is a Test String.</code>.
  If you use now the <code>execCommand('underline')</code> on <code>Test String</code> you get <code>This is a &lt;u&gt;Test String&lt;/u&gt;</code>
  if you use now the <code>execCommand('strikethrough')</code> on <code>is a Test</code> you get <code>This &lt;s&gt;is a &lt;u&gt;Test&lt;/u&gt;&lt;/s&gt;&lt;u&gt;String&lt;/u&gt;</code>, THIS is correct.</p>
  
  <p>So, in HTML5 <code>&lt;u&gt;</code> and <code>&lt;s&gt;</code> are obsolete.
  For the first <code>execCommand</code> you can use the <code>surroundContents()</code> with a <code>&lt;span style="text-decoration:underline;"&gt;</code>. If you now use the <code>surroundContets()</code> for the second <code>execCommand</code> you receive the <code>BAD_BOUNDARYPOINTS_ERR</code>.</p>
  
  <p>The Thing i want is a Function which works like the <code>execCommand</code> in this case but with functions where i can define with witch HTML-Tag the String will wrapped… (It should be intelligent in the case if there is any overlapping…)</p>