Kara Erickson
970b58b13f
refactor(core): move server-only DomAdapter methods into ServerRenderer ( #32408 )
...
PR Close #32408
2019-09-03 11:59:39 -07:00
Misko Hevery
8a47b48912
refactor: Move dom_adapter.ts
to @angular/common
( #32154 )
...
This work is needed in preparation for turning tokens into tree-shakable injectables.
PR Close #32154
2019-08-29 21:51:56 -07:00
Kara Erickson
b094936d72
refactor(core): remove more misc unused utilities from DomAdapters ( #32291 )
...
PR Close #32291
2019-08-28 17:10:30 -07:00
Kara Erickson
f3e4cb491e
refactor(core): remove testing-only event utilities from DomAdapters ( #32291 )
...
PR Close #32291
2019-08-28 17:10:30 -07:00
Kara Erickson
cb5701f8d9
refactor(core): remove testing-only node getters and invoke() from DomAdapters ( #32291 )
...
PR Close #32291
2019-08-28 17:10:30 -07:00
Kara Erickson
c0680602f9
refactor(core): remove testing-only childNodes() and firstChild() fns from DomAdapters ( #32291 )
...
PR Close #32291
2019-08-28 17:10:30 -07:00
Kara Erickson
30dabdf8fc
refactor(core): remove testing-only DOM manipulation utils from DomAdapters ( #32291 )
...
PR Close #32291
2019-08-28 17:10:30 -07:00
Kara Erickson
ede5786d1e
refactor(core): remove testing-only style utils from DomAdapters ( #32291 )
...
PR Close #32291
2019-08-28 17:10:29 -07:00
Kara Erickson
cf4b944865
refactor(core): remove misc dom utils from DomAdapters ( #32278 )
...
PR Close #32278
2019-08-26 10:39:09 -07:00
Kara Erickson
28c8b03797
refactor(core): remove shadow dom utility from DomAdapters ( #32278 )
...
PR Close #32278
2019-08-26 10:39:09 -07:00
Kara Erickson
24127a2492
refactor(core): remove misc, completely unused functions from DomAdapter ( #32278 )
...
PR Close #32278
2019-08-26 10:39:09 -07:00
Kara Erickson
bceeeba405
refactor(core): remove animation utilities from DomAdapters ( #32278 )
...
PR Close #32278
2019-08-26 10:39:09 -07:00
Kara Erickson
7bcd42e7be
refactor(core): remove cookie and comment testing utilities from DomAdapters ( #32278 )
...
PR Close #32278
2019-08-26 10:39:09 -07:00
Kara Erickson
4908a5cffc
refactor(core): remove unused attribute utilities from DomAdapters ( #32278 )
...
PR Close #32278
2019-08-26 10:39:09 -07:00
Kara Erickson
c3f9893d81
refactor(core): remove innerHTML and outerHTML testing utilities from DomAdapters ( #32278 )
...
PR Close #32278
2019-08-26 10:39:09 -07:00
Miško Hevery
64770571b2
perf: don't create holey arrays ( #32155 )
...
Don't use `Array` constructor with the size value (ex. `new Array(5)`) - this will create a `HOLEY_ELEMENTS` array (even if this array is filled in later on!);
https://v8.dev/blog/elements-kinds
https://stackoverflow.com/questions/32054170/how-to-resize-an-array
PR Close #32155
2019-08-21 08:27:43 -07:00
Paul Gschwendtner
18f0c2f1d4
refactor(platform-browser): compatibility with typescript strict flag ( #30993 )
...
As part of FW-1265, the `@angular/platform-browser` package is made compatible
with the TypeScript `--strict` flag. Read more about the strict flag [here](https://www.typescriptlang.org/docs/handbook/compiler-options.html )
PR Close #30993
2019-07-18 14:21:26 -07:00
Filipe Silva
ac34a1429b
refactor: remove toplevel property accesses ( #29329 )
...
PR Close #29329
2019-05-16 12:08:49 -07:00
Alan Agius
b61dafaeac
refactor: remove redundant error in catch ( #25478 )
...
PR Close #25478
2019-01-04 15:42:19 -08:00
Igor Minar
9993c72335
feat: add support for TypeScript 3.1 ( #26151 )
...
PR Close #26151
2018-09-28 09:34:51 -07:00
Vikram Subramanian
2f2d5f35bd
feat(platform-server): provide a DOM implementation on the server
...
Fixes #14638
Uses Domino - https://github.com/fgnass/domino and removes dependency on
Parse5.
The DOCUMENT and nativeElement were never typed earlier and were
different on the browser(DOM nodes) and the server(Parse5 nodes). With
this change, platform-server also exposes a DOCUMENT and nativeElement
that is closer to the client. If you were relying on nativeElement on
the server, you would have to change your code to use the DOM API now
instead of Parse5 AST API.
Removes the need to add services for each and every Document
manipulation like Title/Meta etc.
This does *not* provide a global variable 'document' or 'window' on the
server. You still have to inject DOCUMENT to get the document backing
the current platform server instance.
2017-08-30 17:46:16 -07:00
Alex Rickabaugh
dd04f09483
feat(common): on-by-default XSRF support in HttpClient ( #18108 )
...
Fixes #18100
2017-07-13 17:22:02 -07:00
Miško Hevery
bb2fc6b8da
refactor(platform-browser): Remove setGlobalVar from DOM adapter
2017-06-06 13:26:23 -07:00
Miško Hevery
728c9d0632
fix(platform-browser): Update types for TypeScript nullability support
...
Closes #15898
2017-04-18 12:07:33 -07:00
Victor Berchet
a4076c70cc
fix(platform-browser): prevent clobbered elements from freezing the browser
...
see
4f69d38f09
2017-03-16 10:16:39 -07:00
Jason Aden
3e51a19983
refactor: move angular source to /packages rather than modules/@angular
2017-03-08 16:29:27 -08:00