Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
Fix element issue again
Browse files Browse the repository at this point in the history
  • Loading branch information
arv committed Jan 15, 2014
1 parent a9ec396 commit f5d8437
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/wrappers/Element.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,8 @@
mixin(Element.prototype, ParentNodeInterface);
mixin(Element.prototype, SelectorsInterface);

registerWrapper(OriginalElement, Element, document.createElement(null, 'x'));
registerWrapper(OriginalElement, Element,
document.createElementNS(null, 'x'));

// TODO(arv): Export setterDirtiesAttribute and apply it to more bindings
// that reflect attributes.
Expand Down
4 changes: 2 additions & 2 deletions test/js/SVGElement.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ suite('SVGElement', function() {

// IE does not create an SVGElement if the local name is not a known SVG
// element.
if (!/Trident/.test(navigator.userAgent))
assert.instanceOf(el, SVGElement);
// Safari 7 has the same issue but nightly WebKit works as expected.
// assert.instanceOf(el, SVGElement);

assert.instanceOf(el, Element);
assert.instanceOf(el, Node);
Expand Down

0 comments on commit f5d8437

Please sign in to comment.