Code Monkey home page Code Monkey logo

Comments (5)

maxpower9000 avatar maxpower9000 commented on June 3, 2024

Chrome 64 says:

Uncaught TypeError: (e.className || "").toLowerCase is not a function
    at element_loaded (corner.min.js:1)
    at element_loaded_wrapper (corner.min.js:1)
    at NodeList.forEach (<anonymous>)
    at itar (corner.min.js:1)
    at corner.min.js:1
    at Array.forEach (<anonymous>)
    at itar (corner.min.js:1)
    at MutationObserver.observe.childList (corner.min.js:1)

from cornerjs.

Jabher avatar Jabher commented on June 3, 2024

Hello! Is it happening in some exact page/domain or all across the internet?

from cornerjs.

maxpower9000 avatar maxpower9000 commented on June 3, 2024

@Jabher Only tested on localhost.

I found some similar issues on SO:

Maybe the issue here also has to do with the automatic semicolon insertion ...

The ECMAScript specification has specific rules for automatic semicolon insertion, however in this case a semicolon isn't automatically inserted because the parenthesised expression that begins on the next line can be interpreted as an argument list for a function call.
This means that without that semicolon, the anonymous window.Glog function was being invoked with a function as the msg parameter, followed by (window) which was subsequently attempting to invoke whatever was returned.

from cornerjs.

Jabher avatar Jabher commented on June 3, 2024

No, it's different. Can you please catch an error with the debugger and show what inside an "e"?
It should be some kind of HTMLElement.

Or, you can create some test page so I can debug it.

from cornerjs.

jrussnone avatar jrussnone commented on June 3, 2024

I'm having this issue in a project as well. I found that if an SVG is parsed, the property className is actually an object not a string. I have a potential fix in #14

from cornerjs.

Related Issues (6)

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.