File tree 1 file changed +0
-19
lines changed
1 file changed +0
-19
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,6 @@ func NewDOMParser() domParser { return domParser{} }
54
54
55
55
type ElementSteps interface {
56
56
AppendChild (parent dom.Node , child dom.Node ) dom.Node
57
- Connected (n dom.Element )
58
57
}
59
58
60
59
type BaseRules struct {}
@@ -67,8 +66,6 @@ func (r BaseRules) AppendChild(parent dom.Node, child dom.Node) dom.Node {
67
66
return res
68
67
}
69
68
70
- func (r BaseRules ) Connected (n dom.Element ) {}
71
-
72
69
type TemplateElementRules struct { BaseRules }
73
70
74
71
func (TemplateElementRules ) AppendChild (parent dom.Node , child dom.Node ) dom.Node {
@@ -94,16 +91,6 @@ func parseIntoDocument(doc dom.Document, r io.Reader) error {
94
91
return nil
95
92
}
96
93
97
- func cloneNode (n * html.Node ) * html.Node {
98
- return & html.Node {
99
- Type : n .Type ,
100
- Data : n .Data ,
101
- DataAtom : n .DataAtom ,
102
- Namespace : n .Namespace ,
103
- Attr : n .Attr ,
104
- }
105
- }
106
-
107
94
// convertNS converts the namespace URI from x/net/html to the _right_
108
95
// namespace.
109
96
// SVG elements have namespace "svg"
@@ -142,12 +129,6 @@ func createElementFromNode(
142
129
newNode = newElm
143
130
newNode = rules .AppendChild (parent , newElm )
144
131
iterate (d , newNode , source )
145
- // ?
146
- if rules != nil {
147
- if newElm .IsConnected () {
148
- rules .Connected (newElm )
149
- }
150
- }
151
132
return newElm
152
133
}
153
134
You can’t perform that action at this time.
0 commit comments