Handle dynamic addition of attributes

Handles dynamic addition of attributes to <link rel=stylesheet>
elements.

Fixes #3361
This commit is contained in:
Gilles Leblanc 2014-09-26 07:48:33 -04:00
parent ab17d31bbf
commit 8e77422d8e
4 changed files with 52 additions and 19 deletions

View file

@ -129,6 +129,7 @@ flaky_gpu,flaky_linux == acid2_noscroll.html acid2_ref_broken.html
== float_table_a.html float_table_ref.html
== table_containing_block_a.html table_containing_block_ref.html
== link_style_order.html link_style_order_ref.html
== link_style_dynamic_addition.html link_style_dynamic_addition_ref.html
== percent_height.html percent_height_ref.html
== inline_block_with_margin_a.html inline_block_with_margin_ref.html
== table_padding_a.html table_padding_ref.html

View file

@ -0,0 +1,11 @@
<html>
<head></head>
<body>
<script>
var link = document.createElement("link");
document.head.appendChild(link);
link.setAttribute("rel", "stylesheet");
link.setAttribute("href", "data:text/css,body{background:green}");
</script>
</body>
</html>

View file

@ -0,0 +1,7 @@
<html>
<head>
<link rel="stylesheet" href="data:text/css,body{background:green}">
</head>
<body>
</body>
</html>