Add serialization support, fix bug when DOM parses source that has id attribute.