Comparing version 3.0.2 to 3.0.3
@@ -63,3 +63,6 @@ import { vnode } from "./vnode"; | ||
const id = elm.id ? "#" + elm.id : ""; | ||
const c = elm.className ? "." + elm.className.split(" ").join(".") : ""; | ||
// elm.className doesn't return a string when elm is an SVG element inside a shadowRoot. | ||
// https://stackoverflow.com/questions/29454340/detecting-classname-of-svganimatedstring | ||
const classes = elm.getAttribute("class"); | ||
const c = classes ? "." + classes.split(" ").join(".") : ""; | ||
return vnode(api.tagName(elm).toLowerCase() + id + c, {}, [], undefined, elm); | ||
@@ -66,0 +69,0 @@ } |
@@ -137,3 +137,6 @@ 'use strict'; | ||
const id = elm.id ? "#" + elm.id : ""; | ||
const c = elm.className ? "." + elm.className.split(" ").join(".") : ""; | ||
// elm.className doesn't return a string when elm is an SVG element inside a shadowRoot. | ||
// https://stackoverflow.com/questions/29454340/detecting-classname-of-svganimatedstring | ||
const classes = elm.getAttribute("class"); | ||
const c = classes ? "." + classes.split(" ").join(".") : ""; | ||
return vnode(api.tagName(elm).toLowerCase() + id + c, {}, [], undefined, elm); | ||
@@ -140,0 +143,0 @@ } |
@@ -1,2 +0,2 @@ | ||
## [3.0.2](https://github.com/snabbdom/snabbdom/compare/v3.0.1...v3.0.2) (2021-06-01) | ||
## [3.0.3](https://github.com/snabbdom/snabbdom/compare/v3.0.2...v3.0.3) (2021-06-04) | ||
@@ -6,4 +6,10 @@ | ||
* avoid className check to handle SVG elements within shadow DOM ([#966](https://github.com/snabbdom/snabbdom/issues/966)) ([95fa8ad](https://github.com/snabbdom/snabbdom/commit/95fa8ad6b6957adfbbd6d080ffc82a9381ae19fc)), closes [#965](https://github.com/snabbdom/snabbdom/issues/965) | ||
* build and test code before release ([b8707ad](https://github.com/snabbdom/snabbdom/commit/b8707ad68e2cb7257528f22157a18ded53379d0a)) | ||
## [3.0.2](https://github.com/snabbdom/snabbdom/compare/v3.0.1...v3.0.2) (2021-06-01) | ||
### Bug Fixes | ||
- avoid className check to handle SVG elements within shadow DOM ([#966](https://github.com/snabbdom/snabbdom/issues/966)) ([95fa8ad](https://github.com/snabbdom/snabbdom/commit/95fa8ad6b6957adfbbd6d080ffc82a9381ae19fc)), closes [#965](https://github.com/snabbdom/snabbdom/issues/965) | ||
## [3.0.1](https://github.com/snabbdom/snabbdom/compare/v3.0.0...v3.0.1) (2021-03-28) | ||
@@ -10,0 +16,0 @@ |
{ | ||
"name": "snabbdom", | ||
"version": "3.0.2", | ||
"version": "3.0.3", | ||
"description": "A virtual DOM library with focus on simplicity, modularity, powerful features and performance.", | ||
@@ -37,3 +37,3 @@ "homepage": "https://github.com/snabbdom/snabbdom#readme", | ||
"benchmark": "cross-env FILES_PATTERN=\"test-bundles/benchmark/**/*.js\" karma start karma.conf.cjs --concurrency=1", | ||
"release": "release-it", | ||
"release": "npm run test && release-it", | ||
"test:ci": "npm test && cross-env ES5=true npm run unit", | ||
@@ -40,0 +40,0 @@ "test": "npm run build && npm run lint && npm run unit" |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
415759
121
8561