Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add node document-fragment type check #927

Merged
merged 1 commit into from
Nov 13, 2018

Conversation

NorbertB29
Copy link

It solves the node.getAttribute is not a function issue in Shadow DOM.

@Fuzzyma
Copy link
Member

Fuzzyma commented Nov 13, 2018

This sounds useful. Can you give me one concrete piece of sample code?

@coveralls
Copy link

Coverage Status

Coverage remained the same at 98.031% when pulling 5fedccf on NorbertB29:fix/node_document_fragment_type into 4f2fd65 on svgdotjs:master.

@NorbertB29
Copy link
Author

This sounds useful. Can you give me one concrete piece of sample code?

Yes, we are using svg.js in polymer 2 and we successfully reproduced this issue in this jsfiddle:
https://jsfiddle.net/vtqyg90m/1/

@Fuzzyma
Copy link
Member

Fuzzyma commented Nov 13, 2018

Mh when i load this page I just get an "Polymer is undefined" error

@NorbertB29
Copy link
Author

Mh when i load this page I just get an "Polymer is undefined" error

Try in Chrome please. It works for me.

@Fuzzyma Fuzzyma merged commit f066d11 into svgdotjs:master Nov 13, 2018
@Fuzzyma
Copy link
Member

Fuzzyma commented Nov 13, 2018

Ok, forgot to ask. Can you add tests?

@NorbertB29
Copy link
Author

I opened a new PR for the unit tests please check it. Also we would like ask you to make a patch release with this fix as soon as possible please. Thank you!

Fuzzyma added a commit that referenced this pull request Nov 13, 2018
### Fixed
- fixed calling `parent()` on `documentFragment`s children (#927)
- parser is not focusable anymore (#908)
- `SVG.Element.click(null)` correctly unbinds the event (#878)
- fix memory leak (#905)

### Added
- `SVG.Set` now accepts another Set as input (#893)
- `on()/off()` accepts multiple event names as input (backport from 3.0)
@Fuzzyma
Copy link
Member

Fuzzyma commented Nov 13, 2018

Here you go

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants