forked from jquery/jquery
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP Core: Switch
$.parseHTML
from document.implementation
to `DOM…
…Parser` Firefox has a bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1205631 where assignment to `innerHTML` produces a different DOM tree than passing the HTML to `document.write()`; other browsers use the same algorithm in both places, the same one Firefox uses for `document.write()`. Firefox's behavior used to be spec-compliant but the spec changed in: whatwg/html#6399 Because `$.parseHTML` used to use: ```js document.implementation.createHTMLDocument( "" ) ``` followed by an `innerHTML` assignment under the hood, Firefox was hitting that issue. TODO we cannot pass `data` to `parseFromString` like that as it goes through `buildFragment` later anyway. Ref whatwg/html#5117 Ref whatwg/html#6399
- Loading branch information
Showing
2 changed files
with
44 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters