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

xml.dom.minidom.Node.replaceChild(obj, x, x) removes child x #41386

Closed
xitnalta mannequin opened this issue Jan 1, 2005 · 3 comments
Closed

xml.dom.minidom.Node.replaceChild(obj, x, x) removes child x #41386

xitnalta mannequin opened this issue Jan 1, 2005 · 3 comments
Assignees

Comments

@xitnalta
Copy link
Mannequin

xitnalta mannequin commented Jan 1, 2005

BPO 1094164
Nosy @akuchling
Files
  • minidom.py.patch
  • 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/akuchling'
    closed_at = <Date 2005-11-22.19:05:20.000>
    created_at = <Date 2005-01-01.19:43:57.000>
    labels = ['expert-XML']
    title = 'xml.dom.minidom.Node.replaceChild(obj, x, x) removes child x'
    updated_at = <Date 2005-11-22.19:05:20.000>
    user = 'https://bugs.python.org/xitnalta'

    bugs.python.org fields:

    activity = <Date 2005-11-22.19:05:20.000>
    actor = 'akuchling'
    assignee = 'akuchling'
    closed = True
    closed_date = None
    closer = None
    components = ['XML']
    creation = <Date 2005-01-01.19:43:57.000>
    creator = 'xitnalta'
    dependencies = []
    files = ['6408']
    hgrepos = []
    issue_num = 1094164
    keywords = ['patch']
    message_count = 3.0
    messages = ['47443', '47444', '47445']
    nosy_count = 2.0
    nosy_names = ['akuchling', 'xitnalta']
    pr_nums = []
    priority = 'normal'
    resolution = 'accepted'
    stage = None
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue1094164'
    versions = ['Python 2.4']

    @xitnalta
    Copy link
    Mannequin Author

    xitnalta mannequin commented Jan 1, 2005

    A child was removed from a node if an attempt was made
    to replace it with itself. The cause was the
    comparison "if newChild is oldChild:" happening too
    late in the function's code, so I moved it before the
    "newChild.parentNode" check.

    @xitnalta xitnalta mannequin closed this as completed Jan 1, 2005
    @xitnalta xitnalta mannequin assigned akuchling Jan 1, 2005
    @xitnalta xitnalta mannequin added the topic-XML label Jan 1, 2005
    @xitnalta xitnalta mannequin closed this as completed Jan 1, 2005
    @xitnalta xitnalta mannequin assigned akuchling Jan 1, 2005
    @xitnalta xitnalta mannequin added the topic-XML label Jan 1, 2005
    @xitnalta
    Copy link
    Mannequin Author

    xitnalta mannequin commented Jan 1, 2005

    Logged In: YES
    user_id=163986

    The patch applies to CVS python/dist/src checked out half an
    hour ago.

    @akuchling
    Copy link
    Member

    Logged In: YES
    user_id=11375

    Good catch; thanks! Patch applied to HEAD and to
    release24-maint.

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 9, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant