@@ -621,7 +621,7 @@ export const parseTemplate = (
621
621
) ;
622
622
const newData = str . value ;
623
623
if ( stack [ stackLength ] !== newData ) {
624
- ( nodes [ stackLength ] as ChildNode as Text ) . data = newData ;
624
+ ( nodes [ stackLength ] as ChildNode as Text ) . nodeValue = newData ;
625
625
stack [ stackLength ] = newData ;
626
626
}
627
627
} ;
@@ -653,7 +653,7 @@ export const parseTemplate = (
653
653
) ;
654
654
const newData = str . value ;
655
655
stack [ stackLength ] = newData ;
656
- ( node as Text ) . data = newData ;
656
+ ( node as Text ) . nodeValue = newData ;
657
657
nodes [ stackLength ] = node as Element ;
658
658
} ;
659
659
} else {
@@ -673,7 +673,7 @@ export const parseTemplate = (
673
673
) => {
674
674
const newData = currentIndexData [ currentProp ] ;
675
675
if ( stack [ stackLength ] !== newData ) {
676
- ( nodes [ stackLength ] as ChildNode as Text ) . data =
676
+ ( nodes [ stackLength ] as ChildNode as Text ) . nodeValue =
677
677
newData ;
678
678
stack [ stackLength ] = newData ;
679
679
}
@@ -697,7 +697,7 @@ export const parseTemplate = (
697
697
eachValue ?: DynamicEachDataType
698
698
) => {
699
699
stack [ stackLength ] = indexData [ currentProp ] ;
700
- ( node as Text ) . data = stack [ stackLength ] ;
700
+ ( node as Text ) . nodeValue = stack [ stackLength ] ;
701
701
nodes [ stackLength ] = node as Element ;
702
702
} ;
703
703
} else {
@@ -711,7 +711,7 @@ export const parseTemplate = (
711
711
) => {
712
712
const newData = ( valKey . render as any ) ( currentIndexData ) ;
713
713
if ( stack [ stackLength ] !== newData ) {
714
- ( nodes [ stackLength ] as ChildNode as Text ) . data =
714
+ ( nodes [ stackLength ] as ChildNode as Text ) . nodeValue =
715
715
newData ;
716
716
stack [ stackLength ] = newData ;
717
717
}
@@ -735,7 +735,7 @@ export const parseTemplate = (
735
735
eachValue ?: DynamicEachDataType
736
736
) => {
737
737
stack [ stackLength ] = ( valKey . render as any ) ( indexData ) ;
738
- ( node as Text ) . data = stack [ stackLength ] ;
738
+ ( node as Text ) . nodeValue = stack [ stackLength ] ;
739
739
nodes [ stackLength ] = node as Element ;
740
740
} ;
741
741
}
@@ -750,7 +750,8 @@ export const parseTemplate = (
750
750
) => {
751
751
const newData = currentIndexData ;
752
752
if ( stack [ stackLength ] !== newData ) {
753
- ( nodes [ stackLength ] as ChildNode as Text ) . data = newData ;
753
+ ( nodes [ stackLength ] as ChildNode as Text ) . nodeValue =
754
+ newData ;
754
755
stack [ stackLength ] = newData ;
755
756
}
756
757
} ;
@@ -773,7 +774,7 @@ export const parseTemplate = (
773
774
eachValue ?: DynamicEachDataType
774
775
) => {
775
776
stack [ stackLength ] = indexData ;
776
- ( node as Text ) . data = stack [ stackLength ] ;
777
+ ( node as Text ) . nodeValue = stack [ stackLength ] ;
777
778
nodes [ stackLength ] = node as Element ;
778
779
} ;
779
780
}
@@ -788,7 +789,8 @@ export const parseTemplate = (
788
789
) => {
789
790
const newData = ( valKey . render as any ) ( currentImportData ) ;
790
791
if ( stack [ stackLength ] !== newData ) {
791
- ( nodes [ stackLength ] as ChildNode as Text ) . data = newData ;
792
+ ( nodes [ stackLength ] as ChildNode as Text ) . nodeValue =
793
+ newData ;
792
794
stack [ stackLength ] = newData ;
793
795
}
794
796
} ;
@@ -811,7 +813,7 @@ export const parseTemplate = (
811
813
eachValue ?: DynamicEachDataType
812
814
) => {
813
815
stack [ stackLength ] = ( valKey . render as any ) ( importData ) ;
814
- ( node as Text ) . data = stack [ stackLength ] ;
816
+ ( node as Text ) . nodeValue = stack [ stackLength ] ;
815
817
nodes [ stackLength ] = node as Element ;
816
818
} ;
817
819
case 3 :
@@ -825,7 +827,7 @@ export const parseTemplate = (
825
827
) => {
826
828
const newData = currentEachIndex ;
827
829
if ( stack [ stackLength ] !== newData ) {
828
- ( nodes [ stackLength ] as ChildNode as Text ) . data =
830
+ ( nodes [ stackLength ] as ChildNode as Text ) . nodeValue =
829
831
newData as any ;
830
832
stack [ stackLength ] = newData ;
831
833
}
@@ -849,7 +851,9 @@ export const parseTemplate = (
849
851
eachValue ?: DynamicEachDataType
850
852
) => {
851
853
stack [ stackLength ] = eachIndex ;
852
- ( node as Text ) . data = stack [ stackLength ] as unknown as string ;
854
+ ( node as Text ) . nodeValue = stack [
855
+ stackLength
856
+ ] as unknown as string ;
853
857
nodes [ stackLength ] = node as Element ;
854
858
} ;
855
859
default :
@@ -863,7 +867,7 @@ export const parseTemplate = (
863
867
) => {
864
868
const newData = undefined ;
865
869
if ( stack [ stackLength ] !== newData ) {
866
- ( nodes [ stackLength ] as ChildNode as Text ) . data =
870
+ ( nodes [ stackLength ] as ChildNode as Text ) . nodeValue =
867
871
newData as any ;
868
872
stack [ stackLength ] = newData ;
869
873
}
@@ -885,7 +889,9 @@ export const parseTemplate = (
885
889
eachValue ?: DynamicEachDataType
886
890
) => {
887
891
stack [ stackLength ] = undefined ;
888
- ( node as Text ) . data = stack [ stackLength ] as unknown as string ;
892
+ ( node as Text ) . nodeValue = stack [
893
+ stackLength
894
+ ] as unknown as string ;
889
895
nodes [ stackLength ] = node as Element ;
890
896
} ;
891
897
}
@@ -905,7 +911,7 @@ export const parseTemplate = (
905
911
valKey . properties as Array < string >
906
912
) ;
907
913
if ( stack [ stackLength ] !== newData ) {
908
- ( nodes [ stackLength ] as ChildNode as Text ) . data = newData ;
914
+ ( nodes [ stackLength ] as ChildNode as Text ) . nodeValue = newData ;
909
915
stack [ stackLength ] = newData ;
910
916
}
911
917
} ;
@@ -930,7 +936,7 @@ export const parseTemplate = (
930
936
firstKeyData ,
931
937
valKey . properties as Array < string >
932
938
) ;
933
- ( node as Text ) . data = stack [ stackLength ] ;
939
+ ( node as Text ) . nodeValue = stack [ stackLength ] ;
934
940
nodes [ stackLength ] = node as Element ;
935
941
} ;
936
942
} else {
@@ -944,7 +950,7 @@ export const parseTemplate = (
944
950
) => {
945
951
const newData = currentIndexData [ valKey . originKey ] ;
946
952
if ( stack [ stackLength ] !== newData ) {
947
- ( nodes [ stackLength ] as ChildNode as Text ) . data = newData ;
953
+ ( nodes [ stackLength ] as ChildNode as Text ) . nodeValue = newData ;
948
954
stack [ stackLength ] = newData ;
949
955
}
950
956
} ;
@@ -965,7 +971,7 @@ export const parseTemplate = (
965
971
eachValue ?: DynamicEachDataType
966
972
) => {
967
973
stack [ stackLength ] = indexData [ valKey . originKey ] ;
968
- ( node as Text ) . data = stack [ stackLength ] ;
974
+ ( node as Text ) . nodeValue = stack [ stackLength ] ;
969
975
nodes [ stackLength ] = node as Element ;
970
976
} ;
971
977
}
0 commit comments