Pushing the limits of JavaScript setting the Head elements of the DOM Object?
Until now, I have not had any issues with initializing my DOM Object with JS - even setting elements like <TITLE> and <meta charset=... with JS Writelns in the HEAD before rendering is complete.
BUT, some bots like Bingbot, and some browsers like Opera, throw exceptions and errors, claiming that those elements have not been defined.
Google, which is amazing at rendering even the most complex JS-based scripts, never complains about missing <TITLE> or <meta charset...>
I got tired of having Bingbot whine about no <TITLE>, so I actually added the good old fashion <TITLE> in the HEAD.
Before I go and add explicit (redundant) plain text elements to my HTML, I'm curious about where everyone else sits on this issue?
Am I pushing JS too far by initializing the DOM with some elements, or are the complaining browsers and bots not "smart enough".
Either way, it's an issue that, if I want Bingbot to understand my site, I may have to put a handicapped lane in just for it.
Anyone dealing with Bingbot and values case sensitivity, will already know that Bingbot sees all URLs in lower case - even if your sitemaps and HREFS explicitly declare URLS in mixed case. This is a whole other problem.
I have mostly worked with Linux servers, and using mixed case in not unusual.
Back to the main question, does anyone else here avoid setting certain DOM objects with JS because of some bots/agents not being able to "see" them?
Thanks.
|