mediawiki.loader: fix JSDoc type for mw.loader.addStyleTag
HTMLElement does not have the `sheet` property of HTMLStyleElement. Issue originally spotted by AnYiEE in https://github.com/wikimedia-gadgets/types-mediawiki/pull/21 Change-Id: I1c83e753be0204e8b18fc466dd23091a8d5df34a
This commit is contained in:
parent
11f6d906a9
commit
be8c592a5c
2 changed files with 2 additions and 2 deletions
|
|
@ -7,7 +7,7 @@
|
|||
"--builtin-classes": true,
|
||||
"--processes": "0",
|
||||
"--warnings-exit-nonzero": true,
|
||||
"--external": "Blob,File,FileList,HTMLDocument,HTMLElement,HTMLIFrameElement,HTMLInputElement,HTMLBodyElement,HTMLHtmlElement,KeyboardEvent,MouseEvent,Node,Window,XMLDocument,Set",
|
||||
"--external": "Blob,File,FileList,HTMLDocument,HTMLElement,HTMLIFrameElement,HTMLInputElement,HTMLBodyElement,HTMLHtmlElement,HTMLStyleElement,KeyboardEvent,MouseEvent,Node,Window,XMLDocument,Set",
|
||||
"--output": "docs/js",
|
||||
"--exclude": [
|
||||
"resources/src/jquery.tablesorter",
|
||||
|
|
|
|||
|
|
@ -212,7 +212,7 @@
|
|||
* @param {string} text CSS text
|
||||
* @param {Node|null} [nextNode] The element where the style tag
|
||||
* should be inserted before
|
||||
* @return {HTMLElement} Reference to the created style element
|
||||
* @return {HTMLStyleElement} Reference to the created style element
|
||||
*/
|
||||
function newStyleTag( text, nextNode ) {
|
||||
var el = document.createElement( 'style' );
|
||||
|
|
|
|||
Loading…
Reference in a new issue