Actions
Bug #2278
closed![Author: Michael Kay](https://www.gravatar.com/avatar/db6526d63053f09b62e52c2da8b2230a?rating=PG&size=50&default=https%3A%2F%2Fassets.plan.io%2Fimages%2Fdefault_avatar.png)
![Assignee: Michael Kay](https://www.gravatar.com/avatar/db6526d63053f09b62e52c2da8b2230a?rating=PG&size=22&default=https%3A%2F%2Fassets.plan.io%2Fimages%2Fdefault_avatar.png)
Pattern descendant::text()[1] gives a spurious warning, and no matches
Start date:
2015-01-04
Due date:
% Done:
100%
Estimated time:
Legacy ID:
Applies to branch:
9.6
Fix Committed on Branch:
9.6
Fixed in Maintenance Release:
Platforms:
Description
When the pattern match="descendant::text()[1]" is used in a template rule, then
(a) there is a spurious warning that "the descendant axis starting at a text node will never select anything"
(b) the pattern never matches anything.
Both effects are caused by an incorrect type inference.
Added to W3C test suite as test case match-236.
Please register to edit this issue
Actions