8152527: Relative rewriteSystem with xml:base at group level failed

Reviewed-by: lancea
This commit is contained in:
Joe Wang 2016-04-14 16:36:04 -07:00
parent 274668112d
commit 7cd550290a
3 changed files with 58 additions and 1 deletions

View file

@ -249,8 +249,10 @@ class GroupEntry extends BaseEntry {
//use it if there is a match of the system type
return match;
} else if (grpEntry.longestRewriteMatch > longestRewriteMatch) {
longestRewriteMatch = grpEntry.longestRewriteMatch;
rewriteMatch = match;
} else if (grpEntry.longestSuffixMatch > longestSuffixMatch) {
longestSuffixMatch = grpEntry.longestSuffixMatch;
suffixMatch = match;
}
break;