diff options
author | Michał Gołębiowski-Owczarek <m.goleb@gmail.com> | 2024-12-11 00:38:27 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-11 00:38:27 +0100 |
commit | 0e123509d529456ddf130abb97e6266b53f62c50 (patch) | |
tree | a2beb014bc800c59c08c37119aa8f591972adf03 /test/index.html | |
parent | 75b48e6a2bff1258ca4d85ab7887e78772a67a69 (diff) | |
download | jquery-0e123509d529456ddf130abb97e6266b53f62c50.tar.gz jquery-0e123509d529456ddf130abb97e6266b53f62c50.zip |
Core: Switch `$.parseHTML` from `document.implementation` to `DOMParser`
Using a document created via:
```js
document.implementation.createHTMLDocument( "" )
```
was needed in IE 9 which doesn't support `DOMParser#parseFromString` for
`text/html`. We can switch to:
```js
( new window.DOMParser() ) .parseFromString( "", "text/html" )
```
now, saving some bytes.
Closes gh-5572
Diffstat (limited to 'test/index.html')
0 files changed, 0 insertions, 0 deletions