The DOMAttr class
(PHP 5, PHP 7, PHP 8)
简介
DOMAttr represents an attribute in the DOMElement object.
类摘要
/* 继承的常量 */
/* 属性 */
/* 继承的属性 */
/* 方法 */
/* 继承的方法 */
public function DOMNode::C14N(
bool
bool
?array
?array
): string|false
}bool
$exclusive = false,bool
$withComments = false,?array
$xpath = null,?array
$nsPrefixes = null): string|false
属性
nameThe name of the attribute.
ownerElementThe element which contains the attribute or null.
Not implemented yet, always is null.
Not implemented yet, always is true.
The value of the attribute.
注意:
Note, XML entities are expanded upon setting a value. Thus the
&character has a special meaning. Setting value to itself will fail when value contains an&. To avoid entity expansion, use DOMElement::setAttribute() instead.
目录
- DOMAttr::__construct — Creates a new DOMAttr object
- DOMAttr::isId — Checks if attribute is a defined ID
来源:PHP Documentation Group · 作者与贡献记录 · CC BY 3.0。离线整理了版式、链接和媒体显示。
