jquery / jquery/jqueryui.com

ID vs. Class in Accordeon API-Doc

Open
#178 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
HTML
Stars
138
Forks
113
PR merge metrics
No merged PRs in 30d

Description

On http://api.jqueryui.com/accordion/
the Example states

<div id="accordion">
  <h3>First header</h3>
  <div>First content panel</div>
  <h3>Second header</h3>
  <div>Second content panel</div>
</div>

But the node #accordion is always referenced as ".accordion" in later steps.
For example:

$( ".selector" ).accordion({
  active: 2
});

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Open the Accordion API documentation at http://api.jqueryui.com/accordion/ and compare the example's #accordion markup with the later .selector references. Make the selector usage consistent throughout the example and API text, then verify the rendered documentation shows the corrected references.

Written by the indexing model from the issue text.

Assessment

Tech stack
jquery
Domain
documentation
Issue type
Documentation
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.