Skip to content

Commit f31403e

Browse files
committed
Merge branch 'main' of https://github.com/FrameMuse/group
2 parents 2201028 + c03732d commit f31403e

2 files changed

Lines changed: 24 additions & 30 deletions

File tree

.github/FUNDING.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# These are supported funding model platforms
2+
3+
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
4+
patreon: framemuse
5+
open_collective: # Replace with a single Open Collective username
6+
ko_fi: framemuse
7+
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8+
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9+
liberapay: # Replace with a single Liberapay username
10+
issuehunt: # Replace with a single IssueHunt username
11+
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
12+
polar: # Replace with a single Polar username
13+
buy_me_a_coffee: # Replace with a single Buy Me a Coffee username
14+
thanks_dev: # Replace with a single thanks.dev username
15+
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']

README.md

Lines changed: 9 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -67,47 +67,26 @@ This implementation is exactly about fragments, which allows proper "Ownership S
6767

6868
## Serialization/Parsing
6969

70-
The plan is to implement either range-based grouping
71-
72-
```html
73-
<div>
74-
<group-relay data-range="4"></group-relay>
75-
<!-- Three next nodes, including comments -->
76-
<div>1</div>
77-
<div>2</div>
78-
<div>3</div>
79-
<div>Not included</div>
80-
</div>
81-
```
82-
83-
or children-based one
84-
85-
```html
86-
<div>
87-
<group-relay>
88-
<!-- Three next nodes, including comments -->
89-
<div>1</div>
90-
<div>2</div>
91-
<div>3</div>
92-
</group-relay>
93-
<div>Not included</div>
94-
</div>
95-
```
96-
97-
You can do it yourself by using [@robbiespeed comment](https://github.com/whatwg/dom/issues/736#issuecomment-2759861429).
70+
The plan is to implement widely accepted standard that used by frameworks like React, which is based on comment nodes (`<!--$-->`)
71+
that can be customized for wider usage.
9872

9973
## Naming
10074

10175
One of the proposed feature of `NodeGroup` is **named groups**.
10276

10377
```html
104-
<group-relay name="myGroup"></group-relay>
78+
<!--$Named-->
79+
<!--/$Named-->
80+
```
81+
```html
82+
<!--<Named>-->
83+
<!--</Named>-->
10584
```
10685

10786
Which are parsed and added to `document.groups` by names.
10887
This is not possible without DOM patching (even little one).
10988

110-
If anyone shows interest in having this feature, it can be added as `Group.list`.
89+
If anyone shows interest in having this feature, it can be added as `Group.list` (or similar).
11190

11291
## Parent Strategies
11392

0 commit comments

Comments
 (0)