<< Back to previous view

[DXML-47] Failed to emit CDATA in ClojureScript Created: 26/Jul/17  Updated: 26/Jul/17

Status: Open
Project: data.xml
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Defect Priority: Major
Reporter: Heehong Moon Assignee: Ryan Senior
Resolution: Unresolved Votes: 0
Labels: None


 Description   

Emitting CDATA in ClojureScript causes an error.

dev:cljs.user=> (xml/emit-str (xml/element :a {} "test"))
"<a>test</a>"
dev:cljs.user=> (xml/emit-str (xml/element :a {} (xml/cdata "<b></b>")))
#object[Error Error: No protocol method AsQName.qname-uri defined for type null: ]
   cljs.core/missing-protocol (jar:file:/Users/bbirec/.m2/repository/org/clojure/clojurescript/1.9.229/clojurescript-1.9.229.jar!/cljs/core.cljs:270:4)
   clojure.data.xml.protocols/qname-uri (jar:file:/Users/bbirec/.m2/repository/org/clojure/data.xml/0.2.0-alpha2/data.xml-0.2.0-alpha2.jar!/clojure/data/xml/protocols.cljc:13:1)
   clojure.data.xml.name/qname-uri (jar:file:/Users/bbirec/.m2/repository/org/clojure/data.xml/0.2.0-alpha2/data.xml-0.2.0-alpha2.jar!/clojure/data/xml/name.cljc:42:4)
   Function.clojure.data.xml.js.dom.element_STAR_.cljs$core$IFn$_invoke$arity$3 (jar:file:/Users/bbirec/.m2/repository/org/clojure/data.xml/0.2.0-alpha2/data.xml-0.2.0-alpha2.jar!/clojure/data/xml/js/dom.cljs:32:36)
   clojure.data.xml.js.dom/element* (jar:file:/Users/bbirec/.m2/repository/org/clojure/data.xml/0.2.0-alpha2/data.xml-0.2.0-alpha2.jar!/clojure/data/xml/js/dom.cljs:15:1)
   clojure$data$xml$js$dom$element_node (jar:file:/Users/bbirec/.m2/repository/org/clojure/data.xml/0.2.0-alpha2/data.xml-0.2.0-alpha2.jar!/clojure/data/xml/js/dom.cljs:97:30)
   cljs.core.map.cljs$core$IFn$_invoke$arity$2 (jar:file:/Users/bbirec/.m2/repository/org/clojure/clojurescript/1.9.229/clojurescript-1.9.229.jar!/cljs/core.cljs:4466:30)
   cljs.core.LazySeq.sval (jar:file:/Users/bbirec/.m2/repository/org/clojure/clojurescript/1.9.229/clojurescript-1.9.229.jar!/cljs/core.cljs:3223:18)
   cljs.core.LazySeq.cljs$core$ISeqable$_seq$arity$1 (jar:file:/Users/bbirec/.m2/repository/org/clojure/clojurescript/1.9.229/clojurescript-1.9.229.jar!/cljs/core.cljs:3277:12)
nil
dev:cljs.user=>





Generated at Fri Jul 28 09:49:17 CDT 2017 using JIRA 4.4#649-r158309.