Added edge case for a single div

More than willing to add a test case but since it needs a browser environment I am not entirely sure how you are testing this currently.