Closed GoogleCodeExporter closed 9 years ago
Hey Kim,
thank you submitting the issue! We are aware of it; let me explain in more
details:
+ Lagarto and LagartoDom (parsers behind Jerry) parses tags with namespaces
correctly, so in your example you will have nodes "cfg:test" and "cfg:nodes".
You can also see this in example:
https://github.com/oblac/jodd/commit/a67ce89e0db78fc0be267474de141d4b0543c88f
+ Jerry itself doesn't have any influence on this.
+ However, the problem is with CSSelly, our CSS selector engine. The "cfg:test"
is understood as tag "cfg" and pseudo class "test".
We are aware of this and already started looking for most convenient solution
for this use case:) We tried first to make Lagarto and Jerry to work with HTML
content, so now it's time to improve XML parsing support;)
Stay tuned!
Original comment by i...@jodd.org
on 26 Oct 2012 at 10:51
Fixed by this commit:
https://github.com/oblac/jodd/commit/d05eaf47edceaf1333ac07753acb65b6febd8075
Your usecase should looks like in jquery:
jerry.$("cfg\\:test").each(new JerryFunction() {
public boolean onNode(Jerry $this, int index) {
result.append($this.$("cfg\\:node").text());
return true;
}
});
I will start to upload changes to the site and to publish snapshot.
Original comment by i...@jodd.org
on 26 Oct 2012 at 5:23
Thank you. Your update is exactly what I need.
I wish you have a good day.
Good Bye.
2012년 10월 27일 토요일에 님이 작성:
Original comment by doosi...@gmail.com
on 26 Oct 2012 at 5:28
Original issue reported on code.google.com by
doosi...@gmail.com
on 26 Oct 2012 at 5:36