While examining the source code of a webpage, I stumbled upon this intriguing piece of JavaScript right after the standard stylesheet declaration:
<script type="text/javascript">
if('' != '')
{
document.write("<link type='text/css' rel='stylesheet' href='style.css' />");
}
</script>
I'm curious - what could be the purpose behind adding such JavaScript to an HTML page? It seems like this snippet may never actually run, leading to the conclusion that the associated stylesheet is not added to the document. Am I missing something obvious here, or was this simply a mistake?
Why include this element in the HTML code at all - for a specific reason, or just an oversight?