Parse DOCTYPE element?

5 views
Skip to first unread message

Jens Troeger

unread,
Feb 12, 2026, 10:49:30 AM (9 days ago) Feb 12
to beautifulsoup
Hello,

Considering the detailed spec of the DOCTYPE element (docs) I was wondering if there’s support in BS4 — or some other library — to parse that element into its components?

The Doctype class (docs) seems to compose one from its arguments, but not to decompose/parse the components from a given doctype string?

Much thanks,
Jens
Reply all
Reply to author
Forward
0 new messages