Index: core/dom/Text.idl |
diff --git a/core/dom/Text.idl b/core/dom/Text.idl |
index afee652d1073faa8c22bce4df79ce5e679af43d1..1d733b91daa7fe6315f5921606d42a1dc0f91bdc 100644 |
--- a/core/dom/Text.idl |
+++ b/core/dom/Text.idl |
@@ -16,19 +16,17 @@ |
* the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
* Boston, MA 02110-1301, USA. |
*/ |
+ |
+// https://dom.spec.whatwg.org/#interface-text |
+ |
[ |
Constructor(optional DOMString data = ""), |
ConstructorCallWith=Document, |
- Custom=Wrap, |
] interface Text : CharacterData { |
+ [NewObject, RaisesException] Text splitText(unsigned long offset); |
+ [MeasureAs=TextWholeText] readonly attribute DOMString wholeText; |
- // DOM Level 1 |
- [RaisesException] Text splitText(unsigned long offset); |
- |
- // Introduced in DOM Level 3: |
- readonly attribute DOMString wholeText; |
- [MeasureAs=TextReplaceWholeText] Text replaceWholeText(DOMString content); // Removed from DOM4. |
- |
- // Shadow DOM API |
+ // Shadow DOM |
+ // http://w3c.github.io/webcomponents/spec/shadow/#extensions-to-text-interface |
NodeList getDestinationInsertionPoints(); |
}; |