Index DOM guides

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

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

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

Loading…
Cancel
Save