diff options
author | Peter Bengtsson <mail@peterbe.com> | 2021-07-27 15:17:31 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-27 22:17:31 +0300 |
commit | 7a2cfc4872ec27ef4ea5aa79f01dcb03a9a24d88 (patch) | |
tree | 520bd15be92236f2e90ab4b66389759ebc09f54f /files/ru/web/api/window | |
parent | 20c7fd773df964681f7dd9d7a305293abd5a04ad (diff) | |
download | translated-content-7a2cfc4872ec27ef4ea5aa79f01dcb03a9a24d88.tar.gz translated-content-7a2cfc4872ec27ef4ea5aa79f01dcb03a9a24d88.tar.bz2 translated-content-7a2cfc4872ec27ef4ea5aa79f01dcb03a9a24d88.zip |
remove link 'title' attributes that's just the 'href' (ru, part 4) (#1748)
Diffstat (limited to 'files/ru/web/api/window')
-rw-r--r-- | files/ru/web/api/window/getcomputedstyle/index.html | 4 | ||||
-rw-r--r-- | files/ru/web/api/window/localstorage/index.html | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/files/ru/web/api/window/getcomputedstyle/index.html b/files/ru/web/api/window/getcomputedstyle/index.html index 0acceae418..15c8e0b858 100644 --- a/files/ru/web/api/window/getcomputedstyle/index.html +++ b/files/ru/web/api/window/getcomputedstyle/index.html @@ -79,7 +79,7 @@ var style = window.getComputedStyle(elem1, null); <h2 id="defaultView"><code>defaultView</code></h2> -<p>Во многих примерах кода, <code>getComputedStyle</code> используется из объекта <code>document.defaultView</code>. Почти во всех случаях это не нужно, поскольку <code>getComputedStyle</code> существует в объекте <code>window</code>. Это что-то на подобии шаблона defaultView который был некой прослойкой. Люди не хотели писать спецификацию для <code>window</code> и создавали <code>API</code> которое также могло использоваться для Java. Так или иначе <a class="link-https" href="https://github.com/jquery/jquery/pull/524#issuecomment-2241183" title="https://github.com/jquery/jquery/pull/524#issuecomment-2241183">есть только один случай</a> когда метод <code>defaultView</code> должен использоваться: когда вы используете Firefox 3.6 чтобы получить доступ к вычисленным стилям.</p> +<p>Во многих примерах кода, <code>getComputedStyle</code> используется из объекта <code>document.defaultView</code>. Почти во всех случаях это не нужно, поскольку <code>getComputedStyle</code> существует в объекте <code>window</code>. Это что-то на подобии шаблона defaultView который был некой прослойкой. Люди не хотели писать спецификацию для <code>window</code> и создавали <code>API</code> которое также могло использоваться для Java. Так или иначе <a class="link-https" href="https://github.com/jquery/jquery/pull/524#issuecomment-2241183">есть только один случай</a> когда метод <code>defaultView</code> должен использоваться: когда вы используете Firefox 3.6 чтобы получить доступ к вычисленным стилям.</p> <h2 id="Использования_с_псевдо-элементами">Использования с псевдо-элементами</h2> @@ -119,7 +119,7 @@ var style = window.getComputedStyle(elem1, null); <ul> <li><a class="external" href="https://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSview-getComputedStyle">DOM Level 2 Style: getComputedStyle</a></li> - <li><a href="https://drafts.csswg.org/cssom/#dom-window-getcomputedstyle" title="https://drafts.csswg.org/cssom/#dom-window-getcomputedstyle">CSS Object Model specification</a></li> + <li><a href="https://drafts.csswg.org/cssom/#dom-window-getcomputedstyle">CSS Object Model specification</a></li> </ul> <h2 id="See_also" name="See_also">Смотреть также</h2> diff --git a/files/ru/web/api/window/localstorage/index.html b/files/ru/web/api/window/localstorage/index.html index cd45e8fa12..2f25eb7532 100644 --- a/files/ru/web/api/window/localstorage/index.html +++ b/files/ru/web/api/window/localstorage/index.html @@ -83,7 +83,7 @@ translation_of: Web/API/Window/localStorage <p>{{Compat("api.Window.localStorage")}}</p> -<p>Все браузеры имеют различный уровень объёма для <code>localStorage</code> и <code>sessionStorage</code>. Здесь <a href="http://dev-test.nemikor.com/web-storage/support-test/" title="http://dev-test.nemikor.com/web-storage/support-test/">подробное описание объёма хранилищ для разных браузеров</a>.</p> +<p>Все браузеры имеют различный уровень объёма для <code>localStorage</code> и <code>sessionStorage</code>. Здесь <a href="http://dev-test.nemikor.com/web-storage/support-test/">подробное описание объёма хранилищ для разных браузеров</a>.</p> <h2 id="Смотрите_также">Смотрите также</h2> |