diff options
-rw-r--r-- | render/box_construct.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/render/box_construct.c b/render/box_construct.c index 1f6c628d2..b8aa5e600 100644 --- a/render/box_construct.c +++ b/render/box_construct.c @@ -1481,8 +1481,9 @@ bool box_a(BOX_SPECIAL_PARAMS) /* the default may have been overridden by a * <base target=...>, so this is different to 0 */ box->target = TARGET_SELF; - else if (('a' <= s[0] && s[0] <= 'z') || - ('A' <= s[0] && s[0] <= 'Z')) { /* [6.16] */ + else { + /* 6.16 says that frame names must begin with [a-zA-Z] + * This doesn't match reality, so just take anything */ box->target = talloc_strdup(content, (const char *) s); if (!box->target) { xmlFree(s); |