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

Unified Diff: sky/engine/core/html/parser/MarkupTokenizerInlines.h

Issue 678263002: Update tokenizer to match spec (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « sky/engine/core/html/parser/HTMLTokenizer.cpp ('k') | sky/tests/lowlevel/camel-case.sky » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/html/parser/MarkupTokenizerInlines.h
diff --git a/sky/engine/core/html/parser/MarkupTokenizerInlines.h b/sky/engine/core/html/parser/MarkupTokenizerInlines.h
index fbd4a6d4ba4113800816d88db69d061c6d57e455..13747c611ffe3eddac916c354b25c309c19463ad 100644
--- a/sky/engine/core/html/parser/MarkupTokenizerInlines.h
+++ b/sky/engine/core/html/parser/MarkupTokenizerInlines.h
@@ -34,7 +34,18 @@ namespace blink {
inline bool isTokenizerWhitespace(UChar cc)
{
- return cc == ' ' || cc == '\x0A' || cc == '\x09' || cc == '\x0C';
+ return cc == ' ' || cc == '\x0A';
+}
+
+inline bool isTokenizerTagName(UChar cc)
+{
+ if (cc >= 'a' && cc <= 'z')
+ return true;
+ if (cc >= 'A' && cc <= 'Z')
+ return true;
+ if (cc >= '0' && cc <= '9')
+ return true;
+ return cc == '-' || cc == '_' || cc == '.';
}
inline void advanceStringAndASSERTIgnoringCase(SegmentedString& source, const char* expectedCharacters)
« no previous file with comments | « sky/engine/core/html/parser/HTMLTokenizer.cpp ('k') | sky/tests/lowlevel/camel-case.sky » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698