Update MDN docs

pull/292/merge
Thibaut 9 years ago
parent 1057d0ea3e
commit deb91d872a

@ -19,14 +19,17 @@ module Docs
'MediaStream' => 'Media', 'MediaStream' => 'Media',
'Navigation Timing' => 'Navigation Timing', 'Navigation Timing' => 'Navigation Timing',
'Network Information' => 'Network Information', 'Network Information' => 'Network Information',
'Pointer Events' => 'Pointer Events',
'Push API' => 'Push', 'Push API' => 'Push',
'Shadow DOM' => 'Shadow DOM', 'Shadow DOM' => 'Shadow DOM',
'Server-Sent Events' => 'Server-Sent Events', 'Server-Sent Events' => 'Server-Sent Events',
'Service Workers' => 'Service Workers', 'Service Workers' => 'Service Workers',
'Touch Events' => 'Touch Events',
'Web Animations' => 'Animation', 'Web Animations' => 'Animation',
'Web Audio' => 'Web Audio', 'Web Audio' => 'Web Audio',
'Web Messaging' => 'Web Messaging', 'Web Messaging' => 'Web Messaging',
'Web MIDI' => 'Web MIDI', 'Web MIDI' => 'Web MIDI',
'Web Speech' => 'Web Speech',
'Web Storage' => 'Web Storage', 'Web Storage' => 'Web Storage',
'Web Workers' => 'Web Workers', 'Web Workers' => 'Web Workers',
'WebGL' => 'WebGL', 'WebGL' => 'WebGL',
@ -40,6 +43,7 @@ module Docs
'CSS' => 'CSS', 'CSS' => 'CSS',
'ChildNode' => 'Node', 'ChildNode' => 'Node',
'console' => 'Console', 'console' => 'Console',
'DataTransfer' => 'Drag & Drop',
'document' => 'Document', 'document' => 'Document',
'DocumentFragment' => 'DocumentFragment', 'DocumentFragment' => 'DocumentFragment',
'DOM' => 'DOM', 'DOM' => 'DOM',
@ -69,7 +73,7 @@ module Docs
'SVG' => 'SVG', 'SVG' => 'SVG',
'timing' => 'Navigation Timing', 'timing' => 'Navigation Timing',
'Timing' => 'Navigation Timing', 'Timing' => 'Navigation Timing',
'Touch' => 'Touch', 'Touch' => 'Touch Events',
'TreeWalker' => 'TreeWalker', 'TreeWalker' => 'TreeWalker',
'URL' => 'URL', 'URL' => 'URL',
'window' => 'Window', 'window' => 'Window',
@ -79,6 +83,7 @@ module Docs
TYPE_BY_NAME_INCLUDES = { TYPE_BY_NAME_INCLUDES = {
'ChildNode' => 'Node', 'ChildNode' => 'Node',
'Crypto' => 'Web Cryptography', 'Crypto' => 'Web Cryptography',
'Drag' => 'Drag & Drop',
'FormData' => 'XMLHTTPRequest', 'FormData' => 'XMLHTTPRequest',
'ImageBitmap' => 'Canvas', 'ImageBitmap' => 'Canvas',
'ImageData' => 'Canvas', 'ImageData' => 'Canvas',
@ -87,9 +92,11 @@ module Docs
'MediaStream' => 'Media', 'MediaStream' => 'Media',
'NodeList' => 'Node', 'NodeList' => 'Node',
'Path2D' => 'Canvas', 'Path2D' => 'Canvas',
'Pointer' => 'Pointer Events',
'Server-sent' => 'Server-Sent Events', 'Server-sent' => 'Server-Sent Events',
'ServiceWorker' => 'Service Workers', 'ServiceWorker' => 'Service Workers',
'TextMetrics' => 'Canvas', 'TextMetrics' => 'Canvas',
'timing' => 'Navigation Timing',
'udio' => 'Web Audio', 'udio' => 'Web Audio',
'WebSocket' => 'Web Sockets', 'WebSocket' => 'Web Sockets',
'WebGL' => 'WebGL', 'WebGL' => 'WebGL',

@ -16,6 +16,7 @@ module Docs
'Keyboard' => 'Keyboard', 'Keyboard' => 'Keyboard',
'edia' => 'Media', 'edia' => 'Media',
'Mouse' => 'Mouse', 'Mouse' => 'Mouse',
'Notification' => 'Notification',
'Offline' => 'Offline', 'Offline' => 'Offline',
'Orientation' => 'Device', 'Orientation' => 'Device',
'Sensor' => 'Device', 'Sensor' => 'Device',
@ -23,9 +24,11 @@ module Docs
'Page Visibility' => 'Page Visibility', 'Page Visibility' => 'Page Visibility',
'Pointer' => 'Mouse', 'Pointer' => 'Mouse',
'PopState' => 'History', 'PopState' => 'History',
'Push' => 'Push',
'Progress' => 'Progress', 'Progress' => 'Progress',
'Proximity' => 'Device', 'Proximity' => 'Device',
'Server Sent' => 'Server Sent Events', 'Server Sent' => 'Server Sent Events',
'Speech' => 'Web Speech',
'Storage' => 'Web Storage', 'Storage' => 'Web Storage',
'Touch' => 'Touch', 'Touch' => 'Touch',
'Transition' => 'CSS', 'Transition' => 'CSS',
@ -57,7 +60,7 @@ module Docs
elsif LOAD_SLUGS.include?(slug) elsif LOAD_SLUGS.include?(slug)
'Load' 'Load'
else else
if info = at_css('.eventinfo').try(:content) if info = at_css('.eventinfo, .properties').try(:content)
TYPE_BY_INFO.each_pair do |key, value| TYPE_BY_INFO.each_pair do |key, value|
return value if info.include?(key) return value if info.include?(key)
end end

@ -16,6 +16,7 @@ module Docs
/document/documentURIObject /document/documentURIObject
/document/loadOverlay /document/loadOverlay
/document/tooltipNode /document/tooltipNode
/Document/cookie/Simple_document.cookie_framework
/DOMErrorHandler /DOMErrorHandler
/DOMLocator /DOMLocator
/DOMObject /DOMObject

Loading…
Cancel
Save