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) |