File tree Expand file tree Collapse file tree
3-polyfill-textcontent-ie8 Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ DOM позволяет делать что угодно с HTML-элементо
114114
115115Свойства ` firstChild ` и ` lastChild ` обеспечивают быстрый доступ к первому и последнему элементу.
116116
117- Всегда верно:
117+ При наличии дочерних узлов всегда верно:
118118``` js
119119elem .childNodes [0 ] === elem .firstChild
120120elem .childNodes [elem .childNodes .length - 1 ] === elem .lastChild
Original file line number Diff line number Diff line change 1111 var node = this ;
1212
1313 while (node) {
14- if (node .matches (selector )) return node;
14+ if (node .matches (css )) return node;
1515 else node = node .parentElement ;
1616 }
1717 return null ;
Original file line number Diff line number Diff line change 77 if (document .documentElement .textContent === undefined ) {
88
99 // определяем свойство
10- Object .defineProperty (HtmlElement .prototype , " textContent" , {
10+ Object .defineProperty (HTMLElement .prototype , " textContent" , {
1111 get : function () {
1212 return this .innerText ;
1313 },
You can’t perform that action at this time.
0 commit comments