Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patch to make w3m’s handling of the a element HTML5 compatible (when the stream is HTML5) #146

Merged
merged 1 commit into from
Aug 30, 2020

Commits on Aug 25, 2020

  1. In HTML5 anchors should not be closed when encountering divs, for exa…

    …mple, but should be closed when encountering buttons, for example. Many sites that use HTML5-style anchors end up having links displayed with zero-length link texts. The proposed patch correct this behaviour by detecting whether the document is HTML5, then suppressing the close-anchor action in CLOSE_A if it's an HTML5 document. A new macro handles the HTML5-specific cases where anchors are not already always closed.
    
    This also fixes a bug in the tokenizing FSM in etc.c that prevented the !doctype element from being recognized; the fix is necessary because HTML5 detection depends on checking the !doctype element.
    acli committed Aug 25, 2020
    Configuration menu
    Copy the full SHA
    48c9ec5 View commit details
    Browse the repository at this point in the history