gorgeous-ghost-95789
04/20/2022, 12:27 AMgorgeous-ghost-95789
04/20/2022, 12:28 AMconsole.log("wtf man?") just so the server feels bad about itself)gorgeous-airport-54386
04/20/2022, 12:33 AMdry-window-71739
04/20/2022, 3:37 AMhx-trigger="click" hx-get="/somedata" hx-target="this" hx-swap="afterend" 2. disable subsequent clicks on that original tr with some hyperscript 3. provide a close button in the new tr to zap itself, and reinstate the trigger on the original tr.
I feel like there might be a more idiomatic way 🙂blue-gold-89534
04/20/2022, 5:33 AMsome-diamond-25050
04/20/2022, 9:49 AMsome-diamond-25050
04/20/2022, 9:54 AMsome-hairdresser-28401
04/20/2022, 10:54 AMable-telephone-85129
04/20/2022, 1:38 PMable-telephone-85129
04/20/2022, 1:39 PMable-telephone-85129
04/20/2022, 1:40 PMtall-dinner-62086
04/20/2022, 1:56 PM<td> or <th>, no <td> outside a <tr>, etc.gorgeous-ghost-95789
04/20/2022, 2:01 PMmysterious-toddler-20573
04/20/2022, 2:10 PMmysterious-toddler-20573
04/20/2022, 2:11 PMmysterious-toddler-20573
04/20/2022, 2:11 PMjs
var startTag = getStartTag(resp);
switch (startTag) {
case "thead":
case "tbody":
case "tfoot":
case "colgroup":
case "caption":
return parseHTML("<table>" + resp + "</table>", 1);
case "col":
return parseHTML("<table><colgroup>" + resp + "</colgroup></table>", 2);
case "tr":
return parseHTML("<table><tbody>" + resp + "</tbody></table>", 2);
case "td":
case "th":
return parseHTML("<table><tbody><tr>" + resp + "</tr></tbody></table>", 3);
case "script":
return parseHTML("<div>" + resp + "</div>", 1);
default:
return parseHTML(resp, 0);mysterious-toddler-20573
04/20/2022, 2:11 PMmysterious-toddler-20573
04/20/2022, 2:11 PMfew-vegetable-15970
04/20/2022, 3:24 PMtall-dinner-62086
04/20/2022, 4:01 PMmysterious-toddler-20573
04/20/2022, 7:18 PMhundreds-camera-24900
04/20/2022, 7:23 PMhundreds-camera-24900
04/20/2022, 7:24 PMhundreds-camera-24900
04/20/2022, 7:24 PMhundreds-camera-24900
04/20/2022, 7:46 PMmysterious-toddler-20573
04/20/2022, 8:27 PMmysterious-toddler-20573
04/20/2022, 8:27 PMhundreds-camera-24900
04/20/2022, 8:38 PMmysterious-toddler-20573
04/20/2022, 8:40 PM