Merge pull request #16 from Sharcoux/master

Update documentation for attributes modification
This commit is contained in:
taoqf 2020-01-31 10:27:12 +08:00 committed by GitHub
commit 40c9c680fc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -142,6 +142,14 @@ Get 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()
Same as [outerHTML](#htmlelementouterhtml)
@ -150,5 +158,6 @@ Get innerHTML.
### HTMLElement#outerHTML
Get outerHTML.
### HTMLElement#set_content(content: string | Node | Node[])
Set content. **Notice**: Do not set content of the **root** node.