3 ms·
Appears to fail my semantics test right off the bat. Type "Line one\nLine two" results in: Line one <div>Line two</div>
by oneeyedpigeon 9y ago
Appears to fail my semantics test right off the bat. Type "Line one\nLine two" results in:
Line one
<div>Line two</div>
- kalleboo 9y agoSince it uses contenteditable, the result depends on your browser. Firefox gives me Line one <br> Line two <br>
- oneeyedpigeon 9y agoYeah, I'm not convinced contenteditable is ready for primetime. In my experience, pairing it with some javascript that cleans up the poor markup is necessary.