.attr("name") on DocumentType returns empty string since 1.18.2 #2241
Closed
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: