Currently our identity function doesn't process Private elements at all:
export function identity(e: Element | null): string | number {
if (e === null) return NaN;
if (e.closest("Private")) return NaN;
const tag = e.tagName;
if (isSCLTag(tag)) return tags[tag].identity(e);
return NaN;
}
However we should use the mandatory type atttribute and index by this. This would be helpful with our diffing work for Private elements.
As discussed with @ca-d