Auto merge of #17935 - cbrewster:ce_upgrades, r=jdm

Custom element upgrades

<!-- Please describe your changes on the following line: -->

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [ ] These changes fix #__ (github issue number if applicable).

<!-- Either: -->
- [X] There are tests for these changes OR
- [ ] These changes do not require tests because _____

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/17935)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2017-08-09 17:22:28 -05:00 committed by GitHub
commit a087fee4b4
30 changed files with 318 additions and 295 deletions

View file

@ -26534,7 +26534,7 @@
"testharness"
],
"mozilla/collections.html": [
"f1029d519aa7017a1a3d18a891a0774b9a39f847",
"aa060d1e5d1364224f2c2151e5f8b9580ac4427e",
"testharness"
],
"mozilla/createEvent-storageevent.html": [
@ -27534,7 +27534,7 @@
"testharness"
],
"mozilla/prototypes.html": [
"bb4824ae242ed89485a272f6ef74631d6fea62be",
"e19d75682a83f4d2de1cbdf053aadfda181d6725",
"testharness"
],
"mozilla/proxy_setter.html": [

View file

@ -63,7 +63,7 @@
<track></track>
</video>
<foo-á>hi</foo-á>
<fooá>hi</fooá>
<script>
test(function() {
@ -142,7 +142,7 @@ test(function() {
// Test non-ASCII tag names. Uppercasing is ASCII-only per spec:
// http://dom.spec.whatwg.org/#dom-element-tagname
check_tag("foo-á", 1, [HTMLUnknownElement], "FOO-á");
check_tag("fooá", 1, [HTMLUnknownElement], "FOOá");
});
</script>
</body>

View file

@ -5,7 +5,7 @@
<script src="/resources/testharnessreport.js"></script>
</head>
<body>
<foo-á>foo</foo-á>
<fooá>foo</fooá>
<script>
test(function() {
assert_true(window.document instanceof Node, "Should be Node");
@ -18,8 +18,8 @@ test(function() {
assert_true(window.document.documentElement instanceof HTMLHtmlElement, "Should be HTMLHtmlElement");
assert_true(window.document instanceof Document, "Should be Document");
assert_equals(window.document.documentElement.tagName, "HTML");
assert_true(window.document.getElementsByTagName('foo-á')[0] instanceof HTMLUnknownElement, "Should be HTMLUnknownElement");
assert_equals(window.document.getElementsByTagName('foo-á')[0].tagName, "FOO-á");
assert_true(window.document.getElementsByTagName('fooá')[0] instanceof HTMLUnknownElement, "Should be HTMLUnknownElement");
assert_equals(window.document.getElementsByTagName('fooá')[0].tagName, "FOOá");
});
</script>
</body>