]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
Runtime(javascript): add new document properties to completion file
authorJay Sitter <jay@diameterstudios.com>
Sun, 28 Jun 2020 15:42:35 +0000 (11:42 -0400)
committerChristian Brabandt <cb@256bit.org>
Sun, 20 Aug 2023 19:41:01 +0000 (21:41 +0200)
closes: #6536

Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/autoload/javascriptcomplete.vim

index 29b6b16254fa3fbdc94a2b16419ce7d0bee8e621..3ec3b504906c09d2ccb7302de8d49dcd10f67ec9 100644 (file)
@@ -156,8 +156,8 @@ function! javascriptcomplete#CompleteJS(findstart, base)
                                        \ 'text', 'vLink']
                let bodys = bodyprop
                " Document - document.
-               let docuprop = ['anchors', 'body', 'characterSet', 'doctype',
-                                       \ 'documentElement', 'documentURI', 'embeds', 'fonts', 'forms',
+               let docuprop = ['anchors', 'applets', 'body', 'characterSet', 'childNodes',
+                                       \ 'doctype', 'documentElement', 'documentURI', 'embeds', 'fonts', 'forms',
                                        \ 'head', 'hidden', 'images', 'implementation', 'lastStyleSheetSet',
                                        \ 'links', 'plugins', 'preferredStyleSheetSet', 'scripts',
                                        \ 'scrollingElement', 'selectedStyleSheetSet', 'styleSheetSets',
@@ -171,7 +171,7 @@ function! javascriptcomplete#CompleteJS(findstart, base)
                                        \ 'createEvent', 'createExpression', 'createNSResolver',
                                        \ 'createNodeIterator', 'createProcessingInstruction', 'createRange',
                                        \ 'createTextNode', 'createTouchList', 'createTreeWalker',
-                                       \ 'enableStyleSheetsForSet', 'evaluate', 'focus', 'getElementById',
+                                       \ 'enableStyleSheetsForSet', 'evaluate', 'focus', 
                                        \ 'getElementById', 'getElementsByClassName', 'getElementsByName',
                                        \ 'getElementsByTagName', 'getElementsByTagNameNS',
                                        \ 'hasStorageAccess', 'importNode', 'onClick', 'onDblClick',