toDOM(Node) {} 's Node can get Parent or position?

in my case, i wanna compare two tables , if table-row and table-cell has some ‘info or position based id’, it would be much easier to know where the insert, delete or modify happened.

DOMSerializer.fromSchema(schema).serializeFragment(content) fires toDOM function, but the only parameter i can get is Node, is there any way i can get position (for example the index of tr in that tbody) base on that Node ?

parseDOM(HTMLElement){} do can get position, however the save action (DOMSerializer.fromSchema(schema).serializeFragment(content) fires toDOM()) not fires it at all