mirror of
https://github.com/servo/servo.git
synced 2025-06-20 15:18:58 +01:00
Implement document.characterSet
Spec: http://dom.spec.whatwg.org/#dom-document-characterset This is a sub-task for #1428.
This commit is contained in:
parent
17bc467b83
commit
a6c897e445
8 changed files with 100 additions and 6 deletions
|
@ -443,12 +443,13 @@ pub fn parse_html(cx: *JSContext,
|
|||
add_attributes: |_node, _attributes| {
|
||||
debug!("add attributes");
|
||||
},
|
||||
set_quirks_mode: |_mode| {
|
||||
set_quirks_mode: |mode| {
|
||||
debug!("set quirks mode");
|
||||
document.mut_document().set_quirks_mode(_mode);
|
||||
document.mut_document().set_quirks_mode(mode);
|
||||
},
|
||||
encoding_change: |_encname| {
|
||||
encoding_change: |encname| {
|
||||
debug!("encoding change");
|
||||
document.mut_document().set_encoding_name(encname);
|
||||
},
|
||||
complete_script: |script| {
|
||||
unsafe {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue