Re: [w3c/editing] Add revised OS custom format naming. (#316)

@dway123 commented on this pull request.



>  
-On Windows, clipboard formats are often named using capital words separated by a space. Therefore, a MIME type `"custom/format"` will be transformed to `"Web Custom Format`”. Note that the prefix `"Web"` precedes the transformed format name.
+To avoid exhausting the atom pool, we will limit each user session to 100 custom formats. These custom formats will be registered when the web authors request a custom format. They will be accompanied by a custom format metadata payload which will have a mapping of custom format MIME type to web custom format in JSON format. Since this format is allocated in the global atom space on Windows, even if the sites register it multiple times, the format strings will only be allocated once and `RegisterClipboardFormat` system function call will just return the unique value corresponding to that format.

Should we mention that this "100 custom formats" limit allows each site to copy or paste up to 100 custom formats at once?

Otherwise, it's not clear here to web developers reading this doc without deep clipboard expertise how these limits apply to them.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/editing/pull/316#pullrequestreview-712289208

Received on Thursday, 22 July 2021 00:29:06 UTC