|
|
@ -5,8 +5,11 @@ module Docs
|
|
|
|
'Battery Status' => 'Battery Status',
|
|
|
|
'Battery Status' => 'Battery Status',
|
|
|
|
'Canvas ' => 'Canvas',
|
|
|
|
'Canvas ' => 'Canvas',
|
|
|
|
'CSS Object Model' => 'CSS',
|
|
|
|
'CSS Object Model' => 'CSS',
|
|
|
|
|
|
|
|
'Cryptography' => 'Web Cryptography',
|
|
|
|
'Device Orientation' => 'Device Orientation',
|
|
|
|
'Device Orientation' => 'Device Orientation',
|
|
|
|
'Encoding' => 'Encoding',
|
|
|
|
'Encoding' => 'Encoding',
|
|
|
|
|
|
|
|
'Encrypted Media Extensions' => 'Encrypted Media',
|
|
|
|
|
|
|
|
'Fetch' => 'Fetch',
|
|
|
|
'File API' => 'File',
|
|
|
|
'File API' => 'File',
|
|
|
|
'Geolocation' => 'Geolocation',
|
|
|
|
'Geolocation' => 'Geolocation',
|
|
|
|
'Media Capture' => 'Media',
|
|
|
|
'Media Capture' => 'Media',
|
|
|
@ -14,30 +17,35 @@ module Docs
|
|
|
|
'MediaStream' => 'Media',
|
|
|
|
'MediaStream' => 'Media',
|
|
|
|
'Navigation Timing' => 'Navigation Timing',
|
|
|
|
'Navigation Timing' => 'Navigation Timing',
|
|
|
|
'Network Information' => 'Network Information',
|
|
|
|
'Network Information' => 'Network Information',
|
|
|
|
|
|
|
|
'Push API' => 'Push',
|
|
|
|
'Service Workers' => 'Service Workers',
|
|
|
|
'Service Workers' => 'Service Workers',
|
|
|
|
|
|
|
|
'Web Animations' => 'Animation',
|
|
|
|
'Web Audio' => 'Web Audio',
|
|
|
|
'Web Audio' => 'Web Audio',
|
|
|
|
|
|
|
|
'Web Messaging' => 'Web Messaging',
|
|
|
|
'Web Storage' => 'Web Storage',
|
|
|
|
'Web Storage' => 'Web Storage',
|
|
|
|
'Web Workers' => 'Web Workers',
|
|
|
|
'Web Workers' => 'Web Workers',
|
|
|
|
'WebRTC' => 'WebRTC' }
|
|
|
|
'WebRTC' => 'WebRTC' }
|
|
|
|
|
|
|
|
|
|
|
|
TYPE_BY_NAME_STARTS_WITH = {
|
|
|
|
TYPE_BY_NAME_STARTS_WITH = {
|
|
|
|
'Audio' => 'Web Audio',
|
|
|
|
'Audio' => 'Web Audio',
|
|
|
|
|
|
|
|
'Broadcast' => 'Broadcast Channel',
|
|
|
|
'Canvas' => 'Canvas',
|
|
|
|
'Canvas' => 'Canvas',
|
|
|
|
'ChildNode' => 'Node',
|
|
|
|
|
|
|
|
'Console' => 'Console',
|
|
|
|
|
|
|
|
'CSS' => 'CSS',
|
|
|
|
'CSS' => 'CSS',
|
|
|
|
|
|
|
|
'ChildNode' => 'Node',
|
|
|
|
|
|
|
|
'console' => 'Console',
|
|
|
|
'document' => 'Document',
|
|
|
|
'document' => 'Document',
|
|
|
|
'DocumentFragment' => 'DocumentFragment',
|
|
|
|
'DocumentFragment' => 'DocumentFragment',
|
|
|
|
'DOM' => 'DOM',
|
|
|
|
'DOM' => 'DOM',
|
|
|
|
'element' => 'Element',
|
|
|
|
'element' => 'Element',
|
|
|
|
'event' => 'Event',
|
|
|
|
'event' => 'Event',
|
|
|
|
'Event' => 'Event',
|
|
|
|
'Event' => 'Event',
|
|
|
|
|
|
|
|
'Fetch' => 'Fetch',
|
|
|
|
'File' => 'File',
|
|
|
|
'File' => 'File',
|
|
|
|
'GlobalEventHandlers' => 'GlobalEventHandlers',
|
|
|
|
'GlobalEventHandlers' => 'GlobalEventHandlers',
|
|
|
|
'history' => 'History',
|
|
|
|
'history' => 'History',
|
|
|
|
'HTML' => 'Elements',
|
|
|
|
'HTML' => 'Elements',
|
|
|
|
'IDB' => 'IndexedDB',
|
|
|
|
'IDB' => 'IndexedDB',
|
|
|
|
'Location' => 'Location',
|
|
|
|
'location' => 'Location',
|
|
|
|
'navigator' => 'Navigator',
|
|
|
|
'navigator' => 'Navigator',
|
|
|
|
'MediaQuery' => 'MediaQuery',
|
|
|
|
'MediaQuery' => 'MediaQuery',
|
|
|
|
'Node' => 'Node',
|
|
|
|
'Node' => 'Node',
|
|
|
@ -45,6 +53,7 @@ module Docs
|
|
|
|
'ParentNode' => 'Node',
|
|
|
|
'ParentNode' => 'Node',
|
|
|
|
'Range' => 'Range',
|
|
|
|
'Range' => 'Range',
|
|
|
|
'RTC' => 'WebRTC',
|
|
|
|
'RTC' => 'WebRTC',
|
|
|
|
|
|
|
|
'screen' => 'Screen',
|
|
|
|
'Selection' => 'Selection',
|
|
|
|
'Selection' => 'Selection',
|
|
|
|
'Storage' => 'Web Storage',
|
|
|
|
'Storage' => 'Web Storage',
|
|
|
|
'StyleSheet' => 'CSS',
|
|
|
|
'StyleSheet' => 'CSS',
|
|
|
@ -54,13 +63,17 @@ module Docs
|
|
|
|
'TreeWalker' => 'TreeWalker',
|
|
|
|
'TreeWalker' => 'TreeWalker',
|
|
|
|
'Uint' => 'Typed Arrays',
|
|
|
|
'Uint' => 'Typed Arrays',
|
|
|
|
'URL' => 'URL',
|
|
|
|
'URL' => 'URL',
|
|
|
|
'window' => 'window',
|
|
|
|
'window' => 'Window',
|
|
|
|
|
|
|
|
'Window' => 'Window',
|
|
|
|
'XMLHttpRequest' => 'XMLHTTPRequest' }
|
|
|
|
'XMLHttpRequest' => 'XMLHTTPRequest' }
|
|
|
|
|
|
|
|
|
|
|
|
TYPE_BY_NAME_INCLUDES = {
|
|
|
|
TYPE_BY_NAME_INCLUDES = {
|
|
|
|
|
|
|
|
'ChildNode' => 'Node',
|
|
|
|
|
|
|
|
'Crypto' => 'Web Cryptography',
|
|
|
|
'ImageData' => 'Canvas',
|
|
|
|
'ImageData' => 'Canvas',
|
|
|
|
'IndexedDB' => 'IndexedDB',
|
|
|
|
'IndexedDB' => 'IndexedDB',
|
|
|
|
'MediaStream' => 'Media',
|
|
|
|
'MediaStream' => 'Media',
|
|
|
|
|
|
|
|
'NodeList' => 'Node',
|
|
|
|
'Path2D' => 'Canvas',
|
|
|
|
'Path2D' => 'Canvas',
|
|
|
|
'ServiceWorker' => 'Service Workers',
|
|
|
|
'ServiceWorker' => 'Service Workers',
|
|
|
|
'TextMetrics' => 'Canvas',
|
|
|
|
'TextMetrics' => 'Canvas',
|
|
|
@ -129,10 +142,19 @@ module Docs
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SKIP_CONTENT = [
|
|
|
|
|
|
|
|
'not on a standards track',
|
|
|
|
|
|
|
|
'removed from the Web',
|
|
|
|
|
|
|
|
'not on a current W3C standards track',
|
|
|
|
|
|
|
|
'This feature is not built into all browsers',
|
|
|
|
|
|
|
|
'not currently supported in any browser'
|
|
|
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
|
|
def include_default_entry?
|
|
|
|
def include_default_entry?
|
|
|
|
(node = doc.at_css '.overheadIndicator').nil? ||
|
|
|
|
return true if type == 'Console'
|
|
|
|
type == 'Console' ||
|
|
|
|
return true unless node = doc.at_css('.overheadIndicator')
|
|
|
|
(node.content.exclude?('not on a standards track') && node.content.exclude?('removed from the Web'))
|
|
|
|
content = node.content
|
|
|
|
|
|
|
|
SKIP_CONTENT.none? { |str| content.include?(str) }
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|