Giter Club home page Giter Club logo

Comments (3)

tabatkins avatar tabatkins commented on August 11, 2024 1

It's unchecked by definition, because that's how the checked attribute is defined. An implementation could not treat "no checked attribute" as checked without violating the spec and making the entire internet's checkboxes broken. That default cannot ever change.

from html.

tabatkins avatar tabatkins commented on August 11, 2024

I would like to ensure that the renderer does not ever render an as checked by default.

This will never happen. A checkbox without checked is, by definition, unchecked, and will render as such.

I would like to demonstrate explicitly the intended check state for an in markup so that a checkbox cannot accidentally be determined to be erroneously (un)checked.

It looks like your current method of indicating this (a comment in the source) successfully handles this - it explicitly communicates your intent to other authors of the same file. It also has the advantage of already working, and letting you communicate arbitrary other information to future editors of the file that also aren't sufficiently explicit in the markup.

from html.

RokeJulianLockhart avatar RokeJulianLockhart commented on August 11, 2024

#10537 (comment)

@tabatkins, how is a checkbox by definition unchecked? Isn't that merely a matter of convention? It seems feasible that an implementation could default to a checked state. For any attribute, surely having its opposite is solely an advantage, since it makes changing defaults easier, and makes authors more confident that were a default to change, it wouldn't impact them.

from html.

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.