ie_dom.js (33754B)
1 /* 2 * Copyright 2008 The Closure Compiler Authors 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 /** 18 * @fileoverview Definitions for all the extensions over the 19 * W3C's DOM specification by IE in JScript. This file depends on 20 * w3c_dom2.js. The whole file has NOT been fully type annotated. 21 * 22 * When a non-standard extension appears in both Gecko and IE, we put 23 * it in gecko_dom.js 24 * 25 * @externs 26 * @author stevey@google.com (Steve Yegge) 27 */ 28 29 // TODO(nicksantos): Rewrite all the DOM interfaces as interfaces, instead 30 // of kludging them as an inheritance hierarchy. 31 32 /** 33 * @constructor 34 * @extends {Document} 35 * @see http://msdn.microsoft.com/en-us/library/ms757878(VS.85).aspx 36 */ 37 function XMLDOMDocument() {} 38 39 /** 40 * @type {boolean} 41 * @see http://msdn.microsoft.com/en-us/library/ms761398(VS.85).aspx 42 */ 43 XMLDOMDocument.prototype.async; 44 45 /** 46 * @type {!Function} 47 * @see http://msdn.microsoft.com/en-us/library/ms762647(VS.85).aspx 48 */ 49 XMLDOMDocument.prototype.ondataavailable; 50 51 /** 52 * @type {!Function} 53 * @see http://msdn.microsoft.com/en-us/library/ms764640(VS.85).aspx 54 */ 55 XMLDOMDocument.prototype.onreadystatechange; 56 57 /** 58 * @type {!Function} 59 * @see http://msdn.microsoft.com/en-us/library/ms753795(VS.85).aspx 60 */ 61 XMLDOMDocument.prototype.ontransformnode; 62 63 /** 64 * @type {Object} 65 * @see http://msdn.microsoft.com/en-us/library/ms756041(VS.85).aspx 66 */ 67 XMLDOMDocument.prototype.parseError; 68 69 /** 70 * @type {boolean} 71 * @see http://msdn.microsoft.com/en-us/library/ms761353(VS.85).aspx 72 */ 73 XMLDOMDocument.prototype.preserveWhiteSpace; 74 75 /** 76 * @type {number} 77 * @see http://msdn.microsoft.com/en-us/library/ms753702(VS.85).aspx 78 */ 79 XMLDOMDocument.prototype.readyState; 80 81 /** 82 * @see http://msdn.microsoft.com/en-us/library/ms762283(VS.85).aspx 83 * @type {boolean} 84 */ 85 XMLDOMDocument.prototype.resolveExternals; 86 87 /** 88 * @see http://msdn.microsoft.com/en-us/library/ms760290(v=vs.85).aspx 89 * @param {string} name 90 * @param {*} value 91 */ 92 XMLDOMDocument.prototype.setProperty = function(name, value) {}; 93 94 /** 95 * @type {string} 96 * @see http://msdn.microsoft.com/en-us/library/ms767669(VS.85).aspx 97 */ 98 XMLDOMDocument.prototype.url; 99 100 /** 101 * @type {boolean} 102 * @see http://msdn.microsoft.com/en-us/library/ms762791(VS.85).aspx 103 */ 104 XMLDOMDocument.prototype.validateOnParse; 105 106 /** 107 * @see http://msdn.microsoft.com/en-us/library/ms763830(VS.85).aspx 108 */ 109 XMLDOMDocument.prototype.abort = function() {}; 110 111 /** 112 * @param {*} type 113 * @param {string} name 114 * @param {string} namespaceURI 115 * @return {Node} 116 * @see http://msdn.microsoft.com/en-us/library/ms757901(VS.85).aspx 117 * @nosideeffects 118 */ 119 XMLDOMDocument.prototype.createNode = function(type, name, namespaceURI) {}; 120 121 /** 122 * @param {string} xmlSource 123 * @return {boolean} 124 * @see http://msdn.microsoft.com/en-us/library/ms762722(VS.85).aspx 125 * @override 126 */ 127 XMLDOMDocument.prototype.load = function(xmlSource) {}; 128 129 /** 130 * @param {string} xmlString 131 * @return {boolean} 132 * @see http://msdn.microsoft.com/en-us/library/ms754585(VS.85).aspx 133 * @override 134 */ 135 XMLDOMDocument.prototype.loadXML = function(xmlString) {}; 136 137 /** 138 * @param {string} id 139 * @return {Node} 140 * @see http://msdn.microsoft.com/en-us/library/ms766397(VS.85).aspx 141 */ 142 XMLDOMDocument.prototype.nodeFromID = function(id) {}; 143 144 //============================================================================== 145 // XMLNode methods and properties 146 // In a real DOM hierarchy, XMLDOMDocument inherits from XMLNode and Document. 147 // Since we can't express that in our type system, we put XMLNode properties 148 // on Node. 149 150 /** 151 * @type {string} 152 * @see http://msdn.microsoft.com/en-us/library/ms767570(VS.85).aspx 153 */ 154 Node.prototype.baseName; 155 156 /** 157 * @type {?string} 158 * @see http://msdn.microsoft.com/en-us/library/ms762763(VS.85).aspx 159 */ 160 Node.prototype.dataType; 161 162 /** 163 * @type {Node} 164 * @see http://msdn.microsoft.com/en-us/library/ms764733(VS.85).aspx 165 */ 166 Node.prototype.definition; 167 168 /** 169 * IE5 used document instead of ownerDocument. 170 * Old versions of WebKit used document instead of contentDocument. 171 * @type {Document} 172 */ 173 Node.prototype.document; 174 175 176 /** 177 * Inserts the given HTML text into the element at the location. 178 * @param {string} sWhere Where to insert the HTML text, one of 'beforeBegin', 179 * 'afterBegin', 'beforeEnd', 'afterEnd'. 180 * @param {string} sText HTML text to insert. 181 * @see http://msdn.microsoft.com/en-us/library/ms536452(VS.85).aspx 182 */ 183 Node.prototype.insertAdjacentHTML = function(sWhere, sText) {}; 184 185 186 /** 187 * @type {*} 188 * @see http://msdn.microsoft.com/en-us/library/ms762308(VS.85).aspx 189 */ 190 Node.prototype.nodeTypedValue; 191 192 /** 193 * @type {string} 194 * @see http://msdn.microsoft.com/en-us/library/ms757895(VS.85).aspx 195 */ 196 Node.prototype.nodeTypeString; 197 198 /** 199 * @type {boolean} 200 * @see http://msdn.microsoft.com/en-us/library/ms762237(VS.85).aspx 201 */ 202 Node.prototype.parsed; 203 204 /** 205 * @type {Element} 206 * @see http://msdn.microsoft.com/en-us/library/ms534327(VS.85).aspx 207 */ 208 Node.prototype.parentElement; 209 210 /** 211 * @type {boolean} 212 * @see http://msdn.microsoft.com/en-us/library/ms753816(VS.85).aspx 213 */ 214 Node.prototype.specified; 215 216 /** 217 * @type {string} 218 * @see http://msdn.microsoft.com/en-us/library/ms762687(VS.85).aspx 219 */ 220 Node.prototype.text; 221 222 /** 223 * @type {string} 224 * @see http://msdn.microsoft.com/en-us/library/ms755989(VS.85).aspx 225 */ 226 Node.prototype.xml; 227 228 /** 229 * @param {string} expression An XPath expression. 230 * @return {NodeList} 231 * @see http://msdn.microsoft.com/en-us/library/ms754523(VS.85).aspx 232 * @nosideeffects 233 */ 234 Node.prototype.selectNodes = function(expression) {}; 235 236 /** 237 * @param {string} expression An XPath expression. 238 * @return {Node} 239 * @see http://msdn.microsoft.com/en-us/library/ms757846(VS.85).aspx 240 * @nosideeffects 241 */ 242 Node.prototype.selectSingleNode = function(expression) {}; 243 244 /** 245 * @param {Node} stylesheet XSLT stylesheet. 246 * @return {string} 247 * @see http://msdn.microsoft.com/en-us/library/ms761399(VS.85).aspx 248 * @nosideeffects 249 */ 250 Node.prototype.transformNode = function(stylesheet) {}; 251 252 /** 253 * @param {Node} stylesheet XSLT stylesheet. 254 * @param {Object} outputObject 255 * @see http://msdn.microsoft.com/en-us/library/ms766561(VS.85).aspx 256 */ 257 Node.prototype.transformNodeToObject = 258 function(stylesheet, outputObject) {}; 259 260 //============================================================================== 261 // Node methods 262 263 /** 264 * @param {boolean=} opt_bRemoveChildren Whether to remove the entire sub-tree. 265 * Defaults to false. 266 * @return {Node} The object that was removed. 267 * @see http://msdn.microsoft.com/en-us/library/ms536708(VS.85).aspx 268 */ 269 Node.prototype.removeNode = function(opt_bRemoveChildren) {}; 270 271 /** 272 * @constructor 273 */ 274 function ClipboardData() {} 275 276 /** 277 * @see http://msdn.microsoft.com/en-us/library/ms535220(VS.85).aspx 278 * @param {string=} opt_type Type of clipboard data to clear. 'Text' or 279 * 'URL' or 'File' or 'HTML' or 'Image'. 280 */ 281 ClipboardData.prototype.clearData = function(opt_type) {}; 282 283 /** 284 * @see http://msdn.microsoft.com/en-us/library/ms535220(VS.85).aspx 285 * @param {string} type Type of clipboard data to set ('Text' or 'URL'). 286 * @param {string} data Data to set 287 * @return {boolean} Whether the data were set correctly. 288 */ 289 ClipboardData.prototype.setData = function(type, data) {}; 290 291 /** 292 * @see http://msdn.microsoft.com/en-us/library/ms535220(VS.85).aspx 293 * @param {string} type Type of clipboard data to get ('Text' or 'URL'). 294 * @return {string} The current data 295 */ 296 ClipboardData.prototype.getData = function(type) { }; 297 298 /** 299 * @type {!Window} 300 * @see https://developer.mozilla.org/en/DOM/window 301 */ 302 var window; 303 304 /** 305 * @see http://msdn.microsoft.com/en-us/library/ms535220(VS.85).aspx 306 * @type ClipboardData 307 */ 308 Window.prototype.clipboardData; 309 310 /** 311 * @see http://msdn.microsoft.com/en-us/library/ms533724(VS.85).aspx 312 */ 313 Window.prototype.dialogHeight; 314 315 /** 316 * @see http://msdn.microsoft.com/en-us/library/ms533725(VS.85).aspx 317 */ 318 Window.prototype.dialogLeft; 319 320 /** 321 * @see http://msdn.microsoft.com/en-us/library/ms533726(VS.85).aspx 322 */ 323 Window.prototype.dialogTop; 324 325 /** 326 * @see http://msdn.microsoft.com/en-us/library/ms533727(VS.85).aspx 327 */ 328 Window.prototype.dialogWidth; 329 330 /** 331 * @see http://msdn.microsoft.com/en-us/library/ms535863(VS.85).aspx 332 */ 333 Window.prototype.event; 334 335 /** 336 * @see http://msdn.microsoft.com/en-us/library/cc197012(VS.85).aspx 337 */ 338 Window.prototype.maxConnectionsPer1_0Server; 339 340 /** 341 * @see http://msdn.microsoft.com/en-us/library/cc197013(VS.85).aspx 342 */ 343 Window.prototype.maxConnectionsPerServer; 344 345 /** 346 * @see http://msdn.microsoft.com/en-us/library/ms534198(VS.85).aspx 347 */ 348 Window.prototype.offscreenBuffering; 349 350 /** 351 * @see http://msdn.microsoft.com/en-us/library/ms534389(VS.85).aspx 352 */ 353 Window.prototype.screenLeft; 354 355 /** 356 * @see http://msdn.microsoft.com/en-us/library/ms534389(VS.85).aspx 357 */ 358 Window.prototype.screenTop; 359 360 // Functions 361 362 /** 363 * @param {string} event 364 * @param {Function} handler 365 * @see http://msdn.microsoft.com/en-us/library/ms536343(VS.85).aspx 366 */ 367 Window.prototype.attachEvent; 368 369 /** 370 * @see http://msdn.microsoft.com/en-us/library/ms536392(VS.85).aspx 371 */ 372 Window.prototype.createPopup; 373 374 /** 375 * @param {string} event 376 * @param {Function} handler 377 * @see http://msdn.microsoft.com/en-us/library/ms536411(VS.85).aspx 378 */ 379 Window.prototype.detachEvent; 380 381 /** 382 * @see http://msdn.microsoft.com/en-us/library/ms536420(VS.85).aspx 383 */ 384 Window.prototype.execScript; 385 386 /** 387 * @see http://msdn.microsoft.com/en-us/library/ms536425(VS.85).aspx 388 */ 389 Window.prototype.focus; 390 391 /** 392 * @param {number} x 393 * @param {number} y 394 * @see http://msdn.microsoft.com/en-us/library/ms536618(VS.85).aspx 395 */ 396 Window.prototype.moveBy = function(x, y) {}; 397 398 /** 399 * @param {number} x 400 * @param {number} y 401 * @see http://msdn.microsoft.com/en-us/library/ms536626(VS.85).aspx 402 */ 403 Window.prototype.moveTo = function(x, y) {}; 404 405 /** 406 * @see http://msdn.microsoft.com/en-us/library/ms536638(VS.85).aspx 407 */ 408 Window.prototype.navigate; 409 410 /** 411 * @param {*=} opt_url 412 * @param {string=} opt_windowName 413 * @param {string=} opt_windowFeatures 414 * @param {boolean=} opt_replace 415 * @return {Window} 416 * @see http://msdn.microsoft.com/en-us/library/ms536651(VS.85).aspx 417 */ 418 Window.prototype.open = function(opt_url, opt_windowName, opt_windowFeatures, 419 opt_replace) {}; 420 421 /** 422 * @see http://msdn.microsoft.com/en-us/library/ms536672(VS.85).aspx 423 */ 424 Window.prototype.print = function() {}; 425 426 /** 427 * @param {number} width 428 * @param {number} height 429 * @see http://msdn.microsoft.com/en-us/library/ms536722(VS.85).aspx 430 */ 431 Window.prototype.resizeBy = function(width, height) {}; 432 433 /** 434 * @param {number} width 435 * @param {number} height 436 * @see http://msdn.microsoft.com/en-us/library/ms536723(VS.85).aspx 437 */ 438 Window.prototype.resizeTo = function(width, height) {}; 439 440 /** 441 * @see http://msdn.microsoft.com/en-us/library/ms536738(VS.85).aspx 442 */ 443 Window.prototype.setActive; 444 445 /** 446 * @see http://msdn.microsoft.com/en-us/library/ms536758(VS.85).aspx 447 */ 448 Window.prototype.showHelp; 449 450 /** 451 * @see http://msdn.microsoft.com/en-us/library/ms536761(VS.85).aspx 452 */ 453 Window.prototype.showModelessDialog; 454 455 /** 456 * @see http://msdn.microsoft.com/en-us/library/ms535246%28v=vs.85%29.aspx 457 * @const {!Object} 458 */ 459 Window.prototype.external; 460 461 /** 462 * @constructor 463 */ 464 function History() { }; 465 466 /** 467 * @see http://msdn.microsoft.com/en-us/library/ms535864(VS.85).aspx 468 * @param {number|string} delta The number of entries to go back, or 469 * the URL to which to go back. (URL form is supported only in IE) 470 */ 471 History.prototype.go = function(delta) {}; 472 473 /** 474 * @see http://msdn.microsoft.com/en-us/library/ms535864(VS.85).aspx 475 * @param {number=} opt_distance The number of entries to go back 476 * (Mozilla doesn't support distance -- use #go instead) 477 */ 478 History.prototype.back = function(opt_distance) {}; 479 480 /** 481 * @see http://msdn.microsoft.com/en-us/library/ms535864(VS.85).aspx 482 * @type {number} 483 */ 484 History.prototype.length; 485 486 /** 487 * @see http://msdn.microsoft.com/en-us/library/ms535864(VS.85).aspx 488 */ 489 History.prototype.forward = function() {}; 490 491 /** 492 * @type {boolean} 493 * @implicitCast 494 * @see http://msdn.microsoft.com/en-us/library/ie/ms533072(v=vs.85).aspx 495 */ 496 HTMLFrameElement.prototype.allowTransparency; 497 498 /** 499 * @type {Window} 500 * @see http://msdn.microsoft.com/en-us/library/ms533692(VS.85).aspx 501 */ 502 HTMLFrameElement.prototype.contentWindow; 503 504 /** 505 * @type {boolean} 506 * @implicitCast 507 * @see http://msdn.microsoft.com/en-us/library/ie/ms533072(v=vs.85).aspx 508 */ 509 HTMLIFrameElement.prototype.allowTransparency; 510 511 /** 512 * @type {Window} 513 * @see http://msdn.microsoft.com/en-us/library/ms533692(VS.85).aspx 514 */ 515 HTMLIFrameElement.prototype.contentWindow; 516 517 /** 518 * @see http://msdn.microsoft.com/en-us/library/ms536385(VS.85).aspx 519 */ 520 HTMLBodyElement.prototype.createControlRange; 521 522 /** 523 * @type {string} 524 * @see http://msdn.microsoft.com/en-us/library/ms534359(VS.85).aspx 525 */ 526 HTMLScriptElement.prototype.readyState; 527 528 /** 529 * @type {string} 530 * @see http://msdn.microsoft.com/en-us/library/ms534359(VS.85).aspx 531 */ 532 HTMLIFrameElement.prototype.readyState; 533 534 /** 535 * @type {string} 536 * @see http://msdn.microsoft.com/en-us/library/ms534359(VS.85).aspx 537 */ 538 HTMLImageElement.prototype.readyState; 539 540 /** 541 * @type {string} 542 * @see http://msdn.microsoft.com/en-us/library/ms534359(VS.85).aspx 543 */ 544 HTMLObjectElement.prototype.readyState; 545 546 547 /** 548 * @constructor 549 */ 550 function ControlRange() {} 551 552 ControlRange.prototype.add; 553 ControlRange.prototype.addElement; 554 ControlRange.prototype.execCommand; 555 ControlRange.prototype.item; 556 ControlRange.prototype.queryCommandEnabled; 557 ControlRange.prototype.queryCommandIndeterm; 558 ControlRange.prototype.queryCommandState; 559 ControlRange.prototype.queryCommandSupported; 560 ControlRange.prototype.queryCommandValue; 561 ControlRange.prototype.remove; 562 ControlRange.prototype.scrollIntoView; 563 ControlRange.prototype.select; 564 565 /** 566 * @constructor 567 * @see http://msdn.microsoft.com/en-us/library/ms535872.aspx 568 */ 569 function TextRange() {} 570 571 /** 572 * @see http://msdn.microsoft.com/en-us/library/ms533538(VS.85).aspx 573 */ 574 TextRange.prototype.boundingHeight; 575 576 /** 577 * @see http://msdn.microsoft.com/en-us/library/ms533539(VS.85).aspx 578 */ 579 TextRange.prototype.boundingLeft; 580 581 /** 582 * @see http://msdn.microsoft.com/en-us/library/ms533540(VS.85).aspx 583 */ 584 TextRange.prototype.boundingTop; 585 586 /** 587 * @see http://msdn.microsoft.com/en-us/library/ms533541(VS.85).aspx 588 */ 589 TextRange.prototype.boundingWidth; 590 591 /** 592 * @see http://msdn.microsoft.com/en-us/library/ms533874(VS.85).aspx 593 */ 594 TextRange.prototype.htmlText; 595 596 /** 597 * @see http://msdn.microsoft.com/en-us/library/ms534200(VS.85).aspx 598 */ 599 TextRange.prototype.offsetLeft; 600 601 /** 602 * @see http://msdn.microsoft.com/en-us/library/ms534303(VS.85).aspx 603 */ 604 TextRange.prototype.offsetTop; 605 606 /** 607 * @see http://msdn.microsoft.com/en-us/library/ms534676(VS.85).aspx 608 */ 609 TextRange.prototype.text; 610 611 /** 612 * @see http://msdn.microsoft.com/en-us/library/ms536371(VS.85).aspx 613 */ 614 TextRange.prototype.collapse; 615 616 /** 617 * @see http://msdn.microsoft.com/en-us/library/ms536373(VS.85).aspx 618 */ 619 TextRange.prototype.compareEndPoints; 620 621 /** 622 * @see http://msdn.microsoft.com/en-us/library/ms536416(VS.85).aspx 623 */ 624 TextRange.prototype.duplicate; 625 626 /** 627 * @see http://msdn.microsoft.com/en-us/library/ms536419(VS.85).aspx 628 */ 629 TextRange.prototype.execCommand; 630 631 /** 632 * @see http://msdn.microsoft.com/en-us/library/ms536421(VS.85).aspx 633 */ 634 TextRange.prototype.expand; 635 636 /** 637 * @see http://msdn.microsoft.com/en-us/library/ms536422(VS.85).aspx 638 */ 639 TextRange.prototype.findText; 640 641 /** 642 * @see http://msdn.microsoft.com/en-us/library/ms536432(VS.85).aspx 643 */ 644 TextRange.prototype.getBookmark; 645 646 /** 647 * @see http://msdn.microsoft.com/en-us/library/ms536433(VS.85).aspx 648 */ 649 TextRange.prototype.getBoundingClientRect; 650 651 /** 652 * @see http://msdn.microsoft.com/en-us/library/ms536435(VS.85).aspx 653 */ 654 TextRange.prototype.getClientRects; 655 656 /** 657 * @see http://msdn.microsoft.com/en-us/library/ms536450(VS.85).aspx 658 */ 659 TextRange.prototype.inRange; 660 661 /** 662 * @see http://msdn.microsoft.com/en-us/library/ms536458(VS.85).aspx 663 */ 664 TextRange.prototype.isEqual; 665 666 /** 667 * @see http://msdn.microsoft.com/en-us/library/ms536616(VS.85).aspx 668 */ 669 TextRange.prototype.move; 670 671 /** 672 * @see http://msdn.microsoft.com/en-us/library/ms536620(VS.85).aspx 673 */ 674 TextRange.prototype.moveEnd; 675 676 /** 677 * @see http://msdn.microsoft.com/en-us/library/ms536623(VS.85).aspx 678 */ 679 TextRange.prototype.moveStart; 680 681 /** 682 * @see http://msdn.microsoft.com/en-us/library/ms536628(VS.85).aspx 683 */ 684 TextRange.prototype.moveToBookmark; 685 686 /** 687 * @see http://msdn.microsoft.com/en-us/library/ms536630(VS.85).aspx 688 */ 689 TextRange.prototype.moveToElementText; 690 691 /** 692 * @see http://msdn.microsoft.com/en-us/library/ms536632(VS.85).aspx 693 */ 694 TextRange.prototype.moveToPoint; 695 696 /** 697 * @see http://msdn.microsoft.com/en-us/library/ms536654(VS.85).aspx 698 */ 699 TextRange.prototype.parentElement; 700 701 /** 702 * @see http://msdn.microsoft.com/en-us/library/ms536656(VS.85).aspx 703 */ 704 TextRange.prototype.pasteHTML; 705 706 /** 707 * @see http://msdn.microsoft.com/en-us/library/ms536676(VS.85).aspx 708 */ 709 TextRange.prototype.queryCommandEnabled; 710 711 /** 712 * @see http://msdn.microsoft.com/en-us/library/ms536678(VS.85).aspx 713 */ 714 TextRange.prototype.queryCommandIndeterm; 715 716 /** 717 * @see http://msdn.microsoft.com/en-us/library/ms536679(VS.85).aspx 718 */ 719 TextRange.prototype.queryCommandState; 720 721 /** 722 * @see http://msdn.microsoft.com/en-us/library/ms536681(VS.85).aspx 723 */ 724 TextRange.prototype.queryCommandSupported; 725 726 /** 727 * @see http://msdn.microsoft.com/en-us/library/ms536683(VS.85).aspx 728 */ 729 TextRange.prototype.queryCommandValue; 730 731 /** 732 * @see http://msdn.microsoft.com/en-us/library/ms536730(VS.85).aspx 733 */ 734 TextRange.prototype.scrollIntoView; 735 736 /** 737 * @see http://msdn.microsoft.com/en-us/library/ms536735(VS.85).aspx 738 */ 739 TextRange.prototype.select; 740 741 /** 742 * @see http://msdn.microsoft.com/en-us/library/ms536745(VS.85).aspx 743 */ 744 TextRange.prototype.setEndPoint; 745 746 /** 747 * @return {undefined} 748 * @see http://msdn.microsoft.com/en-us/library/ms536418(VS.85).aspx 749 */ 750 Selection.prototype.clear = function() {}; 751 752 /** 753 * @return {TextRange|ControlRange} 754 * @see http://msdn.microsoft.com/en-us/library/ms536394(VS.85).aspx 755 */ 756 Selection.prototype.createRange = function() {}; 757 758 /** 759 * @return {Array.<TextRange>} 760 * @see http://msdn.microsoft.com/en-us/library/ms536396(VS.85).aspx 761 */ 762 Selection.prototype.createRangeCollection = function() {}; 763 764 /** 765 * @constructor 766 * @see http://msdn.microsoft.com/en-us/library/ms537447(VS.85).aspx 767 */ 768 function controlRange() {} 769 770 771 Document.prototype.loadXML; 772 773 774 // http://msdn.microsoft.com/en-us/library/ms531073(VS.85).aspx 775 776 /** 777 * @see http://msdn.microsoft.com/en-us/library/ms533065(VS.85).aspx 778 */ 779 Document.prototype.activeElement; 780 781 /** 782 * @see http://msdn.microsoft.com/en-us/library/ms533553(VS.85).aspx 783 */ 784 Document.prototype.charset; 785 786 /** 787 * @see http://msdn.microsoft.com/en-us/library/ms533693(VS.85).aspx 788 */ 789 Document.prototype.cookie; 790 791 /** 792 * @see http://msdn.microsoft.com/en-us/library/ms533714(VS.85).aspx 793 */ 794 Document.prototype.defaultCharset; 795 796 /** 797 * @see http://msdn.microsoft.com/en-us/library/ms533731(VS.85).aspx 798 */ 799 Document.prototype.dir; 800 801 /** 802 * @see http://msdn.microsoft.com/en-us/library/cc196988(VS.85).aspx 803 */ 804 Document.prototype.documentMode; 805 806 /** 807 * @see http://msdn.microsoft.com/en-us/library/ms533747(VS.85).aspx 808 */ 809 Document.prototype.expando; 810 811 /** 812 * @see http://msdn.microsoft.com/en-us/library/ms533750(VS.85).aspx 813 */ 814 Document.prototype.fileCreatedDate; 815 816 /** 817 * @see http://msdn.microsoft.com/en-us/library/ms533751(VS.85).aspx 818 */ 819 Document.prototype.fileModifiedDate; 820 821 /** 822 * @see http://msdn.microsoft.com/en-us/library/ms533752(VS.85).aspx 823 */ 824 Document.prototype.fileSize; 825 826 /** 827 * @see http://msdn.microsoft.com/en-us/library/ms534331(VS.85).aspx 828 */ 829 Document.prototype.parentWindow; 830 831 /** 832 * @see http://msdn.microsoft.com/en-us/library/ms534353(VS.85).aspx 833 */ 834 Document.prototype.protocol; 835 836 /** 837 * @type {string} 838 * @see http://msdn.microsoft.com/en-us/library/ms534359(VS.85).aspx 839 */ 840 HTMLDocument.prototype.readyState; 841 842 /** 843 * @type {Selection} 844 * @see http://msdn.microsoft.com/en-us/library/ms535869(VS.85).aspx 845 */ 846 Document.prototype.selection; 847 848 /** 849 * @see http://msdn.microsoft.com/en-us/library/ms534704(VS.85).aspx 850 */ 851 Document.prototype.uniqueID; 852 853 /** 854 * @see http://msdn.microsoft.com/en-us/library/ms534709(VS.85).aspx 855 */ 856 Document.prototype.URLUnencoded; 857 858 /** 859 * @see http://msdn.microsoft.com/en-us/library/ms535155(VS.85).aspx 860 */ 861 Document.prototype.XMLDocument; 862 863 /** 864 * @see http://msdn.microsoft.com/en-us/library/ms535163(VS.85).aspx 865 */ 866 Document.prototype.XSLDocument; 867 868 // functions 869 870 /** 871 * @param {string} event 872 * @param {Function} handler 873 * @see http://msdn.microsoft.com/en-us/library/ms536343(VS.85).aspx 874 */ 875 Document.prototype.attachEvent; 876 877 /** 878 * @see http://msdn.microsoft.com/en-us/library/ms536390(VS.85).aspx 879 */ 880 Document.prototype.createEventObject; 881 882 /** 883 * @see http://msdn.microsoft.com/en-us/library/ms531194(VS.85).aspx 884 */ 885 Document.prototype.createStyleSheet; 886 887 /** 888 * @param {string} event 889 * @param {Function} handler 890 * @see http://msdn.microsoft.com/en-us/library/ms536411(VS.85).aspx 891 */ 892 Document.prototype.detachEvent; 893 894 /** 895 * @see http://msdn.microsoft.com/en-us/library/ms536425(VS.85).aspx 896 */ 897 Document.prototype.focus; 898 899 /** 900 * @see http://msdn.microsoft.com/en-us/library/ms536447(VS.85).aspx 901 * @return {boolean} 902 */ 903 Document.prototype.hasFocus = function() {}; 904 905 /** 906 * @see http://msdn.microsoft.com/en-us/library/ms536614(VS.85).aspx 907 */ 908 Document.prototype.mergeAttributes; 909 910 /** 911 * @see http://msdn.microsoft.com/en-us/library/ms536685(VS.85).aspx 912 */ 913 Document.prototype.recalc; 914 915 /** 916 * @see http://msdn.microsoft.com/en-us/library/ms536689(VS.85).aspx 917 */ 918 Document.prototype.releaseCapture; 919 920 /** 921 * @see http://msdn.microsoft.com/en-us/library/ms536738(VS.85).aspx 922 */ 923 Document.prototype.setActive; 924 925 926 // collections 927 928 /** 929 * @see http://msdn.microsoft.com/en-us/library/ms537434(VS.85).aspx 930 */ 931 Document.prototype.all; 932 933 /** 934 * @see http://msdn.microsoft.com/en-us/library/ms537445(VS.85).aspx 935 */ 936 Document.prototype.childNodes; 937 938 /** 939 * @see http://msdn.microsoft.com/en-us/library/ms537459(VS.85).aspx 940 */ 941 Document.prototype.frames; 942 943 /** 944 * @see http://msdn.microsoft.com/en-us/library/ms537470(VS.85).aspx 945 */ 946 Document.prototype.namespaces; 947 948 /** 949 * @see http://msdn.microsoft.com/en-us/library/ms537487(VS.85).aspx 950 */ 951 Document.prototype.scripts; 952 953 /** 954 * @param {string} sUrl 955 * @return {number} 956 * @see http://msdn.microsoft.com/en-us/library/ms535922(VS.85).aspx 957 */ 958 Element.prototype.addBehavior = function(sUrl) {}; 959 960 /** 961 * @param {string} event 962 * @param {Function} handler 963 * @see http://msdn.microsoft.com/en-us/library/mm536343(v=vs.85).aspx 964 */ 965 Element.prototype.attachEvent; 966 967 /** 968 * @type {boolean} 969 * @see http://msdn.microsoft.com/en-us/library/ms533546(VS.85).aspx 970 */ 971 Element.prototype.canHaveChildren; 972 973 /** 974 * @type {string} 975 * @see http://msdn.microsoft.com/en-us/library/ms533559(v=vs.85).aspx 976 */ 977 Element.prototype.classid; 978 979 /** 980 * @param {number} iCoordX Integer that specifies the client window coordinate 981 * of x. 982 * @param {number} iCoordY Integer that specifies the client window coordinate 983 * of y. 984 * @return {string} The component of an element located at the specified 985 * coordinates. 986 * @see http://msdn.microsoft.com/en-us/library/ms536375(VS.85).aspx 987 * @nosideeffects 988 */ 989 Element.prototype.componentFromPoint = function(iCoordX, iCoordY) {}; 990 991 992 /** 993 * @type {boolean} 994 * @see http://msdn.microsoft.com/en-us/library/ms533690(VS.85).aspx 995 */ 996 Element.prototype.contentEditable; 997 998 /** 999 * @return {TextRange} 1000 * @see http://msdn.microsoft.com/en-us/library/ms536401(VS.85).aspx 1001 */ 1002 Element.prototype.createTextRange; 1003 1004 /** 1005 * @see http://msdn.microsoft.com/en-us/library/ms535231(VS.85).aspx 1006 */ 1007 Element.prototype.currentStyle; 1008 1009 /** 1010 * @param {string} event 1011 * @param {Function} handler 1012 * @see http://msdn.microsoft.com/en-us/library/ie/ms536411(v=vs.85).aspx 1013 */ 1014 Element.prototype.detachEvent; 1015 1016 /** 1017 * @param {string=} opt_action 1018 * @see http://msdn.microsoft.com/en-us/library/ms536414%28VS.85%29.aspx 1019 */ 1020 Element.prototype.doScroll = function(opt_action) {}; 1021 1022 /** 1023 * @see http://msdn.microsoft.com/en-us/library/ms536423(VS.85).aspx 1024 */ 1025 Element.prototype.fireEvent; 1026 1027 /** 1028 * @type {boolean} 1029 * @see http://msdn.microsoft.com/en-us/library/ms533783(VS.85).aspx 1030 */ 1031 Element.prototype.hideFocus; 1032 1033 /** 1034 * @see http://msdn.microsoft.com/en-us/library/ms533899.aspx 1035 */ 1036 Element.prototype.innerText; 1037 1038 /** 1039 * @see http://msdn.microsoft.com/en-us/library/ms537838(VS.85).aspx 1040 */ 1041 Element.prototype.isContentEditable; 1042 1043 /** 1044 * @see http://msdn.microsoft.com/en-us/library/ms531395(v=vs.85).aspx 1045 * NOTE: Left untyped to avoid conflict with subclasses. 1046 */ 1047 Element.prototype.load; 1048 1049 /** 1050 * @param {number} pointerId Id of the pointer that is assign to the element. 1051 * @see http://msdn.microsoft.com/en-us/library/ie/hh771882(v=vs.85).aspx 1052 */ 1053 Element.prototype.msSetPointerCapture = function(pointerId) {}; 1054 1055 /** 1056 * @param {number} pointerId 1057 * @see http://msdn.microsoft.com/en-us/library/ie/hh771880.aspx 1058 */ 1059 Element.prototype.msReleasePointerCapture = function(pointerId) {}; 1060 1061 /** 1062 * @type {?function(Event)} 1063 * @see http://msdn.microsoft.com/en-us/library/ms536903(v=vs.85).aspx 1064 */ 1065 Element.prototype.onbeforedeactivate; 1066 1067 /** 1068 * @type {?function(Event)} 1069 * @see http://msdn.microsoft.com/en-us/library/ms536945(VS.85).aspx 1070 */ 1071 Element.prototype.onmouseenter; 1072 1073 /** 1074 * @type {?function(Event)} 1075 * @see http://msdn.microsoft.com/en-us/library/ms536946(VS.85).aspx 1076 */ 1077 Element.prototype.onmouseleave; 1078 1079 /** 1080 * @type {?function(Event)} 1081 * @see http://msdn.microsoft.com/en-us/library/ms536969(VS.85).aspx 1082 */ 1083 Element.prototype.onselectstart; 1084 1085 /** 1086 * @type {string} 1087 * @see http://msdn.microsoft.com/en-us/library/aa752326(VS.85).aspx 1088 */ 1089 Element.prototype.outerHTML; 1090 1091 /** 1092 * @see http://msdn.microsoft.com/en-us/library/ms536689(VS.85).aspx 1093 */ 1094 Element.prototype.releaseCapture = function() {}; 1095 1096 /** 1097 * @param {number} iID 1098 * @return {boolean} 1099 * @see http://msdn.microsoft.com/en-us/library/ms536700(VS.85).aspx 1100 */ 1101 Element.prototype.removeBehavior = function(iID) {}; 1102 1103 /** 1104 * @see http://msdn.microsoft.com/en-us/library/aa703996(VS.85).aspx 1105 */ 1106 Element.prototype.runtimeStyle; 1107 1108 /** 1109 * @param {string} sStoreName The arbitrary name assigned to a persistent object 1110 * in a UserData store. 1111 * @see http://msdn.microsoft.com/en-us/library/ms531403(v=vs.85).aspx 1112 */ 1113 Element.prototype.save = function(sStoreName) {}; 1114 1115 /** 1116 * @param {boolean=} opt_bContainerCapture Events originating in a container are 1117 * captured by the container. Defaults to true. 1118 * @see http://msdn.microsoft.com/en-us/library/ms536742(VS.85).aspx 1119 */ 1120 Element.prototype.setCapture = function(opt_bContainerCapture) {}; 1121 1122 /** 1123 * @see http://msdn.microsoft.com/en-us/library/ms534635(VS.85).aspx 1124 */ 1125 Element.prototype.sourceIndex; 1126 1127 /** 1128 * @type {string} 1129 * @see http://msdn.microsoft.com/en-us/library/ms537840.aspx 1130 */ 1131 Element.prototype.unselectable; 1132 1133 /** 1134 * @constructor 1135 * @see http://msdn.microsoft.com/en-us/library/aa752462(v=vs.85).aspx 1136 */ 1137 function HTMLFiltersCollection() {} 1138 1139 /** 1140 * @see http://msdn.microsoft.com/en-us/library/aa752463(v=vs.85).aspx 1141 * @type {number} 1142 */ 1143 HTMLFiltersCollection.prototype.length; 1144 1145 /** 1146 * @see http://msdn.microsoft.com/en-us/library/ms537452(v=vs.85).aspx 1147 * @type {HTMLFiltersCollection} 1148 */ 1149 Element.prototype.filters; 1150 1151 /** 1152 * @constructor 1153 * @see http://msdn.microsoft.com/en-us/library/ms532853(v=vs.85).aspx 1154 */ 1155 function HTMLFilter() {} 1156 1157 /** 1158 * @see http://msdn.microsoft.com/en-us/library/ms532954(v=vs.85).aspx 1159 */ 1160 HTMLFilter.prototype.apply = function() {}; 1161 1162 /** 1163 * @constructor 1164 * @extends {HTMLFilter} 1165 * @see http://msdn.microsoft.com/en-us/library/ms532967(v=vs.85).aspx 1166 */ 1167 function AlphaFilter() {} 1168 1169 /** 1170 * @see http://msdn.microsoft.com/en-us/library/ms532910(v=vs.85).aspx 1171 * @type {number} 1172 */ 1173 AlphaFilter.prototype.Opacity; 1174 1175 /** 1176 * @constructor 1177 * @extends {HTMLFilter} 1178 * @see http://msdn.microsoft.com/en-us/library/ms532969(v=vs.85).aspx 1179 */ 1180 function AlphaImageLoaderFilter() {} 1181 1182 /** 1183 * @see http://msdn.microsoft.com/en-us/library/ms532920(v=vs.85).aspx 1184 * @type {string} 1185 */ 1186 AlphaImageLoaderFilter.prototype.sizingMethod; 1187 1188 /** 1189 * @constructor 1190 * @see http://msdn.microsoft.com/en-us/library/ms535866(VS.85).aspx 1191 */ 1192 function Location() {} 1193 1194 /** 1195 * @see http://trac.webkit.org/changeset/113945 1196 * @type {DOMStringList} 1197 */ 1198 Location.prototype.ancestorOrigins; 1199 1200 /** 1201 * @see http://msdn.microsoft.com/en-us/library/ms533775(VS.85).aspx 1202 * @type {string} 1203 */ 1204 Location.prototype.hash; 1205 1206 /** 1207 * @see http://msdn.microsoft.com/en-us/library/ms533784(VS.85).aspx 1208 * @type {string} 1209 */ 1210 Location.prototype.host; 1211 1212 /** 1213 * @see http://msdn.microsoft.com/en-us/library/ms533785(VS.85).aspx 1214 * @type {string} 1215 */ 1216 Location.prototype.hostname; 1217 1218 /** 1219 * @see http://msdn.microsoft.com/en-us/library/ms533867(VS.85).aspx 1220 * @type {string} 1221 */ 1222 Location.prototype.href; 1223 1224 /** 1225 * @see https://docs.google.com/document/view?id=1r_VTFKApVOaNIkocrg0z-t7lZgzisTuGTXkdzAk4gLU&hl=en 1226 * @type {string} 1227 */ 1228 Location.prototype.origin; 1229 1230 /** 1231 * @see http://msdn.microsoft.com/en-us/library/ms534332(VS.85).aspx 1232 * @type {string} 1233 */ 1234 Location.prototype.pathname; 1235 1236 /** 1237 * @see http://msdn.microsoft.com/en-us/library/ms534342(VS.85).aspx 1238 */ 1239 Location.prototype.port; 1240 1241 /** 1242 * @see http://msdn.microsoft.com/en-us/library/ms534353(VS.85).aspx 1243 * @type {string} 1244 */ 1245 Location.prototype.protocol; 1246 1247 /** 1248 * @see http://msdn.microsoft.com/en-us/library/ms534620(VS.85).aspx 1249 * @type {string} 1250 */ 1251 Location.prototype.search; 1252 1253 /** 1254 * @see http://msdn.microsoft.com/en-us/library/ms536342(VS.85).aspx 1255 * @param {string} url 1256 */ 1257 Location.prototype.assign = function(url) {}; 1258 1259 /** 1260 * @param {boolean=} opt_forceReload If true, reloads the page from 1261 * the server. Defaults to false. 1262 * @see http://msdn.microsoft.com/en-us/library/ms536691(VS.85).aspx 1263 */ 1264 Location.prototype.reload = function(opt_forceReload) {}; 1265 1266 /** 1267 * @param {string} url 1268 * @see http://msdn.microsoft.com/en-us/library/ms536712(VS.85).aspx 1269 */ 1270 Location.prototype.replace = function(url) {}; 1271 1272 1273 // For IE, returns an object representing key-value pairs for all the global 1274 // variables prefixed with str, e.g. test* 1275 1276 /** @param {*=} opt_str */ 1277 function RuntimeObject(opt_str) {} 1278 1279 1280 /** 1281 * @type {StyleSheet} 1282 * @see http://msdn.microsoft.com/en-us/library/dd347030(VS.85).aspx 1283 */ 1284 HTMLStyleElement.prototype.styleSheet; 1285 1286 1287 /** 1288 * IE implements Cross Origin Resource Sharing (cross-domain XMLHttpRequests) 1289 * via the XDomainRequest object. 1290 * 1291 * @constructor 1292 * @see http://msdn.microsoft.com/en-us/library/cc288060(v=vs.85).aspx 1293 * @see http://www.w3.org/TR/cors/ 1294 */ 1295 function XDomainRequest() {} 1296 1297 /** 1298 * Aborts the request. 1299 * @see http://msdn.microsoft.com/en-us/library/cc288129(v=vs.85).aspx 1300 */ 1301 XDomainRequest.prototype.abort = function() {}; 1302 1303 /** 1304 * Sets the method and URL for the request. 1305 * @param {string} bstrMethod Either "GET" or "POST" 1306 * @param {string} bstrUrl The target URL 1307 * @see http://msdn.microsoft.com/en-us/library/cc288168(v=vs.85).aspx 1308 */ 1309 XDomainRequest.prototype.open = function(bstrMethod, bstrUrl) {}; 1310 1311 /** 1312 * Sends the request. 1313 * @param {string=} varBody The POST body to send to the server. If omitted, 1314 * the behavior is identical to sending an empty string. 1315 * @see http://msdn.microsoft.com/en-us/library/cc288207(v=vs.85).aspx 1316 */ 1317 XDomainRequest.prototype.send = function(varBody) {}; 1318 1319 /** 1320 * Called if the request could not be completed. Note that error information is 1321 * not available. 1322 * @see http://msdn.microsoft.com/en-us/library/ms536930%28v=VS.85%29.aspx 1323 * @type {?function()} 1324 */ 1325 XDomainRequest.prototype.onerror; 1326 1327 /** 1328 * Called when the response has finished. 1329 * @see http://msdn.microsoft.com/en-us/library/ms536942%28v=VS.85%29.aspx 1330 * @type {?function()} 1331 */ 1332 XDomainRequest.prototype.onload; 1333 1334 /** 1335 * Called every time part of the response has been received. 1336 * @see http://msdn.microsoft.com/en-us/library/cc197058%28v=VS.85%29.aspx 1337 * @type {?function()} 1338 */ 1339 XDomainRequest.prototype.onprogress; 1340 1341 /** 1342 * Called if the timeout period has elapsed. 1343 * @see http://msdn.microsoft.com/en-us/library/cc197061%28v=VS.85%29.aspx 1344 * @type {?function()} 1345 */ 1346 XDomainRequest.prototype.ontimeout; 1347 1348 /** 1349 * The current response body. 1350 * @see http://msdn.microsoft.com/en-us/library/cc287956%28v=VS.85%29.aspx 1351 * @type {string} 1352 */ 1353 XDomainRequest.prototype.responseText; 1354 1355 /** 1356 * The timeout (in milliseconds) for the request. 1357 * @type {number} 1358 */ 1359 XDomainRequest.prototype.timeout; 1360 1361 /** 1362 * The Content-Type of the response, or an empty string. 1363 * @type {string} 1364 */ 1365 XDomainRequest.prototype.contentType; 1366 1367 /** 1368 * @type {string} 1369 * @see http://msdn.microsoft.com/en-us/library/ms533542(v=vs.85).aspx 1370 */ 1371 Navigator.prototype.browserLanguage; 1372 1373 /** 1374 * @type {boolean} 1375 * @see http://blogs.msdn.com/b/ie/archive/2011/09/20/touch-input-for-ie10-and-metro-style-apps.aspx 1376 */ 1377 Navigator.prototype.msPointerEnabled; 1378 1379 /** 1380 * @type {number} 1381 * @see http://msdn.microsoft.com/en-us/library/ms533721(v=vs.85).aspx 1382 */ 1383 Screen.prototype.deviceXDPI; 1384 1385 /** 1386 * @type {number} 1387 * @see http://msdn.microsoft.com/en-us/library/ms534128%28v=vs.85%29.aspx 1388 */ 1389 Screen.prototype.logicalXDPI; 1390 1391 /** 1392 * @type {number} 1393 * @see http://msdn.microsoft.com/en-us/library/ms534130%28v=vs.85%29.aspx 1394 */ 1395 Screen.prototype.logicalYDPI;