Qucs-S S-parameter Viewer & RF Synthesis Tools
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
myst_parser.parsers.parse_html.HtmlToAst Class Reference
Inheritance diagram for myst_parser.parsers.parse_html.HtmlToAst:
Inheritance graph
[legend]
Collaboration diagram for myst_parser.parsers.parse_html.HtmlToAst:
Collaboration graph
[legend]

Public Member Functions

 __init__ (self, str name="", bool convert_charrefs=False)
 
Root feed (self, str source)
 
 handle_starttag (self, str name, attr)
 
 handle_startendtag (self, str name, attr)
 
 handle_endtag (self, str name)
 
 handle_data (self, str data)
 
 handle_decl (self, str decl)
 
 unknown_decl (self, str decl)
 
 handle_charref (self, str data)
 
 handle_entityref (self, str data)
 
 handle_pi (self, str data)
 
 handle_comment (self, str data)
 

Public Attributes

 struct
 

Static Public Attributes

dict void_elements
 

Detailed Description

The tokenizer class.

Member Function Documentation

◆ feed()

Root myst_parser.parsers.parse_html.HtmlToAst.feed (   self,
str  source 
)
Parse the source string.

◆ handle_data()

myst_parser.parsers.parse_html.HtmlToAst.handle_data (   self,
str  data 
)
Nest data onto the tree.

◆ handle_endtag()

myst_parser.parsers.parse_html.HtmlToAst.handle_endtag (   self,
str  name 
)
When found a closing tag then makes it point to the right scope.

◆ handle_startendtag()

myst_parser.parsers.parse_html.HtmlToAst.handle_startendtag (   self,
str  name,
  attr 
)
When found a XHTML tag style then nest it up to the tree.

◆ handle_starttag()

myst_parser.parsers.parse_html.HtmlToAst.handle_starttag (   self,
str  name,
  attr 
)
When found an opening tag then nest it onto the tree.

Member Data Documentation

◆ void_elements

dict myst_parser.parsers.parse_html.HtmlToAst.void_elements
static
Initial value:
= {
"area",
"base",
"br",
"col",
"embed",
"hr",
"img",
"input",
"link",
"meta",
"param",
"source",
"track",
"wbr",
}

The documentation for this class was generated from the following file: