Skip to content

HTMLParser cannot handle '&' and non-ascii characters in attribute names #48182

@yanne

Description

@yanne
mannequin
BPO 3932
Nosy @rhettinger, @ezio-melotti, @merwok, @bitdancer
Files
  • test.py: Fixed minimal script to produce the error
  • HTMLParser-unescape-fix.diff: HTMLParser.unescape: return str value for str input
  • issue3932-test.diff: Failing test
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = 'https://github.com/ezio-melotti'
    closed_at = <Date 2011-12-19.05:20:04.945>
    created_at = <Date 2008-09-22.12:32:10.422>
    labels = ['type-feature', 'docs']
    title = "HTMLParser cannot handle '&' and non-ascii characters in attribute names"
    updated_at = <Date 2011-12-19.05:20:04.944>
    user = 'https://bugs.python.org/yanne'

    bugs.python.org fields:

    activity = <Date 2011-12-19.05:20:04.944>
    actor = 'ezio.melotti'
    assignee = 'ezio.melotti'
    closed = True
    closed_date = <Date 2011-12-19.05:20:04.945>
    closer = 'ezio.melotti'
    components = ['Documentation']
    creation = <Date 2008-09-22.12:32:10.422>
    creator = 'yanne'
    dependencies = []
    files = ['11690', '14606', '23621']
    hgrepos = []
    issue_num = 3932
    keywords = ['patch']
    message_count = 10.0
    messages = ['73571', '73908', '74234', '74239', '91084', '96320', '147189', '148123', '148544', '149817']
    nosy_count = 10.0
    nosy_names = ['rhettinger', 'wiget', 'ezio.melotti', 'hodgestar', 'eric.araujo', 'yanne', 'r.david.murray', 'zchyla', 'sergiomb2', 'python-dev']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue3932'
    versions = ['Python 2.7']

    Metadata

    Metadata

    Assignees

    Labels

    docsDocumentation in the Doc dirtype-featureA feature request or enhancement

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions