startTagMisplaced method

void startTagMisplaced(
  1. StartTagToken token
)

Elements that should be children of other elements that have a different insertion mode; here they are ignored "caption", "col", "colgroup", "frame", "frameset", "head", "option", "optgroup", "tbody", "td", "tfoot", "th", "thead", "tr", "noscript"

Implementation

void startTagMisplaced(StartTagToken token) {
  parser.parseError(
      token.span, 'unexpected-start-tag-ignored', {'name': token.name});
}