Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(200)

Side by Side Diff: Source/core/html/HTMLInputElement.idl

Issue 372543002: Use [TreatNullAs=EmptyString] for HTMLInputElement.value (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: testcase style adjustment Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « LayoutTests/fast/dom/HTMLInputElement/input-value-null-expected.txt ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2010 Apple Inc. All rights reserved.
3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> 3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
4 * Copyright (C) 2012 Samsung Electronics. All rights reserved. 4 * Copyright (C) 2012 Samsung Electronics. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 [Reflect] attribute DOMString placeholder; 53 [Reflect] attribute DOMString placeholder;
54 [Reflect] attribute boolean readOnly; 54 [Reflect] attribute boolean readOnly;
55 [Reflect] attribute boolean required; 55 [Reflect] attribute boolean required;
56 [RaisesException=Setter, CustomElementCallbacks] attribute unsigned long siz e; // Changed string -> long -> unsigned long 56 [RaisesException=Setter, CustomElementCallbacks] attribute unsigned long siz e; // Changed string -> long -> unsigned long
57 [Reflect, URL] attribute DOMString src; 57 [Reflect, URL] attribute DOMString src;
58 [Reflect] attribute DOMString step; 58 [Reflect] attribute DOMString step;
59 [CustomElementCallbacks] attribute DOMString type; // readonly dropped as pa rt of DOM level 2 59 [CustomElementCallbacks] attribute DOMString type; // readonly dropped as pa rt of DOM level 2
60 [CustomElementCallbacks] attribute DOMString defaultValue; 60 [CustomElementCallbacks] attribute DOMString defaultValue;
61 [Reflect] attribute DOMString useMap; 61 [Reflect] attribute DOMString useMap;
62 // See the discussion in https://bugs.webkit.org/show_bug.cgi?id=100085 62 // See the discussion in https://bugs.webkit.org/show_bug.cgi?id=100085
63 [TreatNullAs=NullString, RaisesException=Setter, CustomElementCallbacks] att ribute DOMString value; 63 [TreatNullAs=EmptyString, RaisesException=Setter, CustomElementCallbacks] at tribute DOMString value;
64 [RaisesException=Setter, CustomElementCallbacks] attribute Date? valueAsDate ; 64 [RaisesException=Setter, CustomElementCallbacks] attribute Date? valueAsDate ;
65 [RaisesException=Setter, CustomElementCallbacks] attribute unrestricted doub le valueAsNumber; 65 [RaisesException=Setter, CustomElementCallbacks] attribute unrestricted doub le valueAsNumber;
66 66
67 [RaisesException, CustomElementCallbacks] void stepUp(optional long n); 67 [RaisesException, CustomElementCallbacks] void stepUp(optional long n);
68 [RaisesException, CustomElementCallbacks] void stepDown(optional long n); 68 [RaisesException, CustomElementCallbacks] void stepDown(optional long n);
69 69
70 [CustomElementCallbacks] attribute unsigned long width; 70 [CustomElementCallbacks] attribute unsigned long width;
71 readonly attribute boolean willValidate; 71 readonly attribute boolean willValidate;
72 readonly attribute ValidityState validity; 72 readonly attribute ValidityState validity;
73 readonly attribute DOMString validationMessage; 73 readonly attribute DOMString validationMessage;
(...skipping 18 matching lines...) Expand all
92 [Default=Undefined] optional long end, 92 [Default=Undefined] optional long end,
93 optional DOMString direction); 93 optional DOMString direction);
94 94
95 // Non-standard attributes 95 // Non-standard attributes
96 [Reflect, MeasureAs=PrefixedDirectoryAttribute] attribute boolean webkitdire ctory; 96 [Reflect, MeasureAs=PrefixedDirectoryAttribute] attribute boolean webkitdire ctory;
97 [Reflect, MeasureAs=IncrementalAttribute] attribute boolean incremental; 97 [Reflect, MeasureAs=IncrementalAttribute] attribute boolean incremental;
98 98
99 // See http://www.w3.org/TR/html-media-capture/ 99 // See http://www.w3.org/TR/html-media-capture/
100 [RuntimeEnabled=MediaCapture, Reflect] attribute boolean capture; 100 [RuntimeEnabled=MediaCapture, Reflect] attribute boolean capture;
101 }; 101 };
OLDNEW
« no previous file with comments | « LayoutTests/fast/dom/HTMLInputElement/input-value-null-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698