Closed
Bug 1345253
Opened 9 years ago
Closed 9 years ago
Use element.firstChild.remove() instead of element.removeChild(element.firstChild)
Categories
(Developer Infrastructure :: Lint and Formatting, enhancement)
Tracking
(firefox55 fixed)
RESOLVED
FIXED
mozilla55
| Tracking | Status | |
|---|---|---|
| firefox55 | --- | fixed |
People
(Reporter: florian, Assigned: florian)
References
Details
Attachments
(3 files)
|
8.90 KB,
text/plain
|
Details | |
|
119.23 KB,
patch
|
jaws
:
review+
|
Details | Diff | Splinter Review |
|
2.37 KB,
patch
|
Details | Diff | Splinter Review |
I missed this case when I worked on bug 1334831. It's straight forward to script and lint.
| Assignee | ||
Comment 1•9 years ago
|
||
No hand editing at all here. Will of course push to try.
Attachment #8844650 -
Flags: review?(jaws)
| Assignee | ||
Comment 2•9 years ago
|
||
| Assignee | ||
Comment 3•9 years ago
|
||
I filed bug 1345301 for what looks like an actual bug.
The other failure was because .remove() doesn't return the removed node, and maction-dynamic-embellished-op.html uses removeChild's return value.
Comment 4•9 years ago
|
||
Comment on attachment 8844650 [details] [diff] [review]
Tweak to the eslint rule + script generated patch
Review of attachment 8844650 [details] [diff] [review]:
-----------------------------------------------------------------
rs=me, I reviewed the avoid-removeChild.js changes and package.json closely. All other files I skimmed through.
Attachment #8844650 -
Flags: review?(jaws) → review+
| Assignee | ||
Comment 5•9 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/1a2b467e5660da4ed8dc7a5ef3077b357aba087f
Bug 1345253 - Use element.firstChild.remove() instead of element.removeChild(element.firstChild), r=jaws.
Comment 6•9 years ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox55:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
Updated•8 years ago
|
Product: Testing → Firefox Build System
Updated•7 years ago
|
Version: Version 3 → 3 Branch
Updated•3 years ago
|
Product: Firefox Build System → Developer Infrastructure
You need to log in
before you can comment on or make changes to this bug.
Description
•