<input type="editor" supports="bold;italic;images;headings" ... >
This would remove the massive amount of work that UI developers still have to do to hand crank something as simple as a good editor that GUI OSs have enjoyed for decades. <input type="editor" supports="bold;italic;images;headings" ... >
This would remove the massive amount of work that UI developers still have to do to hand crank something as simple as a good editor that GUI OSs have enjoyed for decades.If a capability can be implemented outside of the core browser, I think it's a good idea to do so. It's sort of like putting something into the Linux kernel vs doing it in a userspace module. The kernel/browser should provide the low-level hooks for userspace to innovate, not try to incorporate userspace components. An external project can iterate more rapidly, and there's also a lower barrier for people to contribute code and fixes. Duplicate projects "waste" resources, but they're also competing with each other and that improves quality in the long run.
You're much better off storing an internal representation of documents and then outputting that as HTML where necessary.
With "supports" being common things with extra markup (especially images and links), spans deferring your problems to css classes, and extras deferring your problems to javascript. The element returned by an extra would always be treated as a single black box by the editor.
* Does it allow further markup inside the headings? If so, which tags? strong? emph? span? a?
* Which attributes are allowed on the <h1> etc. tags? class? style? name? id? lang? dir? id?
You see where this is going.
> spans="blinky"
Hell no.
Yes: the wrong direction.
Trying to support every possible thing obviously won't work - we can't replace writing HTML with a clever enough rich text field. But you can still make progress on web usability by solving the most obvious bits and adding some hooks for the easiest ways to extend it.
Why? They are irrelevant for that now. It would be standardised through the WHATWG.
Anyone trying to develop for the web constantly feels the pain of trying to get something working everywhere.