1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim: set ts=8 sts=2 et sw=2 tw=80: */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #include "HTMLDataListElement.h"
8 #include "mozilla/dom/HTMLDataListElementBinding.h"
10 NS_IMPL_NS_NEW_HTML_ELEMENT(DataList
)
15 HTMLDataListElement::~HTMLDataListElement()
20 HTMLDataListElement::WrapNode(JSContext
*aCx
, JS::Handle
<JSObject
*> aGivenProto
)
22 return HTMLDataListElement_Binding::Wrap(aCx
, this, aGivenProto
);
25 NS_IMPL_CYCLE_COLLECTION_INHERITED(HTMLDataListElement
,
29 NS_IMPL_ISUPPORTS_CYCLE_COLLECTION_INHERITED_0(HTMLDataListElement
,
32 NS_IMPL_ELEMENT_CLONE(HTMLDataListElement
)
35 HTMLDataListElement::MatchOptions(Element
* aElement
, int32_t aNamespaceID
,
36 nsAtom
* aAtom
, void* aData
)
38 return aElement
->NodeInfo()->Equals(nsGkAtoms::option
, kNameSpaceID_XHTML
) &&
39 !aElement
->HasAttr(kNameSpaceID_None
, nsGkAtoms::disabled
);
43 } // namespace mozilla