dom/webidl/Text.webidl
author Jared Wein <jwein@mozilla.com>
Tue, 12 May 2020 02:00:19 +0000
changeset 589278 cdf352f02ac4e034be96d14031fd6cc37dbe9ab9
parent 560063 2416d17d33c1c6774e62f786aaeff6c02462a5bd
permissions -rw-r--r--
Bug 1636511 - Disable the OS auth feature in about:logins on Release and Beta. r=MattN a=RyanVM Differential Revision: https://phabricator.services.mozilla.com/D74676

/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* 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/.
 *
 * The origin of this IDL file is
 * http://www.w3.org/TR/2012/WD-dom-20120105/
 *
 * Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C
 * liability, trademark and document use rules apply.
 */

[Exposed=Window]
interface Text : CharacterData {
  [Throws]
  constructor(optional DOMString data = "");

  [Throws]
  Text splitText(unsigned long offset);
  [Throws]
  readonly attribute DOMString wholeText;
};

partial interface Text {
  [BinaryName="assignedSlotByMode"]
  readonly attribute HTMLSlotElement? assignedSlot;

  [ChromeOnly, BinaryName="assignedSlot"]
  readonly attribute HTMLSlotElement? openOrClosedAssignedSlot;
};

Text includes GeometryUtils;