var searchIndex = {}; searchIndex["html5ever"] = {"doc":"","items":[[0,"serialize","html5ever","",null,null],[8,"Serialize","html5ever::serialize","Types that can be serialized (according to the xml-like scheme in `Serializer`) implement this trait.",null,null],[10,"serialize","","Take the serializer and call its methods to serialize this type. The type will dictate which methods are called and with what parameters.",0,{"inputs":[{"name":"self"},{"name":"s"},{"name":"traversalscope"}],"output":{"generics":["error"],"name":"result"}}],[8,"Serializer","","Types that are capable of serializing implement this trait",null,null],[10,"start_elem","","Serialize the start of an element, for example `
`.",1,{"inputs":[{"name":"self"},{"name":"qualname"},{"name":"attriter"}],"output":{"generics":["error"],"name":"result"}}],[10,"end_elem","","Serialize the end of an element, for example `
`.",1,{"inputs":[{"name":"self"},{"name":"qualname"}],"output":{"generics":["error"],"name":"result"}}],[10,"write_text","","Serialize a plain text node.",1,{"inputs":[{"name":"self"},{"name":"str"}],"output":{"generics":["error"],"name":"result"}}],[10,"write_comment","","Serialize a comment node, for example ``.",1,{"inputs":[{"name":"self"},{"name":"str"}],"output":{"generics":["error"],"name":"result"}}],[10,"write_doctype","","Serialize a doctype node, for example ``.",1,{"inputs":[{"name":"self"},{"name":"str"}],"output":{"generics":["error"],"name":"result"}}],[10,"write_processing_instruction","","Serialize a processing instruction node, for example ``.",1,{"inputs":[{"name":"self"},{"name":"str"},{"name":"str"}],"output":{"generics":["error"],"name":"result"}}],[4,"TraversalScope","","Used as a parameter to `serialize`, telling it if we want to skip the parent.",null,null],[13,"IncludeNode","","Include the parent node when serializing.",2,null],[13,"ChildrenOnly","","Only serialize the children of the node, treating any provided qualified name as the parent while serializing.",2,null],[6,"AttrRef","","A type alias for an attribute name and value (e.g. the `class=\"test\"` in `
` is represented as `(, \"test\")`.",null,null],[3,"SerializeOpts","","",null,null],[12,"scripting_enabled","","Is scripting enabled?",3,null],[12,"traversal_scope","","Serialize the root node? Default: ChildrenOnly",3,null],[12,"create_missing_parent","","If the serializer is asked to serialize an invalid tree, the default behavior is to panic in the event that an `end_elem` is created without a matching `start_elem`. Setting this to true will prevent those panics by creating a default parent on the element stack. No extra start elem will actually be written. Default: false",3,null],[5,"serialize","","",null,{"inputs":[{"name":"wr"},{"name":"t"},{"name":"serializeopts"}],"output":{"name":"result"}}],[11,"clone","","",3,{"inputs":[{"name":"self"}],"output":{"name":"serializeopts"}}],[11,"default","","",3,{"inputs":[],"output":{"name":"serializeopts"}}],[0,"tokenizer","html5ever","The HTML5 tokenizer.",null,null],[3,"BufferQueue","html5ever::tokenizer","A queue of owned string buffers, which supports incrementally consuming characters.",null,null],[4,"SetResult","","Result from [`pop_except_from`] containing either a character from a [`SmallCharSet`], or a string buffer of characters not from the set.",null,null],[13,"FromSet","","A character from the `SmallCharSet`.",4,null],[13,"NotFromSet","","A string buffer containing no characters from the `SmallCharSet`.",4,null],[3,"Doctype","","A `DOCTYPE` token.",null,null],[12,"name","","",5,null],[12,"public_id","","",5,null],[12,"system_id","","",5,null],[12,"force_quirks","","",5,null],[3,"Tag","","A tag token.",null,null],[12,"kind","","",6,null],[12,"name","","",6,null],[12,"self_closing","","",6,null],[12,"attrs","","",6,null],[3,"TokenizerOpts","","Tokenizer options, with an impl for `Default`.",null,null],[12,"exact_errors","","Report all parse errors described in the spec, at some performance penalty? Default: false",7,null],[12,"discard_bom","","Discard a `U+FEFF BYTE ORDER MARK` if we see one at the beginning of the stream? Default: true",7,null],[12,"profile","","Keep a record of how long we spent in each state? Printed when `end()` is called. Default: false",7,null],[12,"initial_state","","Initial state override. Only the test runner should use a non-`None` value!",7,null],[12,"last_start_tag_name","","Last start tag. Only the test runner should use a non-`None` value!",7,null],[3,"Tokenizer","","The HTML tokenizer.",null,null],[12,"sink","","Destination for tokens we emit.",8,null],[4,"TagKind","","",null,null],[13,"StartTag","","",9,null],[13,"EndTag","","",9,null],[4,"Token","","",null,null],[13,"DoctypeToken","","",10,null],[13,"TagToken","","",10,null],[13,"CommentToken","","",10,null],[13,"CharacterTokens","","",10,null],[13,"NullCharacterToken","","",10,null],[13,"EOFToken","","",10,null],[13,"ParseError","","",10,null],[4,"TokenSinkResult","","",null,null],[13,"Continue","","",11,null],[13,"Script","","",11,null],[13,"Plaintext","","",11,null],[13,"RawData","","",11,null],[4,"ProcessResult","","",null,null],[13,"Continue","","",12,null],[13,"Suspend","","",12,null],[13,"Script","","",12,null],[4,"TokenizerResult","","",null,null],[13,"Done","","",13,null],[13,"Script","","",13,null],[0,"states","","Tokenizer states.",null,null],[4,"ScriptEscapeKind","html5ever::tokenizer::states","",null,null],[13,"Escaped","","",14,null],[13,"DoubleEscaped","","",14,null],[4,"DoctypeIdKind","","",null,null],[13,"Public","","",15,null],[13,"System","","",15,null],[4,"RawKind","","",null,null],[13,"Rcdata","","",16,null],[13,"Rawtext","","",16,null],[13,"ScriptData","","",16,null],[13,"ScriptDataEscaped","","",16,null],[4,"AttrValueKind","","",null,null],[13,"Unquoted","","",17,null],[13,"SingleQuoted","","",17,null],[13,"DoubleQuoted","","",17,null],[4,"State","","",null,null],[13,"Data","","",18,null],[13,"Plaintext","","",18,null],[13,"TagOpen","","",18,null],[13,"EndTagOpen","","",18,null],[13,"TagName","","",18,null],[13,"RawData","","",18,null],[13,"RawLessThanSign","","",18,null],[13,"RawEndTagOpen","","",18,null],[13,"RawEndTagName","","",18,null],[13,"ScriptDataEscapeStart","","",18,null],[13,"ScriptDataEscapeStartDash","","",18,null],[13,"ScriptDataEscapedDash","","",18,null],[13,"ScriptDataEscapedDashDash","","",18,null],[13,"ScriptDataDoubleEscapeEnd","","",18,null],[13,"BeforeAttributeName","","",18,null],[13,"AttributeName","","",18,null],[13,"AfterAttributeName","","",18,null],[13,"BeforeAttributeValue","","",18,null],[13,"AttributeValue","","",18,null],[13,"AfterAttributeValueQuoted","","",18,null],[13,"SelfClosingStartTag","","",18,null],[13,"BogusComment","","",18,null],[13,"MarkupDeclarationOpen","","",18,null],[13,"CommentStart","","",18,null],[13,"CommentStartDash","","",18,null],[13,"Comment","","",18,null],[13,"CommentEndDash","","",18,null],[13,"CommentEnd","","",18,null],[13,"CommentEndBang","","",18,null],[13,"Doctype","","",18,null],[13,"BeforeDoctypeName","","",18,null],[13,"DoctypeName","","",18,null],[13,"AfterDoctypeName","","",18,null],[13,"AfterDoctypeKeyword","","",18,null],[13,"BeforeDoctypeIdentifier","","",18,null],[13,"DoctypeIdentifierDoubleQuoted","","",18,null],[13,"DoctypeIdentifierSingleQuoted","","",18,null],[13,"AfterDoctypeIdentifier","","",18,null],[13,"BetweenDoctypePublicAndSystemIdentifiers","","",18,null],[13,"BogusDoctype","","",18,null],[13,"CdataSection","","",18,null],[13,"CdataSectionBracket","","",18,null],[13,"CdataSectionEnd","","",18,null],[11,"eq","","",14,{"inputs":[{"name":"self"},{"name":"scriptescapekind"}],"output":{"name":"bool"}}],[11,"partial_cmp","","",14,{"inputs":[{"name":"self"},{"name":"scriptescapekind"}],"output":{"generics":["ordering"],"name":"option"}}],[11,"cmp","","",14,{"inputs":[{"name":"self"},{"name":"scriptescapekind"}],"output":{"name":"ordering"}}],[11,"clone","","",14,{"inputs":[{"name":"self"}],"output":{"name":"scriptescapekind"}}],[11,"hash","","",14,null],[11,"fmt","","",14,{"inputs":[{"name":"self"},{"name":"formatter"}],"output":{"name":"result"}}],[11,"eq","","",15,{"inputs":[{"name":"self"},{"name":"doctypeidkind"}],"output":{"name":"bool"}}],[11,"partial_cmp","","",15,{"inputs":[{"name":"self"},{"name":"doctypeidkind"}],"output":{"generics":["ordering"],"name":"option"}}],[11,"cmp","","",15,{"inputs":[{"name":"self"},{"name":"doctypeidkind"}],"output":{"name":"ordering"}}],[11,"clone","","",15,{"inputs":[{"name":"self"}],"output":{"name":"doctypeidkind"}}],[11,"hash","","",15,null],[11,"fmt","","",15,{"inputs":[{"name":"self"},{"name":"formatter"}],"output":{"name":"result"}}],[11,"eq","","",16,{"inputs":[{"name":"self"},{"name":"rawkind"}],"output":{"name":"bool"}}],[11,"ne","","",16,{"inputs":[{"name":"self"},{"name":"rawkind"}],"output":{"name":"bool"}}],[11,"partial_cmp","","",16,{"inputs":[{"name":"self"},{"name":"rawkind"}],"output":{"generics":["ordering"],"name":"option"}}],[11,"lt","","",16,{"inputs":[{"name":"self"},{"name":"rawkind"}],"output":{"name":"bool"}}],[11,"le","","",16,{"inputs":[{"name":"self"},{"name":"rawkind"}],"output":{"name":"bool"}}],[11,"gt","","",16,{"inputs":[{"name":"self"},{"name":"rawkind"}],"output":{"name":"bool"}}],[11,"ge","","",16,{"inputs":[{"name":"self"},{"name":"rawkind"}],"output":{"name":"bool"}}],[11,"cmp","","",16,{"inputs":[{"name":"self"},{"name":"rawkind"}],"output":{"name":"ordering"}}],[11,"clone","","",16,{"inputs":[{"name":"self"}],"output":{"name":"rawkind"}}],[11,"hash","","",16,null],[11,"fmt","","",16,{"inputs":[{"name":"self"},{"name":"formatter"}],"output":{"name":"result"}}],[11,"eq","","",17,{"inputs":[{"name":"self"},{"name":"attrvaluekind"}],"output":{"name":"bool"}}],[11,"partial_cmp","","",17,{"inputs":[{"name":"self"},{"name":"attrvaluekind"}],"output":{"generics":["ordering"],"name":"option"}}],[11,"cmp","","",17,{"inputs":[{"name":"self"},{"name":"attrvaluekind"}],"output":{"name":"ordering"}}],[11,"clone","","",17,{"inputs":[{"name":"self"}],"output":{"name":"attrvaluekind"}}],[11,"hash","","",17,null],[11,"fmt","","",17,{"inputs":[{"name":"self"},{"name":"formatter"}],"output":{"name":"result"}}],[11,"eq","","",18,{"inputs":[{"name":"self"},{"name":"state"}],"output":{"name":"bool"}}],[11,"ne","","",18,{"inputs":[{"name":"self"},{"name":"state"}],"output":{"name":"bool"}}],[11,"partial_cmp","","",18,{"inputs":[{"name":"self"},{"name":"state"}],"output":{"generics":["ordering"],"name":"option"}}],[11,"lt","","",18,{"inputs":[{"name":"self"},{"name":"state"}],"output":{"name":"bool"}}],[11,"le","","",18,{"inputs":[{"name":"self"},{"name":"state"}],"output":{"name":"bool"}}],[11,"gt","","",18,{"inputs":[{"name":"self"},{"name":"state"}],"output":{"name":"bool"}}],[11,"ge","","",18,{"inputs":[{"name":"self"},{"name":"state"}],"output":{"name":"bool"}}],[11,"cmp","","",18,{"inputs":[{"name":"self"},{"name":"state"}],"output":{"name":"ordering"}}],[11,"clone","","",18,{"inputs":[{"name":"self"}],"output":{"name":"state"}}],[11,"hash","","",18,null],[11,"fmt","","",18,{"inputs":[{"name":"self"},{"name":"formatter"}],"output":{"name":"result"}}],[11,"eq","html5ever::tokenizer","",5,{"inputs":[{"name":"self"},{"name":"doctype"}],"output":{"name":"bool"}}],[11,"ne","","",5,{"inputs":[{"name":"self"},{"name":"doctype"}],"output":{"name":"bool"}}],[11,"clone","","",5,{"inputs":[{"name":"self"}],"output":{"name":"doctype"}}],[11,"fmt","","",5,{"inputs":[{"name":"self"},{"name":"formatter"}],"output":{"name":"result"}}],[11,"new","","",5,{"inputs":[],"output":{"name":"doctype"}}],[11,"eq","","",9,{"inputs":[{"name":"self"},{"name":"tagkind"}],"output":{"name":"bool"}}],[11,"hash","","",9,null],[11,"clone","","",9,{"inputs":[{"name":"self"}],"output":{"name":"tagkind"}}],[11,"fmt","","",9,{"inputs":[{"name":"self"},{"name":"formatter"}],"output":{"name":"result"}}],[11,"eq","","",6,{"inputs":[{"name":"self"},{"name":"tag"}],"output":{"name":"bool"}}],[11,"ne","","",6,{"inputs":[{"name":"self"},{"name":"tag"}],"output":{"name":"bool"}}],[11,"clone","","",6,{"inputs":[{"name":"self"}],"output":{"name":"tag"}}],[11,"fmt","","",6,{"inputs":[{"name":"self"},{"name":"formatter"}],"output":{"name":"result"}}],[11,"equiv_modulo_attr_order","","Are the tags equivalent when we don't care about attribute order? Also ignores the self-closing flag.",6,{"inputs":[{"name":"self"},{"name":"tag"}],"output":{"name":"bool"}}],[11,"eq","","",10,{"inputs":[{"name":"self"},{"name":"token"}],"output":{"name":"bool"}}],[11,"ne","","",10,{"inputs":[{"name":"self"},{"name":"token"}],"output":{"name":"bool"}}],[11,"fmt","","",10,{"inputs":[{"name":"self"},{"name":"formatter"}],"output":{"name":"result"}}],[11,"fmt","","",11,{"inputs":[{"name":"self"},{"name":"formatter"}],"output":{"name":"result"}}],[11,"eq","","",11,{"inputs":[{"name":"self"},{"name":"tokensinkresult"}],"output":{"name":"bool"}}],[11,"ne","","",11,{"inputs":[{"name":"self"},{"name":"tokensinkresult"}],"output":{"name":"bool"}}],[8,"TokenSink","","Types which can receive tokens from the tokenizer.",null,null],[16,"Handle","","",19,null],[10,"process_token","","Process a token.",19,{"inputs":[{"name":"self"},{"name":"token"},{"name":"u64"}],"output":{"name":"tokensinkresult"}}],[11,"end","","",19,{"inputs":[{"name":"self"}],"output":null}],[11,"adjusted_current_node_present_but_not_in_html_namespace","","Used in the markup declaration open state. By default, this always returns false and thus all CDATA sections are tokenized as bogus comments. https://html.spec.whatwg.org/multipage/#markup-declaration-open-state",19,{"inputs":[{"name":"self"}],"output":{"name":"bool"}}],[11,"clone","","",7,{"inputs":[{"name":"self"}],"output":{"name":"tokenizeropts"}}],[11,"default","","",7,{"inputs":[],"output":{"name":"tokenizeropts"}}],[11,"new","","Create a new tokenizer which feeds tokens to a particular `TokenSink`.",8,{"inputs":[{"name":"sink"},{"name":"tokenizeropts"}],"output":{"name":"tokenizer"}}],[11,"feed","","Feed an input string into the tokenizer.",8,{"inputs":[{"name":"self"},{"name":"bufferqueue"}],"output":{"name":"tokenizerresult"}}],[11,"set_plaintext_state","","",8,{"inputs":[{"name":"self"}],"output":null}],[11,"end","","Indicate that we have reached the end of the input.",8,{"inputs":[{"name":"self"}],"output":null}],[0,"tree_builder","html5ever","The HTML5 tree builder.",null,null],[4,"QuirksMode","html5ever::tree_builder","A document's quirks mode.",null,null],[13,"Quirks","","",20,null],[13,"LimitedQuirks","","",20,null],[13,"NoQuirks","","",20,null],[4,"NodeOrText","","Something which can be inserted into the DOM.",null,null],[13,"AppendNode","","",21,null],[13,"AppendText","","",21,null],[3,"Attribute","","A tag attribute.",null,null],[12,"name","","",22,null],[12,"value","","",22,null],[8,"TreeSink","","",null,null],[16,"Handle","","`Handle` is a reference to a DOM node. The tree builder requires that a `Handle` implements `Clone` to get another reference to the same node.",23,null],[16,"Output","","The overall result of parsing.",23,null],[10,"finish","","Consume this sink and return the overall result of parsing.",23,null],[10,"parse_error","","Signal a parse error.",23,null],[10,"get_document","","Get a handle to the `Document` node.",23,null],[10,"elem_name","","What is the name of this element?",23,null],[10,"create_element","","Create an element.",23,null],[10,"create_comment","","Create a comment node.",23,null],[10,"create_pi","","Create a Processing Instruction node.",23,null],[10,"append","","Append a node as the last child of the given node. If this would produce adjacent sibling text nodes, it should concatenate the text instead.",23,null],[10,"append_based_on_parent_node","","When the insertion point is decided by the existence of a parent node of the element, we consider both possibilities and send the element which will be used if a parent node exists, along with the element to be used if there isn't one.",23,null],[10,"append_doctype_to_document","","Append a `DOCTYPE` element to the `Document` node.",23,null],[11,"mark_script_already_started","","Mark a HTML `