[editing] The spec about execCommand('indent') in inline block.

Image following HTML ('|' is the caret selection):
<span contenteditable="true" id="span">|text</span>
document.execCommand('indent', false, null);

Following current HTML editing, document.execCommand('indent') inserts a
blockquate element inside a span element.
Both Chrome and IE insert a blockquate element inside a span element.
You can try it on:

However, the blockquate element is a flow content and HTML standard doesn't
allow flow contents to be contents of a span element:

Which is better we allow indentation in inline element or not?

Received on Wednesday, 16 April 2014 13:03:03 UTC