diff options
Diffstat (limited to 'chromium/third_party/blink/renderer/core/html/parser/html_tree_builder.cc')
-rw-r--r-- | chromium/third_party/blink/renderer/core/html/parser/html_tree_builder.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/chromium/third_party/blink/renderer/core/html/parser/html_tree_builder.cc b/chromium/third_party/blink/renderer/core/html/parser/html_tree_builder.cc index e27ad677177..2bcc67d216f 100644 --- a/chromium/third_party/blink/renderer/core/html/parser/html_tree_builder.cc +++ b/chromium/third_party/blink/renderer/core/html/parser/html_tree_builder.cc @@ -2693,6 +2693,13 @@ void HTMLTreeBuilder::ProcessTokenInForeignContent(AtomicHTMLToken* token) { tree_.OpenElements()->Pop(); return; } + if (token->GetName() == html_names::kBrTag || + token->GetName() == html_names::kPTag) { + ParseError(token); + tree_.OpenElements()->PopUntilForeignContentScopeMarker(); + ProcessEndTag(token); + return; + } if (!tree_.CurrentStackItem()->IsInHTMLNamespace()) { // FIXME: This code just wants an Element* iterator, instead of an // ElementRecord* |