mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-30 07:31:47 +00:00
dom: add document.doctype getter
This commit is contained in:
@@ -783,6 +783,12 @@ pub inline fn documentCreateElementNS(doc: *Document, ns: []const u8, tag_name:
|
||||
return elem.?;
|
||||
}
|
||||
|
||||
pub inline fn documentGetDoctype(doc: *Document) ?*DocumentType {
|
||||
var dt: ?*DocumentType = undefined;
|
||||
_ = documentVtable(doc).dom_document_get_doctype.?(doc, &dt);
|
||||
return dt;
|
||||
}
|
||||
|
||||
// DocumentHTML
|
||||
pub const DocumentHTML = c.dom_html_document;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user