Id attribute merging