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

    mysterious-toddler-20573

    12/10/2020, 3:55 PM
    you have to wrap them in table tags to get them to parse appropriately
  • l

    lively-beach-14291

    12/10/2020, 3:55 PM
    Right. So this is related to reparenting, I think.
  • m

    mysterious-toddler-20573

    12/10/2020, 3:56 PM
    I don't know about that concept, but it sound relevant
  • l

    lively-beach-14291

    12/10/2020, 3:58 PM
    https://html.spec.whatwg.org/multipage/parsing.html#parsing-html-fragments
  • l

    lively-beach-14291

    12/10/2020, 3:58 PM
    One min... hunting for the right section...
  • m

    mysterious-toddler-20573

    12/10/2020, 3:58 PM
    \> reading docs
  • m

    mysterious-toddler-20573

    12/10/2020, 3:59 PM
    NOT ON MY WATCH
  • l

    lively-beach-14291

    12/10/2020, 4:00 PM
    So, here's what I remember from my foggie decade ago work... stuff like "tr" and "td" are moved around as part of tree construction
  • w

    wonderful-summer-65517

    12/10/2020, 4:00 PM
    I was able to write a temporary workaround, now it works I will open a github issue tomorrow, when I have some time after work
  • m

    mysterious-toddler-20573

    12/10/2020, 4:00 PM
    thank you adam!
  • l

    lively-beach-14291

    12/10/2020, 4:01 PM
    https://html.spec.whatwg.org/multipage/parsing.html#unexpected-markup-in-tables
  • l

    lively-beach-14291

    12/10/2020, 4:02 PM
    its called "foster parenting"
  • l

    lively-beach-14291

    12/10/2020, 4:02 PM
    https://html.spec.whatwg.org/multipage/parsing.html#foster-parent
  • l

    lively-beach-14291

    12/10/2020, 4:02 PM
    So, yea, that's going to be a .... huge cluster.
  • w

    wonderful-summer-65517

    12/10/2020, 4:05 PM
    This feature request may be a solution: https://github.com/bigskysoftware/htmx/issues/44 So I could send a table with the only one row, which I would like to swap oob. And after the table, I could define other oob elements as well
  • m

    mysterious-toddler-20573

    12/10/2020, 4:06 PM
    we'll figure it out
  • m

    mysterious-toddler-20573

    12/10/2020, 4:06 PM
    this is the fun stuff
  • b

    big-airline-13935

    12/10/2020, 4:06 PM
    I don't mean to keep going on and on about this, but a discussion about Github discussions was had over on the Craft CMS server. Ok, now I'm done.
  • l

    lively-beach-14291

    12/10/2020, 4:06 PM
    @mysterious-toddler-20573 So, that this is a edge-case ridden challenge isn't a surprise.
  • m

    mysterious-toddler-20573

    12/10/2020, 4:07 PM
    only solution: write our own HTML parser
  • l

    lively-beach-14291

    12/10/2020, 4:07 PM
    @User You can "demote" an issue to a discussion thread?
  • m

    mysterious-toddler-20573

    12/10/2020, 4:07 PM
    how hard can it be?
  • m

    mysterious-toddler-20573

    12/10/2020, 4:08 PM
    😑
  • l

    lively-beach-14291

    12/10/2020, 4:08 PM
    See @mbostock's htl for a mini-tokenizer
  • l

    lively-beach-14291

    12/10/2020, 4:09 PM
    but it can't help you with this foster-parenting nonsense
  • l

    lively-beach-14291

    12/10/2020, 4:11 PM
    @User if you can demote a poorly-constructed "issue" to a "discussion" that's a huge win.
  • l

    lively-beach-14291

    12/10/2020, 4:12 PM
    Then you don't piss off the contributor; and you keep the issue list cleaner
  • l

    lively-beach-14291

    12/10/2020, 4:13 PM
    ie, often times people just want to be heard; they don't often need to correspond to actionable changes
  • l

    lively-beach-14291

    12/10/2020, 4:13 PM
    (I like to flag things like that as "Documentation" issues...)
  • b

    big-airline-13935

    12/10/2020, 4:13 PM
    Possibly, I would likely just relabel it to "question" and close out once it becomes stale (after a response, of course).
1...929394...1146Latest