diff --git a/src/background.js b/src/background.js index 8b1b170..ade3fc5 100644 --- a/src/background.js +++ b/src/background.js @@ -134,7 +134,7 @@ function createMap() { map.setAttribute("lat", lat); map.setAttribute("lon", lon); map.setAttribute("zoom", zoom); - let layer = document.createElement("layer-"); + let layer = document.createElement("map-layer"); layer.setAttribute("src", window.location.href); layer.setAttribute("checked", ""); let title = document.createElement("title"); diff --git a/test/e2e/basics/locale.html b/test/e2e/basics/locale.html index e310e96..05fb00d 100644 --- a/test/e2e/basics/locale.html +++ b/test/e2e/basics/locale.html @@ -12,7 +12,7 @@ - + @@ -62,7 +62,7 @@

Test

-
+
diff --git a/test/e2e/basics/popup.test.html b/test/e2e/basics/popup.test.html index e060f84..40baf68 100644 --- a/test/e2e/basics/popup.test.html +++ b/test/e2e/basics/popup.test.html @@ -33,7 +33,7 @@ vertical-align: middle; } - /* Pre-style to avoid FOUC of inline layer- and fallback content. */ + /* Pre-style to avoid FOUC of inline map-layer and fallback content. */ mapml-viewer:not(:defined) > * { display: none; } @@ -49,7 +49,7 @@ supported, or if javascript is disabled. This needs to be defined separately from the above, because the `:not(:defined)` selector invalidates the entire declaration in browsers that do not support it. */ - layer- { + map-layer { display: none; } @@ -57,7 +57,7 @@