Doug Parker 🕸️ on Nostr: Does anyone on here happen to know the motivation or reasoning for why whitespace ...
Does anyone on here happen to know the motivation or reasoning for why whitespace collapsing in #HTML applies to the space character entity ` `?
I get that:
```html
<div>Hello, World!</div>
```
Will collapse down to:
```html
<div>Hello, World!</div>
```
But why does:
```html
<div>Hello,       World!</div>
```
Do the same? I can't imagine any developer who would want that behavior.
Published at
2024-07-14 01:25:45Event JSON
{
"id": "6bc81367c2548281912ff12d6876751008e4455b2511fe1dbac99593f7601a90",
"pubkey": "bb1742d1b321126a78c9a65acb9b810a49693c1b76b6446ae059fc3ff0cc2bf2",
"created_at": 1720920345,
"kind": 1,
"tags": [
[
"t",
"html"
],
[
"proxy",
"https://techhub.social/@develwithoutacause/112782235784695058",
"web"
],
[
"proxy",
"https://techhub.social/users/develwithoutacause/statuses/112782235784695058",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://techhub.social/users/develwithoutacause/statuses/112782235784695058",
"pink.momostr"
],
[
"-"
]
],
"content": "Does anyone on here happen to know the motivation or reasoning for why whitespace collapsing in #HTML applies to the space character entity `\u0026#32;`?\n\nI get that:\n\n```html\n\u003cdiv\u003eHello, World!\u003c/div\u003e\n```\n\nWill collapse down to:\n\n```html\n\u003cdiv\u003eHello, World!\u003c/div\u003e\n```\n\nBut why does:\n\n```html\n\u003cdiv\u003eHello,\u0026#32;\u0026#32;\u0026#32;\u0026#32;\u0026#32;\u0026#32;\u0026#32;World!\u003c/div\u003e\n```\n\nDo the same? I can't imagine any developer who would want that behavior.",
"sig": "6193dd0b4e0b2c8e4ee262b63a61b6c95313789edbcb4f9fa90211ad584af43b3a5699a9c5a6669af3aecd578f3932e5375be8b8a08f58ec7025a40633c17771"
}