dom/webidl/Text.webidl
author Mozilla Releng Treescript <release+treescript@mozilla.org>
Mon, 18 Jan 2021 18:28:55 +0000
changeset 631309 50881ced7bb3db037a4f54cd20e1d980c3e68064
parent 560063 2416d17d33c1c6774e62f786aaeff6c02462a5bd
permissions -rw-r--r--
No bug - Tagging cd908cffd02e1563b2218d985873f958a2e2c55d with FIREFOX_85_0_BUILD1 a=release CLOSED TREE DONTBUILD

/* -*- 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;