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

Side by Side Diff: Source/devtools/front_end/elements/ElementsTreeOutline.js

Issue 575783002: Update ForbiddenClosingTagElements list with elements with no end tag. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Removed chnages in cm/* Created 6 years, 3 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com> 3 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com>
4 * Copyright (C) 2009 Joseph Pecoraro 4 * Copyright (C) 2009 Joseph Pecoraro
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 9 *
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
(...skipping 1020 matching lines...) Expand 10 before | Expand all | Expand 10 after
1031 if (this._node.nodeType() == Node.ELEMENT_NODE && !elementCloseTag) 1031 if (this._node.nodeType() == Node.ELEMENT_NODE && !elementCloseTag)
1032 this._canAddAttributes = true; 1032 this._canAddAttributes = true;
1033 this._searchQuery = null; 1033 this._searchQuery = null;
1034 this._expandedChildrenLimit = WebInspector.ElementsTreeElement.InitialChildr enLimit; 1034 this._expandedChildrenLimit = WebInspector.ElementsTreeElement.InitialChildr enLimit;
1035 } 1035 }
1036 1036
1037 WebInspector.ElementsTreeElement.InitialChildrenLimit = 500; 1037 WebInspector.ElementsTreeElement.InitialChildrenLimit = 500;
1038 1038
1039 // A union of HTML4 and HTML5-Draft elements that explicitly 1039 // A union of HTML4 and HTML5-Draft elements that explicitly
1040 // or implicitly (for HTML5) forbid the closing tag. 1040 // or implicitly (for HTML5) forbid the closing tag.
1041 // FIXME: Revise once HTML5 Final is published.
1042 WebInspector.ElementsTreeElement.ForbiddenClosingTagElements = [ 1041 WebInspector.ElementsTreeElement.ForbiddenClosingTagElements = [
1043 "area", "base", "basefont", "br", "canvas", "col", "command", "embed", "fram e", 1042 "area", "base", "basefont", "br", "canvas", "col", "command", "embed", "fram e",
1044 "hr", "img", "input", "keygen", "link", "meta", "param", "source" 1043 "hr", "img", "input", "keygen", "link", "menuitem", "meta", "param", "source ", "track", "wbr"
1045 ].keySet(); 1044 ].keySet();
1046 1045
1047 // These tags we do not allow editing their tag name. 1046 // These tags we do not allow editing their tag name.
1048 WebInspector.ElementsTreeElement.EditTagBlacklist = [ 1047 WebInspector.ElementsTreeElement.EditTagBlacklist = [
1049 "html", "head", "body" 1048 "html", "head", "body"
1050 ].keySet(); 1049 ].keySet();
1051 1050
1052 WebInspector.ElementsTreeElement.prototype = { 1051 WebInspector.ElementsTreeElement.prototype = {
1053 highlightSearchResults: function(searchQuery) 1052 highlightSearchResults: function(searchQuery)
1054 { 1053 {
(...skipping 1870 matching lines...) Expand 10 before | Expand all | Expand 10 after
2925 var treeOutline = new WebInspector.ElementsTreeOutline(node.target(), fa lse, false); 2924 var treeOutline = new WebInspector.ElementsTreeOutline(node.target(), fa lse, false);
2926 treeOutline.rootDOMNode = node; 2925 treeOutline.rootDOMNode = node;
2927 treeOutline.element.classList.add("outline-disclosure"); 2926 treeOutline.element.classList.add("outline-disclosure");
2928 if (!treeOutline.children[0].hasChildren) 2927 if (!treeOutline.children[0].hasChildren)
2929 treeOutline.element.classList.add("single-node"); 2928 treeOutline.element.classList.add("single-node");
2930 treeOutline.setVisible(true); 2929 treeOutline.setVisible(true);
2931 treeOutline.element.treeElementForTest = treeOutline.children[0]; 2930 treeOutline.element.treeElementForTest = treeOutline.children[0];
2932 return treeOutline.element; 2931 return treeOutline.element;
2933 } 2932 }
2934 } 2933 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698