aboutsummaryrefslogtreecommitdiffstats
path: root/etc.c
diff options
context:
space:
mode:
authorTatsuya Kinoshita <tats@debian.org>2020-08-30 00:57:45 +0000
committerGitHub <noreply@github.com>2020-08-30 00:57:45 +0000
commit6339dd9f13ec171765a139cf2ec3c7f669235ecd (patch)
tree7d9de0bb4df6ac6883de4ddb9fc83a371286ddd9 /etc.c
parentMerge pull request #145 from acli/20200824_zh_TW_CLEANED (diff)
parentIn HTML5 anchors should not be closed when encountering divs, for example, bu... (diff)
downloadw3m-6339dd9f13ec171765a139cf2ec3c7f669235ecd.tar.gz
w3m-6339dd9f13ec171765a139cf2ec3c7f669235ecd.zip
Merge pull request #146 from acli/20200821_a_CLEANED
Patch to make w3m’s handling of the a element HTML5 compatible (when the stream is HTML5)
Diffstat (limited to 'etc.c')
-rw-r--r--etc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/etc.c b/etc.c
index 37c4f15..16d1295 100644
--- a/etc.c
+++ b/etc.c
@@ -727,6 +727,11 @@ next_status(char c, int *status)
case '>':
*status = R_ST_NORMAL;
break;
+ case 'D':
+ case 'd':
+ /* could be a !doctype */
+ *status = R_ST_TAG;
+ break;
default:
*status = R_ST_IRRTAG;
}