>>31313The reason wrote this was to have an input event fire on the "inner" element.
A far better way to do this is to have the input event look for the commonAncestorContainer of the range.
This is now the entirety of what remains of the lens logic.
The machine found an different way to replace the actual decorator with contents.
That is to have the decorator outside the tree and only position it absolutely when it needs to appear.
There's a small invisible spacer that determines where they are to go in the tree.
Ideally even this spacer wouldn't be in the tree and it's pretty annoying that it's there.
The machine wasn't very helpful other than this, and now seem to barely remember why this helped.
It was something to do with the cursor not appearing in the correct position before if it was 1ch wide.
Got autoupdating of the surrounding tag, and attributes to work also, although attributes are no longer hidden.
A previous version also had the insertion working, but this is no longer the case.
Am starting to be a bit warn from the LLaMa shaving.
Much prefer just programming, and taking things a little slower, but can't seem to.