diff options
author | Josh Matthews <josh@joshmatthews.net> | 2013-07-28 11:43:24 -0400 |
---|---|---|
committer | Josh Matthews <josh@joshmatthews.net> | 2013-08-05 11:29:12 -0400 |
commit | fd4efad70c09653f38737252dc7741952d873eb5 (patch) | |
tree | 6eb3c1f44ae9ee5b80d1becc7187a3eaed433dd9 /src/components/script/dom/bindings/codegen/Text.webidl | |
parent | c9bc2046f683d03449d38e0d82339fee32be3528 (diff) | |
download | servo-fd4efad70c09653f38737252dc7741952d873eb5.tar.gz servo-fd4efad70c09653f38737252dc7741952d873eb5.zip |
Generate bindings for Node, CharacterData, Text, Element, and HTMLElement. Hook up text nodes to use the new bindings.
Diffstat (limited to 'src/components/script/dom/bindings/codegen/Text.webidl')
-rw-r--r-- | src/components/script/dom/bindings/codegen/Text.webidl | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/components/script/dom/bindings/codegen/Text.webidl b/src/components/script/dom/bindings/codegen/Text.webidl new file mode 100644 index 00000000000..e32ef71b7ea --- /dev/null +++ b/src/components/script/dom/bindings/codegen/Text.webidl @@ -0,0 +1,19 @@ +/* -*- 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. + */ + +[Constructor(optional DOMString data = "")] +interface Text : CharacterData { + [Throws] + Text splitText(unsigned long offset); + [Throws] + readonly attribute DOMString wholeText; +}; |