var searchIndex = {}; searchIndex["html5ever"] = {"doc":"","items":[[3,"Attribute","html5ever","A tag attribute.",null,null],[12,"name","","",0,null],[12,"value","","",0,null],[0,"tokenizer","","The HTML5 tokenizer.",null,null],[3,"Doctype","html5ever::tokenizer","A `DOCTYPE` token.",null,null],[12,"name","","",1,null],[12,"public_id","","",1,null],[12,"system_id","","",1,null],[12,"force_quirks","","",1,null],[3,"Attribute","","A tag attribute.",null,null],[12,"name","","",0,null],[12,"value","","",0,null],[3,"Tag","","A tag token.",null,null],[12,"kind","","",2,null],[12,"name","","",2,null],[12,"self_closing","","",2,null],[12,"attrs","","",2,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\nperformance penalty? Default: false",3,null],[12,"discard_bom","","Discard a `U+FEFF BYTE ORDER MARK` if we see one at the beginning\nof the stream? Default: true",3,null],[12,"profile","","Keep a record of how long we spent in each state? Printed\nwhen `end()` is called. Default: false",3,null],[12,"initial_state","","Initial state override. Only the test runner should use\na non-`None` value!",3,null],[12,"last_start_tag_name","","Last start tag. Only the test runner should use a\nnon-`None` value!",3,null],[3,"Tokenizer","","The HTML tokenizer.",null,null],[4,"TagKind","","",null,null],[13,"StartTag","","",4,null],[13,"EndTag","","",4,null],[4,"Token","","",null,null],[13,"DoctypeToken","","",5,null],[13,"TagToken","","",5,null],[13,"CommentToken","","",5,null],[13,"CharacterTokens","","",5,null],[13,"NullCharacterToken","","",5,null],[13,"EOFToken","","",5,null],[13,"ParseError","","",5,null],[0,"states","","Tokenizer states.",null,null],[4,"ScriptEscapeKind","html5ever::tokenizer::states","",null,null],[13,"Escaped","","",6,null],[13,"DoubleEscaped","","",6,null],[4,"DoctypeIdKind","","",null,null],[13,"Public","","",7,null],[13,"System","","",7,null],[4,"RawKind","","",null,null],[13,"Rcdata","","",8,null],[13,"Rawtext","","",8,null],[13,"ScriptData","","",8,null],[13,"ScriptDataEscaped","","",8,null],[4,"AttrValueKind","","",null,null],[13,"Unquoted","","",9,null],[13,"SingleQuoted","","",9,null],[13,"DoubleQuoted","","",9,null],[4,"State","","",null,null],[13,"Data","","",10,null],[13,"Plaintext","","",10,null],[13,"TagOpen","","",10,null],[13,"EndTagOpen","","",10,null],[13,"TagName","","",10,null],[13,"RawData","","",10,null],[13,"RawLessThanSign","","",10,null],[13,"RawEndTagOpen","","",10,null],[13,"RawEndTagName","","",10,null],[13,"ScriptDataEscapeStart","","",10,null],[13,"ScriptDataEscapeStartDash","","",10,null],[13,"ScriptDataEscapedDash","","",10,null],[13,"ScriptDataEscapedDashDash","","",10,null],[13,"ScriptDataDoubleEscapeEnd","","",10,null],[13,"BeforeAttributeName","","",10,null],[13,"AttributeName","","",10,null],[13,"AfterAttributeName","","",10,null],[13,"BeforeAttributeValue","","",10,null],[13,"AttributeValue","","",10,null],[13,"AfterAttributeValueQuoted","","",10,null],[13,"SelfClosingStartTag","","",10,null],[13,"BogusComment","","",10,null],[13,"MarkupDeclarationOpen","","",10,null],[13,"CommentStart","","",10,null],[13,"CommentStartDash","","",10,null],[13,"Comment","","",10,null],[13,"CommentEndDash","","",10,null],[13,"CommentEnd","","",10,null],[13,"CommentEndBang","","",10,null],[13,"Doctype","","",10,null],[13,"BeforeDoctypeName","","",10,null],[13,"DoctypeName","","",10,null],[13,"AfterDoctypeName","","",10,null],[13,"AfterDoctypeKeyword","","",10,null],[13,"BeforeDoctypeIdentifier","","",10,null],[13,"DoctypeIdentifierDoubleQuoted","","",10,null],[13,"DoctypeIdentifierSingleQuoted","","",10,null],[13,"AfterDoctypeIdentifier","","",10,null],[13,"BetweenDoctypePublicAndSystemIdentifiers","","",10,null],[13,"BogusDoctype","","",10,null],[13,"CdataSection","","",10,null],[13,"Quiescent","","",10,null],[11,"fmt","","",6,null],[11,"hash","","",6,null],[11,"clone","","",6,null],[11,"cmp","","",6,null],[11,"partial_cmp","","",6,null],[11,"eq","","",6,null],[11,"fmt","","",7,null],[11,"hash","","",7,null],[11,"clone","","",7,null],[11,"cmp","","",7,null],[11,"partial_cmp","","",7,null],[11,"eq","","",7,null],[11,"fmt","","",8,null],[11,"hash","","",8,null],[11,"clone","","",8,null],[11,"cmp","","",8,null],[11,"partial_cmp","","",8,null],[11,"lt","","",8,null],[11,"le","","",8,null],[11,"gt","","",8,null],[11,"ge","","",8,null],[11,"eq","","",8,null],[11,"ne","","",8,null],[11,"fmt","","",9,null],[11,"hash","","",9,null],[11,"clone","","",9,null],[11,"cmp","","",9,null],[11,"partial_cmp","","",9,null],[11,"eq","","",9,null],[11,"fmt","","",10,null],[11,"hash","","",10,null],[11,"clone","","",10,null],[11,"cmp","","",10,null],[11,"partial_cmp","","",10,null],[11,"lt","","",10,null],[11,"le","","",10,null],[11,"gt","","",10,null],[11,"ge","","",10,null],[11,"eq","","",10,null],[11,"ne","","",10,null],[11,"fmt","html5ever::tokenizer","",1,null],[11,"clone","","",1,null],[11,"eq","","",1,null],[11,"ne","","",1,null],[11,"new","","",1,{"inputs":[],"output":{"name":"doctype"}}],[11,"fmt","html5ever","",0,null],[11,"clone","","",0,null],[11,"cmp","","",0,null],[11,"partial_cmp","","",0,null],[11,"lt","","",0,null],[11,"le","","",0,null],[11,"gt","","",0,null],[11,"ge","","",0,null],[11,"eq","","",0,null],[11,"ne","","",0,null],[11,"fmt","html5ever::tokenizer","",4,null],[11,"clone","","",4,null],[11,"hash","","",4,null],[11,"eq","","",4,null],[11,"fmt","","",2,null],[11,"clone","","",2,null],[11,"eq","","",2,null],[11,"ne","","",2,null],[11,"equiv_modulo_attr_order","","Are the tags equivalent when we don't care about attribute order?\nAlso ignores the self-closing flag.",2,null],[11,"fmt","","",5,null],[11,"eq","","",5,null],[11,"ne","","",5,null],[8,"TokenSink","","Types which can receive tokens from the tokenizer.",null,null],[10,"process_token","","Process a token.",11,null],[11,"query_state_change","","The tokenizer will call this after emitting any tag.\nThis allows the tree builder to change the tokenizer's state.\nBy default no state changes occur.",11,null],[11,"clone","","",3,null],[11,"default","","",3,{"inputs":[],"output":{"name":"tokenizeropts"}}],[11,"new","","Create a new tokenizer which feeds tokens to a particular `TokenSink`.",12,{"inputs":[{"name":"sink"},{"name":"tokenizeropts"}],"output":{"name":"tokenizer"}}],[11,"unwrap","","",12,null],[11,"sink","","",12,null],[11,"sink_mut","","",12,null],[11,"feed","","Feed an input string into the tokenizer.",12,null],[11,"run","","Run the state machine for as long as we can.",12,null],[11,"end","","Indicate that we have reached the end of the input.",12,null],[0,"tree_builder","html5ever","The HTML5 tree builder.",null,null],[3,"TreeBuilderOpts","html5ever::tree_builder","Tree builder options, with an impl for Default.",null,null],[12,"exact_errors","","Report all parse errors described in the spec, at some\nperformance penalty? Default: false",13,null],[12,"scripting_enabled","","Is scripting enabled?",13,null],[12,"iframe_srcdoc","","Is this an `iframe srcdoc` document?",13,null],[12,"drop_doctype","","Should we drop the DOCTYPE (if any) from the tree?",13,null],[12,"ignore_missing_rules","","The `<svg>`, `<math>`, and `<template>` tags have special\nparsing rules that are currently unimplemented. By default\nwe `panic!()` if any of these tags is encountered. If this\noption is enabled, we will instead attempt to parse them\nusing the ordinary HTML parsing rules.",13,null],[12,"quirks_mode","","Initial TreeBuilder quirks mode. Default: NoQuirks",13,null],[3,"TreeBuilder","","The HTML tree builder.",null,null],[0,"interface","","The interface for consumers of the tree builder (and thus the\nparser overall).",null,null],[4,"QuirksMode","html5ever::tree_builder::interface","A document's quirks mode.",null,null],[13,"Quirks","","",14,null],[13,"LimitedQuirks","","",14,null],[13,"NoQuirks","","",14,null],[4,"NodeOrText","","Something which can be inserted into the DOM.",null,null],[13,"AppendNode","","",15,null],[13,"AppendText","","",15,null],[4,"NextParserState","","Whether to interrupt further parsing of the current input until\nthe next explicit resumption of the tokenizer, or continue without\nany interruption.",null,null],[13,"Suspend","","",16,null],[13,"Continue","","",16,null],[8,"TreeSink","","Types which can process tree modifications from the tree builder.",null,null],[16,"Handle","","`Handle` is a reference to a DOM node. The tree builder requires\nthat a `Handle` implements `Clone` to get another reference to\nthe same node.",17,null],[10,"parse_error","","Signal a parse error.",17,null],[10,"get_document","","Get a handle to the `Document` node.",17,null],[10,"same_node","","Do two handles refer to the same node?",17,null],[10,"elem_name","","What is the name of this element?",17,null],[10,"set_quirks_mode","","Set the document's quirks mode.",17,null],[10,"create_element","","Create an element.",17,null],[10,"create_comment","","Create a comment node.",17,null],[10,"append","","Append a node as the last child of the given node. If this would\nproduce adjacent sibling text nodes, it should concatenate the text\ninstead.",17,null],[10,"append_before_sibling","","Append a node as the sibling immediately before the given node. If that node\nhas no parent, do nothing and return Err(new_node).",17,null],[10,"append_doctype_to_document","","Append a `DOCTYPE` element to the `Document` node.",17,null],[10,"add_attrs_if_missing","","Add each attribute to the given element, if no attribute\nwith that name already exists.",17,null],[10,"remove_from_parent","","Detach the given node from its parent.",17,null],[10,"reparent_children","","Remove all the children from node and append them to new_parent.",17,null],[10,"mark_script_already_started","","Mark a HTML `<script>` element as "already started".",17,null],[11,"complete_script","","Indicate that a `<script>` element is complete.",17,null],[8,"Tracer","","Trace hooks for a garbage-collected DOM.",null,null],[16,"Handle","","",18,null],[10,"trace_handle","","Upon a call to `trace_handles`, the tree builder will call this method\nfor each handle in its internal state.",18,null],[11,"fmt","","",14,null],[11,"hash","","",14,null],[11,"clone","","",14,null],[11,"eq","","",14,null],[11,"fmt","","",16,null],[11,"hash","","",16,null],[11,"clone","","",16,null],[11,"eq","","",16,null],[11,"clone","html5ever::tree_builder","",13,null],[11,"default","","",13,{"inputs":[],"output":{"name":"treebuilderopts"}}],[11,"new","","Create a new tree builder which sends tree modifications to a particular `TreeSink`.",19,{"inputs":[{"name":"sink"},{"name":"treebuilderopts"}],"output":{"name":"treebuilder"}}],[11,"new_for_fragment","","Create a new tree builder which sends tree modifications to a particular `TreeSink`.\nThis is for parsing fragments.",19,{"inputs":[{"name":"sink"},{"name":"handle"},{"name":"option"},{"name":"treebuilderopts"}],"output":{"name":"treebuilder"}}],[11,"tokenizer_state_for_context_elem","","",19,null],[11,"unwrap","","",19,null],[11,"sink","","",19,null],[11,"sink_mut","","",19,null],[11,"trace_handles","","Call the `Tracer`'s `trace_handle` method on every `Handle` in the tree builder's\ninternal state. This is intended to support garbage-collected DOMs.",19,null],[11,"is_fragment","","Are we parsing a HTML fragment?",19,null],[11,"process_token","","",19,null],[11,"query_state_change","","",19,null],[0,"serialize","html5ever","",null,null],[3,"SerializeOpts","html5ever::serialize","",null,null],[12,"scripting_enabled","","Is scripting enabled?",20,null],[12,"traversal_scope","","Serialize the root node? Default: ChildrenOnly",20,null],[3,"Serializer","","",null,null],[4,"TraversalScope","","",null,null],[13,"IncludeNode","","",21,null],[13,"ChildrenOnly","","",21,null],[5,"serialize","","",null,{"inputs":[{"name":"wr"},{"name":"t"},{"name":"serializeopts"}],"output":{"name":"result"}}],[6,"AttrRef","","",null,null],[8,"Serializable","","",null,null],[10,"serialize","","",22,null],[11,"eq","","",21,null],[11,"clone","","",21,null],[11,"clone","","",20,null],[11,"default","","",20,{"inputs":[],"output":{"name":"serializeopts"}}],[11,"start_elem","","",23,null],[11,"end_elem","","",23,null],[11,"write_text","","",23,null],[11,"write_comment","","",23,null],[11,"write_doctype","","",23,null],[11,"write_processing_instruction","","",23,null],[0,"driver","html5ever","High-level interface to the parser.",null,null],[3,"ParseOpts","html5ever::driver","All-encompassing options struct for the parser.",null,null],[12,"tokenizer","","Tokenizer options.",24,null],[12,"tree_builder","","Tree builder options.",24,null],[5,"one_input","","Convenience function to turn a single value into an iterator.",null,{"inputs":[{"name":"t"}],"output":{"name":"intoiter"}}],[5,"tokenize_to","","Tokenize and send results to a `TokenSink`.",null,{"inputs":[{"name":"sink"},{"name":"it"},{"name":"tokenizeropts"}],"output":{"name":"sink"}}],[5,"parse_to","","Parse and send results to a `TreeSink`.",null,{"inputs":[{"name":"sink"},{"name":"it"},{"name":"parseopts"}],"output":{"name":"sink"}}],[5,"parse_fragment_to","","Parse an HTML fragment and send results to a `TreeSink`.",null,{"inputs":[{"name":"sink"},{"name":"it"},{"name":"atom"},{"name":"parseopts"}],"output":{"name":"sink"}}],[5,"parse","","Parse into a type which implements `ParseResult`.",null,{"inputs":[{"name":"it"},{"name":"parseopts"}],"output":{"name":"output"}}],[5,"parse_fragment","","Parse an HTML fragment into a type which implements `ParseResult`.",null,{"inputs":[{"name":"it"},{"name":"atom"},{"name":"parseopts"}],"output":{"name":"output"}}],[8,"ParseResult","","Results which can be extracted from a `TreeSink`.",null,null],[16,"Sink","","",25,null],[10,"get_result","","",25,{"inputs":[{"name":"sink"}],"output":{"name":"self"}}],[11,"default","","",24,{"inputs":[],"output":{"name":"parseopts"}}],[11,"clone","","",24,null],[0,"rcdom","html5ever","A simple reference-counted DOM.",null,null],[3,"Node","html5ever::rcdom","A DOM node.",null,null],[12,"node","","",26,null],[12,"parent","","",26,null],[12,"children","","",26,null],[12,"script_already_started","","The "script already started" flag.",26,null],[3,"Handle","","Reference to a DOM node.",null,null],[3,"RcDom","","The DOM itself; the result of parsing.",null,null],[12,"document","","The `Document` itself.",27,null],[12,"errors","","Errors that occurred during parsing.",27,null],[12,"quirks_mode","","The document's quirks mode.",27,null],[4,"NodeEnum","","The different kinds of nodes in the DOM.",null,null],[13,"Document","","The `Document` itself.",28,null],[13,"Doctype","","A `DOCTYPE` with name, public id, and system id.",28,null],[13,"Text","","A text node.",28,null],[13,"Comment","","A comment.",28,null],[13,"Element","","An element with attributes.",28,null],[6,"WeakHandle","","Weak reference to a DOM node, used for parent pointers.",null,null],[11,"fmt","","",28,null],[11,"clone","","",29,null],[11,"deref","","",29,null],[11,"parse_error","","",27,null],[11,"get_document","","",27,null],[11,"set_quirks_mode","","",27,null],[11,"same_node","","",27,null],[11,"elem_name","","",27,null],[11,"create_element","","",27,null],[11,"create_comment","","",27,null],[11,"append","","",27,null],[11,"append_before_sibling","","",27,null],[11,"append_doctype_to_document","","",27,null],[11,"add_attrs_if_missing","","",27,null],[11,"remove_from_parent","","",27,null],[11,"reparent_children","","",27,null],[11,"mark_script_already_started","","",27,null],[11,"default","","",27,{"inputs":[],"output":{"name":"rcdom"}}],[11,"get_result","","",27,{"inputs":[{"name":"rcdom"}],"output":{"name":"rcdom"}}],[11,"serialize","","",29,null],[11,"query_state_change","html5ever::tokenizer","The tokenizer will call this after emitting any tag.\nThis allows the tree builder to change the tokenizer's state.\nBy default no state changes occur.",11,null]],"paths":[[3,"Attribute"],[3,"Doctype"],[3,"Tag"],[3,"TokenizerOpts"],[4,"TagKind"],[4,"Token"],[4,"ScriptEscapeKind"],[4,"DoctypeIdKind"],[4,"RawKind"],[4,"AttrValueKind"],[4,"State"],[8,"TokenSink"],[3,"Tokenizer"],[3,"TreeBuilderOpts"],[4,"QuirksMode"],[4,"NodeOrText"],[4,"NextParserState"],[8,"TreeSink"],[8,"Tracer"],[3,"TreeBuilder"],[3,"SerializeOpts"],[4,"TraversalScope"],[8,"Serializable"],[3,"Serializer"],[3,"ParseOpts"],[8,"ParseResult"],[3,"Node"],[3,"RcDom"],[4,"NodeEnum"],[3,"Handle"]]}; initSearch(searchIndex);