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

Unified Diff: sky/specs/apis.md

Issue 705443002: Specs: Explain the parser a bit better. Make the output of registerElement() something you can pass… (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « no previous file | sky/specs/parsing.md » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/specs/apis.md
diff --git a/sky/specs/apis.md b/sky/specs/apis.md
index e5bbc59c07f9d126ac77ec3712b3977d2e0d287f..71d003ef04f057735e3b37b7517aa84becd9fea5 100644
--- a/sky/specs/apis.md
+++ b/sky/specs/apis.md
@@ -221,6 +221,7 @@ module 'sky:core' {
constructor (); // shorthand
constructor attribute String tagName;
+ constructor attribute Boolean shadow;
}
// MODULES
@@ -237,6 +238,9 @@ module 'sky:core' {
Element createElement(String tagName); // shorthand
ElementConstructor registerElement(ElementRegistration options); // O(N) in number of outstanding elements with that tag name to be upgraded
+ // if you call registerElement() with an object that was created by
+ // registerElement(), it just returns the object after registering it,
+ // rather than creating a new constructor
ScriptElement? currentScript; // O(1) // returns the <script> element currently being executed if any, and if it's in this module; else null
}
« no previous file with comments | « no previous file | sky/specs/parsing.md » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698