Repository navigation
Closed
Description
I'm submitting a ...
[x] Regression (behavior that used to work and stopped working in a new release)
[ ] Bug report
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
Current behavior
Documentation is broken in older Firefox versions (41). Some pages aren't rendered. Page styles are wrong, and code snippets aren't formatted.
The error is constantly thrown:
ERROR TypeError: n.innerText is undefined
Stack trace:
.cDNt/xd</t.prototype.addTitleAndToc@https://angular.io/main.fb5a3266fe66a1ced8d1.bundle.js:1:494067
.cDNt/xd</t.prototype.build@https://angular.io/main.fb5a3266fe66a1ced8d1.bundle.js:1:493682
.cDNt/xd</<.set@https://angular.io/main.fb5a3266fe66a1ced8d1.bundle.js:1:493514
un@https://angular.io/main.fb5a3266fe66a1ced8d1.bundle.js:1:26158
en@https://angular.io/main.fb5a3266fe66a1ced8d1.bundle.js:1:23505
Zn@https://angular.io/main.fb5a3266fe66a1ced8d1.bundle.js:1:38532
Bn@https://angular.io/main.fb5a3266fe66a1ced8d1.bundle.js:1:38065
mr@https://angular.io/main.fb5a3266fe66a1ced8d1.bundle.js:1:44195
Gn/<@https://angular.io/main.fb5a3266fe66a1ced8d1.bundle.js:1:231818
rr/<.updateDirectives@https://angular.io/main.fb5a3266fe66a1ced8d1.bundle.js:1:42128
zn@https://angular.io/main.fb5a3266fe66a1ced8d1.bundle.js:1:37748
Jn@https://angular.io/main.fb5a3266fe66a1ced8d1.bundle.js:1:40588
$n@https://angular.io/main.fb5a3266fe66a1ced8d1.bundle.js:1:39986
zn@https://angular.io/main.fb5a3266fe66a1ced8d1.bundle.js:1:37883
["/oeL"]/</hs</t.prototype.detectChanges@https://angular.io/main.fb5a3266fe66a1ced8d1.bundle.js:1:103358
["/oeL"]/</co</e.prototype.tick/<@https://angular.io/main.fb5a3266fe66a1ced8d1.bundle.js:1:76090
["/oeL"]/</co</e.prototype.tick@https://angular.io/main.fb5a3266fe66a1ced8d1.bundle.js:1:76051
e/<.next/<@https://angular.io/main.fb5a3266fe66a1ced8d1.bundle.js:1:73971
.eFQL/</</</l</e.prototype.invoke@https://angular.io/polyfills.631fae0b74bb23493f0e.bundle.js:1:18778
["/oeL"]/</Yi</t.prototype.forkInnerZoneWithAngularBehavior/this.inner<.onInvoke@https://angular.io/main.fb5a3266fe66a1ced8d1.bundle.js:1:67870
.eFQL/</</</l</e.prototype.invoke@https://angular.io/polyfills.631fae0b74bb23493f0e.bundle.js:1:18705
.eFQL/</</</c</r.prototype.run@https://angular.io/polyfills.631fae0b74bb23493f0e.bundle.js:1:13959
["/oeL"]/</Yi</t.prototype.run@https://angular.io/main.fb5a3266fe66a1ced8d1.bundle.js:1:66213
e/<.next@https://angular.io/main.fb5a3266fe66a1ced8d1.bundle.js:1:73948
["/oeL"]/</$i</e.prototype.subscribe/i<@https://angular.io/main.fb5a3266fe66a1ced8d1.bundle.js:1:64676
["T14+"]/l</e.prototype.__tryOrUnsub@https://angular.io/main.fb5a3266fe66a1ced8d1.bundle.js:1:138624
["T14+"]/l</e.prototype.next@https://angular.io/main.fb5a3266fe66a1ced8d1.bundle.js:1:137899
["T14+"]/a</e.prototype._next@https://angular.io/main.fb5a3266fe66a1ced8d1.bundle.js:1:136933
["T14+"]/a</e.prototype.next@https://angular.io/main.fb5a3266fe66a1ced8d1.bundle.js:1:136616
.rlar/c</e.prototype.next@https://angular.io/main.fb5a3266fe66a1ced8d1.bundle.js:1:572405
["/oeL"]/</$i</e.prototype.emit@https://angular.io/main.fb5a3266fe66a1ced8d1.bundle.js:1:64435
["/oeL"]/</Yi</t.prototype.checkStable@https://angular.io/main.fb5a3266fe66a1ced8d1.bundle.js:1:67384
["/oeL"]/</Yi</t.prototype.onLeave@https://angular.io/main.fb5a3266fe66a1ced8d1.bundle.js:1:68314
["/oeL"]/</Yi</t.prototype.forkInnerZoneWithAngularBehavior/this.inner<.onInvokeTask@https://angular.io/main.fb5a3266fe66a1ced8d1.bundle.js:1:67800
.eFQL/</</</l</e.prototype.invokeTask@https://angular.io/polyfills.631fae0b74bb23493f0e.bundle.js:1:19366
.eFQL/</</</c</r.prototype.runTask@https://angular.io/polyfills.631fae0b74bb23493f0e.bundle.js:1:14622
e/this.invoke@https://angular.io/polyfills.631fae0b74bb23493f0e.bundle.js:1:20427
Expected behavior
The page is rendered normally in higher Firefox versions (53).
Minimal reproduction of the problem with instructions
The problem persists on all documentation pages.
Not rendered at all:
https://angular.io/api
Not rendered correctly:
https://angular.io/api/http/Http
What is the motivation / use case for changing the behavior?
The availability of crucially important information on the framework on Angular official website in modern browsers.
Please tell us about your environment
Browser:
- Chrome (desktop) version XX
- Chrome (Android) version XX
- Chrome (iOS) version XX
- Firefox version 41
- Safari (desktop) version XX
- Safari (iOS) version XX
- IE version XX
- Edge version XX
Others:
Windows 7 x64
Metadata
Metadata
Assignees
Labels
No labels
Activity
[-]Documentation formatting is broken in Firefox[/-][+]Documentation is broken in Firefox[/+]gkalpak commentedon Jun 17, 2017
We are indeed using
innerTextis a few places, which is not available before Firefox 45. That said, Firefox 41 (or even 44) are 2 years old now, which is quite a lot for an evergreen browser. Even if we fixed theinnerTextissues, I don't think our dependencies (including Angular itself) supports such old browsers.bisubus commentedon Jun 17, 2017
@gkalpak I understand why the support for stale evergreen browser versions is not a priority, but feature-wise FF 41 is ok when compared to non-evergreen supported browsers. I personally had zero problems with it in Angular 4 application development (not counting the issue with
innerText).Until the documentation will be available as static SSR pages, I guess it would be a good thing to not force breaking behaviour in older browsers that don't need much efforts to get the support. In this case it probably will be drop-in replacement of
innerTextwithtextContent... or probably not.gkalpak commentedon Jun 18, 2017
@bisubus, can you check if this works on Firefox 41: pr17598-44c1d08
bisubus commentedon Jun 18, 2017
@gkalpak Thanks, indeed, it works as expected. It's solved, I guess.
gkalpak commentedon Jun 18, 2017
Thanks for checking. Let's leave this open until #17598 is merged (it will be automatically closed upon merging).
fix(aio): switch from `innerText` to `textContent` to support older b…
fix(aio): switch from `innerText` to `textContent` to support older b…
fix(aio): switch from `innerText` to `textContent` to support older b…
fix(aio): switch from `innerText` to `textContent` to support older b…
fix(aio): switch from `innerText` to `textContent` to support older b…
angular-automatic-lock-bot commentedon Sep 11, 2019
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.
fix(aio): switch from `innerText` to `textContent` to support older b…