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

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>15449</bug_id>
          
          <creation_ts>2012-01-07 08:58:44 +0000</creation_ts>
          <short_desc>Description of quotes nesting level is inaccurate</short_desc>
          <delta_ts>2012-12-04 00:52:01 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>CSS</product>
          <component>CSS Level 2</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Windows 3.1</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <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="Anton P">antonsforums</reporter>
          <assigned_to name="Bert Bos">bert</assigned_to>
          
          
          <qa_contact>public-css-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>62369</commentid>
    <comment_count>0</comment_count>
    <who name="Anton P">antonsforums</who>
    <bug_when>2012-01-07 08:58:44 +0000</bug_when>
    <thetext>Reported by Simon Sapin

If the quotes are to be balanced and match the examples in 12.3.2, then the following text in 12.3.2 is inaccurate:

  # ‘Open-quote’ refers to the first of a pair of quotes,
  # ‘close-quote’ refers to the second. Which pair of quotes
  # is used depends on the nesting level of quotes: the number
  # of occurrences of ‘open-quote’ in all generated text before
  # the current occurrence, minus the number of occurrences of
  # ‘close-quote’. If the depth is 0, the first pair is used,
  # if the depth is 1, the second pair is used, etc. If the
  # depth is greater than the number of pairs, the last pair is
  # repeated.

David Baron suggests to possibly reword things so that part of the paragraph is an approximate summary of the behavior, followed by an exact set of
rules:

  | &apos;Open-quote&apos; refers to the first of a pair of quotes,
  |  &apos;close-quote&apos; refers to the second. Which pair of quotes is used
  |  depends on the nesting level of quotes.  The nesting level begins
  |  at 0 at the start of the document, and then, by a depth-first
  |  traversal of the document, it is incremented at every occurrence
  |  of &apos;open-quote&apos; or &apos;no-open-quote&apos;, and decremented at every
  |  occurrence of &apos;close-quote&apos; or &apos;no-close-quote&apos; other than those
  |  that would make it negative.  The quotation mark rendered for an
  |  open-quote is the first quotation mark in the pair of quotes at
  |  the nesting level after that open-quote, unless that nesting level
  |  is greater than the number of pairs, in which case the first
  |  quotation mark in the last pair is repeated.  Likewise, for
  |  close-quote, the quotation mark rendered is the second quotation
  |  mark in the pair of quotes at the nesting level before that
  |  close-quote, unless that nesting level is greater than the number
  |  of pairs, in which case the second quotation mark in the last pair
  |  is repeated, or unless that depth is 0, in which case no quotation
  |  mark is rendered.

Conversation begins:
Bug description:
http://lists.w3.org/Archives/Public/www-style/2011Dec/0147.html

Proposal: http://lists.w3.org/Archives/Public/www-style/2011Dec/0179.html</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>