mirror of
https://github.com/danbulant/node-html-parser
synced 2026-06-19 06:31:30 +00:00
Update documentation for attributes modification
Signed-off-by: François BILLIOUD <f.billioud@gmail.com>
This commit is contained in:
parent
1ca18d01b2
commit
730559387b
1 changed files with 9 additions and 0 deletions
|
|
@ -142,6 +142,14 @@ Get attributes
|
||||||
|
|
||||||
Get escaped (as-it) attributes
|
Get escaped (as-it) attributes
|
||||||
|
|
||||||
|
### HTMLElement#setAttribute(key: string, value: string | null)
|
||||||
|
|
||||||
|
Set `value` to `key` attribute. If `value` is null, remove the attribute instead.
|
||||||
|
|
||||||
|
### HTMLElement#setAttributes(attributes: Attributes)
|
||||||
|
|
||||||
|
Replace all the current attributes by the provided attribute set.
|
||||||
|
|
||||||
### HTMLElement#toString()
|
### HTMLElement#toString()
|
||||||
Same as [outerHTML](#htmlelementouterhtml)
|
Same as [outerHTML](#htmlelementouterhtml)
|
||||||
|
|
||||||
|
|
@ -150,5 +158,6 @@ Get innerHTML.
|
||||||
|
|
||||||
### HTMLElement#outerHTML
|
### HTMLElement#outerHTML
|
||||||
Get outerHTML.
|
Get outerHTML.
|
||||||
|
|
||||||
### HTMLElement#set_content(content: string | Node | Node[])
|
### HTMLElement#set_content(content: string | Node | Node[])
|
||||||
Set content. **Notice**: Do not set content of the **root** node.
|
Set content. **Notice**: Do not set content of the **root** node.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue