aboutsummaryrefslogtreecommitdiffstats
path: root/fm.h
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 /fm.h
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 'fm.h')
-rw-r--r--fm.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/fm.h b/fm.h
index 6ce0f19..e536e51 100644
--- a/fm.h
+++ b/fm.h
@@ -662,6 +662,7 @@ struct readbuffer {
#endif /* FORMAT_NICE */
#define RB_DEL 0x100000
#define RB_S 0x200000
+#define RB_HTML5 0x400000
#define RB_GET_ALIGN(obuf) ((obuf)->flag&RB_ALIGN)
#define RB_SET_ALIGN(obuf,align) {(obuf)->flag &= ~RB_ALIGN; (obuf)->flag |= (align); }
@@ -674,7 +675,7 @@ struct readbuffer {
RB_SET_ALIGN(obuf,(obuf)->flag_stack[--(obuf)->flag_sp]); \
}
-/* status flags */
+/* state of token scanning finite state machine */
#define R_ST_NORMAL 0 /* normal */
#define R_ST_TAG0 1 /* within tag, just after < */
#define R_ST_TAG 2 /* within tag */