pub enum ParserRewrite {
WrapsRowInTbody,
WrapsCellInRow,
WrapsColInColgroup,
MovesOutOfTable,
ClosesParagraph,
ClosesLink,
DropsNestedForm,
ClosesButton,
ClosesItem,
ClosesOption,
ClosesHeading,
}Expand description
What a browser’s HTML parser does to markup it does not keep as written — see
FindingKind::RewrittenByParser.
Variants§
WrapsRowInTbody
A <tr> directly in a <table> gets a <tbody> around it.
WrapsCellInRow
A <td>/<th> directly in a table or a table section gets a <tr> around it.
WrapsColInColgroup
A <col> directly in a <table> gets a <colgroup> around it.
MovesOutOfTable
Content a table or table row cannot hold is moved out, in front of the table.
ClosesParagraph
A block element closes the <p> it is written in.
ClosesLink
A link inside a link closes the outer one.
DropsNestedForm
A form inside a form is dropped.
ClosesButton
A button inside a button closes the outer one.
ClosesItem
A list item, or a <dt>/<dd>, closes the one it is written in.
ClosesOption
An <option> or <optgroup> closes the option it is written in.
ClosesHeading
A heading closes the heading it is written in.
Trait Implementations§
Source§impl Clone for ParserRewrite
impl Clone for ParserRewrite
Source§fn clone(&self) -> ParserRewrite
fn clone(&self) -> ParserRewrite
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ParserRewrite
impl Debug for ParserRewrite
Source§impl PartialEq for ParserRewrite
impl PartialEq for ParserRewrite
impl Copy for ParserRewrite
impl Eq for ParserRewrite
impl StructuralPartialEq for ParserRewrite
Auto Trait Implementations§
impl Freeze for ParserRewrite
impl RefUnwindSafe for ParserRewrite
impl Send for ParserRewrite
impl Sync for ParserRewrite
impl Unpin for ParserRewrite
impl UnsafeUnpin for ParserRewrite
impl UnwindSafe for ParserRewrite
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.