Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(758)

Unified Diff: Source/core/html/parser/HTMLTreeBuilder.cpp

Issue 443373002: Add <menuitem>, new HTMLMenuElement IDL attributes. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added RuntimeEnabled check Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/html/parser/HTMLTreeBuilder.cpp
diff --git a/Source/core/html/parser/HTMLTreeBuilder.cpp b/Source/core/html/parser/HTMLTreeBuilder.cpp
index 69603bbb61ff75eb38cf3113a6588d1924c869bb..a79d14de285309ccdc727ae894e169da10b32c47 100644
--- a/Source/core/html/parser/HTMLTreeBuilder.cpp
+++ b/Source/core/html/parser/HTMLTreeBuilder.cpp
@@ -800,7 +800,8 @@ void HTMLTreeBuilder::processStartTagForInBody(AtomicHTMLToken* token)
m_framesetOk = false;
return;
}
- if (token->name() == paramTag
+ if ((RuntimeEnabledFeatures::contextMenuEnabled() && token->name() == menuitemTag)
tkent 2014/08/11 10:23:01 Could you explain what part of the specification b
pals 2014/08/11 11:27:20 Specification: http://www.whatwg.org/specs/web-app
tkent 2014/08/11 13:36:57 Unfortunately the URL is broken. Please mention i
pals 2014/08/11 14:07:08 sorry, I copied the text of my previous comment wh
+ || token->name() == paramTag
|| token->name() == sourceTag
|| token->name() == trackTag) {
m_tree.insertSelfClosingHTMLElement(token);

Powered by Google App Engine
This is Rietveld 408576698