ietf-tools / xml2rfc

Generate RFCs and IETF drafts from document source in XML according to the IETF xml2rfc v2 and v3 vocabularies
https://ietf-tools.github.io/xml2rfc/
BSD 3-Clause "New" or "Revised" License
71 stars 39 forks source link

HTML nested ol rendering differences #1158

Open kesara opened 2 months ago

kesara commented 2 months ago

Describe the issue

Sample code

              <t>nested ol</t>
              <ol>
                <li>
                  <ol>
                    <li>This is first nested li</li>
                    <li><t>second nested li</t></li>
                  </ol>
                </li>
                <li><t>second parent li</t></li>
              </ol>
              <t>nested ol with type="%p%d"</t>
              <ol>
                <li>
                  <ol type="%p%d">
                    <li>This is first nested li</li>
                    <li><t>second nested li</t></li>
                  </ol>
                </li>
                <li><t>second parent li</t></li>
              </ol>
              <t>nested ol with type="%d"</t>
              <ol>
                <li>
                  <ol type="%d">
                    <li>This is first nested li</li>
                    <li><t>second nested li</t></li>
                  </ol>
                </li>
                <li><t>second parent li</t></li>
              </ol>
              <t>nested ul</t>
              <ul>
                <li>
                  <ul>
                    <li>This is first nested li</li>
                    <li><t>second nested li</t></li>
                  </ul>
                </li>
                <li><t>second parent li</t></li>
              </ul>

Firefox 130.0 (macOS 14.6.1)

Screenshot 2024-09-13 at 11 31 33

Chrome 128.0.6613.120 (macOS 14.6.1)

Screenshot 2024-09-13 at 11 32 33

Safari 17.6 (macOS 14.6.1)

Screenshot 2024-09-13 at 11 33 55

PDF (Screenshot from Apple Preview 11.0 but similar on Fifreox & Chrome in-browser PDF renders)

Screenshot 2024-09-13 at 11 35 36

Code of Conduct

kesara commented 2 months ago

Related issue: #1136