For talk pages, it would be useful to have an `id` attribute on each list item (talk page comments using `:` are <dd> list items) so that individual comments can be referenced.
Strawman proposal is to automatically assign hierarchical ids (so that adding new replies does not shift existing ids), something like:
```
<h2 id="thread_1">Thread 1</h2>
<dl><dd id="thread_1-1">This is comment 1
<dl><dd id="thread_1-1-1">This is a reply to comment 2</dd></dl>
</dd><dd id="thread_1-2">This is comment 2
</dd></dl>
```
Alternatively/in addition, a "permanent" or "more readable" id could be manually assigned in the editor, which would then get attached to the list item using the syntax proposed in {T230658}.
These IDs are scoped to an individual talk page, so they don't need to be globally unique, which should greatly help make then human-friendly.
In fact, instead of hierarchically-assigned IDs, we could generate them based on the list item/comment content, like we do for section ids. We'd want to truncate to a certain length, and we'd probably want to use the manual syntax of {T230658} to preserve the original ID if/when the comment is edited. Using the timestamp as a ID prefix helps ensure that a bunch of comments which all start with "approved" don't need a lot of automatic deduplication:
```
== Thread 1 ==
: This is comment 1 {#~|UserA|20190818 10:23:45}}
:: This is a reply to comment 2 {{#~|UserB|20190818 10:23:45.1}}
: This is comment 2 {{#~|UserC|20190818 10:23:45.15}}
<h2 id="thread_1">Thread 1</h2>
<dl><dd id="20190818T1213-this_is">This is comment 1
<dl><dd id="20190818T1214-this_is">This is a reply to comment 2</dd></dl>
</dd><dd id="20190818T1215-this_originally_said">This is comment 2
</dd></dl>
```
(That last item might serialize to wikitext as: `: id=20190818T1215-this_originally_said <<< This is comment 2 >>>`.)
Once edited, we'd need some way to update references to point to the archived talk page instead. You could either do this with a bot that could just comb through looking for old references, or more "cleverly" with something like:
```
[[Special:Talk/PageName#comment-id]]
```
where that special page would redirect to the appropriate archive page for the given comment id.