<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>118045</bug_id>
          
          <creation_ts>2013-06-26 00:06:48 -0700</creation_ts>
          <short_desc>Stylesheet rule.cssText for content property omits quotes</short_desc>
          <delta_ts>2022-09-26 20:28:01 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>CSS</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>BlinkMergeCandidate, BrowserCompat</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ryosuke Niwa">rniwa</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>cdumez</cc>
    
    <cc>clinton.ayres</cc>
    
    <cc>dino</cc>
    
    <cc>joepeck</cc>
    
    <cc>karlcow</cc>
    
    <cc>kling</cc>
    
    <cc>koivisto</cc>
    
    <cc>mihaip</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>903576</commentid>
    <comment_count>0</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2013-06-26 00:06:48 -0700</bug_when>
    <thetext>Consider merging https://chromium.googlesource.com/chromium/blink/+/bcb65eaf9ef87cea28c6eb9a62890065a047e62c

PropertyContent&apos;s value should be quoted when the value is string.

Since PropertyContent&apos;s value is CSSValueList, added forceQuoteString parameter to customCssText of CSSValueList and CSSPrimitiveValue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1111935</commentid>
    <comment_count>1</comment_count>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2015-07-24 00:17:20 -0700</bug_when>
    <thetext>There are actually a number of recent Blink commits here that would improve our output of not just `content` but other properties that may output serialized strings:

https://chromium.googlesource.com/chromium/blink/+/98b9b9fdbecd8d860b2ca9c039adfc0491501c57 - allow some thigns to not be quoted
https://chromium.googlesource.com/chromium/blink/+/81caa9b01afbef1a41de355f9385a60da48ac556 - fix `content` processing from comma separated to space separated
https://chromium.googlesource.com/chromium/blink/+/3f2e47af2471ae3c3683079ffb5eb4b6f2e22df2 - fix `counter` strings.
https://chromium.googlesource.com/chromium/blink/+/c127d37233c824ba96d9fdba5bf4db8f1311fd0d - fix `content` strings.

This would be useful for the Web Inspector which wants to show &quot;content&quot; strings in the Computed Section of the inspector. Without similar changes, unquoted content computed values showing up in the Computed Section of the inspector are actually incorrect. See bug 147255.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1901381</commentid>
    <comment_count>2</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2022-09-26 20:05:23 -0700</bug_when>
    <thetext>*** Bug 198536 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1901387</commentid>
    <comment_count>3</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2022-09-26 20:28:01 -0700</bug_when>
    <thetext>WIth 

data:text/html,&lt;!doctype%20html&gt;&lt;html&gt;&lt;style&gt;&lt;/style&gt;&lt;/html&gt;



document.querySelector(&apos;style&apos;).sheet.rules[0]
// undefined


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



Same results in Firefox, Chrome and Safari.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>