Index: LayoutTests/fast/dom/custom/element-upgrade-no-register-and-leak.html |
diff --git a/LayoutTests/fast/dom/custom/element-upgrade-no-register-and-leak.html b/LayoutTests/fast/dom/custom/element-upgrade-no-register-and-leak.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..2ee61b7fc664fc972e0a5883daddd188b675d54a |
--- /dev/null |
+++ b/LayoutTests/fast/dom/custom/element-upgrade-no-register-and-leak.html |
@@ -0,0 +1,11 @@ |
+<!DOCTYPE html> |
+<script src="../../../resources/js-test.js"></script> |
+<div id="container"></div> |
+<script> |
+description('Tests unresolved element not leaking if never resolved.'); |
+ |
+// Verify that a custom tag for which no element is ever registered |
+// doesn't cause a document nor elements to leak. |
+var host = document.createElement('div'); |
+host.innerHTML = '<x-a></x-a>'; |
+</script> |