mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
8cf7731468
Previously, the modelContext truthiness check could be bypassed via DOM clobbering (e.g. `<form id="modelContext">`), causing a truthy HTMLElement to pass the guard and then throw when `registerTool` was called on it. Replace the truthiness check with a duck-type check that asserts `registerTool` is a function, rejecting both absent and clobbered values.
Angular
The sources for this package are in the main Angular repo. Please file issues and pull requests against that repo.
Usage information and reference details can be found in Angular documentation.
License: MIT