Commit 8d714c8
committed
document.importNode from standards to quirks mode document can result in broken selector matching
https://bugs.webkit.org/show_bug.cgi?id=289795
rdar://147548958
Reviewed by Ryosuke Niwa.
Avoid sharing ElementData when cloning if one document has case folding behavior, and
another doesn't.
* LayoutTests/fast/dom/importNode-quirks-class-sharing-expected.txt: Added.
* LayoutTests/fast/dom/importNode-quirks-class-sharing.html: Added.
* Source/WebCore/dom/Element.cpp:
(WebCore::Element::cloneAttributesFromElement):
Canonical link: https://commits.webkit.org/292542@main1 parent bad02c7 commit 8d714c8
3 files changed
Lines changed: 68 additions & 1 deletion
File tree
- LayoutTests/fast/dom
- Source/WebCore/dom
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
Lines changed: 46 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5650 | 5650 | | |
5651 | 5651 | | |
5652 | 5652 | | |
5653 | | - | |
| 5653 | + | |
| 5654 | + | |
| 5655 | + | |
| 5656 | + | |
5654 | 5657 | | |
5655 | 5658 | | |
5656 | 5659 | | |
| |||
0 commit comments