GithubHelp home page GithubHelp logo

Normalized HTML output about etch HOT 1 OPEN

antoniobrandao avatar antoniobrandao commented on June 27, 2024
Normalized HTML output

from etch.

Comments (1)

joshontheweb avatar joshontheweb commented on June 27, 2024

Hi Antonio,

The problem is that browsers simply do it differently and have for a long time. Also I don't know of any real efforts on their parts to remedy the situation. The API's for contentEditable are pretty opaque and don't offer much in the way of customization of the output. The only way I can think of the have complete normalization between browsers would be to abandon using the API and roll our own. That would be A LOT of tricky code that would need a lot of cross-browser shimming since the selection API's are different in the browsers as well. I feel like the best thing to do is to be ok with some differences and keep the codebase lightweight. If someone wanted to rewrite all the contentEditable operations I would consider abstracting the calls in etch to make it possible to use a plugin like that, but it isn't something that I feel driven to do myself. I'm not even sure it is 100% possible. Its a tough problem and you aren't the first person to ask. In my own projects I have encouraged users to use the same browsers for best results. Seemed to work pretty well.

from etch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.