https://htmx.org logo
Join Discord
Powered by
# htmx-general
  • m

    most-jelly-15242

    09/01/2020, 4:48 PM
    Actually, yes, it may be outerHTML. I had it set to innerHTML, but I am using IDs, so I think that's being ignored
  • m

    most-jelly-15242

    09/01/2020, 4:50 PM
    @mysterious-toddler-20573 you are right, it's the outerHTML that's causing the issue. I tested without the ID attribute and without OOB and the event is triggered.
  • m

    mysterious-toddler-20573

    09/01/2020, 4:55 PM
    OK. I thought so. I don't think I ever got that quite right with intercooler either :/
  • m

    mysterious-toddler-20573

    09/01/2020, 4:55 PM
    OOB is pretty cool 🙂
  • m

    mysterious-toddler-20573

    09/01/2020, 4:55 PM
    I'll try to get a fix in soon. If you have time to put together a test case that would be extremely helpful
  • m

    most-jelly-15242

    09/01/2020, 4:56 PM
    A PR for a test case? I haven't looked at those yet, but I can try
  • m

    mysterious-toddler-20573

    09/01/2020, 4:59 PM
    yes, that would be great
  • m

    mysterious-toddler-20573

    09/01/2020, 5:00 PM
    the events tests are pretty straight forward and I can envision what one would look like, but it's always nice to have someone else write the test case
  • m

    most-jelly-15242

    09/01/2020, 5:43 PM
    done!
  • m

    mysterious-toddler-20573

    09/01/2020, 7:03 PM
    awesome, thank you
  • b

    big-airline-13935

    09/01/2020, 7:37 PM
    Possibly related @most-jelly-15242 ? https://github.com/bigskysoftware/htmx/pull/166#issuecomment-683640171
  • m

    most-jelly-15242

    09/01/2020, 7:44 PM
    @User Yes, related. But do you have a test there for outerHTML swap? I didn't see it. The two tests I added are for outerHTML.
  • b

    big-airline-13935

    09/01/2020, 7:46 PM
    Not specifically, no, but I agree with your findings so will be good to have it.
  • m

    most-jelly-15242

    09/01/2020, 7:47 PM
    Checking your PR, there's something I don't understand. In one of the failed request tests, is the request really failing? I don't see it . This one https://github.com/bigskysoftware/htmx/pull/166/commits/bfaedef4978b4a21b7207fade3b6911208dda34d#diff-ebdd1660cb9123ede8eca83e1c394237R157
  • b

    big-airline-13935

    09/01/2020, 7:58 PM
    Open the console and try the various test cases here, the behaviour appears to depend on the nature of the swap. https://putyourlightson.dev/htmx.html
  • m

    most-jelly-15242

    09/01/2020, 8:00 PM
    Sorry, maybe I wasn't clear. How are you simulating the failed request in that test I linked to? It responds with a 200 status code.
  • b

    big-airline-13935

    09/01/2020, 8:40 PM
    I didn't say that it failed...?
  • b

    big-airline-13935

    09/01/2020, 10:02 PM
    Ah I see what you mean now @User, sorry for being slow! Here is where that event is triggered after a failed request: https://github.com/bigskysoftware/htmx/blob/v0.0.8/src/htmx.js#L1608
  • m

    most-jelly-15242

    09/01/2020, 10:03 PM
    The challenges of the written word 😉 The thing is that if you look at the code in the test (screenshot), even though it's for a
    failed request
    , in the test itself, I don't see where you are simulating a failed request. Shouldn't it respond with something other than 200 status code.
  • m

    mysterious-toddler-20573

    09/01/2020, 11:35 PM
    WebStorm loaded, DSA keyboard plugged in, Widescreen monitor with resolution set to OLD PERSON, listening to https://yewtu.be/watch?v=YZj5QsMl3x8
  • m

    mysterious-toddler-20573

    09/01/2020, 11:35 PM
    Not making any promises, but I have written code in this configuration before
  • m

    mysterious-toddler-20573

    09/02/2020, 12:06 AM
    spriggle me this...
  • m

    mysterious-toddler-20573

    09/02/2020, 12:06 AM
    https://github.com/bigskysoftware/htmx/commit/43cee3156e2aaae83fcc820e85d2cd8b6d5480a5
  • m

    mysterious-toddler-20573

    09/02/2020, 12:06 AM
    YOU'VE BEEN SPRAMBOOZLED BY... THE SPRIGGLER
  • m

    mysterious-toddler-20573

    09/02/2020, 12:11 AM
    next release is gonna be 0.1
  • m

    mysterious-toddler-20573

    09/02/2020, 12:11 AM
    @User once I get my head around your SSE stuff and merge it in we'll be close to a 1.0
  • m

    mysterious-toddler-20573

    09/02/2020, 12:29 AM
    @User fix is in dev: https://github.com/bigskysoftware/htmx/commit/807723311f527bef1fefdc56735a1556a3374743
  • m

    mysterious-toddler-20573

    09/02/2020, 12:31 AM
    OK, that's all the fun I get to have today.
  • b

    big-airline-13935

    09/02/2020, 12:48 AM
    🎉
  • m

    most-jelly-15242

    09/02/2020, 10:34 AM
    Thanks!
1...212223...1146Latest