| 1 | /* |
| 2 | * Copyright 2008 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 W3C's DOM Level 3 specification. |
| 19 | * This file depends on w3c_dom2.js. |
| 20 | * The whole file has been fully type annotated. |
| 21 | * Created from |
| 22 | * http://www.w3.org/TR/DOM-Level-3-Core/ecma-script-binding.html |
| 23 | * |
| 24 | * @externs |
| 25 | */ |
| 26 | |
| 27 | /** |
| 28 | * @type {number} |
| 29 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-258A00AF |
| 30 | */ |
| 31 | DOMException.prototype.code; |
| 32 | |
| 33 | /** |
| 34 | * @type {number} |
| 35 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-258A00AF |
| 36 | */ |
| 37 | DOMException.VALIDATION_ERR = 16; |
| 38 | |
| 39 | /** |
| 40 | * @type {number} |
| 41 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-258A00AF |
| 42 | */ |
| 43 | DOMException.TYPE_MISMATCH_ERR = 17; |
| 44 | |
| 45 | /** |
| 46 | * @constructor |
| 47 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#DOMStringList |
| 48 | */ |
| 49 | function DOMStringList() {} |
| 50 | |
| 51 | /** |
| 52 | * @type {number} |
| 53 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#DOMStringList-length |
| 54 | */ |
| 55 | DOMStringList.prototype.length; |
| 56 | |
| 57 | /** |
| 58 | * @param {string} str |
| 59 | * @return {boolean} |
| 60 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#DOMStringList-contains |
| 61 | */ |
| 62 | DOMStringList.prototype.contains = function(str) {}; |
| 63 | |
| 64 | /** |
| 65 | * @param {number} index |
| 66 | * @return {string} |
| 67 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#DOMStringList-item |
| 68 | */ |
| 69 | DOMStringList.prototype.item = function(index) {}; |
| 70 | |
| 71 | /** |
| 72 | * @constructor |
| 73 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#NameList |
| 74 | */ |
| 75 | function NameList() {} |
| 76 | |
| 77 | /** |
| 78 | * @type {number} |
| 79 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#NameList-length |
| 80 | */ |
| 81 | NameList.prototype.length; |
| 82 | |
| 83 | /** |
| 84 | * @param {string} str |
| 85 | * @return {boolean} |
| 86 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#NameList-contains |
| 87 | * @nosideeffects |
| 88 | */ |
| 89 | NameList.prototype.contains = function(str) {}; |
| 90 | |
| 91 | /** |
| 92 | * @param {string} namespaceURI |
| 93 | * @param {string} name |
| 94 | * @return {boolean} |
| 95 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#NameList-containsNS |
| 96 | * @nosideeffects |
| 97 | */ |
| 98 | NameList.prototype.containsNS = function(namespaceURI, name) {}; |
| 99 | |
| 100 | /** |
| 101 | * @param {number} index |
| 102 | * @return {string} |
| 103 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#NameList-getName |
| 104 | * @nosideeffects |
| 105 | */ |
| 106 | NameList.prototype.getName = function(index) {}; |
| 107 | |
| 108 | /** |
| 109 | * @param {number} index |
| 110 | * @return {string} |
| 111 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#NameList-getNamespaceURI |
| 112 | * @nosideeffects |
| 113 | */ |
| 114 | NameList.prototype.getNamespaceURI = function(index) {}; |
| 115 | |
| 116 | /** |
| 117 | * @constructor |
| 118 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#DOMImplementationList |
| 119 | */ |
| 120 | function DOMImplementationList() {} |
| 121 | |
| 122 | /** |
| 123 | * @type {number} |
| 124 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#DOMImplementationList-length |
| 125 | */ |
| 126 | DOMImplementationList.prototype.length; |
| 127 | |
| 128 | /** |
| 129 | * @param {number} index |
| 130 | * @return {DOMImplementation} |
| 131 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#DOMImplementationList-item |
| 132 | * @nosideeffects |
| 133 | */ |
| 134 | DOMImplementationList.prototype.item = function(index) {}; |
| 135 | |
| 136 | /** |
| 137 | * @constructor |
| 138 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#DOMImplementationSource |
| 139 | */ |
| 140 | function DOMImplementationSource() {} |
| 141 | |
| 142 | /** |
| 143 | * @param {string} namespaceURI |
| 144 | * @param {string} publicId |
| 145 | * @param {DocumentType} doctype |
| 146 | * @return {Document} |
| 147 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Level-2-Core-DOM-createDocument |
| 148 | * @nosideeffects |
| 149 | */ |
| 150 | DOMImplementation.prototype.createDocument = function(namespaceURI, publicId, doctype) {}; |
| 151 | |
| 152 | /** |
| 153 | * @param {string} qualifiedName |
| 154 | * @param {string} publicId |
| 155 | * @param {string} systemId |
| 156 | * @return {DocumentType} |
| 157 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Level-2-Core-DOM-createDocType |
| 158 | * @nosideeffects |
| 159 | */ |
| 160 | DOMImplementation.prototype.createDocumentType = function(qualifiedName, publicId, systemId) {}; |
| 161 | |
| 162 | /** |
| 163 | * @param {string} features |
| 164 | * @return {DOMImplementation} |
| 165 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-getDOMImpl |
| 166 | * @nosideeffects |
| 167 | */ |
| 168 | DOMImplementationSource.prototype.getDOMImplementation = function(features) {}; |
| 169 | |
| 170 | /** |
| 171 | * @param {string} features |
| 172 | * @return {DOMImplementationList} |
| 173 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-getDOMImpls |
| 174 | * @nosideeffects |
| 175 | */ |
| 176 | DOMImplementationSource.prototype.getDOMImplementationList = function(features) {}; |
| 177 | |
| 178 | /** |
| 179 | * @param {string} feature |
| 180 | * @param {string} version |
| 181 | * @return {Object} |
| 182 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#DOMImplementation3-getFeature |
| 183 | * @nosideeffects |
| 184 | */ |
| 185 | DOMImplementation.prototype.getFeature = function(feature, version) {}; |
| 186 | |
| 187 | /** |
| 188 | * @param {Node} externalNode |
| 189 | * @return {Node} |
| 190 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Document3-adoptNode |
| 191 | */ |
| 192 | Document.prototype.adoptNode = function(externalNode) {}; |
| 193 | |
| 194 | /** |
| 195 | * @type {string} |
| 196 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Document3-documentURI |
| 197 | */ |
| 198 | Document.prototype.documentURI; |
| 199 | |
| 200 | /** |
| 201 | * @type {DOMConfiguration} |
| 202 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Document3-domConfig |
| 203 | */ |
| 204 | Document.prototype.domConfig; |
| 205 | |
| 206 | /** |
| 207 | * @type {string} |
| 208 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Document3-inputEncoding |
| 209 | */ |
| 210 | Document.prototype.inputEncoding; |
| 211 | |
| 212 | /** |
| 213 | * @type {boolean} |
| 214 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Document3-strictErrorChecking |
| 215 | */ |
| 216 | Document.prototype.strictErrorChecking; |
| 217 | |
| 218 | /** |
| 219 | * @type {string} |
| 220 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Document3-encoding |
| 221 | */ |
| 222 | Document.prototype.xmlEncoding; |
| 223 | |
| 224 | /** |
| 225 | * @type {boolean} |
| 226 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Document3-standalone |
| 227 | */ |
| 228 | Document.prototype.xmlStandalone; |
| 229 | |
| 230 | /** |
| 231 | * @type {string} |
| 232 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Document3-version |
| 233 | */ |
| 234 | Document.prototype.xmlVersion; |
| 235 | |
| 236 | /** |
| 237 | * @return {undefined} |
| 238 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Document3-normalizeDocument |
| 239 | */ |
| 240 | Document.prototype.normalizeDocument = function() {}; |
| 241 | |
| 242 | /** |
| 243 | * @param {Node} n |
| 244 | * @param {string} namespaceURI |
| 245 | * @param {string} qualifiedName |
| 246 | * @return {Node} |
| 247 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Document3-renameNode |
| 248 | */ |
| 249 | Document.prototype.renameNode = function(n, namespaceURI, qualifiedName) {}; |
| 250 | |
| 251 | /** |
| 252 | * @type {string} |
| 253 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Node3-baseURI |
| 254 | */ |
| 255 | Node.prototype.baseURI; |
| 256 | |
| 257 | /** |
| 258 | * @type {string} |
| 259 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-NodeNSLocalN |
| 260 | */ |
| 261 | Node.prototype.localName; |
| 262 | |
| 263 | /** |
| 264 | * @type {string} |
| 265 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-NodeNSname |
| 266 | */ |
| 267 | Node.prototype.namespaceURI; |
| 268 | |
| 269 | /** |
| 270 | * @type {string} |
| 271 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-NodeNSPrefix |
| 272 | */ |
| 273 | Node.prototype.prefix; |
| 274 | |
| 275 | /** |
| 276 | * @type {string} |
| 277 | * @implicitCast |
| 278 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Node3-textContent |
| 279 | */ |
| 280 | Node.prototype.textContent; |
| 281 | |
| 282 | /** |
| 283 | * @type {number} |
| 284 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Node-DOCUMENT_POSITION_DISCONNECTED |
| 285 | */ |
| 286 | Node.DOCUMENT_POSITION_DISCONNECTED = 0x01; |
| 287 | |
| 288 | /** |
| 289 | * @type {number} |
| 290 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Node-DOCUMENT_POSITION_PRECEDING |
| 291 | */ |
| 292 | Node.DOCUMENT_POSITION_PRECEDING = 0x02; |
| 293 | |
| 294 | /** |
| 295 | * @type {number} |
| 296 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Node-DOCUMENT_POSITION_FOLLOWING |
| 297 | */ |
| 298 | Node.DOCUMENT_POSITION_FOLLOWING = 0x04; |
| 299 | |
| 300 | /** |
| 301 | * @type {number} |
| 302 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Node-DOCUMENT_POSITION_CONTAINS |
| 303 | */ |
| 304 | Node.DOCUMENT_POSITION_CONTAINS = 0x08; |
| 305 | |
| 306 | /** |
| 307 | * @type {number} |
| 308 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Node-DOCUMENT_POSITION_CONTAINED_BY |
| 309 | */ |
| 310 | Node.DOCUMENT_POSITION_CONTAINED_BY = 0x10; |
| 311 | |
| 312 | /** |
| 313 | * @type {number} |
| 314 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Node-DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC |
| 315 | */ |
| 316 | Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = 0x20; |
| 317 | |
| 318 | /** |
| 319 | * @param {Node} other |
| 320 | * @return {number} |
| 321 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Node3-compareDocumentPosition |
| 322 | * @nosideeffects |
| 323 | */ |
| 324 | Node.prototype.compareDocumentPosition = function(other) {}; |
| 325 | |
| 326 | /** |
| 327 | * @param {string} feature |
| 328 | * @param {string} version |
| 329 | * @return {Object} |
| 330 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Node3-getFeature |
| 331 | * @nosideeffects |
| 332 | */ |
| 333 | Node.prototype.getFeature = function(feature, version) {}; |
| 334 | |
| 335 | /** |
| 336 | * @param {string} key |
| 337 | * @return {Object} |
| 338 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Node3-getUserData |
| 339 | * @nosideeffects |
| 340 | */ |
| 341 | Node.prototype.getUserData = function(key) {}; |
| 342 | |
| 343 | /** |
| 344 | * @return {boolean} |
| 345 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-NodeHasAttrs |
| 346 | * @nosideeffects |
| 347 | */ |
| 348 | Node.prototype.hasAttributes = function() {}; |
| 349 | |
| 350 | /** |
| 351 | * @param {string} namespaceURI |
| 352 | * @return {boolean} |
| 353 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Node3-isDefaultNamespace |
| 354 | * @nosideeffects |
| 355 | */ |
| 356 | Node.prototype.isDefaultNamespace = function(namespaceURI) {}; |
| 357 | |
| 358 | /** |
| 359 | * @param {Node} arg |
| 360 | * @return {boolean} |
| 361 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Node3-isEqualNode |
| 362 | * @nosideeffects |
| 363 | */ |
| 364 | Node.prototype.isEqualNode = function(arg) {}; |
| 365 | |
| 366 | /** |
| 367 | * @param {Node} other |
| 368 | * @return {boolean} |
| 369 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Node3-isSameNode |
| 370 | * @nosideeffects |
| 371 | */ |
| 372 | Node.prototype.isSameNode = function(other) {}; |
| 373 | |
| 374 | /** |
| 375 | * @param {string} feature |
| 376 | * @param {string} version |
| 377 | * @return {boolean} |
| 378 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Level-2-Core-Node-supports |
| 379 | * @nosideeffects |
| 380 | */ |
| 381 | Node.prototype.isSupported = function(feature, version) {}; |
| 382 | |
| 383 | /** |
| 384 | * @param {string} prefix |
| 385 | * @return {string} |
| 386 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Node3-lookupNamespaceURI |
| 387 | * @nosideeffects |
| 388 | */ |
| 389 | Node.prototype.lookupNamespaceURI = function(prefix) {}; |
| 390 | |
| 391 | /** |
| 392 | * @param {string} namespaceURI |
| 393 | * @return {string} |
| 394 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Node3-lookupNamespacePrefix |
| 395 | * @nosideeffects |
| 396 | */ |
| 397 | Node.prototype.lookupPrefix = function(namespaceURI) {}; |
| 398 | |
| 399 | /** |
| 400 | * @return undefined |
| 401 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-normalize |
| 402 | */ |
| 403 | Node.prototype.normalize = function() {}; |
| 404 | |
| 405 | /** |
| 406 | * @param {Object} key |
| 407 | * @param {Object} data |
| 408 | * @param {UserDataHandler} handler |
| 409 | * @return {Object} |
| 410 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Node3-setUserData' |
| 411 | */ |
| 412 | Node.prototype.setUserData = function(key, data, handler) {}; |
| 413 | |
| 414 | /** |
| 415 | * @param {string} query |
| 416 | * @return {Node} |
| 417 | * @see http://www.w3.org/TR/selectors-api/#queryselector |
| 418 | * @nosideeffects |
| 419 | */ |
| 420 | Node.prototype.querySelector = function(query) {}; |
| 421 | |
| 422 | /** |
| 423 | * @param {string} query |
| 424 | * @return {!NodeList} |
| 425 | * @see http://www.w3.org/TR/selectors-api/#queryselectorall |
| 426 | * @nosideeffects |
| 427 | */ |
| 428 | Node.prototype.querySelectorAll = function(query) {}; |
| 429 | |
| 430 | /** |
| 431 | * @type {Element} |
| 432 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Attr-ownerElement |
| 433 | */ |
| 434 | Attr.prototype.ownerElement; |
| 435 | |
| 436 | /** |
| 437 | * @type {boolean} |
| 438 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Attr-isId |
| 439 | */ |
| 440 | Attr.prototype.isId; |
| 441 | |
| 442 | /** |
| 443 | * @type {TypeInfo} |
| 444 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Attr-schemaTypeInfo |
| 445 | */ |
| 446 | Attr.prototype.schemaTypeInfo; |
| 447 | |
| 448 | /** |
| 449 | * @type {TypeInfo} |
| 450 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Element-schemaTypeInfo |
| 451 | */ |
| 452 | Element.prototype.schemaTypeInfo; |
| 453 | |
| 454 | /** |
| 455 | * @param {string} namespaceURI |
| 456 | * @param {string} localName |
| 457 | * @return {Attr} |
| 458 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-ElGetAtNodeNS |
| 459 | * @nosideeffects |
| 460 | */ |
| 461 | Element.prototype.getAttributeNodeNS = function(namespaceURI, localName) {}; |
| 462 | |
| 463 | /** |
| 464 | * @param {string} namespaceURI |
| 465 | * @param {string} localName |
| 466 | * @return {string} |
| 467 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-ElGetAttrNS |
| 468 | * @nosideeffects |
| 469 | */ |
| 470 | Element.prototype.getAttributeNS = function(namespaceURI, localName) {}; |
| 471 | |
| 472 | /** |
| 473 | * @param {string} namespaceURI |
| 474 | * @param {string} localName |
| 475 | * @return {!NodeList} |
| 476 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-A6C90942 |
| 477 | * @nosideeffects |
| 478 | */ |
| 479 | Element.prototype.getElementsByTagNameNS = function(namespaceURI, localName) {}; |
| 480 | |
| 481 | /** |
| 482 | * @param {string} name |
| 483 | * @return {boolean} |
| 484 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-ElHasAttr |
| 485 | * @nosideeffects |
| 486 | */ |
| 487 | Element.prototype.hasAttribute = function(name) {}; |
| 488 | |
| 489 | /** |
| 490 | * @param {string} namespaceURI |
| 491 | * @param {string} localName |
| 492 | * @return {boolean} |
| 493 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-ElHasAttrNS |
| 494 | * @nosideeffects |
| 495 | */ |
| 496 | Element.prototype.hasAttributeNS = function(namespaceURI, localName) {}; |
| 497 | |
| 498 | /** |
| 499 | * @param {string} namespaceURI |
| 500 | * @param {string} localName |
| 501 | * @return {undefined} |
| 502 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-ElRemAtNS |
| 503 | */ |
| 504 | Element.prototype.removeAttributeNS = function(namespaceURI, localName) {}; |
| 505 | |
| 506 | /** |
| 507 | * @param {Attr} newAttr |
| 508 | * @return {Attr} |
| 509 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-ElSetAtNodeNS |
| 510 | */ |
| 511 | Element.prototype.setAttributeNodeNS = function(newAttr) {}; |
| 512 | |
| 513 | /** |
| 514 | * @param {string} namespaceURI |
| 515 | * @param {string} qualifiedName |
| 516 | * @param {string|number|boolean} value Values are converted to strings with |
| 517 | * ToString, so we accept number and boolean since both convert easily to |
| 518 | * strings. |
| 519 | * @return {undefined} |
| 520 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-ElSetAttrNS |
| 521 | */ |
| 522 | Element.prototype.setAttributeNS = function(namespaceURI, qualifiedName, value) {}; |
| 523 | |
| 524 | /** |
| 525 | * @param {string} name |
| 526 | * @param {boolean} isId |
| 527 | * @return {undefined} |
| 528 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-ElSetIdAttr |
| 529 | */ |
| 530 | Element.prototype.setIdAttribute = function(name, isId) {}; |
| 531 | |
| 532 | /** |
| 533 | * @param {Attr} idAttr |
| 534 | * @param {boolean} isId |
| 535 | * @return {undefined} |
| 536 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-ElSetIdAttrNode |
| 537 | */ |
| 538 | Element.prototype.setIdAttributeNode = function(idAttr, isId) {}; |
| 539 | |
| 540 | /** |
| 541 | * @param {string} namespaceURI |
| 542 | * @param {string} localName |
| 543 | * @param {boolean} isId |
| 544 | * @return {undefined} |
| 545 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-ElSetIdAttrNS |
| 546 | */ |
| 547 | Element.prototype.setIdAttributeNS = function(namespaceURI, localName, isId) {}; |
| 548 | |
| 549 | /** |
| 550 | * @type {boolean} |
| 551 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Text3-isElementContentWhitespace |
| 552 | * @nosideeffects |
| 553 | */ |
| 554 | Text.prototype.isElementContentWhitespace; |
| 555 | |
| 556 | /** |
| 557 | * @type {string} |
| 558 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Text3-wholeText |
| 559 | */ |
| 560 | Text.prototype.wholeText; |
| 561 | |
| 562 | /** |
| 563 | * @param {string} newText |
| 564 | * @return {Text} |
| 565 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Text3-replaceWholeText |
| 566 | */ |
| 567 | Text.prototype.replaceWholeText = function(newText) {}; |
| 568 | |
| 569 | /** |
| 570 | * @constructor |
| 571 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#TypeInfo |
| 572 | */ |
| 573 | function TypeInfo() {} |
| 574 | |
| 575 | /** |
| 576 | * @type {number} |
| 577 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#TypeInfo-DERIVATION_EXTENSION |
| 578 | */ |
| 579 | TypeInfo.prototype.DERIVATION_EXTENSION; |
| 580 | |
| 581 | /** |
| 582 | * @type {number} |
| 583 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#TypeInfo-DERIVATION_LIST |
| 584 | */ |
| 585 | TypeInfo.prototype.DERIVATION_LIST; |
| 586 | |
| 587 | /** |
| 588 | * @type {number} |
| 589 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#TypeInfo-DERIVATION_RESTRICTION |
| 590 | */ |
| 591 | TypeInfo.prototype.DERIVATION_RESTRICTION; |
| 592 | |
| 593 | /** |
| 594 | * @type {number} |
| 595 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#TypeInfo-DERIVATION_UNION |
| 596 | */ |
| 597 | TypeInfo.prototype.DERIVATION_UNION; |
| 598 | |
| 599 | /** |
| 600 | * @type {string} |
| 601 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#TypeInfo-typeName |
| 602 | */ |
| 603 | TypeInfo.prototype.typeName; |
| 604 | |
| 605 | /** |
| 606 | * @type {string} |
| 607 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#TypeInfo-typeNamespace |
| 608 | */ |
| 609 | TypeInfo.prototype.typeNamespace; |
| 610 | |
| 611 | /** |
| 612 | * @param {string} typeNamespaceArg |
| 613 | * @param {string} typeNameArg |
| 614 | * @param {number} derivationMethod |
| 615 | * @return {boolean} |
| 616 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#TypeInfo-isDerivedFrom |
| 617 | * @nosideeffects |
| 618 | */ |
| 619 | TypeInfo.prototype.isDerivedFrom = function(typeNamespaceArg, typeNameArg, derivationMethod) {}; |
| 620 | |
| 621 | /** |
| 622 | * @constructor |
| 623 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#UserDataHandler |
| 624 | */ |
| 625 | function UserDataHandler() {} |
| 626 | |
| 627 | /** |
| 628 | * @type {number} |
| 629 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#UserDataHandler-CLONED |
| 630 | */ |
| 631 | UserDataHandler.prototype.NODE_CLONED = 1; |
| 632 | |
| 633 | /** |
| 634 | * @type {number} |
| 635 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#UserDataHandler-IMPORTED |
| 636 | */ |
| 637 | UserDataHandler.prototype.NODE_IMPORTED = 2; |
| 638 | |
| 639 | /** |
| 640 | * @type {number} |
| 641 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#UserDataHandler-DELETED |
| 642 | */ |
| 643 | UserDataHandler.prototype.NODE_DELETED = 3; |
| 644 | |
| 645 | /** |
| 646 | * @type {number} |
| 647 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#UserDataHandler-RENAMED |
| 648 | */ |
| 649 | UserDataHandler.prototype.NODE_RENAMED = 4; |
| 650 | |
| 651 | /** |
| 652 | * @type {number} |
| 653 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#UserDataHandler-ADOPTED |
| 654 | */ |
| 655 | UserDataHandler.prototype.NODE_ADOPTED = 5; |
| 656 | |
| 657 | /** |
| 658 | * @param {number} operation |
| 659 | * @param {string} key |
| 660 | * @param {*=} opt_data |
| 661 | * @param {?Node=} opt_src |
| 662 | * @param {?Node=} opt_dst |
| 663 | * @return {undefined} |
| 664 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-handleUserDataEvent |
| 665 | */ |
| 666 | UserDataHandler.prototype.handle = function(operation, key, opt_data, |
| 667 | opt_src, opt_dst) {}; |
| 668 | |
| 669 | /** |
| 670 | * @constructor |
| 671 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ERROR-Interfaces-DOMError |
| 672 | */ |
| 673 | function DOMError() {} |
| 674 | |
| 675 | /** |
| 676 | * @type {DOMLocator} |
| 677 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ERROR-DOMError-location |
| 678 | */ |
| 679 | DOMError.prototype.location; |
| 680 | |
| 681 | /** |
| 682 | * @type {string} |
| 683 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ERROR-DOMError-message |
| 684 | */ |
| 685 | DOMError.prototype.message; |
| 686 | |
| 687 | /** |
| 688 | * @type {Object} |
| 689 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ERROR-DOMError-relatedData |
| 690 | */ |
| 691 | DOMError.prototype.relatedData; |
| 692 | |
| 693 | /** |
| 694 | * @type {Object} |
| 695 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ERROR-DOMError-relatedException |
| 696 | */ |
| 697 | DOMError.prototype.relatedException; |
| 698 | |
| 699 | /** |
| 700 | * @type {number} |
| 701 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ERROR-DOMError-severity-warning |
| 702 | */ |
| 703 | DOMError.SEVERITY_WARNING = 1; |
| 704 | |
| 705 | /** |
| 706 | * @type {number} |
| 707 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ERROR-DOMError-severity-error |
| 708 | */ |
| 709 | DOMError.SEVERITY_ERROR = 2; |
| 710 | |
| 711 | /** |
| 712 | * @type {number} |
| 713 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ERROR-DOMError-severity-fatal-error |
| 714 | */ |
| 715 | DOMError.SEVERITY_FATAL_ERROR = 3; |
| 716 | |
| 717 | /** |
| 718 | * @type {number} |
| 719 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ERROR-DOMError-severity |
| 720 | */ |
| 721 | DOMError.prototype.severity; |
| 722 | |
| 723 | /** |
| 724 | * @type {string} |
| 725 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ERROR-DOMError-type |
| 726 | */ |
| 727 | DOMError.prototype.type; |
| 728 | |
| 729 | /** |
| 730 | * @type {string} |
| 731 | * @see http://www.w3.org/TR/dom/#domerror |
| 732 | */ |
| 733 | DOMError.prototype.name; |
| 734 | |
| 735 | /** |
| 736 | * @constructor |
| 737 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ERROR-Interfaces-DOMErrorHandler |
| 738 | */ |
| 739 | function DOMErrorHandler() {} |
| 740 | |
| 741 | /** |
| 742 | * @param {DOMError} error |
| 743 | * @return {boolean} |
| 744 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-ERRORS-DOMErrorHandler-handleError |
| 745 | */ |
| 746 | DOMErrorHandler.prototype.handleError = function(error) {}; |
| 747 | |
| 748 | /** |
| 749 | * @constructor |
| 750 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Interfaces-DOMLocator |
| 751 | */ |
| 752 | function DOMLocator() {} |
| 753 | |
| 754 | /** |
| 755 | * @type {number} |
| 756 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#DOMLocator-byteOffset |
| 757 | */ |
| 758 | DOMLocator.prototype.byteOffset; |
| 759 | |
| 760 | /** |
| 761 | * @type {number} |
| 762 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#DOMLocator-column-number |
| 763 | */ |
| 764 | DOMLocator.prototype.columnNumber; |
| 765 | |
| 766 | /** |
| 767 | * @type {number} |
| 768 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#DOMLocator-line-number |
| 769 | */ |
| 770 | DOMLocator.prototype.lineNumber; |
| 771 | |
| 772 | /** |
| 773 | * @type {Node} |
| 774 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#DOMLocator-node |
| 775 | */ |
| 776 | DOMLocator.prototype.relatedNode; |
| 777 | |
| 778 | /** |
| 779 | * @type {string} |
| 780 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#DOMLocator-uri |
| 781 | */ |
| 782 | DOMLocator.prototype.uri; |
| 783 | |
| 784 | /** |
| 785 | * @type {number} |
| 786 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#DOMLocator-utf16Offset |
| 787 | */ |
| 788 | DOMLocator.prototype.utf16Offset; |
| 789 | |
| 790 | /** |
| 791 | * @constructor |
| 792 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#DOMConfiguration |
| 793 | */ |
| 794 | function DOMConfiguration() {} |
| 795 | |
| 796 | /** |
| 797 | * @type {DOMStringList} |
| 798 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#DOMConfiguration-parameterNames |
| 799 | */ |
| 800 | DOMConfiguration.prototype.parameterNames; |
| 801 | |
| 802 | /** |
| 803 | * @param {string} name |
| 804 | * @return {boolean} |
| 805 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#DOMConfiguration-canSetParameter |
| 806 | * @nosideeffects |
| 807 | */ |
| 808 | DOMConfiguration.prototype.canSetParameter = function(name) {}; |
| 809 | |
| 810 | /** |
| 811 | * @param {string} name |
| 812 | * @return {*} |
| 813 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#DOMConfiguration-getParameter |
| 814 | * @nosideeffects |
| 815 | */ |
| 816 | DOMConfiguration.prototype.getParameter = function(name) {}; |
| 817 | |
| 818 | /** |
| 819 | * @param {string} name |
| 820 | * @param {*} value |
| 821 | * @return {*} |
| 822 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#DOMConfiguration-property |
| 823 | */ |
| 824 | DOMConfiguration.prototype.setParameter = function(name, value) {}; |
| 825 | |
| 826 | /** |
| 827 | * @type {string} |
| 828 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-Core-DocType-internalSubset |
| 829 | */ |
| 830 | DocumentType.prototype.internalSubset; |
| 831 | |
| 832 | /** |
| 833 | * @type {string} |
| 834 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-Core-DocType-publicId |
| 835 | */ |
| 836 | DocumentType.prototype.publicId; |
| 837 | |
| 838 | /** |
| 839 | * @type {string} |
| 840 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-Core-DocType-systemId |
| 841 | */ |
| 842 | DocumentType.prototype.systemId; |
| 843 | |
| 844 | /** |
| 845 | * @type {string} |
| 846 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Entity3-inputEncoding |
| 847 | */ |
| 848 | Entity.prototype.inputEncoding; |
| 849 | |
| 850 | /** |
| 851 | * @type {string} |
| 852 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Entity3-encoding |
| 853 | */ |
| 854 | Entity.prototype.xmlEncoding; |
| 855 | |
| 856 | /** |
| 857 | * @type {string} |
| 858 | * @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Entity3-version |
| 859 | */ |
| 860 | Entity.prototype.xmlVersion; |