home.social

#readtheplatform — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #readtheplatform, aggregated by home.social.

  1. 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* (htmlparser.info/parser/), so maybe I’ll find out, but this question came up at the end of last chapter on syntax.

    #HTML #ReadThePlatform

  2. 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>
    ```

    htmlparser.info/syntax/

    #ReadThePlatform

  3. SHORTTAG syntax in SGML kinda reminds of Pug (et al.) which I love.

    ```
    <title/Misinterpreted/
    <p/Little-known SGML markup features/
    ```

    From: htmlparser.info/introduction/

    #ReadThePlatform #HTML #SGML

  4. Had an idea for a Web Standards book club. We’d read (in no set order):

    “Idiosyncrasies of the HTML parser” by @zcorpan (htmlparser.info)

    “Web Browser Engineering” by @chrishtr and Pavel Panchekha (browser.engineering)

    “Web Platform Contribution Guide” by various authors (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