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

[JSOUP-2224] add wildcards #2225

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Commits on Nov 16, 2024

  1. [JSOUP-2224] Added wildcards

    It is common for applications to use custom attributes, e.g., 'aria-*', and
    in fact with HTML 5(?) this is offically recognized with 'data-*' wildcards.
    It is often impossible to list all possible custom attributes, yet we want
    to be more selective than using ':all'.
    
    This patch adds support for both per-tag and global attribute wildcards.
    The wildcard must be recognized by `java.text.Pattern`, e.g., `data-.+`.
    The patch will quietly add the '^' and '$' delimiters to the provided
    pattern.
    beargiles committed Nov 16, 2024
    Configuration menu
    Copy the full SHA
    8653820 View commit details
    Browse the repository at this point in the history
  2. Fixed package name

    beargiles committed Nov 16, 2024
    Configuration menu
    Copy the full SHA
    748b267 View commit details
    Browse the repository at this point in the history
  3. [JSOUP-2224] fxed removeTags()

    Fixed removeTags() - it hadn't removed the wildcard attributes.
    
    Also changed the Map so the key is a TagName, not a String, in
    order to avoid any uncertainty regarding capitalization.
    beargiles committed Nov 16, 2024
    Configuration menu
    Copy the full SHA
    0ffb476 View commit details
    Browse the repository at this point in the history