Git Product home page Git Product logo

Comments (6)

eavichay avatar eavichay commented on May 13, 2024

The Web components SPEC forbids using custom elements without dash. This is part of the spec. Since slim.js does not break any standard and follows the web standards (no black magic!) you should use valid tag names for custom elements.

from slim.js.

eavichay avatar eavichay commented on May 13, 2024

And one comment, There is no need to export the classes (though it is in the boilerplate), unless you are trying to use types (flow/TS).

from slim.js.

gabriel-fallen avatar gabriel-fallen commented on May 13, 2024

The Web components SPEC forbids using custom elements without dash.

My bad! Didn't know that, haven't read the standard (or any comprehensive manual for that matter).

There is no need to export the classes

Yeah, I know, tried both ways with the same results. :)

Thanks anyway! 😃

from slim.js.

gabriel-fallen avatar gabriel-fallen commented on May 13, 2024

But the error message still could be more informative, I think. Or maybe it couldn't. :)

from slim.js.

eavichay avatar eavichay commented on May 13, 2024

The error message is from the browser. Keeping the library as light as possible means that If the browser provides error, slim.js should not interfere. At least this is my point of view: minimum intervention.

from slim.js.

gabriel-fallen avatar gabriel-fallen commented on May 13, 2024

That makes total sense.

Thanks again!

from slim.js.

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.