Giter VIP home page Giter VIP logo

Comments (4)

Garbee avatar Garbee commented on August 11, 2024

Data attributes are for non-custom elements. When you have custom elements (as this is providing) making up your own top-level attributes is 100% a-OK and in fact encouraged.

Ref: Custom element spec core concepts

Any namespace-less attribute that is relevant to the element's functioning, as determined by the element's author, may be specified on an autonomous custom element, so long as the attribute name is XML-compatible and contains no ASCII upper alphas.

The component is currently 100% in specification alignment and will continue to be so.

from lite-youtube-embed.

laukstein avatar laukstein commented on August 11, 2024

contains no ASCII upper alphas.

Is it about uppercase chars? If yes then #29 startTime is invalid.

from lite-youtube-embed.

Garbee avatar Garbee commented on August 11, 2024

Fair point and nice catch. However we don't need to shift over to using data attributes to fix that problem.

from lite-youtube-embed.

paulirish avatar paulirish commented on August 11, 2024

thanks for chiming in @laukstein

we'll keep the data- prefix off, but definitely keep them all lowercase.

and @laukstein i'd love your 👍 if you like the plan in #20 (comment)

from lite-youtube-embed.

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.