Page MenuHomePhabricator

Add deprecation notice for document.writeln
Closed, DuplicatePublic


Similar to T108139: document.writeln can also blank the page.

Please also add a polyfill with a deprecation warning. Thanks.

Hint: The writeln method accept more than one argument.

Event Timeline

Umherirrender raised the priority of this task from to Needs Triage.
Umherirrender updated the task description. (Show Details)
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptAug 6 2015, 11:32 AM
Schnark added a subscriber: Schnark.Aug 7 2015, 8:45 AM

The writeln method accept more than one argument.

According to both write and writeln accept only one parameter, though it seems that all browsers accept more parameters and just concatenate them.

I have looked at where it is marked as var_args ("Multiple arguments can be listed and they will be appended to the document in order of occurrence"), but that may not the standard.

T108423 is a duplicate, but since the other ticket has an already merged patch, let's merge this task in rather than the other way round.