mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Use string reflection methods for HTMLIFrameElement.sandbox.
This commit is contained in:
parent
6e6d45ca26
commit
886ab020d8
1 changed files with 3 additions and 5 deletions
|
@ -84,14 +84,12 @@ impl HTMLIFrameElement {
|
|||
}
|
||||
|
||||
pub fn Sandbox(&self, _abstract_self: AbstractNode) -> DOMString {
|
||||
match self.htmlelement.element.GetAttribute(~"sandbox") {
|
||||
Some(s) => s.to_owned(),
|
||||
None => ~"",
|
||||
}
|
||||
self.htmlelement.element.get_string_attribute("sandbox")
|
||||
}
|
||||
|
||||
pub fn SetSandbox(&mut self, abstract_self: AbstractNode, sandbox: DOMString) {
|
||||
self.htmlelement.element.SetAttribute(abstract_self, ~"sandbox", sandbox);
|
||||
self.htmlelement.element.set_string_attribute(abstract_self, "sandbox",
|
||||
sandbox);
|
||||
}
|
||||
|
||||
pub fn AfterSetAttr(&mut self, name: DOMString, value: DOMString) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue