dom: implement document.characterSet

This commit is contained in:
Pierre Tachoire
2023-11-22 10:58:26 +01:00
parent 3ebc9a18ad
commit ec06190327
2 changed files with 7 additions and 3 deletions

View File

@@ -800,6 +800,12 @@ pub inline fn documentGetDocumentURI(doc: *Document) []const u8 {
return stringToData(s.?);
}
pub inline fn documentGetInputEncoding(doc: *Document) []const u8 {
var s: ?*String = undefined;
_ = documentVtable(doc).dom_document_get_input_encoding.?(doc, &s);
return stringToData(s.?);
}
pub inline fn documentCreateElement(doc: *Document, tag_name: []const u8) *Element {
var elem: ?*Element = undefined;
_ = documentVtable(doc).dom_document_create_element.?(doc, stringFromData(tag_name), &elem);