سؤال

I see that vendor prefix is used in smaller cases in some API (webkitURL, for example) and in camel cases in some API (WebKitBlobBuilder). What is the difference?

هل كانت مفيدة؟

المحلول

Reply from PhistucK on Chrome DevTools Google group:

Constructors have have their WebKit prefix capitalized. Members (properties, methods, events) have a lower cased prefix. URL is not a constructor, its naming is just a bit unconventional. Blob is WebKitBlob window.URL is window.webkitURL navigator.getUserMedia is navigator.webkitGetUserMedia

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top