When the user changes the footnote text, this change has to be reinserted into the attribute of the footnote node. So say someone changes the contents of footnote 5, that change will have to be put into the footnote attribute of the fifth footnote node in the main text.
It’s working now, but it feels like this is not how it’s supposed to work.