This is a test of execCommand(CreateLink, ...). It tests:

1. Creating a link from a selection that is completely unlinked.
2. Creating a link from a selection that is inside an existing link.
3. Creating a link from a selection that is partially linked.
4. Creating a link from a selection that contains lists, tables, styled text, and images.

1. This paragraph starts unlinked. The entire paragraph should end up being a link to google.com.
2. This paragraph starts out as a link to apple.com. The second word in the paragraph should end up being a link to google.com.
3. This line starts out with a link in the middle. The second half of this paragraph, starting after the bold 'a' should end up being a link to google.com.

4. This editable region contains lists, tables, styled text, and images. The entire region should end up being a link to google.com.

   - Item 1
   - Item 2

   1 | 2 | 3

   This line contains an image.

innerHTML of editable regions after the test: