#readtheplatform — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #readtheplatform, aggregated by home.social.
-
If you omit both the `<head>` and `<body>` elements in an HTML document, the HTML parser will consider everything as within the `<head>` element until it encounters content that’s not allowed in that element in which case it’ll add the subsequent content to the `<body>` element. Is there any performance gain from explicity marking `<head>` and `<body>` in a document? Maybe for streaming an explicit `<head>` starting and closing tag might help? Or is their usage beneficial for explicitly stating an author’s intentions?
Currently reading “The HTML parser” which is chapter 3 of *Idiosyncrasies of the HTML parser* (https://htmlparser.info/parser/), so maybe I’ll find out, but this question came up at the end of last chapter on syntax.
-
I had never realized you can have whitespace between the attribute name, equals sign, and its value for #HTML attributes. The following is valid:
```html
<input type = checkbox>
``` -
SHORTTAG syntax in SGML kinda reminds of Pug (et al.) which I love.
```
<title/Misinterpreted/
<p/Little-known SGML markup features/
``` -
#ReadThePlatform: a Web Platform reading club
https://knowler.dev/blog/read-the-platform -
Had an idea for a Web Standards book club. We’d read (in no set order):
“Idiosyncrasies of the HTML parser” by @zcorpan (https://htmlparser.info)
“Web Browser Engineering” by @chrishtr and Pavel Panchekha (https://browser.engineering)
“Web Platform Contribution Guide” by various authors (https://wpc.guide)
Anything else we could read? If there’s interest, I might see about setting this up.
Follow this hashtag for more info: #ReadThePlatform