Preserve Alpine.js @click syntax
Open
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 124
- Forks
- 29
- PR merge metrics
- No merged PRs in 30d
Description
I use Alpine.js in my HTML and event could be short written with like this:
<button @click="open = true">Expand</button>
If I open a document with HTMLDocument, the output removes the @click attribute:
<button>Expand</button>
Any idea how I can preserve the @click attribute?
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 with the HTMLDocument behavior and reproduce the issue using the Alpine.js @click example from the report. Trace why the attribute is removed, and consider the issue complete when reopening the document preserves the @click attribute in the output.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- html, php
- Domain
- web-dev
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100