Show newer

it’s definitely a ⁜little⁜ funky because it calls ToString on ⁜the resulting primitive⁜ not on the original value so

"that is " + {
toString () { return "false" },
valueOf () { return true },
}

returns "that is true"

Show thread

it just calls ToPrimitive on both sides and then :—

• if the result on either side is a string, calls ToString on both sides and concatenates them

• otherwise, it calls ToNumeric on both sides and attempts to add them

Show thread

tfw u forget how exactly the + operator works in Javascript

DoM PaRsInG AnD SeRiAlIzAtIoN
=============================
DoMpArSeR, xMlSeRiAlIzEr, InNeRhTmL, aNd sImIlAr aPiS

w3c eDiToR’S DrAfT 02 mAy 2021

NPC dialogue trees be like

• (if the Player is female) Say something sexist

you’re allowed to hate everything if you just get the balances right

Show thread

i wish i knew literally any writers tackling the same sorts of problems i am

that’s right, kiddos, to quote the H·T·M·L Standard :—

Show thread

very interestingly, Safari’s X·M·L processor moves comments present in the internal subset of the D·T·D out of the DOCTYPE and places them just before the root element

i would like to say this is non‐standard behaviour, but there actually ⁜is⁜ no standard regarding taking an X·M·L document and parsing it into the D·O·M

; {
const re = /fails/uy
re.lastIndex = "this test ".length
"this test fails".replace(re, "succeeds")
}

Show thread

okay great my code works there’s just a bug in safari regular expressions

moon in the autumn dawn
the moon…
in the early dawn

because this pacing is bad

is their pacing this bad in real life

Show thread

i’m a little curious whether this author has ever like, actually talked dirty to somebody over the video phone

Show older
📟🐱 GlitchCat

A small, community‐oriented Mastodon‐compatible Fediverse (GlitchSoc) instance managed as a joint venture between the cat and KIBI families.