[Webkit-unassigned] [Bug 159555] New: adoptNode() changes css class to lowercase for document loaded with XHR responseType = "document"
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Jul 8 05:17:46 PDT 2016
https://bugs.webkit.org/show_bug.cgi?id=159555
Bug ID: 159555
Summary: adoptNode() changes css class to lowercase for
document loaded with XHR responseType = "document"
Classification: Unclassified
Product: WebKit
Version: Safari 9
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: HTML DOM
Assignee: webkit-unassigned at lists.webkit.org
Reporter: theblueslate at gmail.com
CC: cdumez at apple.com
For a full demonstration, see https://jsfiddle.net/theblueslate/wxo7zst5/2/
I use XHR with responseType = "document" to load html fragments dynamically. To include them in the document, I use adoptNode(). However, if the XHR parsed document is from a document in quirks mode, and the contents contains a css class that includes an uppercase letter, then adoptNode() imports the element with the css class in lowercase.
importNode() doesn't have this problem, but is more heavyweight than adoptNode().
I can reproduce this problem on Safari 9.1.1 on El Capitan. I also have the same problem on iOS 9.3.2. This problem does not occur on Chrome 51 or IE11.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160708/6ac0c52d/attachment.html>
More information about the webkit-unassigned
mailing list