Skip to content

Commit

Permalink
* HTMLElement.prototype.toXML - polyfill added
Browse files Browse the repository at this point in the history
  • Loading branch information
uriel-online committed Jun 15, 2024
1 parent cc38f5e commit 4e7d455
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions xo.js
Original file line number Diff line number Diff line change
Expand Up @@ -7891,6 +7891,14 @@ xover.modernize = async function (targetWindow) {
});
}

if (!HTMLElement.prototype.hasOwnProperty('toXML')) {
Object.defineProperty(HTMLElement.prototype, 'toXML', {
value: function () {
return xover.xml.fromHTML(this)
}
});
}

if (!HTMLElement.prototype.hasOwnProperty('render')) {
Object.defineProperty(HTMLElement.prototype, 'render', {
value: section_renderer_handler
Expand Down

0 comments on commit 4e7d455

Please sign in to comment.