From 01556beae6b22fbd194215b4a823c9930976063e Mon Sep 17 00:00:00 2001 From: Xavier Cho Date: Mon, 11 Aug 2014 20:34:13 +0900 Subject: [PATCH] Splitting HTMLDocument from Document * getElementById() returns Element, not HTMLElement * Reorder and regroup attributes for legibility * Deprecate non-working or outdated attributes --- src/main/scala/org/scalajs/dom/Html.scala | 535 +++++++++++++++++++ src/main/scala/org/scalajs/dom/lib.scala | 600 ++-------------------- 2 files changed, 591 insertions(+), 544 deletions(-) diff --git a/src/main/scala/org/scalajs/dom/Html.scala b/src/main/scala/org/scalajs/dom/Html.scala index d8ed80819..bbceeb70b 100644 --- a/src/main/scala/org/scalajs/dom/Html.scala +++ b/src/main/scala/org/scalajs/dom/Html.scala @@ -12,6 +12,541 @@ package org.scalajs.dom import scala.scalajs.js +class HTMLDocument extends Document { + + /** + * Returns the title of the current document. + * + * MDN + */ + var title: String = ??? + + /** + * Gets/sets the domain portion of the origin of the current document, as used by the + * same origin policy. + * + * MDN + */ + var domain: String = ??? + + /** + * The Document.location property returns a Location object, which + * contains information about the URL of the document and provides methods for + * changing that URL and load another URL. + * + * MDN + */ + var location: Location = ??? + + /** + * Returns a string containing the URL of the current document. + * + * MDN + */ + def URL: String = ??? + + /** + * Returns the URI of the page that linked to this page. + * + * MDN + */ + def referrer: String = ??? + + /** + * Returns a semicolon-separated list of the cookies for that document or sets a + * single cookie. + * + * MDN + */ + def cookie: String = ??? + + /** + * The Document.dir property is a DOMString representing the directionality of the + * text of the document, whether left to right (default) or right to left. Possible + * values are 'rtl', right to left, and 'ltr', left to right. + * + * MDN + */ + var dir: String = ??? + + /** + * Can be used to make any document editable, for example in a