Intent to Prototype: headingstart attribute.

617 views
Skip to first unread message

Keith Cirkel

unread,
Apr 10, 2024, 12:15:47 PMApr 10
to blin...@chromium.org

Contact emails


Explainer


Specification

(Not yet available)

Summary

Adding a `headingstart=` attribute to Element nodes, that influences the child `h1`-`h6` elements' heading levels.



Blink component


Motivation

Websites which allow users to write comments or documents (User Generated Content - UGC) rely on users to produce meaningful heading structures for their written content. This can be difficult for a user where this content is presented on different surfaces (web pages or applications) that have different document structures. Giving web developers a headingstart attribute frees users from trying to pick the correct heading level (they can always start their comment or document at h1), and makes it significantly easier for web developers to render blocks of UGC without rewriting the UGC authors defined heading structures.



Initial public proposal


TAG review

None

TAG review status

Pending

Risks



Interoperability and Compatibility

None



Gecko: No signal

WebKit: No signal

Web developers: Positive

Other signals:

WebView application risks

Does this intent deprecate or change behavior of existing APIs, such that it has potentially high risk for Android WebView-based applications?

None



Debuggability

None



Is this feature fully tested by web-platform-tests?

No

Flag name on chrome://flags

Experimental Web Platform Features

Finch feature name

None

Non-finch justification

None

Requires code in //chrome?

False

Estimated milestones

No milestones specified



Link to entry on the Chrome Platform Status

Tab Atkins Jr.

unread,
Apr 10, 2024, 1:15:45 PMApr 10
to blink-dev, Keith Cirkel
There's been significant discussion in that thread over what the precise behavior should be, particularly when elements using the attribute are nested. Can you elaborate on which behavior you're intending to prototype?

Keith Cirkel

unread,
Apr 10, 2024, 1:31:39 PMApr 10
to Tab Atkins Jr., blink-dev
We’re looking at prototyping the additive model in your latest comments Tab. We’ll also be implementing the similar model across GitHub.com (for internal validation only, for now) to see how well it aligns to our desired model. Hope this helps. 

Brian Kardell

unread,
Apr 10, 2024, 1:38:22 PMApr 10
to blink-dev, Keith Cirkel, Tab Atkins Jr.
But not experimenting at all with some kind of auto?

Keith Cirkel

unread,
Apr 10, 2024, 1:40:19 PMApr 10
to Brian Kardell, blink-dev, Tab Atkins Jr.
Initially, no. I think there’s scope to introduce auto later, if I’m not mistaken. 

Keith Cirkel

unread,
Apr 10, 2024, 1:48:49 PMApr 10
to Brian Kardell, blink-dev, Tab Atkins Jr.
I should add that we’re open to the idea of auto, and definitely see the use. We’d like to iterate on the feature, assessing the impact & complexity at each step to ensure we don’t end up quagmired. 
Reply all
Reply to author
Forward
0 new messages