Page MenuHomePhabricator

Add deprecation notice for document.writeln
Closed, DuplicatePublic

Description

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)

The writeln method accept more than one argument.

According to http://www.w3.org/TR/2000/WD-DOM-Level-2-HTML-20001113/html.html#ID-75233634 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 http://www.w3schools.com/jsref/met_doc_writeln.asp 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.