Skip to content

Presence of data-template, without binding a list, should leave the parent "empty" #363

Closed
@g105b

Description

@g105b

When bindList is used, if the list is empty, the template parent will have all whitespace stripped so that CSS sees it as :empty.

This should be the case for simply having a data-template attribute on an element. Assuming there are no other children in the template parent, when the template item is removed from the DOM, the parent should have whitespace stripped so that if nothing is bound, css still sees the element as :empty.

Activity

added a commit that references this issue on Jan 17, 2023
3dbda21
added 2 commits that reference this issue on Jan 17, 2023
bfdbb05
fe3f2e3
added 5 commits that reference this issue on Jan 26, 2023
ec8babf
b92a98b
dd5d399
98beac1
7ae5310
added a commit that references this issue on Feb 15, 2023
7383f61
added 2 commits that reference this issue on Feb 27, 2023
e687d24
ffda274
added 3 commits that reference this issue on Jul 19, 2023
ad208ed
6829c86
70581eb
added a commit that references this issue on Aug 9, 2023
af9f693
added a commit that references this issue on Oct 19, 2023
12bf0c6
added 2 commits that reference this issue on Nov 10, 2023
3fd24a9
913b654
added a commit that references this issue on Dec 31, 2023
2762126
added a commit that references this issue on Jan 25, 2024
143aa97
added a commit that references this issue on Feb 4, 2024
ebe9545
added 2 commits that reference this issue on Feb 29, 2024
743c005
716acb1
added a commit that references this issue on Aug 12, 2024
1db4484
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Participants

    @g105b

    Issue actions

      Presence of data-template, without binding a list, should leave the parent "empty" · Issue #363 · phpgt/DomTemplate