Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

HTML templates not properly parsed when using Floki.HTMLParser.FastHtml #383

Open
Labels
@gbrlmtrz

Description

@gbrlmtrz

Description

The contents of an html template fail to be included in the resulting parsed structure, thus resulting in an empty template.

To Reproduce

Steps to reproduce the behavior:

  • Using Floki v0.31.0
  • Using Elixir v1.13.0
  • Using Erlang OTP v24
  • With this code:
    a="<!doctype html><html><head></head><body><template id=\"idc\">I am a text node <p>And I am inside a p tag</p></template></body></html>"{:ok,doc}=Floki.parse_document(a,html_parser:Floki.HTMLParser.FastHtml){:ok,[{"html",[],[{"head",[],[]},{"body",[],[{"template",[{"id","idc"}],[]}]}]}]}
## Expected behaviorOutput should include the contents of the template.```elixir  {:ok,                                   [     {"html", [],      [{"head", [], []}, {"body", [], [{"template", [{"id", "idc"}], ["I am a text node ", {"p", [], ["And I am inside a p tag"]}]}]}]}   ]}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp