mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
cangc fixes in node.rs (#33984)
Signed-off-by: L Ashwin B <lashwinib@gmail.com>
This commit is contained in:
parent
3ed778150f
commit
bb4932026c
97 changed files with 1038 additions and 534 deletions
|
@ -395,6 +395,7 @@ pub fn handle_modify_attribute(
|
|||
pipeline: PipelineId,
|
||||
node_id: String,
|
||||
modifications: Vec<AttrModification>,
|
||||
can_gc: CanGc,
|
||||
) {
|
||||
let Some(document) = documents.find_document(pipeline) else {
|
||||
return warn!("document for pipeline id {} is not found", &pipeline);
|
||||
|
@ -421,6 +422,7 @@ pub fn handle_modify_attribute(
|
|||
let _ = elem.SetAttribute(
|
||||
DOMString::from(modification.attribute_name),
|
||||
DOMString::from(string),
|
||||
can_gc,
|
||||
);
|
||||
},
|
||||
None => elem.RemoveAttribute(DOMString::from(modification.attribute_name)),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue