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); })();