Giter Site home page Giter Site logo

Comments (5)

jj2fowler avatar jj2fowler commented on July 18, 2024

I think I've got it narrowed down to the following function:

function generateCounter()
{
var classString = options.counterCssClass;

if ( options.customFields.class )
{
classString += " " + options.customFields.class;
delete options.customFields['class'];
}

return '<'+ options.counterWrapper +customFields(options.customFields)+' class="' + classString + '"></'+ options.counterWrapper +'>';
}

from jquery-character-counter.

jj2fowler avatar jj2fowler commented on July 18, 2024

It's this line in particular that is causing the issue in IE8: options.customFields.class

I'm not declaring any classes for this so I have just commented it out for now.

I also found that $(element).bind("keyup", function () {... in the bindEvents function had to be changed to $(element).on("keyup", function () {... to get it working properly in IE8.

Again, this may be of no concern to you as you never intended it to be compatible with IE8 but I thought I would make a note of it regardless.

from jquery-character-counter.

darrentaytay avatar darrentaytay commented on July 18, 2024

Thanks for the bug report @jj2fowler

I'll try and have a look at it next time I'm on my Windows machine.

from jquery-character-counter.

jacobmmartin avatar jacobmmartin commented on July 18, 2024

it appears that ie sees .class as a keyword. Any updates on this?

from jquery-character-counter.

darrentaytay avatar darrentaytay commented on July 18, 2024

@jj2fowler, @wardtwits has fixed this issue - IE8 has some issues with dot notations.

This has been merged into develop and will hopefully solve any problems you're having in IE8.

from jquery-character-counter.

Related Issues (11)

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.