Index DOM guides

pull/129/head
Thibaut 11 years ago
parent b60e602b89
commit b9fed87689

@ -19,7 +19,7 @@ module Docs
'WebRTC' => 'WebRTC' }
TYPE_BY_NAME_STARTS_WITH = {
'Audio' => 'Audio',
'Audio' => 'Web Audio',
'Canvas' => 'Canvas',
'ChildNode' => 'Node',
'Console' => 'Console',
@ -34,9 +34,9 @@ module Docs
'GlobalEventHandlers' => 'GlobalEventHandlers',
'history' => 'History',
'IDB' => 'IndexedDB',
'IndexedDB' => 'IndexedDB',
'Location' => 'Location',
'navigator' => 'Navigator',
'MediaQuery' => 'MediaQuery',
'Node' => 'Node',
'Notification' => 'Notification',
'ParentNode' => 'Node',
@ -44,6 +44,7 @@ module Docs
'RTC' => 'WebRTC',
'Selection' => 'Selection',
'StyleSheet' => 'CSS',
'Stylesheet' => 'CSS',
'SVG' => 'SVG',
'Touch' => 'Touch',
'TreeWalker' => 'TreeWalker',
@ -53,6 +54,8 @@ module Docs
'XMLHttpRequest' => 'XMLHTTPRequest' }
TYPE_BY_NAME_INCLUDES = {
'IndexedDB' => 'IndexedDB',
'udio' => 'Web Audio',
'WebGL' => 'Canvas',
'Worker' => 'Web Workers' }
@ -67,8 +70,16 @@ module Docs
'Web Audio API' => 'Web Audio',
'XMLHTTPRequest' => 'XMLHTTPRequest' }
CLEANUP_NAMES = %w(
CSS\ Object\ Model.
Web\ Audio\ API.
IndexedDB\ API.
MediaRecorder\ API.
XMLHttpRequest.)
def get_name
name = super
CLEANUP_NAMES.each { |str| name.remove!(str) }
name.sub! 'Input.', 'HTMLInputElement.'
name.sub! 'window.navigator', 'navigator'
# Comment.Comment => Comment.constructor

@ -24,6 +24,7 @@ module Docs
/Event/Comparison_of_Event_Targets
/FMRadio
/IDBDatabaseException
/IndexedDB_API/Using_JavaScript_Generators_in_Firefox
/NamedNodeMap
/Node.baseURIObject
/Node.nodePrincipal
@ -46,8 +47,7 @@ module Docs
/window.navigator.removeIdleObserver
/window.navigator.requestWakeLock
/window.updateCommands
/window.pkcs11
/XMLHttpRequest/Using_XMLHttpRequest)
/window.pkcs11)
options[:skip_patterns] = [
/NS/,
@ -70,10 +70,6 @@ module Docs
/\A\/Telephony/,
/\A\/Bluetooth/,
/\A\/Window\.\w+bar/i,
/\A\/CSS_Object_Model\//,
/\A\/Web_Audio_API\//,
/\A\/IndexedDB_API\//,
/\A\/MediaRecorder_API\//,
/\A\/Apps/,
/\A\/Contact/,
/\A\/L10n/,

Loading…
Cancel
Save