File tree Expand file tree Collapse file tree
2-ui/1-document/06-dom-attributes-and-properties Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -162,11 +162,7 @@ HTML 속성을 어떻게 다루는지에 대한 예시를 살펴봅시다.
162162 </script >
163163```
164164
165- <<<<<<< HEAD
166165그런데 아래 예시의 ` input.value ` 처럼 동기화가 속성에서 프로퍼티 방향으로만 일어나는 예외상황도 존재합니다.
167- =======
168- But there are exclusions, for instance ` input.value ` synchronizes only from attribute -> property, but not back:
169- >>>>>>> upstream/master
170166
171167``` html run
172168<input >
@@ -302,11 +298,7 @@ HTML을 작성할 때 우리는 대부분 표준 속성을 사용합니다. 하
302298</div >
303299```
304300
305- <<<<<<< HEAD
306301이렇게 커스텀 속성을 사용하는 게 ` .order-state-new ` , ` .order-state-pending ` , ` order-state-canceled ` 같은 클래스를 사용하는 것보다 왜 선호될까요?
307- =======
308- Why would using an attribute be preferable to having classes like ` .order-state-new ` , ` .order-state-pending ` , ` .order-state-canceled ` ?
309- >>>>>>> upstream/master
310302
311303이유는 속성은 클래스보다 다루기 편리하다는 점 때문입니다. 속성의 상태는 아래와 같이 쉽게 변경할 수 있습니다.
312304
You can’t perform that action at this time.
0 commit comments