#94 closed defect (worksforme)
Comments ignored with match functions
Reported by: | alberto@… | Owned by: | cmlenz |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | General | Version: | 0.3.5 |
Keywords: | Cc: |
Description
I'm trying to render an IE conditional comment inside a node that is being processed by a match function. However, the comment is striped out. If I nest the rendering inside a child of that node, it appears fine.
Attached is a unit test that shows the problem. I suspect I might be doing something wrong in the select('*') selector which might not be returning comments, if that is the case, how could I render them?
Thanks :)
Alberto
Attachments (1)
Change History (3)
Changed 18 years ago by alberto
comment:1 Changed 18 years ago by cmlenz
- Milestone 0.4 deleted
- Resolution set to worksforme
- Status changed from new to closed
comment:2 Changed 18 years ago by cmlenz
s/test()/text()
Note: See
TracTickets for help on using
tickets.
The XPath pattern “*” does not select comment nodes. You'd need to use “*|comment()” to get both element and top-level comment nodes, or “*|comment()|test()” to also include top-level text nodes.