From e9331479dc21bce9615b4b1a1990de6bfb6fc978 Mon Sep 17 00:00:00 2001 From: crschmidt Date: Fri, 25 Aug 2006 18:38:20 +0000 Subject: [PATCH] Right. 2.0 and trunk are not the same. svn switch is my friend. git-svn-id: http://svn.openlayers.org/trunk/openlayers@1375 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- examples/xhtml.html | 10 ++++++++-- lib/OpenLayers.js | 6 ++++++ 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/examples/xhtml.html b/examples/xhtml.html index 54f1a2b8af..a6fc48f9e5 100644 --- a/examples/xhtml.html +++ b/examples/xhtml.html @@ -1,8 +1,9 @@ - + - +XHTML Example +
@@ -13,5 +14,10 @@ map.addLayer(wms); map.zoomToMaxExtent(); +

+ Valid XHTML 1.0! +

diff --git a/lib/OpenLayers.js b/lib/OpenLayers.js index e9628475ac..0e074b719e 100644 --- a/lib/OpenLayers.js +++ b/lib/OpenLayers.js @@ -110,6 +110,12 @@ if (typeof(_OPENLAYERS_SFL_) == "undefined") { for (var i = start; i < jsfiles.length; i++) { var currentScriptTag = ""; allScriptTags += currentScriptTag; + var currentScriptElem = document.createElement('script'); + currentScriptElem.type = 'text/javascript'; + currentScriptElem.src = host + jsfiles[i]; + + document.getElementsByTagName("head")[0].appendChild(currentScriptElem); + } document.write(allScriptTags); })();