Comments (3)
1B Allow DOMString? reflection for attributes starting with aria-* only, as a legacy exception.
Should this include role
as well? role
is the only prop in ARIAMixin
which does not start with aria
, but it does behave like the others in browsers.
from html.
For ARIA's
token
,tristate
,true/false
andtrue/false/undefined
, I think we can tweak the ARIA specs to more clearly assert on what the missing value/invalid value states are.Depending on implementer appetite we could also make a change to ensure the reflections are limited to only known values. I suppose this would be a breaking change but I don't know what the impact would be.
This is mostly right. However, there's a dilemma which makes it more annoying: currently in HTML DOMString?
is always limited to only known values. So if we go down the 4 route, either:
-
ARIA has to change to
DOMString
. This is a somewhat breaking change, e.g.el.ariaLive = null
would no longer remove the attribute, but instead set it to"null"
. Similar to 3. (And thus, would trigger the invalid value default instead of the missing value default... which is maybe fine, if they're the same. But still a breaking change for anyone reading the values back in JS.) -
We have to loosen up HTML to allow
DOMString?
enumerated attribute reflection that is not limited to only known values. This ends up looking like some version of 1 or 2, i.e., we have to decide the scope of this change and what precedent it sets.
Am I correct in saying that we could/should alter freeform reflected properties such as
ariaDescription
to beUSVString
? Again is this something that is possible? (I'm vaguely aware of there being some differences between USVString and Strings, but I'm not well versed enough to know if this is breaking).
No. USVString
in this context is generally used for URLs. More info at https://w3ctag.github.io/design-principles/#idl-string-types .
The question is whether we should change them from DOMString?
to DOMString
. To be consistent with our freeform reflected properties such as HTML's existing title=""
, abbr=""
, content=""
, etc., they should just be DOMString
. But that's again a backward-incompatible change, so we need to decide whether we value consistency or compatibility for these.
from html.
On pursuing number 4, I presume it would consist of the following:
For ARIA's token
, tristate
, true/false
and true/false/undefined
, I think we can tweak the ARIA specs to more clearly assert on what the missing value/invalid value states are.
Depending on implementer appetite we could also make a change to ensure the reflections are limited to only known values. I suppose this would be a breaking change but I don't know what the impact would be.
Am I correct in saying that we could/should alter freeform reflected properties such as ariaDescription
to be USVString
? Again is this something that is possible? (I'm vaguely aware of there being some differences between USVString and Strings, but I'm not well versed enough to know if this is breaking).
from html.
Related Issues (20)
- Render-blocking a defer script or non-async module script HOT 1
- Script element document conformance requirements on attributes are incomplete and confusing HOT 2
- Dark mode of HTML Spec does not render dark backgrounds for some dl elements HOT 1
- Proposal: Implement new method for parsing markup from `Fetch` responses HOT 4
- Allowing UA to do <source> selection for media element HOT 15
- Ergonomic way to move data between workers HOT 9
- img sizes="auto" skewing images using object-fit: contain HOT 8
- Ability to disable images loading, to customise when they load with scripting HOT 1
- Three-valued Button state (type=three-valued) of the type attribute of the input element HOT 3
- Three-valued Button state (type=three-valued) of the type attribute of the input element
- Labeled control when moving the mouse around is inconsistent accross UAs HOT 1
- Should showPicker() consume user activation? HOT 5
- navigationType in apply the history step used without a null check HOT 1
- Scrolling when near the edge of the viewport while dragging HOT 3
- Ability to configure whether script elements should execute for setHTMLUnsafe()
- `html` end tag omission HOT 3
- Navigation: Clarification on `ever populated` flag of DocumentState during apply the history step HOT 3
- Upcoming WHATNOT meeting on 2/8/2024 HOT 2
- Should dir=auto with no strong characters inherit directionality from parent or be ltr? HOT 10
- Navigation: DocumentState request referrer is not set for about:srcdoc
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.