From dff12dbf0081965bc62580831711a3751fb1cf61 Mon Sep 17 00:00:00 2001 From: Manish Goregaokar Date: Sat, 2 Mar 2019 01:23:14 +0000 Subject: [PATCH] Bug 1359269 - Part 4: Update HTML spec idl files to use attributes on types; r=bzbarsky See https://github.com/whatwg/html/pull/2580 Depends on D19735 Differential Revision: https://phabricator.services.mozilla.com/D19736 --HG-- extra : moz-landing-system : lando --- dom/webidl/HTMLBodyElement.webidl | 20 ++++++++++---------- dom/webidl/HTMLElement.webidl | 4 ++-- dom/webidl/HTMLInputElement.webidl | 4 ++-- dom/webidl/HTMLTextAreaElement.webidl | 2 +- 4 files changed, 15 insertions(+), 15 deletions(-) diff --git a/dom/webidl/HTMLBodyElement.webidl b/dom/webidl/HTMLBodyElement.webidl index f89c287d72f7..8f5369ec0d3e 100644 --- a/dom/webidl/HTMLBodyElement.webidl +++ b/dom/webidl/HTMLBodyElement.webidl @@ -16,16 +16,16 @@ interface HTMLBodyElement : HTMLElement { }; partial interface HTMLBodyElement { - [CEReactions, TreatNullAs=EmptyString, SetterThrows] - attribute DOMString text; - [CEReactions, TreatNullAs=EmptyString, SetterThrows] - attribute DOMString link; - [CEReactions, TreatNullAs=EmptyString, SetterThrows] - attribute DOMString vLink; - [CEReactions, TreatNullAs=EmptyString, SetterThrows] - attribute DOMString aLink; - [CEReactions, TreatNullAs=EmptyString, SetterThrows] - attribute DOMString bgColor; + [CEReactions, SetterThrows] + attribute [TreatNullAs=EmptyString] DOMString text; + [CEReactions, SetterThrows] + attribute [TreatNullAs=EmptyString] DOMString link; + [CEReactions, SetterThrows] + attribute [TreatNullAs=EmptyString] DOMString vLink; + [CEReactions, SetterThrows] + attribute [TreatNullAs=EmptyString] DOMString aLink; + [CEReactions, SetterThrows] + attribute [TreatNullAs=EmptyString] DOMString bgColor; [CEReactions, SetterThrows] attribute DOMString background; }; diff --git a/dom/webidl/HTMLElement.webidl b/dom/webidl/HTMLElement.webidl index 09742a32a2d4..5153dd4db92a 100644 --- a/dom/webidl/HTMLElement.webidl +++ b/dom/webidl/HTMLElement.webidl @@ -25,8 +25,8 @@ interface HTMLElement : Element { [Constant] readonly attribute DOMStringMap dataset; - [CEReactions, GetterThrows, Pure, TreatNullAs=EmptyString] - attribute DOMString innerText; + [CEReactions, GetterThrows, Pure] + attribute [TreatNullAs=EmptyString] DOMString innerText; // user interaction [CEReactions, SetterThrows, Pure] diff --git a/dom/webidl/HTMLInputElement.webidl b/dom/webidl/HTMLInputElement.webidl index 6bc19e773a12..5576b933d3ec 100644 --- a/dom/webidl/HTMLInputElement.webidl +++ b/dom/webidl/HTMLInputElement.webidl @@ -90,8 +90,8 @@ interface HTMLInputElement : HTMLElement { attribute DOMString type; [CEReactions, Pure, SetterThrows] attribute DOMString defaultValue; - [CEReactions, Pure, TreatNullAs=EmptyString, SetterThrows, NeedsCallerType] - attribute DOMString value; + [CEReactions, Pure, SetterThrows, NeedsCallerType] + attribute [TreatNullAs=EmptyString] DOMString value; [Throws, Func="HTMLInputElement::ValueAsDateEnabled"] attribute Date? valueAsDate; [Pure, SetterThrows] diff --git a/dom/webidl/HTMLTextAreaElement.webidl b/dom/webidl/HTMLTextAreaElement.webidl index 026007e1c0ca..fe3023214060 100644 --- a/dom/webidl/HTMLTextAreaElement.webidl +++ b/dom/webidl/HTMLTextAreaElement.webidl @@ -49,7 +49,7 @@ interface HTMLTextAreaElement : HTMLElement { readonly attribute DOMString type; [CEReactions, Throws, Pure] attribute DOMString defaultValue; - [CEReactions, SetterThrows, TreatNullAs=EmptyString] attribute DOMString value; + [CEReactions, SetterThrows] attribute [TreatNullAs=EmptyString] DOMString value; readonly attribute unsigned long textLength; readonly attribute boolean willValidate;