Comments (3)
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.
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.
@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)
- [rendering] animation frame callback handling when iframes are involved HOT 18
- "On platforms where Esc is the close request, the user agent will first fire an appropriately-initialized keydown and keyup event sequence" is confusing HOT 1
- [parsing] "adoption agency algorithm" ambiguity
- Error reporting in HostEnqueuePromiseJob is not specified nor interoperable HOT 1
- Errors when attaching a declarative shadow root HOT 12
- image.decode() interacts weirdly with the sync cases in "update the image data" HOT 10
- Silence Jake diagram conformance warnings on CI
- Discussing how to focus navigate display: contents elements that are focusable in CSS reading-flow HOT 5
- Upcoming WHATNOT meeting on 2024-08-01 HOT 1
- Example in parallelism section needs to "queue a task" to handle the promise
- Meeting 5 for joint OpenUI-WHATWG/HTML-CSSWG task force on styleable form controls HOT 3
- Upcoming WHATNOT meeting on 2024-08-08
- Discussing how to focus navigate absolute position elements that are focusable in CSS reading-flow
- Rationale for when invalid value default differs from missing value default HOT 6
- Chinese Translation of HTML Standard Completed HOT 3
- Script element schematic diagram for async/defer is not readable in dark mode HOT 6
- inconsistent input label `:active` and `:hover` behavior HOT 1
- Document "can have its URL rewritten" incorrectly rejects file:// URL with only query changed HOT 3
- HTMLConstructor construction steps: Incorrect exception specified in step 11.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from html.