From 051ffba0e5dd22b779a059be164a9748e305496c Mon Sep 17 00:00:00 2001 From: Sagar Muchhal Date: Fri, 18 Mar 2016 19:53:34 -0400 Subject: Implement initial pieces of form validation. --- components/script/dom/htmloutputelement.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'components/script/dom/htmloutputelement.rs') diff --git a/components/script/dom/htmloutputelement.rs b/components/script/dom/htmloutputelement.rs index 0a018f4217d..b614684b863 100644 --- a/components/script/dom/htmloutputelement.rs +++ b/components/script/dom/htmloutputelement.rs @@ -43,7 +43,7 @@ impl HTMLOutputElementMethods for HTMLOutputElement { // https://html.spec.whatwg.org/multipage/#dom-cva-validity fn Validity(&self) -> Root { let window = window_from_node(self); - ValidityState::new(window.r()) + ValidityState::new(window.r(), self.upcast()) } // https://html.spec.whatwg.org/multipage/#dom-fae-form -- cgit v1.2.3