JetBrain/PHP Storm & Codeigniter
[PHP Storm] canHaveHTML / canHaveChildren property
128june
2020. 6. 10. 15:56
반응형
canHaveHTML 설명
- Retrieves a Boolean value that indicates whether the element can contain HTML formatted text.
HTML 형식의 택스트를 포함할 수 있는 요소를 나타내는 boolean 값을 반환한다.
특징
- canHaveHTML property가 false ▶ do not write the innerHTML property
- canHaveHTML property ≒ canHaveChildren property
- canHaveChildren property returns false ▶ canHaveHTML property return false
- some elements can have children, but cannot contain HTML formatted text. See the example below.
canHaveChildren 설명
- Retrieves a Boolean value that indicates whether the element can contain child elements.
자식 요소를 포함한 요소가 나타내는 boolean 값을 반환한다.
특징
- element can have children ▶insertBefore or appendChild methods 를 함께 추가할 수 있다.
- To check whether an element can have HTML content, use the canHaveHTML property.
반응형