Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle dynamic addition of attributes
Handles dynamic addition of attributes to <link rel=stylesheet> elements. Fixes #3361
- Loading branch information
1 parent
ab17d31
commit 8e77422
Showing
4 changed files
with
52 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<html> | ||
<head> | ||
<link rel="stylesheet" href="data:text/css,body{background:green}"> | ||
</head> | ||
<body> | ||
</body> | ||
</html> |
8e77422
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
saw approval from jdm
at gilles-leblanc@8e77422
8e77422
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
merging gilles-leblanc/servo/issue-3361 = 8e77422 into bors-servo-integration-3432-issue-3361
8e77422
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
gilles-leblanc/servo/issue-3361 = 8e77422 merged ok, testing candidate = 1e5770a
8e77422
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all tests pass:
success: http://build.servo.org/builders/mac/builds/58
8e77422
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fast-forwarding master to bors-servo-integration-3432-issue-3361 = 1e5770a