Skip to content

Commit

Permalink
HTML: mark typemustmatch historical
Browse files Browse the repository at this point in the history
Apart from Firefox nobody adopted this and it creates a smallish cross-origin leak. whatwg/html#4590 changes the HTML standard.
  • Loading branch information
annevk authored May 3, 2019
1 parent 1466fae commit 631acf0
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 47 deletions.
1 change: 0 additions & 1 deletion html/dom/elements-embedded.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ var embeddedElements = {
// Conforming
data: "url",
type: "string",
typeMustMatch: "boolean",
name: "string",
useMap: "string",
width: "string",
Expand Down
18 changes: 18 additions & 0 deletions html/semantics/embedded-content/the-object-element/historical.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,22 @@
elm();
});
}, 'object legacycaller should not be supported');

test(() => {
const obj = document.createElement("object");
assert_false("typeMustMatch" in obj);
}, "object's typeMustMatch IDL attribute should not be supported");

async_test(t => {
const obj = document.createElement("object");
t.add_cleanup(() => obj.remove());
obj.setAttribute("data", "/common/blank.html");
obj.setAttribute("type", "text/plain");
obj.setAttribute("typemustmatch", "");
obj.onload = t.step_func_done(() => {
assert_not_equals(obj.contentDocument, null, "/common/blank.html should be loaded");
});
obj.onerror = t.unreached_func();
document.body.appendChild(obj);
}, "object's typemustmatch content attribute should not be supported");
</script>

This file was deleted.

4 changes: 0 additions & 4 deletions html/semantics/embedded-content/the-object-element/test2.html

This file was deleted.

1 change: 0 additions & 1 deletion webdriver/tests/get_element_attribute/get.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ def test_normal(session):
("img", ["ismap"]),
("input", ["autofocus", "checked", "disabled", "formnovalidate", "multiple", "readonly", "required"]),
("menuitem", ["checked", "default", "disabled"]),
("object", ["typemustmatch"]),
("ol", ["reversed"]),
("optgroup", ["disabled"]),
("option", ["disabled", "selected"]),
Expand Down

0 comments on commit 631acf0

Please sign in to comment.