Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sequentialSectionOrderedListItems() - inaccurate after mult-nested sections #1

Open
jhauga opened this issue Mar 27, 2024 · 0 comments

Comments

@jhauga
Copy link
Member

jhauga commented Mar 27, 2024

function: sequentialSectionOrderedListItems()
file: true

description: When multiple <ol> are nested, then the results become inaccurate for nested items and items immediately following the nested <ol> items.
probability-of-occuring: somewhat likely
example:

NOTE - <li>item</li> is working correctly; <li>ERROR</li> is issue.
CALLED WITH - sequentialSectionOrderedListItems("tag", "div");

*******************************************************************
<div>
 <ol>
  <li>
  SOME HEADING
  <ol>

  <li>item</li> <li>item</li> 
  <li>
  item
  <ol>
    <li>item</li> 
    <li>item</li>
    <li>    
     <ol>
       <li>ERROR</li>
       <li>ERROR</li>
    </ol>
    </li>
    <li>item</li>
  </ol> 
 </li> 
 <li>ERROR</li>
 <li>ERROR</li>
 <li>ERROR</li>

 </ol>
 </li>
 <li>ERROR</li>
 <li>next item/ERROR</li>
 <li>next item/ERROR</li>
 </ol>  
</div>

<div>
 <ol>
  SOME HEADING
  <li>item</li>
  <li>item</li> 
 </ol> 
</div>

<div>
 <ol>
  <li>SOME HEADING  
  <ol>
  <li>item</li>
  <li>item
   <ol>
    <li>item</li>
    <li>item</li>
   </ol>
   <li>ERROR</li>
  </li>  
  </ol>
  </li>  
 </ol>
</div>

<div>
 <ol>
  SOME HEADING  
  <ol>
  <li>item</li>
  <li>item
   <ol>
    <li>item</li>
    <li>item</li>
   </ol>
   <li>item</li>
  </li>  
  </ol>  
 </ol>
</div>
*******************************************************************
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant