Skip to content

Commit

Permalink
Added typings for Popover API.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 707850085
  • Loading branch information
Closure Team authored and lauraharker committed Dec 20, 2024
1 parent bf1253b commit d842229
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions externs/browser/w3c_dom2.js
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,31 @@ HTMLElement.prototype.className;
*/
HTMLElement.prototype.click = function() {};

/**
* @type {string|null}
* @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/popover
*/
HTMLElement.prototype.popover;

/**
* @return {undefined}
* @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/hidePopover
*/
HTMLElement.prototype.hidePopover = function() {};

/**
* @return {undefined}
* @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/showPopover
*/
HTMLElement.prototype.showPopover = function() {};

/**
* @param {boolean=} force
* @return {boolean}
* @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/togglePopover
*/
HTMLElement.prototype.togglePopover = function(force) {};

/**
* @type {number}
* @see http://www.w3.org/TR/2000/CR-DOM-Level-2-20000510/html.html#ID-40676705
Expand Down

0 comments on commit d842229

Please sign in to comment.