MCPcopy
hub / github.com/golang/net / addElement

Method addElement

html/parse.go:337–344  ·  view source on GitHub ↗

addElement adds a child element based on the current token.

()

Source from the content-addressed store, hash-verified

335
336// addElement adds a child element based on the current token.
337func (p *parser) addElement() {
338 p.addChild(&Node{
339 Type: ElementNode,
340 DataAtom: p.tok.DataAtom,
341 Data: p.tok.Data,
342 Attr: p.tok.Attr,
343 })
344}
345
346// Section 12.2.4.3.
347func (p *parser) addFormattingElement() {

Callers 13

addFormattingElementMethod · 0.95
beforeHTMLIMFunction · 0.80
beforeHeadIMFunction · 0.80
inHeadIMFunction · 0.80
afterHeadIMFunction · 0.80
inBodyIMFunction · 0.80
inTableIMFunction · 0.80
inColumnGroupIMFunction · 0.80
inTableBodyIMFunction · 0.80
inRowIMFunction · 0.80
inFramesetIMFunction · 0.80

Calls 1

addChildMethod · 0.95

Tested by

no test coverage detected