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

Method parseGenericRawTextElement

html/parse.go:189–193  ·  view source on GitHub ↗

parseGenericRawTextElement implements the generic raw text element parsing algorithm defined in 12.2.6.2. https://html.spec.whatwg.org/multipage/parsing.html#parsing-elements-that-contain-only-text TODO: Since both RAWTEXT and RCDATA states are treated as tokenizer's part officially, need to make to

()

Source from the content-addressed store, hash-verified

187// TODO: Since both RAWTEXT and RCDATA states are treated as tokenizer's part
188// officially, need to make tokenizer consider both states.
189func (p *parser) parseGenericRawTextElement() {
190 p.addElement()
191 p.originalIM = p.im
192 p.im = textIM
193}
194
195// generateImpliedEndTags pops nodes off the stack of open elements as long as
196// the top node has a tag name of dd, dt, li, optgroup, option, p, rb, rp, rt or rtc.

Callers 2

inHeadIMFunction · 0.80
inBodyIMFunction · 0.80

Calls 1

addElementMethod · 0.95

Tested by

no test coverage detected