Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upRemoval / dynamic changes to the <link> / <style>'s media attribute don't work. #20118
Comments
|
Testcase for <!doctype html>
<style>
p { color: red; }
</style>
<style id="style-with-media" media="not all">
p { color: green; }
</style>
<p>Should be green</p>
<script>
document.getElementById("style-with-media").removeAttribute("media");
</script>
<!doctype html>
<style>
p { color: red; }
</style>
<link id="style-with-media" href="data:text/css;charset=UTF-8,p%7Bcolor%3Agreen%7D" rel="stylesheet" media="not all">
<p>Should be green</p>
<script>
document.getElementById("style-with-media").removeAttribute("media");
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Maybe changes work before #20115, it's not totally clear to me, but removals definitely don't... We should fix that.