Skip to content

Commit deb91d8

Browse files
committed
Update MDN docs
1 parent 1057d0e commit deb91d8

3 files changed

Lines changed: 13 additions & 2 deletions

File tree

lib/docs/filters/dom/entries.rb

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,17 @@ class EntriesFilter < Docs::EntriesFilter
1919
'MediaStream' => 'Media',
2020
'Navigation Timing' => 'Navigation Timing',
2121
'Network Information' => 'Network Information',
22+
'Pointer Events' => 'Pointer Events',
2223
'Push API' => 'Push',
2324
'Shadow DOM' => 'Shadow DOM',
2425
'Server-Sent Events' => 'Server-Sent Events',
2526
'Service Workers' => 'Service Workers',
27+
'Touch Events' => 'Touch Events',
2628
'Web Animations' => 'Animation',
2729
'Web Audio' => 'Web Audio',
2830
'Web Messaging' => 'Web Messaging',
2931
'Web MIDI' => 'Web MIDI',
32+
'Web Speech' => 'Web Speech',
3033
'Web Storage' => 'Web Storage',
3134
'Web Workers' => 'Web Workers',
3235
'WebGL' => 'WebGL',
@@ -40,6 +43,7 @@ class EntriesFilter < Docs::EntriesFilter
4043
'CSS' => 'CSS',
4144
'ChildNode' => 'Node',
4245
'console' => 'Console',
46+
'DataTransfer' => 'Drag & Drop',
4347
'document' => 'Document',
4448
'DocumentFragment' => 'DocumentFragment',
4549
'DOM' => 'DOM',
@@ -69,7 +73,7 @@ class EntriesFilter < Docs::EntriesFilter
6973
'SVG' => 'SVG',
7074
'timing' => 'Navigation Timing',
7175
'Timing' => 'Navigation Timing',
72-
'Touch' => 'Touch',
76+
'Touch' => 'Touch Events',
7377
'TreeWalker' => 'TreeWalker',
7478
'URL' => 'URL',
7579
'window' => 'Window',
@@ -79,6 +83,7 @@ class EntriesFilter < Docs::EntriesFilter
7983
TYPE_BY_NAME_INCLUDES = {
8084
'ChildNode' => 'Node',
8185
'Crypto' => 'Web Cryptography',
86+
'Drag' => 'Drag & Drop',
8287
'FormData' => 'XMLHTTPRequest',
8388
'ImageBitmap' => 'Canvas',
8489
'ImageData' => 'Canvas',
@@ -87,9 +92,11 @@ class EntriesFilter < Docs::EntriesFilter
8792
'MediaStream' => 'Media',
8893
'NodeList' => 'Node',
8994
'Path2D' => 'Canvas',
95+
'Pointer' => 'Pointer Events',
9096
'Server-sent' => 'Server-Sent Events',
9197
'ServiceWorker' => 'Service Workers',
9298
'TextMetrics' => 'Canvas',
99+
'timing' => 'Navigation Timing',
93100
'udio' => 'Web Audio',
94101
'WebSocket' => 'Web Sockets',
95102
'WebGL' => 'WebGL',

lib/docs/filters/dom_events/entries.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,19 @@ class EntriesFilter < Docs::EntriesFilter
1616
'Keyboard' => 'Keyboard',
1717
'edia' => 'Media',
1818
'Mouse' => 'Mouse',
19+
'Notification' => 'Notification',
1920
'Offline' => 'Offline',
2021
'Orientation' => 'Device',
2122
'Sensor' => 'Device',
2223
'SVG' => 'SVG',
2324
'Page Visibility' => 'Page Visibility',
2425
'Pointer' => 'Mouse',
2526
'PopState' => 'History',
27+
'Push' => 'Push',
2628
'Progress' => 'Progress',
2729
'Proximity' => 'Device',
2830
'Server Sent' => 'Server Sent Events',
31+
'Speech' => 'Web Speech',
2932
'Storage' => 'Web Storage',
3033
'Touch' => 'Touch',
3134
'Transition' => 'CSS',
@@ -57,7 +60,7 @@ def get_type
5760
elsif LOAD_SLUGS.include?(slug)
5861
'Load'
5962
else
60-
if info = at_css('.eventinfo').try(:content)
63+
if info = at_css('.eventinfo, .properties').try(:content)
6164
TYPE_BY_INFO.each_pair do |key, value|
6265
return value if info.include?(key)
6366
end

lib/docs/scrapers/mdn/dom.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ class Dom < Mdn
1616
/document/documentURIObject
1717
/document/loadOverlay
1818
/document/tooltipNode
19+
/Document/cookie/Simple_document.cookie_framework
1920
/DOMErrorHandler
2021
/DOMLocator
2122
/DOMObject

0 commit comments

Comments
 (0)