|
|
|
@ -6,6 +6,7 @@ module Docs
|
|
|
|
|
'EXT_' => 'WebGL',
|
|
|
|
|
'OES_' => 'WebGL',
|
|
|
|
|
'WEBGL_' => 'WebGL',
|
|
|
|
|
'Sensor API' => 'Sensors',
|
|
|
|
|
'Ambient Light' => 'Ambient Light',
|
|
|
|
|
'Audio' => 'Audio',
|
|
|
|
|
'Battery Status' => 'Battery Status',
|
|
|
|
@ -22,10 +23,12 @@ module Docs
|
|
|
|
|
'Encrypted Media Extensions' => 'Encrypted Media',
|
|
|
|
|
'Fetch' => 'Fetch',
|
|
|
|
|
'File API' => 'File',
|
|
|
|
|
'Fullscreen' => 'Fullscreen',
|
|
|
|
|
'Geolocation' => 'Geolocation',
|
|
|
|
|
'Geometry' => 'Geometry',
|
|
|
|
|
'High Resolution Time' => 'Performance',
|
|
|
|
|
'Intersection' => 'Intersection Observer',
|
|
|
|
|
'Keyboard' => 'Keyboard',
|
|
|
|
|
'Media Capabilities' => 'Media',
|
|
|
|
|
'Media Capture' => 'Media',
|
|
|
|
|
'Media Session' => 'Media',
|
|
|
|
@ -35,6 +38,7 @@ module Docs
|
|
|
|
|
'MIDI' => 'Audio',
|
|
|
|
|
'Navigation Timing' => 'Performance',
|
|
|
|
|
'Network Information' => 'Network Information',
|
|
|
|
|
'Orientation Sensor' => 'Sensors',
|
|
|
|
|
'Payment' => 'Payments',
|
|
|
|
|
'Performance Timeline' => 'Performance',
|
|
|
|
|
'Pointer Events' => 'Pointer Events',
|
|
|
|
@ -53,11 +57,13 @@ module Docs
|
|
|
|
|
'Web App Manifest' => 'Web App Manifest',
|
|
|
|
|
'Budget' => 'Budget',
|
|
|
|
|
'Web Authentication' => 'Authentication',
|
|
|
|
|
'Web Locks' => 'Locks',
|
|
|
|
|
'Web Workers' => 'Web Workers',
|
|
|
|
|
'WebGL' => 'WebGL',
|
|
|
|
|
'WebRTC' => 'WebRTC',
|
|
|
|
|
'WebUSB' => 'WebUSB',
|
|
|
|
|
'WebVR' => 'WebVR' }
|
|
|
|
|
'WebVR' => 'WebVR',
|
|
|
|
|
'WebVTT' => 'WebVTT' }
|
|
|
|
|
|
|
|
|
|
TYPE_BY_NAME_STARTS_WITH = {
|
|
|
|
|
'AbortController' => 'Fetch',
|
|
|
|
@ -89,10 +95,12 @@ module Docs
|
|
|
|
|
'Fetch' => 'Fetch',
|
|
|
|
|
'File' => 'File',
|
|
|
|
|
'GlobalEventHandlers' => 'GlobalEventHandlers',
|
|
|
|
|
'HMDVR' => 'WebVR',
|
|
|
|
|
'history' => 'History',
|
|
|
|
|
'HTML Drag' => 'Drag & Drop',
|
|
|
|
|
'HTML' => 'Elements',
|
|
|
|
|
'IDB' => 'IndexedDB',
|
|
|
|
|
'Keyboard' => 'Keyboard',
|
|
|
|
|
'location' => 'Location',
|
|
|
|
|
'navigator' => 'Navigator',
|
|
|
|
|
'MediaKeySession' => 'Encrypted Media',
|
|
|
|
@ -122,6 +130,7 @@ module Docs
|
|
|
|
|
'StyleSheet' => 'CSS',
|
|
|
|
|
'Stylesheet' => 'CSS',
|
|
|
|
|
'SVG' => 'SVG',
|
|
|
|
|
'TextTrack' => 'WebVTT',
|
|
|
|
|
'TimeRanges' => 'Media',
|
|
|
|
|
'timing' => 'Performance',
|
|
|
|
|
'Timing' => 'Performance',
|
|
|
|
@ -160,6 +169,7 @@ module Docs
|
|
|
|
|
'timing' => 'Performance',
|
|
|
|
|
'Timing' => 'Performance',
|
|
|
|
|
'udio' => 'Audio',
|
|
|
|
|
'VRDevice' => 'WebVR',
|
|
|
|
|
'WebGL' => 'WebGL',
|
|
|
|
|
'WEBGL' => 'WebGL',
|
|
|
|
|
'WebRTC' => 'WebRTC',
|
|
|
|
@ -239,7 +249,7 @@ module Docs
|
|
|
|
|
|
|
|
|
|
def include_default_entry?
|
|
|
|
|
return true if type == 'Console'
|
|
|
|
|
return true unless node = doc.at_css('.overheadIndicator')
|
|
|
|
|
return true unless node = doc.at_css('.overheadIndicator, .blockIndicator')
|
|
|
|
|
node = node.parent while node.parent != doc
|
|
|
|
|
return true if node.previous_element.try(:name).in?(%w(h2 h3))
|
|
|
|
|
content = node.content
|
|
|
|
|