News for hackers. Stuff that matters.
Re:Does the Google Bot index css hidden divs? yes. by alanh on Wednesday September 28, 2011 @07:47PM (#3050464)
If you want to include in your page source things you want to dynamically display, such as error messages or tooltips or confirmation messages – without having them show up in Google† – consider using the `<script type="text/html"> ... HTML ... </script>` trick. Then you can grab the content via e.g. `.innerHTML` and place it in your lightbox or use it for templating, etc. See also: ICanHaz.js.

For the opposite – showing text to search engines and screen readers, but not visual browsers' end-users – position the content off-screen. http://webaim.org/techniques/css/invisiblecontent/#technique...

† I haven’t explicitly tested that search engines ignore contents of script tags w.r.t. indexing, but would be extremely surprised if the assumption was shown to be false.

Re:Does the Google Bot index css hidden divs? yes. by cemregr on Wednesday September 28, 2011 @09:04PM (#3050662)
AFAIK GoogleBot runs a minimum amount of Javascript on the page before parsing.