1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dom/interfaces/core/nsIDOMNSEditableElement.idl Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,28 @@ 1.4 +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.8 + 1.9 +#include "nsISupports.idl" 1.10 + 1.11 +interface nsIEditor; 1.12 + 1.13 +/** 1.14 + * This interface is implemented by elements which have inner editable content, 1.15 + * such as HTML input and textarea. 1.16 + * 1.17 + * Please make sure to update the HTMLTextAreaElement and HTMLInputElement 1.18 + * Web IDL interfaces to mirror this interface when changing it. 1.19 + * 1.20 + */ 1.21 + 1.22 +[scriptable, uuid(b33eb56c-3120-418c-892b-774b00c7dde8)] 1.23 +interface nsIDOMNSEditableElement : nsISupports 1.24 +{ 1.25 + readonly attribute nsIEditor editor; 1.26 + // This is similar to set .value on nsIDOMInput/TextAreaElements, but 1.27 + // handling of the value change is closer to the normal user input, so 1.28 + // 'change' event for example will be dispatched when focusing out the 1.29 + // element. 1.30 + void setUserInput(in DOMString input); 1.31 +};