mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Implemented HTMLScriptElement.Src
This commit is contained in:
parent
4d8f7fd056
commit
0e94eb5720
2 changed files with 20 additions and 1 deletions
|
@ -4,6 +4,7 @@
|
|||
|
||||
use dom::bindings::utils::{DOMString, ErrorResult};
|
||||
use dom::htmlelement::HTMLElement;
|
||||
use servo_util::tree::ElementLike;
|
||||
|
||||
pub struct HTMLScriptElement {
|
||||
htmlelement: HTMLElement,
|
||||
|
@ -11,7 +12,7 @@ pub struct HTMLScriptElement {
|
|||
|
||||
impl HTMLScriptElement {
|
||||
pub fn Src(&self) -> DOMString {
|
||||
None
|
||||
self.htmlelement.element.get_attr("src").map(|s| s.to_str())
|
||||
}
|
||||
|
||||
pub fn SetSrc(&mut self, _src: &DOMString) -> ErrorResult {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue