News for hackers. Stuff that matters.
Re:Cirkoban: Sokoban meets cellular automata written in Scheme by ReleaseCandidat on Tuesday June 04, 2024 @02:29AM (#40571300)
OK, what happens is a DOMException with the message "Failed to execute 'querySelectorAll' on 'Element': '\\\f' is not a valid selector."

Source is `e.querySelectorAll("\\\f"),` in function of file `lib.min.js`:

    (d.qsa = K.test(C.querySelectorAll)) && (ce(function(e) {
                var t;
                a.appendChild(e).innerHTML = "<a id='" + S + "'></a><select id='" + S + "-\r\\' msallowcapture=''><option selected=''></option></select>",
                e.querySelectorAll("[msallowcapture^='']").length && v.push("[*^$]=" + M + "*(?:''|\"\")"),
                e.querySelectorAll("[selected]").length || v.push("\\[" + M + "*(?:value|" + R + ")"),
                e.querySelectorAll("[id~=" + S + "-]").length || v.push("~="),
                (t = C.createElement("input")).setAttribute("name", ""),
                e.appendChild(t),
                e.querySelectorAll("[name='']").length || v.push("\\[" + M + "*name" + M + "*=" + M + "*(?:''|\"\")"),
                e.querySelectorAll(":checked").length || v.push(":checked"),
                e.querySelectorAll("a#" + S + "+*").length || v.push(".#.+[+~]"),
                e.querySelectorAll("\\\f"),
                v.push("[\\r\\n\\f]")
            }), 
where `e` is the following:

    <fieldset><a id="sizzle1717482165204"></a><select id="sizzle1717482165204-
    \" msallowcapture=""><option selected=""></option></select><input name=""></fieldset>
Yes, there is a newline (actually a CR) after `id="sizzle1717482165204-`

Chrome Version 125.0.6422.141 (arm64)

See: https://gitlab.com/spritely/cirkoban/-/issues/1

Re:Cirkoban: Sokoban meets cellular automata written in Scheme by davexunit on Tuesday June 04, 2024 @08:05AM (#40573571)
Interesting! This isn't even our code! It's the code that itch.io adds to serve the game on their site.