Return the link's href attribute as a string, or '' if missing.
(link: SyntaxTreeNode)
| 154 | |
| 155 | |
| 156 | def _href(link: SyntaxTreeNode) -> str: |
| 157 | """Return the link's href attribute as a string, or '' if missing.""" |
| 158 | href = link.attrGet("href") |
| 159 | return href if isinstance(href, str) else "" |
| 160 | |
| 161 | |
| 162 | def _find_inline(node: SyntaxTreeNode) -> SyntaxTreeNode | None: |
no outgoing calls
no test coverage detected