Skip to content

Commit 36b453c

Browse files
committed
Merge remote-tracking branch 'web-animations-next/master' into HEAD
2 parents f2b89d7 + 8032ade commit 36b453c

File tree

5 files changed

+5
-6
lines changed

5 files changed

+5
-6
lines changed

src/animation-constructor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
return scope.timeline.play(new scope.Animation(this, effect, timing));
5252
};
5353

54-
var nullTarget = document.createElement('div');
54+
var nullTarget = document.createElementNS('http://www.w3.org/1999/xhtml', 'div');
5555
scope.newUnderlyingPlayerForAnimation = function(animation) {
5656
var target = animation.target || nullTarget;
5757
var effect = animation._effect;

src/apply-preserving-inline-style.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,7 @@
4747
// Stores the inline style of the element on its behalf while the
4848
// polyfill uses the element's inline style to simulate web animations.
4949
// This is needed to fake regular inline style CSSOM access on the element.
50-
this._surrogateElement = document.createElement('div');
51-
this._surrogateStyle = this._surrogateElement.style;
50+
this._surrogateStyle = document.createElementNS('http://www.w3.org/1999/xhtml', 'div').style;
5251
this._style = element.style;
5352
this._length = 0;
5453
this._isAnimatedProperty = {};

src/color-handler.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
(function(scope, testing) {
1616

17-
var canvas = document.createElement('canvas');
17+
var canvas = document.createElementNS('http://www.w3.org/1999/xhtml', 'canvas');
1818
canvas.width = canvas.height = 1;
1919
var context = canvas.getContext('2d');
2020

src/effect-callback.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
// limitations under the License.
1414
(function(shared, scope, testing) {
1515

16-
var nullTarget = document.createElement('div');
16+
var nullTarget = document.createElementNS('http://www.w3.org/1999/xhtml', 'div');
1717

1818
var sequenceNumber = 0;
1919
scope.bindPlayerForCustomEffect = function(player) {

src/normalize-keyframes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@
108108
]
109109
};
110110

111-
var shorthandExpanderElem = document.createElement('div');
111+
var shorthandExpanderElem = document.createElementNS('http://www.w3.org/1999/xhtml', 'div');
112112

113113
var borderWidthAliases = {
114114
thin: '1px',

0 commit comments

Comments
 (0)