javascript-tutorial / javascript-tutorial/ru.javascript.info

[Предложение: учебник]: document.domain больше нельзя изменить

Open
#2,015 0 comments 0 reactions 0 assignees View on GitHub
suggestion: tutorial
Dominant language
HTML
Stars
4.1k
Forks
921
PR merge metrics
No merged PRs in 30d

Description

### Описание

[В этой статье](https://learn.javascript.ru/cross-window-communication#okna-na-poddomenah-document-domain) имеет смысл указать, что document.domain — устаревшее свойство и в современных браузерах неизменяемо. То есть поддомены больше не могут общаться друг с другом, установив одинаковое значение document.domain.

Источники:

- https://developer.mozilla.org/en-US/docs/Web/API/Document/domain
- https://developer.chrome.com/blog/document-domain-setter-deprecation

### Мотивация

Информация устарела, но сам менять не решусь)

### Готовы ли вы принять участие в реализации данного предложения?

Да, я готов(а) принять участие.

Contributor guide

Open the contributing guide

Research direction

Open the linked cross-window communication article and locate the section about document.domain. Check the MDN and Chrome deprecation sources first, then update the explanation so it reflects current browser behavior. Done means the section no longer presents changing document.domain as a viable way for subdomains to communicate.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
documentation
Issue type
Documentation
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.