mirror of
https://github.com/servo/servo.git
synced 2025-08-22 05:45:33 +01:00
Update web-platform-tests to revision 85e8612e81c8b478c8cac7260436646e48d3f7ae
This commit is contained in:
parent
a14b952fa3
commit
87dcce0f06
66 changed files with 697 additions and 266 deletions
|
@ -21,13 +21,7 @@ function createTestTree(node) {
|
|||
function attachShadowFromTemplate(template) {
|
||||
let parent = template.parentNode;
|
||||
parent.removeChild(template);
|
||||
let shadowRoot;
|
||||
if (template.getAttribute('data-mode') === 'v0') {
|
||||
// For legacy Shadow DOM
|
||||
shadowRoot = parent.createShadowRoot();
|
||||
} else {
|
||||
shadowRoot = parent.attachShadow({mode: template.getAttribute('data-mode')});
|
||||
}
|
||||
let shadowRoot = parent.attachShadow({mode: template.getAttribute('data-mode')});
|
||||
let id = template.id;
|
||||
if (id) {
|
||||
shadowRoot.id = id;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue