Skip to content

Commit

Permalink
Externs for Element.prototype.getAttributeNames.
Browse files Browse the repository at this point in the history
This was first attempted in [] but it broke several targets that depended on an existing definition and had to be rolled back.

Global presubmit (Including all the tests that failed previously): []

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=165213223
  • Loading branch information
eliseosoto authored and Tyler Breisacher committed Aug 15, 2017
1 parent 1918ed1 commit 0ae2a39
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions externs/browser/w3c_dom4.js
Expand Up @@ -67,3 +67,9 @@ Element.prototype.replaceWith = function(nodes) {};
* @see https://dom.spec.whatwg.org/#dom-childnode-replacewith
*/
CharacterData.prototype.replaceWith = function(nodes) {};

/**
* @return {!Array<string>}
* @see https://dom.spec.whatwg.org/#dom-element-getattributenames
*/
Element.prototype.getAttributeNames = function() {};
2 changes: 1 addition & 1 deletion src/com/google/javascript/jscomp/resources.json

Large diffs are not rendered by default.

0 comments on commit 0ae2a39

Please sign in to comment.