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
()
| 187 | // TODO: Since both RAWTEXT and RCDATA states are treated as tokenizer's part |
| 188 | // officially, need to make tokenizer consider both states. |
| 189 | func (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. |
no test coverage detected