Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<link rel="author" title="Emilio Cobos Álvarez" href="mailto:ecobos@igalia.com">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id="test" style="color: red"></div>
<script>
test(function() {
var el = document.getElementById("test");
el.style.color = "";
assert_true(el.hasAttribute("style"));
el.removeAttribute("style");
assert_false(el.hasAttribute("style"));
}, "Mutating the style declaration doesn't remove the style attribute");
</script>