Giter Site home page Giter Site logo

Comments (4)

anthonyjb avatar anthonyjb commented on August 17, 2024

You're right that's something I need to add to the repo READMEs and the API docs. To help answer your question ahead of that:

Browser support
The current aim is for all the libraries to support IE9+, Chrome and Firefox. Test suites are complete for all the libraries accept ContentTools and I'm using Jasmine to check that the tests pass in those browsers.

There will be some visual differences for ContentTools in IE9 as I use CSS animations for some of the UI feedback.

My current development priority is to complete the test suite for ContentTools.

Underlying API

So whenever text is being edited then the contenteditable attribute is appended to the element (or a wrapper element in the case of table dimensions and list items - thank you IE for that doozy). Even so the output of the contenteditable element is marshalled using the HTMLParser library to ensure that the content output is consistent and not browser specific.

As for polyfills the only one I can think of is:

HACK: Add constructor name property to IE9+, code based on the stackoverflow 
response http://stackoverflow.com/a/17056530

View source

There are a number of helper functions provided to support functionality in a consistent way across all browsers (such as adding and removing CSS classes) but they don't overwrite native browser behaviour.

from contenttools.

dburrows avatar dburrows commented on August 17, 2024

I had the same question and this is a great explanation, think you can just add the two paras above to the README with a quick edit

from contenttools.

butsjoh avatar butsjoh commented on August 17, 2024

I agree with @dburrows 👍

from contenttools.

anthonyjb avatar anthonyjb commented on August 17, 2024

Thanks for the feedback @butsjoh and @dburrows.

from contenttools.

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.