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

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: tkent review 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..602f2392fd9568426e3b262f0e7163839faaa811 100644
--- a/third_party/WebKit/Source/platform/text/CharacterPropertyDataGenerator.h
+++ b/third_party/WebKit/Source/platform/text/CharacterPropertyDataGenerator.h
@@ -229,6 +229,32 @@ 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, 0x2FF,
+ 0x300, 0x37D,
+ 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