File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
10175One 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
10786Which are parsed and added to ` document.groups ` by names.
10887This 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
You can’t perform that action at this time.
0 commit comments