djspiewak/anti-xml

Zipper Context is Invalid for Deep-Select

Closed this issue · 2 comments

The code below produces java.lang.RuntimeException when entered into the scala console:

import com.codecommit.antixml._
((<html><head><title></title></head><body /></html>).anti \\ "body").unselect

Yeah, I know about this one. The zipper context is invalid for deep-select. As you can imagine, it's a little tricky to make that one work. Still trying to figure it out…

I've implemented a temporary fix in d62ada8. Basically, deep-select no longer returns a Zipper, but rather a Group. I'd rather just make the zipper work for deep-select, but that's still an open problem. Leaving this issue to track that effort.