Skip to content

Commit 5143cc4

Browse files
committed
[문서] 1.6 속성과 프로퍼티 병합충돌 해결
1 parent 496a145 commit 5143cc4

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

  • 2-ui/1-document/06-dom-attributes-and-properties

2-ui/1-document/06-dom-attributes-and-properties/article.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)