HTMLUnknownElement.cpp 858 B

1234567891011121314151617181920212223242526272829
  1. /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
  2. /* This Source Code Form is subject to the terms of the Mozilla Public
  3. * License, v. 2.0. If a copy of the MPL was not distributed with this
  4. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  5. #include "nsDocument.h"
  6. #include "mozilla/dom/HTMLUnknownElement.h"
  7. #include "mozilla/dom/HTMLElementBinding.h"
  8. #include "jsapi.h"
  9. NS_IMPL_NS_NEW_HTML_ELEMENT(Unknown)
  10. namespace mozilla {
  11. namespace dom {
  12. NS_IMPL_ISUPPORTS_INHERITED(HTMLUnknownElement, nsGenericHTMLElement,
  13. HTMLUnknownElement)
  14. JSObject*
  15. HTMLUnknownElement::WrapNode(JSContext *aCx, JS::Handle<JSObject*> aGivenProto)
  16. {
  17. return HTMLUnknownElementBinding::Wrap(aCx, this, aGivenProto);
  18. }
  19. NS_IMPL_ELEMENT_CLONE(HTMLUnknownElement)
  20. } // namespace dom
  21. } // namespace mozilla