Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/ampproject/worker-dom
/ createTextNode
Method
createTextNode
src/worker-thread/dom/Document.ts:135–137 ·
view source on GitHub ↗
(text: string)
Source
from the content-addressed store, hash-verified
133
}
134
135
public createTextNode(text: string): Text {
136
return
new
Text(text, this);
137
}
138
139
public createComment(text: string): Comment {
140
return
new
Comment(text, this);
Callers
15
cloneNode
Method · 0.80
replaceWith
Function · 0.80
textContent
Method · 0.80
setCharacterData.test.ts
File · 0.80
createTextNode.test.ts
File · 0.80
options.test.ts
File · 0.80
setCharacterData.test.ts
File · 0.80
text.test.ts
File · 0.80
firstElementChild.test.ts
File · 0.80
innerHTML.test.ts
File · 0.80
children.test.ts
File · 0.80
textContent.test.ts
File · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected