mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Implement WebIDL union support.
This commit is contained in:
parent
d0bfdbf150
commit
d590a327bd
5 changed files with 194 additions and 127 deletions
|
@ -4,6 +4,7 @@
|
|||
|
||||
use dom::bindings::codegen::HTMLSelectElementBinding;
|
||||
use dom::bindings::codegen::InheritTypes::HTMLSelectElementDerived;
|
||||
use dom::bindings::codegen::UnionTypes::{HTMLElementOrLong, HTMLOptionElementOrHTMLOptGroupElement};
|
||||
use dom::bindings::js::JS;
|
||||
use dom::bindings::utils::ErrorResult;
|
||||
use dom::document::Document;
|
||||
|
@ -175,4 +176,8 @@ impl HTMLSelectElement {
|
|||
|
||||
pub fn SetCustomValidity(&mut self, _error: DOMString) {
|
||||
}
|
||||
|
||||
pub fn Add(&self, _element: HTMLOptionElementOrHTMLOptGroupElement, _before: Option<HTMLElementOrLong>) -> ErrorResult {
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue