aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlselectelement.rs
diff options
context:
space:
mode:
authorBogdan Cuza <bogdan.cuza@hotmail.com>2015-07-21 18:53:01 +0300
committerBogdan <boghison22@gmail.com>2015-07-28 13:28:41 +0200
commit233a769c67738942a0ac47c15465e36891883c3b (patch)
treef271b64c29addb4826feb098a03a0c6ce07eb4b3 /components/script/dom/htmlselectelement.rs
parentf039827dcd618d1731f9cc0d91202690c28f10d1 (diff)
downloadservo-233a769c67738942a0ac47c15465e36891883c3b.tar.gz
servo-233a769c67738942a0ac47c15465e36891883c3b.zip
Add spec links
Diffstat (limited to 'components/script/dom/htmlselectelement.rs')
-rw-r--r--components/script/dom/htmlselectelement.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/components/script/dom/htmlselectelement.rs b/components/script/dom/htmlselectelement.rs
index a33e8d419ba..a24c892335a 100644
--- a/components/script/dom/htmlselectelement.rs
+++ b/components/script/dom/htmlselectelement.rs
@@ -59,12 +59,14 @@ impl HTMLSelectElement {
}
impl<'a> HTMLSelectElementMethods for &'a HTMLSelectElement {
+ // https://html.spec.whatwg.org/multipage/#dom-cva-validity
fn Validity(self) -> Root<ValidityState> {
let window = window_from_node(self);
ValidityState::new(window.r())
}
// Note: this function currently only exists for test_union.html.
+ // https://html.spec.whatwg.org/multipage/#dom-select-add
fn Add(self, _element: HTMLOptionElementOrHTMLOptGroupElement, _before: Option<HTMLElementOrLong>) {
}