FrozenPandaz/ng-hydration-renderer

Previous Siblings also have to be preserved

FrozenPandaz opened this issue · 1 comments

I'm submitting a ... (check one with "x")

[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request

Current behavior
Current Previous Siblings will be appended after the preserved element

Expected behavior
The order of siblings should not be disturbed

Minimal reproduction of the problem with instructions

<h1>Not preserved</h1>
<h2 ng-preserve-node>Preserved</h2>

Will result in

<h2 ng-preserve-node>Preserved</h2>
<h1>Not preserved</h1>

What is the motivation / use case for changing the behavior?
Hydration Renderer should not disturb DOM structure

Please tell us about your environment:
all

  • Angular version: 2.0.X
    2.4.7

  • Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]
    all

  • Language: [all | TypeScript X.X | ES6/7 | ES5]
    Typescript

Fixed as of d64b2eb