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

Unified Diff: third_party/WebKit/Source/platform/text/CharacterPropertyDataGenerator.h

Issue 1916013004: Implement PotentialCustomElementName (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Minor editorial changes Created 4 years, 8 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: third_party/WebKit/Source/platform/text/CharacterPropertyDataGenerator.h
diff --git a/third_party/WebKit/Source/platform/text/CharacterPropertyDataGenerator.h b/third_party/WebKit/Source/platform/text/CharacterPropertyDataGenerator.h
index 3604bb1165a0be9ba4307cff9f8301c0910a45e5..c9ff51096b90359d2422777f5122bf5e09053a3d 100644
--- a/third_party/WebKit/Source/platform/text/CharacterPropertyDataGenerator.h
+++ b/third_party/WebKit/Source/platform/text/CharacterPropertyDataGenerator.h
@@ -229,6 +229,31 @@ static const UChar32 isUprightInMixedVerticalRanges[] = {
0x100000, 0x10FFFD,
};
+// https://html.spec.whatwg.org/multipage/scripting.html#prod-potentialcustomelementname
+static const UChar32 isPotentialCustomElementNameCharArray[] = {
+ '-',
+ '.',
+ '_',
+ 0xB7,
+};
+
+static const UChar32 isPotentialCustomElementNameCharRanges[] = {
+ '0', '9',
+ 'a', 'z',
+ 0xC0, 0xD6,
+ 0xD8, 0xF6,
+ 0xF8, 0x37D,
dominicc (has gone to gerrit) 2016/04/27 01:42:14 Today the spec says 0xF8-0x2FF, 0x300-0x37D. If th
kojii 2016/04/27 03:52:13 This is build-time data (except some embedders run
+ 0x37F, 0x1FFF,
+ 0x200C, 0x200D,
+ 0x203F, 0x2040,
+ 0x2070, 0x218F,
+ 0x2C00, 0x2FEF,
+ 0x3001, 0xD7FF,
+ 0xF900, 0xFDCF,
+ 0xFDF0, 0xFFFD,
+ 0x10000, 0xEFFFF,
+};
+
} // namespace blink
#endif

Powered by Google App Engine
This is Rietveld 408576698