|
|
| __init__ (self, Tag element, "BeautifulSoup" soup, Optional[_NamespaceURL] namespace) |
| |
|
None | appendChild (self, "BeautifulSoupNode" node) |
| |
|
AttrList | getAttributes (self) |
| |
|
None | setAttributes (self, Optional[_Html5libAttributes] attributes) |
| |
|
None | insertText (self, str data, Optional["BeautifulSoupNode"] insertBefore=None) |
| |
|
None | insertBefore (self, "BeautifulSoupNode" node, "BeautifulSoupNode" refNode) |
| |
|
None | removeChild (self, "Element" node) |
| |
| None | reparentChildren (self, "Element" newParent) |
| |
|
bool | hasContent (self) |
| |
| treebuilder_base.Node | cloneNode (self) |
| |
|
Tuple[Optional[_NamespaceURL], str] | getNameTuple (self) |
| |
|
PageElement | element (self) |
| |
| int | nodeType (self) |
| |
|
|
| tag |
| |
|
| string |
| |
|
| soup |
| |
|
| namespace |
| |
|
| name |
| |
|
|
Optional | namespace [_NamespaceURL] |
| |
|
Optional | tag [Tag] |
| |
|
Optional | string [NavigableString] |
| |
|
str | soup : "BeautifulSoup" |
| |
|
Optional | namespace [_NamespaceURL] |
| |
|
|
TypeAlias | _Html5libAttributeName = Union[str, Tuple[str, str]] |
| |
|
TypeAlias | _Html5libAttributes = Dict[_Html5libAttributeName, str] |
| |
|
|
| attributes = property(getAttributes, setAttributes) |
| |
|
| nameTuple = property(getNameTuple) |
| |
◆ cloneNode()
| treebuilder_base.Node bs4.builder._html5lib.Element.cloneNode |
( |
|
self | ) |
|
◆ reparentChildren()
| None bs4.builder._html5lib.Element.reparentChildren |
( |
|
self, |
|
|
"Element" |
newParent |
|
) |
| |
Move all of this tag's children into another tag.
The documentation for this class was generated from the following file:
- docs/help/help-venv/lib/python3.12/site-packages/bs4/builder/_html5lib.py