[Webkit-unassigned] [Bug 118045] Stylesheet rule.cssText for content property omits quotes

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Sep 26 20:28:01 PDT 2022


https://bugs.webkit.org/show_bug.cgi?id=118045

Karl Dubost <karlcow at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |WORKSFORME

--- Comment #3 from Karl Dubost <karlcow at apple.com> ---
WIth 

data:text/html,<!doctype%20html><html><style></style></html>



document.querySelector('style').sheet.rules[0]
// undefined


document.querySelector('style').sheet.insertRule('.test { content: "moo"; }')
document.querySelector('style').sheet.rules[0].cssText
// ".test { content: \"moo\"; }"



Same results in Firefox, Chrome and Safari.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220927/273e1d5e/attachment.htm>


More information about the webkit-unassigned mailing list