diff options
author | Tatsuya Kinoshita <tats@debian.org> | 2020-08-30 00:57:45 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-30 00:57:45 +0000 |
commit | 6339dd9f13ec171765a139cf2ec3c7f669235ecd (patch) | |
tree | 7d9de0bb4df6ac6883de4ddb9fc83a371286ddd9 /fm.h | |
parent | Merge pull request #145 from acli/20200824_zh_TW_CLEANED (diff) | |
parent | In HTML5 anchors should not be closed when encountering divs, for example, bu... (diff) | |
download | w3m-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.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 */ |