dom selection + w3c validation