mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-01-23 02:42:11 +03:00
Fix frame targets.
svn path=/trunk/netsurf/; revision=7729
This commit is contained in:
parent
0c1d88b218
commit
90c0fb6f3e
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user