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

Unified Diff: editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/html/HtmlParser.java

Issue 11673007: Improve our html editor; add syntax highlighting for script tags; hyperlink detection and navigatio… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 12 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: editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/html/HtmlParser.java
===================================================================
--- editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/html/HtmlParser.java (revision 16584)
+++ editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/html/HtmlParser.java (working copy)
@@ -14,19 +14,12 @@
package com.google.dart.tools.core.html;
-import java.util.Arrays;
-import java.util.HashSet;
-import java.util.Set;
-
/**
* A parser for html files; it generates as AST tree rooted in the XmlDocument class.
*
* @see XmlDocument
*/
public class HtmlParser extends XmlParser {
- private static Set<String> SELF_CLOSING = new HashSet<String>(Arrays.asList(new String[] {
- "area", "base", "basefont", "br", "col", "frame", "hr", "img", "input", "link", "meta",
- "param", "!"}));
public HtmlParser(String data) {
super(data);
@@ -39,7 +32,7 @@
@Override
protected boolean isSelfClosing(String entityName) {
- return SELF_CLOSING.contains(entityName);
+ return HtmlKeywords.isSelfClosing(entityName);
}
}

Powered by Google App Engine
This is Rietveld 408576698