Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(83)

Unified Diff: sky/engine/core/dom/Element.idl

Issue 943013002: Implement Custom Elements (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: attributeChanged***d***Callback Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: sky/engine/core/dom/Element.idl
diff --git a/sky/engine/core/dom/Element.idl b/sky/engine/core/dom/Element.idl
index 21873ee1621a61ca5f418900d300b2027f3c1f7b..31475779513a44afc376f497aea331e28b2bc0db 100644
--- a/sky/engine/core/dom/Element.idl
+++ b/sky/engine/core/dom/Element.idl
@@ -2,13 +2,16 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-interface Element : ParentNode {
+[
+ Constructor(DOMString tagName),
+ ConstructorCallWith=Document,
+] interface Element : ParentNode {
readonly attribute DOMString tagName;
boolean hasAttribute(DOMString name);
[TreatReturnedNullStringAs=Null] DOMString getAttribute(DOMString name);
- [RaisesException] void setAttribute(DOMString name, optional DOMString value);
- void removeAttribute(DOMString name);
+ [CustomElementCallbacks, RaisesException] void setAttribute(DOMString name, optional DOMString value);
+ [CustomElementCallbacks] void removeAttribute(DOMString name);
sequence<Attr> getAttributes();

Powered by Google App Engine
This is Rietveld 408576698