[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: html structure revisited

From: Per Bothner
Subject: Re: html structure revisited
Date: Mon, 14 Sep 2020 12:49:51 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0

We discussed adding some sectioning command and moving
the 'id' attributes to the appropriate section.
Specifically, something like this, assuming --split=chapter:

  <section class="chapter" id="chapter4">
    <div class="header">Next/Previous etc links </div>
    <div class="node" id="character4-1">
      <h2 class="chapter">This is chapter 4</h2>
      <p>preamble text</p>
      <ul class="menu">...</ul>

    <section class="section" id="section-41">
      <div class="header">Next/Previous etc links </div>
      <div class="node" id="character41-1">
        <h3 class="section">This is section 4.1</h3>
        <p>text for 4.1</p>

    <section class="section" id="section-42">
      <div class="header">Next/Previous etc links </div>
      <div class="node" id="character42-1">
        <h3 class="section">This is section 4.2</h3>
        <p>text for 4.2</p>


I'm hoping we can move forward on this.  (There was concern that
older browsers would not understand <section>, but that should
not be a problem if they just ignore it.)

However, while I can make local changes to HTML.pm, I don't
understand enough of the logic and control flow to achieve the
desired structure.  Can someone help?  Given a few hints, I can
probably fill in the details, testing, and (if needed) modify info.js.
        --Per Bothner
per@bothner.com   http://per.bothner.com/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]