26 Oct
2004
26 Oct
'04
9:50 a.m.
I noticed that sometimes, <text> nodes in a document are assigned different ids on load without obvious reason - there's no id clash in the source document. I found out that this is caused by text repr nodes (i.e. text strings, not <text> elements) being assigned their own id= too, even though this id is not seen or editable anywhere and is not saved with the document. And the problem is that these text node ids also start with "text" followed by a number, and therefore can clash with <text> ids forcing them to re-id. I fixed this by making these text nodes use ids starting with "string" instead of "text". The change is in line 76 of repr.cpp. I hope this does not break anything; comments are welcome.