Skip to content

up-hungry on a parent causes up.render() to fail to target #681

@c33howard

Description

@c33howard

Bug description

I have a parent div with up-hungry. When clicking a button, I call await up-render() with a target of the nested element. The resulting response object has an empty response.fragments array. In unpoly 3.3.0 and earlier, the response.fragments array was populated.

I bisected the problem to this commit:

cc5a31f

Reproduction project

https://glitch.com/edit/#!/honeysuckle-vast-bead

In the repro, you can change the script version. I expect both buttons to be replaced with the string replacement, while an alert demonstrates an empty fragment response. Note that the difference between child-1 and child-2 is up-hungry.

Steps to reproduce the behavior:

  1. Go to reproduction project linked above
  2. Click the child buttons
  3. Success is no alerts

Expected behavior

Button should be replaced with the string replacement-1

Browser version

  • OS: linux
  • Browser brave and firefox
  • Version latest

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions