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

SVG elements aren't polyfilled #95

Closed
treshugart opened this issue Jul 6, 2016 · 0 comments · Fixed by #96
Closed

SVG elements aren't polyfilled #95

treshugart opened this issue Jul 6, 2016 · 0 comments · Fixed by #96
Labels

Comments

@treshugart
Copy link
Member

Test to reproduce:

describe('SVGElement', function () {
  it('should be polyfilled', function () {
    const div = document.createElement('div');
    const svg = document.createElementNS('http://www.w3.org/2000/svg', 'svg');
    div.attachShadow({ mode: 'open' });
    div.shadowRoot.appendChild(document.createElement('slot'));
    div.appendChild(svg);
    expect(svg.parentNode).to.equal(div);
  });
});

We probably don't need to test all methods and properties like we do on HTMLElement, but we should ensure that the polyfilled methods on SVGElement equal the methods on HTMLElement.

@treshugart treshugart added the bug label Jul 6, 2016
treshugart added a commit that referenced this issue Jul 6, 2016
They aren't polyfilled yet so this will fail the build. Subsequent commits will fix.

#95
treshugart added a commit that referenced this issue Jul 7, 2016
#95 - Write test for SVG elements to make sure they're polyfilled.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant