This repository has been archived by the owner on Mar 13, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 49
/
shadowdom.js
71 lines (68 loc) · 2.33 KB
/
shadowdom.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
// Copyright 2013 The Polymer Authors. All rights reserved.
// Use of this source code is goverened by a BSD-style
// license that can be found in the LICENSE file.
(function() {
var thisFile = 'shadowdom.js';
var base = '';
Array.prototype.forEach.call(document.querySelectorAll('script[src]'), function(s) {
var src = s.getAttribute('src');
var re = new RegExp(thisFile + '[^\\\\]*');
var match = src.match(re);
if (match) {
base = src.slice(0, -match[0].length);
}
});
[
'../observe-js/src/observe.js',
'../WeakMap/weakmap.js',
'src/wrappers.js',
'src/microtask.js',
'src/MutationObserver.js',
"src/TreeScope.js",
'src/wrappers/events.js',
'src/wrappers/TouchEvent.js',
'src/wrappers/NodeList.js',
'src/wrappers/HTMLCollection.js',
'src/wrappers/Node.js',
'src/querySelector.js',
'src/wrappers/node-interfaces.js',
'src/wrappers/CharacterData.js',
'src/wrappers/Text.js',
'src/wrappers/DOMTokenList.js',
'src/wrappers/Element.js',
'src/wrappers/HTMLElement.js',
'src/wrappers/HTMLCanvasElement.js',
'src/wrappers/HTMLContentElement.js',
'src/wrappers/HTMLFormElement.js',
'src/wrappers/HTMLImageElement.js',
'src/wrappers/HTMLShadowElement.js',
'src/wrappers/HTMLTemplateElement.js',
'src/wrappers/HTMLMediaElement.js',
'src/wrappers/HTMLAudioElement.js',
'src/wrappers/HTMLOptionElement.js',
'src/wrappers/HTMLSelectElement.js',
'src/wrappers/HTMLTableElement.js',
'src/wrappers/HTMLTableSectionElement.js',
'src/wrappers/HTMLTableRowElement.js',
'src/wrappers/HTMLUnknownElement.js',
'src/wrappers/SVGElement.js',
'src/wrappers/SVGUseElement.js',
'src/wrappers/SVGElementInstance.js',
'src/wrappers/CanvasRenderingContext2D.js',
'src/wrappers/WebGLRenderingContext.js',
'src/wrappers/Range.js',
'src/wrappers/generic.js',
'src/wrappers/ShadowRoot.js',
'src/ShadowRenderer.js',
'src/wrappers/elements-with-form-property.js',
'src/wrappers/Selection.js',
'src/wrappers/Document.js',
'src/wrappers/Window.js',
'src/wrappers/DataTransfer.js',
'src/wrappers/FormData.js',
'src/wrappers/XMLHttpRequest.js',
'src/wrappers/override-constructors.js'
].forEach(function(src) {
document.write('<script src="' + base + src + '"></script>');
});
})();