Skip to content

.attr("name") on DocumentType returns empty string since 1.18.2 #2241

Closed
@borkdude

Description

In version 1.18.2 the .documentType on a document as parsed from "<!DOCTYPE html>" returns an empty string for the name attribute:

DocumentType dt = Jsoup.parse("<!DOCTYPE html>");
dt.attr("name") // "html" in 1.18.1 but "" in 1.18.2 and .3

Is this intentional or a bug? This surfaced when I tried to upgrade Jsoup in the hickory library for Clojure:

https://github.com/clj-commons/hickory

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions