I would test more .custom elements in this case:
"<div class='custom'></div><div class='other'></div><div class='custom'>custom2</div>"