Closed cleong-tc closed 5 years ago
hey @cleong-tc thanks for submitting these! The PRs look good, but would you consider also including a test (in can-attribute-observable
) and opening an additional PR for the master branch of can-dom-mutate
? To accept these for the master branches of the other two projects we'll need to add compatibility to the master branch of can-dom-mutate
also.
@nlundquist : unit-tests pushed for can-attribute-observable
& can-dom-mutate
(1.x-legacy
& master
branches).
Awesome, thanks! Just released can-attribute-observable
, can you bump the version of can-dom-mutate
to 2.0.5 in your PR canjs/can-attribute-observable#38 ?
@nlundquist : thanks
Closing this issue due to all the fix PRs having been merged. Thanks again Colin.
How often can you reproduce it?
Description: if the svg-namespace-attribute is an expression, the svg-image does not render. hard-coded svg-namespace-attribute does render (e.g.
<use xlink:href="icons.svg#logo"></use>
) which was resolved by https://github.com/canjs/can-stache/pull/604 .for example, the stache...
does not render svg-image because
can-attribute-observable/behaviors.js
callssetAttribute()
instead ofsetAttributeNS()
.related to https://github.com/canjs/canjs/pull/2438
i am migrating from
donejs@1
(withcanjs@3
) todonejs@3
(withcanjs@5
), so bug probably re-introducted whencan-stache
switched fromcan-util/dom/attr
.fix PRs:
1.x-legacy
-branch)master
-branch)call-trace...
1)
can-stache/can-stache.js
loadscan-stache/src/html_section.js
2)
can-view-target/can-view-target.js
goes to...instead of...
3)
can-stache/src/text_section.js
goes to...4)
can-attribute-observable/behaviors.js
goes to...5)
can-dom-mutate/node/node.js
goes to...Steps to reproduce:
Expected results: the svg-image should render.
Actual results: the svg-image appears in the server-side-render (via donejs-ssr), but on the client-side-render the svg-image disappears.
Environment: