savehtml adds an extra html tag
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 45/100
Research direction
Start by running the provided Julia reproduction with Hyperscript and inspect the savehtml entry point. The fix is done when the written file matches the printed document with only the doctype added, without a duplicated html wrapper.
Written by the indexing model from the issue text.
Description
Problem
When calling savehtml() it adds an extra layer of <html></html> on top of what is already there.
To reproduce:
julia> using Hyperscript
julia> doc1 = m("html", m("h1", "Hello"))
<html><h1>Hello</h1></html>
julia> savehtml("/tmp/doc1.html", doc1) ## html html
56
shell> cat /tmp/doc1.html
<!doctype html>
<html><html><h1>Hello</h1></html></html>
Expected behavior
I would expect the content of the file written by savehtml to be the same as printed, except for an added doctype.
Versions
(@v1.6) pkg> status Hyperscript
Status `~/.julia/environments/v1.6/Project.toml`
[47d2ed2b] Hyperscript v0.0.4
julia> versioninfo()
Julia Version 1.6.1
Commit 6aaedecc44 (2021-04-23 05:59 UTC)
Platform Info:
OS: Linux (x86_64-pc-linux-gnu)
CPU: Intel(R) Core(TM) i5-6300U CPU @ 2.40GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-11.0.1 (ORCJIT, skylake)
- Dominant language
- Julia
- Stars
- 105
- Forks
- 12
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
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.
More from JuliaWeb/Hyperscript.jl
-
Difficulty 3/5 1-2 days Newbie friendliness 30/100
JuliaWeb/Hyperscript.jl#46 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
JuliaWeb/Hyperscript.jl#44 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 30/100
JuliaWeb/Hyperscript.jl#42 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 25/100
JuliaWeb/Hyperscript.jl#40 · 1 comment ·
-
Feature request: do-block syntaxPossibly taken @schneiderfelipe claimed this 1999 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
JuliaWeb/Hyperscript.jl#32 ·
All issues in JuliaWeb/Hyperscript.jl
Similar issues
-
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
JuliaDiff/ChainRules.jl#871 · 1 comment ·
Maintainers usually reply within 1 day
-
documentation
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 62/100
JuliaStats/LogExpFunctions.jl#134 · 2 comments ·
-
code bug PowerSystems 6.0
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Sienna-Platform/PowerSystems.jl#1849 ·
Maintainers usually reply within 7 days