From 90c0fb6f3e49bcf43653e2daa3b691bff6a771f7 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Mon, 8 Jun 2009 09:34:58 +0000 Subject: Fix frame targets. svn path=/trunk/netsurf/; revision=7729 --- render/box_construct.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'render') 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 * , 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); -- cgit v1.2.3