Index: LayoutTests/fast/dom/custom/custom-element-name-sensivity.html |
diff --git a/LayoutTests/fast/dom/custom/custom-element-name-sensivity.html b/LayoutTests/fast/dom/custom/custom-element-name-sensivity.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..93a910301e081e3c56d00271d8416cb7511210af |
--- /dev/null |
+++ b/LayoutTests/fast/dom/custom/custom-element-name-sensivity.html |
@@ -0,0 +1,17 @@ |
+<!DOCTYPE html> |
+<script src="../../../resources/testharness.js"></script> |
+<script src="../../../resources/testharnessreport.js"></script> |
+<script> |
+test(function () { |
+ var A = document.registerElement('mixed-CASE-custom-TAG'); |
+ assert_true(document.createElement('MIXED-case-CUSTOM-tag') instanceof A); |
+ assert_true( |
+ document.createElement('MIXED-case-CUSTOM-tag', null) instanceof A); |
+}, 'createElement is case insensitive for custom tags'); |
+ |
+test(function () { |
+ var B = document.registerElement('mixed-CASE-type-EXTENSION', {extends: 'span'}); |
+ assert_true(document.createElement('span', 'MIXED-case-TYPE-extension') |
+ instanceof B); |
+}, 'createElement is case insensitive for type extensions'); |
+</script> |