H Chris,<div><br></div><div>Thanks for clarifying. I'm still confused as I've checked the markup, and I'm reasonably sure that I have all the requisite tags and properly closed. Is there something obvious I might be missing otherwise. I'm pretty sure that I don't have any jscript which is manipulating the dom. Anyway, I've traded this error for something else...<br>
<br><div class="gmail_quote">On Tue, Jun 7, 2011 at 7:09 AM, <span dir="ltr"><<a href="mailto:christopher.schmidt@nokia.com">christopher.schmidt@nokia.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
OpenLayers assumes that you have a reasonably valid HTML document -- which means you need to have a<br>
<head> element. (I think that if you set theme: null and include the CSS yourself, this requirement<br>
doesn't exist.)<br>
<br>
-- Chris<br>
<div><div></div><div class="h5"><br>
On Jun 1, 2011, at 1:10 PM, ext Nicholas Efremov-Kendall wrote:<br>
<br>
> Hi all,<br>
><br>
> I'm having some strange errors with OL 2.11 being loaded locally. I'm getting two different errors in chrome and firefox coming from the openlayers.js file.<br>
><br>
> Firefox reports document.getElementsByTagName("head")[0] is undefined, error in OL.js line 276.<br>
><br>
> Chrome gives me a different error: Uncaught TypeError: Cannot call method 'appendChild' of undefined at OL.js line 276, and in main.js line 12.<br>
><br>
> any ideas what's causing this error?<br>
</div></div>> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a><br>
> <a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br>
<br>
</blockquote></div><br></div>