<?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>28869</bug_id>
          
          <creation_ts>2009-09-01 03:30:48 -0700</creation_ts>
          <short_desc>CSS serialization of string value should be quoted</short_desc>
          <delta_ts>2022-07-26 21:48:19 -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>PC</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>73152</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yuta Kitamura">yutak</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>ap</cc>
    
    <cc>bfulgham</cc>
    
    <cc>macpherson</cc>
    
    <cc>mathias</cc>
    
    <cc>rniwa</cc>
    
    <cc>simon.fraser</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>143831</commentid>
    <comment_count>0</comment_count>
    <who name="Yuta Kitamura">yutak</who>
    <bug_when>2009-09-01 03:30:48 -0700</bug_when>
    <thetext>According to the CSS2.1 spec, when a string CSS value is serialized, it should be quoted by single quotation mark (&apos;) or double quotation mark (&quot;).
http://www.w3.org/TR/2009/CR-CSS2-20090423/syndata.html#value-def-string

Currently WebKit just returns a bare word, which is an invalid CSS value that the WebKit&apos;s CSS parser does not parse.

See attached test case for clarification.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>143832</commentid>
    <comment_count>1</comment_count>
      <attachid>38855</attachid>
    <who name="Yuta Kitamura">yutak</who>
    <bug_when>2009-09-01 03:31:26 -0700</bug_when>
    <thetext>Created attachment 38855
Test case</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>143833</commentid>
    <comment_count>2</comment_count>
    <who name="Yuta Kitamura">yutak</who>
    <bug_when>2009-09-01 03:34:39 -0700</bug_when>
    <thetext>We could preferably use double quotation mark instead of single quotation mark, as the CSSOM draft suggests.
http://dev.w3.org/csswg/cssom/#parsing</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>568238</commentid>
    <comment_count>3</comment_count>
    <who name="Luke Macpherson">macpherson</who>
    <bug_when>2012-02-29 19:35:39 -0800</bug_when>
    <thetext>The provided test case passes on firefox, and the request seems reasonable, so marking bug as new (confirmed).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>568944</commentid>
    <comment_count>4</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2012-03-01 14:45:00 -0800</bug_when>
    <thetext>See also: bug 79448.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>634767</commentid>
    <comment_count>5</comment_count>
      <attachid>144236</attachid>
    <who name="Mathias Bynens">mathias</who>
    <bug_when>2012-05-27 10:08:44 -0700</bug_when>
    <thetext>Created attachment 144236
Updated test case

This obsoletes the previous test case.

As per http://dev.w3.org/csswg/cssom/#serialize-a-string, only &quot; may be used to wrap string values, not &apos;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1886889</commentid>
    <comment_count>6</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-07-26 14:03:56 -0700</bug_when>
    <thetext>I am unable to reproduce this bug in Safari 15.6 on macOS using &quot;Updated Test Case&quot; and it shows as &quot;PASS&quot; and Safari do pass &quot;serialization&quot; tests on WPT (but not all), I was not able to find this on WPT:

https://wpt.fyi/results/css?label=master&amp;label=experimental&amp;aligned&amp;q=serialization

Please ignore my comment, if it is not fixed. Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1887002</commentid>
    <comment_count>7</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2022-07-26 21:48:19 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 73152 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>38855</attachid>
            <date>2009-09-01 03:31:26 -0700</date>
            <delta_ts>2009-09-01 03:31:26 -0700</delta_ts>
            <desc>Test case</desc>
            <filename>string-quote.html</filename>
            <type>text/html</type>
            <size>750</size>
            <attacher name="Yuta Kitamura">yutak</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWwgUFVCTElDICItLy9XM0MvL0RURCBIVE1MIDQuMDEvL0VOIgogICAgImh0
dHA6Ly93d3cudzMub3JnL1RSL2h0bWw0L3N0cmljdC5kdGQiPgo8aHRtbD4KICA8aGVhZD4KICAg
IDxtZXRhIGh0dHAtZXF1aXY9IkNvbnRlbnQtVHlwZSIgY29udGVudD0idGV4dC9odG1sOyBjaGFy
c2V0PVVURi04Ij4KICAgIDx0aXRsZT5DU1Mgc3RyaW5nIHNlcmlhbGl6YXRpb248L3RpdGxlPgog
ICAgPHNjcmlwdCB0eXBlPSJhcHBsaWNhdGlvbi9qYXZhc2NyaXB0Ij4KZnVuY3Rpb24gb25Mb2Fk
KCkgewogICAgdmFyIHJlc3VsdCA9IGRvY3VtZW50LmdldEVsZW1lbnRCeUlkKCdyZXN1bHQnKTsK
ICAgIHZhciBjb250ZW50ID0gcmVzdWx0LnN0eWxlLmNvbnRlbnQ7CiAgICBpZiAoY29udGVudCA9
PT0gJyJUZXN0IicgfHwgY29udGVudCA9PT0gIidUZXN0JyIpCiAgICAgICAgcmVzdWx0LmlubmVy
SFRNTCA9ICdQQVNTJzsKICAgIGVsc2UKICAgICAgICByZXN1bHQuaW5uZXJIVE1MID0gJ0ZBSUw6
IHRoZSB2YWx1ZSBvZiBjb250ZW50IHByb3BlcnR5IHNob3VsZCBiZSAnICsKICAgICAgICAgICAg
ICAgICAgICAgICAgICAgJyJUZXN0IiBvciBcJ1Rlc3RcJywgYnV0IHdhczogJyArIGNvbnRlbnQ7
Cn0KICAgIDwvc2NyaXB0PgogIDwvaGVhZD4KCiAgPGJvZHkgb25sb2FkPSJvbkxvYWQoKTsiPgog
ICAgPHAgaWQ9InJlc3VsdCIgc3R5bGU9ImNvbnRlbnQ6ICdUZXN0JzsiPjwvcD4KICA8L2JvZHk+
CjwvaHRtbD4K
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>144236</attachid>
            <date>2012-05-27 10:08:44 -0700</date>
            <delta_ts>2012-05-27 10:08:44 -0700</delta_ts>
            <desc>Updated test case</desc>
            <filename>28869.html</filename>
            <type>text/html</type>
            <size>245</size>
            <attacher name="Mathias Bynens">mathias</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxzdHlsZT4KCWh0bWw6OmJlZm9yZSB7IGNvbnRlbnQ6ICdmb28nOyB9
Cjwvc3R5bGU+CjxzY3JpcHQ+CgkoZnVuY3Rpb24oKSB7CgkJdmFyIHJvb3QgPSBkb2N1bWVudC5k
b2N1bWVudEVsZW1lbnQ7CgkJcm9vdC5pbm5lckhUTUwgPSB3aW5kb3cuZ2V0Q29tcHV0ZWRTdHls
ZShyb290LCAnOjpiZWZvcmUnKS5jb250ZW50ID09ICciZm9vIicgPyAnUEFTUycgOiAnRkFJTCc7
Cgl9KCkpOwo8L3NjcmlwdD4=
</data>

          </attachment>
      

    </bug>

</bugzilla>