-
Notifications
You must be signed in to change notification settings - Fork 55
Issues with task lists in blockquotes #31
Comments
@raganwald to make it work, we need to fix the If we want to avoid rendering it entirely, we'd want to better scope the Though rendering it disabled would require deeper/more involved modifications to introduce disabled task lists that aren't auto-enabled on load. I think this gives us the least benefit and requires the most work. |
I'm in favour of handling the block-quoting, if we don't have any semantic objection. |
@raganwald I'm right on the fence either way in terms of semantics, so practicality beats purity here. |
One day, when we have blue skies on mars, we will look at a thing like this and say, "If you quote a list, the state of the items in the quoted list should be synchronized with the state of the items in the original." The reason we will have that conversation one day, is because we will make the wise choice not to have that conversation today. |
@raganwald to be fair, I'd rather think quoting a list wouldn't sync it but copy it at the time of the quotation... it's a quote, and I think the historical value of quotes is more interesting than the current state of its origin! |
Interesting... 💭 That was not what I was thinking, but if we are both thinking the exact same thing, one of us is redundant. |
I'm circling back to this today. To recapitulate, if you write something like this in a comment:
The items render as checkboxes, however checking them in the UX does not update the comment to check or uncheck the checkbox. The requirement is that checking and unchecking work whether the item is in a Let me know if you have anything to add/change... |
That's spot on! Thanks for taking a look! There are "functional" tests that On Tuesday, September 2, 2014, Reg Braithwaite [email protected]
Matt Todd |
Observation: Given a quoted list of two items in a GFM comment like this one, we see that the check list within the blockquote is disabled. This is unlike an ordinary task list, where all items are enabled. Although the check list items are disabled, clicking on the check boxes still sends an AJAX request: The data sent appears to be wrong: When clicking the first item, we should be sending:
Also, we should not be sending anything at all when clicking on a disabled item. So...
I am proceeding with #2, " |
@raganwald it's important (nay, vital) to distinguish between defects with this library and defects with the app that integrates this library into itself whose responsibility is to enable/disable task lists where appropriate. XHR updates are an app-specific responsibility, made possible by providing after-update hooks (using the The best way to recreate the library-specific issue is to create a functional test (or a unit test), and work from there. That way you can control the environment and work against the issues related to the library and not with the integrating apps. |
So is this still an issue? |
Originally reported in: github/markup#322
Reproduce with:
While this appears to render fine, updates aren't handled correctly with inconsistent results: primarily resulting in updates not going through.
I think the simplest solution for the time being is to disable updates for these items, though making them work would be ✨.
The text was updated successfully, but these errors were encountered: