Take a look at this snippet of HTML code:
<style type="text/css">
.existing-class {
background-color: #000;
}
</style>
<div class="existing-class non-existing-class"></div>
Within this code, there are two classes applied to the <div> element. The interesting part is that the class non-existing-class
is not actually defined in the CSS on the page.
So, here's the question: How can a developer use programming techniques to identify elements on a webpage that are using classes which have not been defined in the loaded CSS?