heydon,
@heydon@front-end.social avatar

I'm writing about the <article> element now. To preempt myself, I just want to say: it's completely useless. I never use it. Why? Because it's designed to represent an independent piece of content BUT since the document outline algorithm has never been implemented and the element (inevitably) appears as part of a larger web page, it should be introduced with an <h2> heading. BUT it makes no sense to head an "independent, distributable" piece of content with a subsection heading. Trash 0/5.

Tijn,
@Tijn@dosgame.club avatar

@heydon it seems to only make sense outside of websites, bizarrely

yatil,
@yatil@yatil.social avatar

@heydon The content is “independently distributable“, but maybe not its exact structure? And for headings, I think as long as its internally consistent, who really cares about heading levels? (<- Extremely simplified argument.)

heydon,
@heydon@front-end.social avatar

@yatil The implication that &lt;h2&gt; means "this belongs to something else" just kind of kills it for me. I'm not saying using it is wrong as such though.

yatil,
@yatil@yatil.social avatar

@heydon Yeah, I understand that. I never think of headings in that way. For me they mostly determine what can come after them.

Brains, how do they work 😂

heydon,
@heydon@front-end.social avatar

@yatil Haha. Yeah, I think my brain goes "independent and distributable means it's own document and documents should have one &lt;h1&gt; heading" but some or all of that may be some sort of cognitive distortion.

boldewyn,
@boldewyn@mastodon.social avatar

@heydon @yatil could it be that it’s your subconsciousness still dreaming of a world where HTML 2’s <h> came to be, where we could've delegated the arduous work of determining the header level to the computer by simply better structuring our documents?

At least I think that's what's going on in my brain...

heydon,
@heydon@front-end.social avatar

@boldewyn @yatil yeah, that's what I mean by the document outline algorithm (implementation of automatic heading levels).

simevidas,
@simevidas@mastodon.social avatar

@heydon @boldewyn @yatil There is actually a new development in this area. @keithamus intents to prototype a headingstart attribute that would allow elements like <article> to have their headings start at <h1>:

https://groups.google.com/a/chromium.org/g/blink-dev/c/8yl-pJhuLHE/m/1GDufCYWAAAJ

yatil,
@yatil@yatil.social avatar

@simevidas @heydon @boldewyn @keithamus sigh Yeah.

gilesdring,
@gilesdring@mastodon.me.uk avatar

@heydon 💯no comments

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • ngwrru68w68
  • rosin
  • khanakhh
  • tacticalgear
  • Youngstown
  • mdbf
  • slotface
  • everett
  • GTA5RPClips
  • ethstaker
  • kavyap
  • DreamBathrooms
  • tester
  • magazineikmin
  • megavids
  • InstantRegret
  • cisconetworking
  • osvaldo12
  • Durango
  • cubers
  • thenastyranch
  • normalnudes
  • anitta
  • modclub
  • Leos
  • provamag3
  • JUstTest
  • lostlight
  • All magazines