forked from mirrors/gecko-dev
		
	 d245344de3
			
		
	
	
		d245344de3
		
	
	
	
	
		
			
			<!-- Please describe your changes on the following line: --> Added code for initial steps in html form validation. 1. Added methods for trait validatable 2. implemented stub methods for elements like HTMLInputElement, HTMLButtonElement, etc <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X ] `./mach build -d` does not report any errors - [ X] `./mach test-tidy` does not report any errors - [ ] These changes fix #__ (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> Source-Repo: https://github.com/servo/servo Source-Revision: beec035eb0ff6babf48ce836184329e60e795177
		
			
				
	
	
		
			9 lines
		
	
	
	
		
			402 B
		
	
	
	
		
			Rust
		
	
	
		
			Executable file
		
	
	
	
	
			
		
		
	
	
			9 lines
		
	
	
	
		
			402 B
		
	
	
	
		
			Rust
		
	
	
		
			Executable file
		
	
	
	
	
| /* This Source Code Form is subject to the terms of the Mozilla Public
 | |
|  * License, v. 2.0. If a copy of the MPL was not distributed with this
 | |
|  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 | |
| use dom::validitystate::ValidationFlags;
 | |
| 
 | |
| pub trait Validatable {
 | |
|     fn is_instance_validatable(&self) -> bool { true }
 | |
|     fn validate(&self, _validate_flags: ValidationFlags) -> bool { true }
 | |
| }
 |