nsIDOMNSEditableElement.idl 1.0 KB

1234567891011121314151617181920212223242526272829
  1. /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
  2. /* This Source Code Form is subject to the terms of the Mozilla Public
  3. * License, v. 2.0. If a copy of the MPL was not distributed with this
  4. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  5. #include "nsISupports.idl"
  6. interface nsIEditor;
  7. /**
  8. * This interface is implemented by elements which have inner editable content,
  9. * such as HTML input and textarea.
  10. *
  11. * Please make sure to update the HTMLTextAreaElement and HTMLInputElement
  12. * Web IDL interfaces to mirror this interface when changing it.
  13. *
  14. */
  15. [scriptable, uuid(3503de34-6631-4594-b7be-c36ff6a520c4)]
  16. interface nsIDOMNSEditableElement : nsISupports
  17. {
  18. [noscript] readonly attribute nsIEditor editor;
  19. // This is similar to set .value on nsIDOMInput/TextAreaElements, but
  20. // handling of the value change is closer to the normal user input, so
  21. // 'change' event for example will be dispatched when focusing out the
  22. // element.
  23. [noscript] void setUserInput(in DOMString input);
  24. };