Add a new element to change a URL parameter without Javascript
Nobody has claimed this yet.
- Dominant language
- MDX
- Stars
- 4.5k
- Forks
- 226
- Avg merge
- 2d 22h
- Merged PRs (30d)
- 4
Description
I made the suggestion to use the "select" element to change a URL parameter without Javascript but it has been closed as out of scope for the "select" element. In that case we can add a new element with the same appearance as the select element.
<url-parameter name="lang"/>
<option>en</option>
<option>es</option>
URL = https://demo.nexttypes.com/?lang=en
We can also add a new element or extend the "anchor" or "nav" elements to be able to choose from multiple full URLs with the same appearance as the select element.
<url>
<option>en.website.com/</option>
<option>es.website.com/</option>
<option>website.com/en/</option>
<option>website.com/es/</option>
</url>
<a>
<option>en.website.com/</option>
<option>es.website.com/</option>
<option>website.com/en/</option>
<option>website.com/es/</option>
</a>
<nav select>
<a href="en.website.com"/>
<a href="es.website.com"/>
<a href="website.com/en/"/>
<a href="website.com/es/"/>
</nav>
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the linked openui/open-ui issue 276 and comparing the proposed select, anchor, nav, and new-element approaches. Done would require a settled proposal defining the element or extension, its URL and parameter behavior, and its relationship to existing elements.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- html
- Domain
- frontend, web-dev
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100