This document lists the major changes to the entirety of the project, including polyfill repos.
2013-05-09
Notice: This release contains important changes to the structure of the project.
Toolkit
See the full list of changes.
-
Project has a build status at http://build.chromium.org/p/client.toolkit/waterfall and tests are being run on Browserstack (commit)
-
Base example components were removed and separated into their own
toolkit-uirepo, while thetoolkit-elementsrepo contains non-visual elements. -
A sandbox tool was added to projects.
Elements and animations
-
New
g-overlayelement with web animations (commit) andg-tabspanel(commit) -
Added
g-fadein,g-fadeoutanimations (commit) andg-shake, a configurable shake animation (commit)
Features & bug fixes
-
Element registration now puts a
.elementElementproperty on the prototpe to reference the<element>(commit) -
pseudo-scoping now works on Firefox and IE where
cssRule.selectorTextis readonly (commit) -
Attributes de-serialization is more predicable. For example, numbers are treated as numbers, srings as strings, dates as
Date, etc. (commit, commit, commit) -
MDV v3 is now turned on by default.
-
Toolkit.getBinding(element, name)no longer generates an exception if element is null [commit)
Platform
Custom Elements
See the full list of changes.
-
Implement life cycle callbacks (inserted|removed|attributeChanged) using MutationObsevers. Note: you can no longer add lifecycle callbacks to a
lifecycleobject. They must be on the prototpye. (commit) -
document.register()only triggers document-wide upgrade when called after initial load is complete (commit) -
document.register()tests were updated to align with spec changes (commit) -
Added support for native
document.webkitRegister()(if available) (commit) -
attributeChangedcallback only fires when attribute has actually been modified (commit) -
<style>elements are now (correctly) ignored if they’re in the main document (commit)
HTML Imports
See the full list of changes
-
HTMLImports.getDocumentUrl()added (commit) -
HTMLImports.readyTimeadded for primative timing data [commit) -
Caching is configurable with
.cache[commit)
MDV
See the full list of changes
-
Now using ChangeSummary v3 (commit)
-
Removed
.effectiveContentAPI (commit) -
Removed
HTMLTemplateElement.bindTreein favor oftemplate.model(commit) -
Exposed
HTMLTemplateElement.parseAndBind_(commit) -
Implemented
.getInstanceModelfor returning the model associated with a template (commit)
Pointer Events / Gestures
See the full list of changes here and here.
-
touch-action: useris an alias fortouch-action: none(commit) -
Fix
pointercapturethrows on IE10 (commit) -
Expose
.clientXY,.pageXY,.screenXYof track gestures. (commit)
Shadow DOM
See the full list of changes
-
Implemented
.querySelector|All()and.getElementById()(commit, commit) -
Implemented
.elementFromPointfordocumentand ShadowRoot (commit) -
Wrapped
MutationRecordinterface now that Blink has it. (commit) -
document.write()is now overriden and wrapped in the polyfill (commit)
2013-04-17
Toolkit
- If you’re writing a Toolkit component, there’s
no longer need to include
platform.jsalongsidetoolkit.js.toolkit.jsnow loadsplatform.jsunder the hood.
Platform
CustomElements
- The
constructorattribute is now supported (commit)
HTML Imports
-
Fixed issue with imports loaded at the same url would not have the content associated with them (commit)
-
Polyfill now correctly checks for
HTMLTemplateElementbefore using it (commit) -
If
HTMLTemplateElement.bootstrapis available, then bootstrap templates in imported documents. (commit)
2013-04-11
Notice: This release contains important changes to the structure of the project.
- The
toolkitrepository now brings in theplatformrepository as a submodule. - Until now, the dev branch has been the development branch and master has been the stable release. Now, the stable branch is the default “stable” codebase. master branches are the in-development tip of tree. The stable branch is also the default view on Github.
Toolkit
g-component.htmlno longer exists as the Tookit kernel. It has been replaced with loading intoolkit.jsinstead.- Added
debugruntime flags to conditionally load debug version ofplatform.js.
2013-02-25
Toolkit
-
Changed “toolkit/src” folder name to “toolkit/components”. Update your source paths accordingly.
-
Introduced
selectedClassproperty to g-selector component. (commit) -
g-selector now sends an
activateevent which is fired whenever an item is activated (can occur when the currently selected item is activated). Theselectevent is fired only when the selected item changes. (commit) -
g-menu-button: the menu now closes in response to the selector’s activate event (commit)
-
g-selection: selecting the same item is now a no-op (commit)
-
Added support for 2-way bindings on input elements (commit)
-
g-ajax: Response is bindable; params can be set as json or object.
-
g-panels: Added
autoselectproperty that controls if keys/swipes can select panels; addedcanselectevent to control if a panel can be selected.
Platform
-
Landed version 2 of the Shadow DOM shim. See the pull request for details.
-
ShadowRoot now installs shadow reference on
node.webkitShadowRoot, as per spec. Fixes #68. (commit) -
Loader: allow stylesheets and scripts in components defined in document. (commit)
Tools
- Shadow DOM inspector
Added a tool for inspecting Shadow DOM trees. You can invoke the tool via
window.sinspect(node), wherenodeis the element to start inspecting from. If not specified then it will usedocument.body.
To use the tool, open the JavaScript console and type sinspect().
Note: The tool opens in a pop-up window so you may have to unblock it.
