ID and Class Checks

Checking the element to be sure it has the appropriate attributes
before adding it to the wrapping element. This is related to issue #3