DOM DOMElement::removeAttributeNS
(PHP 5, PHP 7, PHP 8)
DOMElement::removeAttributeNS — 속성 제거
설명
public DOMElement::removeAttributeNS(?string $namespace
, string $localName
): void
요소에서 네임스페이스 namespace
의 localName
특성을 제거합니다.
매개변수
namespace
- 네임스페이스 URI입니다.
localName
- local name
반환 값
성공하면 true
를, 실패하면 false
를 반환합니다.
오류/예외
DOM_NO_MODIFICATION_ALLOWED_ERR
- 노드가 읽기 전용이면 발생합니다.
기타
- DOMElement::hasAttributeNS() - 속성이 존재하는지 확인
- DOMElement::getAttributeNS() - 속성 값을 반환
- DOMElement::setAttributeNS() - 새 속성 추가