mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
162d940b72
Currently the way we extract the pathname of a URL is by creating an anchor node, assigning the URL to its `href` and reading the `pathname`. This is inefficient and it triggers an internal security check that doesn't allow the `href` attribute to be set which ends up blocking https://github.com/angular/components/pull/28155. These changes switch to using the browser's built-in URL parsing instead. PR Close #53097