mirror of
https://github.com/swc-project/swc.git
synced 2024-10-05 04:39:06 +03:00
fix(html/parser): Fix end span of closed tags (#4860)
This commit is contained in:
parent
a239a7b348
commit
67b5e3d5b3
@ -359,49 +359,102 @@ where
|
||||
}))
|
||||
}
|
||||
|
||||
// TODO optimize me and fix ending span
|
||||
// TODO optimize me
|
||||
fn node_to_child(&mut self, node: RcNode) -> Child {
|
||||
match node.data.clone() {
|
||||
Data::DocumentType(document_type) => {
|
||||
Child::DocumentType(DocumentType { ..document_type })
|
||||
}
|
||||
Data::Element(element) => {
|
||||
let mut attributes = element.attributes;
|
||||
|
||||
if element.namespace == Namespace::HTML {
|
||||
if !self.html_additional_attributes.is_empty() && &*element.tag_name == "html" {
|
||||
let additional_attributes: Vec<_> =
|
||||
self.html_additional_attributes.drain(..).collect();
|
||||
|
||||
attributes.extend(additional_attributes)
|
||||
} else if !self.body_additional_attributes.is_empty()
|
||||
&& &*element.tag_name == "body"
|
||||
{
|
||||
let additional_attributes: Vec<_> =
|
||||
self.body_additional_attributes.drain(..).collect();
|
||||
|
||||
attributes.extend(additional_attributes);
|
||||
}
|
||||
}
|
||||
|
||||
let mut new_children = vec![];
|
||||
|
||||
for node in node.children.take() {
|
||||
new_children.push(self.node_to_child(node));
|
||||
}
|
||||
|
||||
let first = element.span.lo;
|
||||
let last = match new_children.last() {
|
||||
Some(Child::DocumentType(DocumentType { span, .. })) => span.hi,
|
||||
Some(Child::Element(Element { span, .. })) => span.hi,
|
||||
Some(Child::Comment(Comment { span, .. })) => span.hi,
|
||||
Some(Child::Text(Text { span, .. })) => span.hi,
|
||||
_ => element.span.hi,
|
||||
};
|
||||
let mut attributes = element.attributes;
|
||||
|
||||
match &*element.tag_name {
|
||||
"html" if element.namespace == Namespace::HTML => {
|
||||
if !self.html_additional_attributes.is_empty() {
|
||||
let additional_attributes: Vec<_> =
|
||||
self.html_additional_attributes.drain(..).collect();
|
||||
|
||||
attributes.extend(additional_attributes)
|
||||
}
|
||||
|
||||
// Elements and text after `</html>` are moving into `<body>`
|
||||
let end_html = match node.end_tag_span.take() {
|
||||
Some(end_tag_span) => end_tag_span.hi,
|
||||
_ => element.span.hi,
|
||||
};
|
||||
let end_children = match new_children.last() {
|
||||
Some(Child::DocumentType(DocumentType { span, .. })) => span.hi,
|
||||
Some(Child::Element(Element { span, .. })) => span.hi,
|
||||
Some(Child::Comment(Comment { span, .. })) => span.hi,
|
||||
Some(Child::Text(Text { span, .. })) => span.hi,
|
||||
_ => element.span.hi,
|
||||
};
|
||||
let end = if end_html >= end_children {
|
||||
end_html
|
||||
} else {
|
||||
end_children
|
||||
};
|
||||
|
||||
Child::Element(Element {
|
||||
span: Span::new(element.span.lo, end, Default::default()),
|
||||
children: new_children,
|
||||
content: None,
|
||||
attributes,
|
||||
..element
|
||||
})
|
||||
}
|
||||
"body" if element.namespace == Namespace::HTML => {
|
||||
if !self.body_additional_attributes.is_empty() {
|
||||
let additional_attributes: Vec<_> =
|
||||
self.body_additional_attributes.drain(..).collect();
|
||||
|
||||
attributes.extend(additional_attributes);
|
||||
}
|
||||
|
||||
// Elements and text after `</body>` are moving into `<body>`
|
||||
let end_body = match node.end_tag_span.take() {
|
||||
Some(end_tag_span) => end_tag_span.hi,
|
||||
_ => element.span.hi,
|
||||
};
|
||||
let end_children = match new_children.last() {
|
||||
Some(Child::DocumentType(DocumentType { span, .. })) => span.hi,
|
||||
Some(Child::Element(Element { span, .. })) => span.hi,
|
||||
Some(Child::Comment(Comment { span, .. })) => span.hi,
|
||||
Some(Child::Text(Text { span, .. })) => span.hi,
|
||||
_ => element.span.hi,
|
||||
};
|
||||
let end = if end_body >= end_children {
|
||||
end_body
|
||||
} else {
|
||||
end_children
|
||||
};
|
||||
|
||||
Child::Element(Element {
|
||||
span: Span::new(element.span.lo, end, Default::default()),
|
||||
children: new_children,
|
||||
content: None,
|
||||
attributes,
|
||||
..element
|
||||
})
|
||||
}
|
||||
"template" if element.namespace == Namespace::HTML => {
|
||||
let span = Span::new(first, last, Default::default());
|
||||
let end = match node.end_tag_span.take() {
|
||||
Some(end_tag_span) => end_tag_span.hi,
|
||||
_ => match new_children.last() {
|
||||
Some(Child::DocumentType(DocumentType { span, .. })) => span.hi,
|
||||
Some(Child::Element(Element { span, .. })) => span.hi,
|
||||
Some(Child::Comment(Comment { span, .. })) => span.hi,
|
||||
Some(Child::Text(Text { span, .. })) => span.hi,
|
||||
_ => element.span.hi,
|
||||
},
|
||||
};
|
||||
let span = Span::new(element.span.lo, end, Default::default());
|
||||
|
||||
Child::Element(Element {
|
||||
span,
|
||||
@ -414,13 +467,26 @@ where
|
||||
..element
|
||||
})
|
||||
}
|
||||
_ => Child::Element(Element {
|
||||
span: Span::new(first, last, Default::default()),
|
||||
children: new_children,
|
||||
content: None,
|
||||
attributes,
|
||||
..element
|
||||
}),
|
||||
_ => {
|
||||
let end = match node.end_tag_span.take() {
|
||||
Some(end_tag_span) => end_tag_span.hi,
|
||||
_ => match new_children.last() {
|
||||
Some(Child::DocumentType(DocumentType { span, .. })) => span.hi,
|
||||
Some(Child::Element(Element { span, .. })) => span.hi,
|
||||
Some(Child::Comment(Comment { span, .. })) => span.hi,
|
||||
Some(Child::Text(Text { span, .. })) => span.hi,
|
||||
_ => element.span.hi,
|
||||
},
|
||||
};
|
||||
|
||||
Child::Element(Element {
|
||||
span: Span::new(element.span.lo, end, Default::default()),
|
||||
children: new_children,
|
||||
content: None,
|
||||
attributes,
|
||||
..element
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
Data::Text(text) => Child::Text(Text { ..text }),
|
||||
@ -897,7 +963,9 @@ where
|
||||
// restore the insertion point to its previous value. This value might be the
|
||||
// "undefined" value.)
|
||||
Token::EndTag { tag_name, .. } if tag_name == "script" => {
|
||||
self.open_elements_stack.pop();
|
||||
let popped = self.open_elements_stack.pop();
|
||||
|
||||
self.update_end_tag_span(popped.as_ref(), token_and_info);
|
||||
|
||||
// No need to handle other steps
|
||||
}
|
||||
@ -960,8 +1028,9 @@ where
|
||||
if &*element.tag_name.to_ascii_lowercase() == tag_name =>
|
||||
{
|
||||
let clone = inner_node.clone();
|
||||
let popped = self.open_elements_stack.pop_until_node(&clone);
|
||||
|
||||
self.open_elements_stack.pop_until_node(&clone);
|
||||
self.update_end_tag_span(popped.as_ref(), token_and_info);
|
||||
|
||||
return Ok(());
|
||||
}
|
||||
@ -1439,7 +1508,7 @@ where
|
||||
acknowledged: false,
|
||||
token: Token::StartTag {
|
||||
tag_name: "head".into(),
|
||||
raw_tag_name: Some("head".into()),
|
||||
raw_tag_name: None,
|
||||
self_closing: false,
|
||||
attributes: vec![],
|
||||
},
|
||||
@ -1719,7 +1788,9 @@ where
|
||||
//
|
||||
// Switch the insertion mode to "after head".
|
||||
Token::EndTag { tag_name, .. } if tag_name == "head" => {
|
||||
self.open_elements_stack.pop();
|
||||
let popped = self.open_elements_stack.pop();
|
||||
|
||||
self.update_end_tag_span(popped.as_ref(), token_and_info);
|
||||
self.insertion_mode = InsertionMode::AfterHead;
|
||||
}
|
||||
// An end tag whose tag name is one of: "body", "html", "br"
|
||||
@ -1789,8 +1860,11 @@ where
|
||||
_ => {}
|
||||
}
|
||||
|
||||
self.open_elements_stack
|
||||
let popped = self
|
||||
.open_elements_stack
|
||||
.pop_until_tag_name_popped(&["template"]);
|
||||
|
||||
self.update_end_tag_span(popped.as_ref(), token_and_info);
|
||||
self.active_formatting_elements.clear_to_last_marker();
|
||||
self.template_insertion_mode_stack.pop();
|
||||
self.reset_insertion_mode();
|
||||
@ -1890,7 +1964,9 @@ where
|
||||
//
|
||||
// Switch the insertion mode to "in head".
|
||||
Token::EndTag { tag_name, .. } if tag_name == "noscript" => {
|
||||
self.open_elements_stack.pop();
|
||||
let popped = self.open_elements_stack.pop();
|
||||
|
||||
self.update_end_tag_span(popped.as_ref(), token_and_info);
|
||||
self.insertion_mode = InsertionMode::InHead;
|
||||
}
|
||||
// A character token that is one of U+0009 CHARACTER TABULATION, U+000A LINE
|
||||
@ -1961,23 +2037,28 @@ where
|
||||
}
|
||||
// The "after head" insertion mode
|
||||
InsertionMode::AfterHead => {
|
||||
let anything_else =
|
||||
|parser: &mut Parser<I>, token_and_info: &mut TokenAndInfo| -> PResult<()> {
|
||||
parser.insert_html_element(&mut TokenAndInfo {
|
||||
span: Default::default(),
|
||||
let anything_else = |parser: &mut Parser<I>,
|
||||
token_and_info: &mut TokenAndInfo|
|
||||
-> PResult<()> {
|
||||
parser.insert_html_element(&mut TokenAndInfo {
|
||||
span: if matches!(&token_and_info.token, Token::EndTag { tag_name, .. } if &*tag_name == "body") {
|
||||
token_and_info.span
|
||||
} else {
|
||||
Default::default()
|
||||
},
|
||||
acknowledged: false,
|
||||
token: Token::StartTag {
|
||||
tag_name: "body".into(),
|
||||
raw_tag_name: Some("body".into()),
|
||||
raw_tag_name: None,
|
||||
self_closing: false,
|
||||
attributes: vec![],
|
||||
},
|
||||
})?;
|
||||
parser.insertion_mode = InsertionMode::InBody;
|
||||
parser.process_token(token_and_info, None)?;
|
||||
parser.insertion_mode = InsertionMode::InBody;
|
||||
parser.process_token(token_and_info, None)?;
|
||||
|
||||
Ok(())
|
||||
};
|
||||
Ok(())
|
||||
};
|
||||
// When the user agent is to apply the rules for the "after head" insertion
|
||||
// mode, the user agent must handle the token as follows:
|
||||
match token {
|
||||
@ -2400,6 +2481,11 @@ where
|
||||
));
|
||||
|
||||
return Ok(());
|
||||
} else {
|
||||
self.update_end_tag_span(
|
||||
self.open_elements_stack.items.get(1),
|
||||
token_and_info,
|
||||
);
|
||||
}
|
||||
|
||||
for node in &self.open_elements_stack.items {
|
||||
@ -2457,6 +2543,11 @@ where
|
||||
));
|
||||
|
||||
return Ok(());
|
||||
} else {
|
||||
self.update_end_tag_span(
|
||||
self.open_elements_stack.items.get(0),
|
||||
token_and_info,
|
||||
);
|
||||
}
|
||||
|
||||
for node in &self.open_elements_stack.items {
|
||||
@ -2531,7 +2622,7 @@ where
|
||||
) =>
|
||||
{
|
||||
if self.open_elements_stack.has_in_button_scope("p") {
|
||||
self.close_p_element(token_and_info);
|
||||
self.close_p_element(token_and_info, false);
|
||||
}
|
||||
|
||||
self.insert_html_element(token_and_info)?;
|
||||
@ -2550,7 +2641,7 @@ where
|
||||
if matches!(tag_name.as_ref(), "h1" | "h2" | "h3" | "h4" | "h5" | "h6") =>
|
||||
{
|
||||
if self.open_elements_stack.has_in_button_scope("p") {
|
||||
self.close_p_element(token_and_info);
|
||||
self.close_p_element(token_and_info, false);
|
||||
}
|
||||
|
||||
match self.open_elements_stack.items.last() {
|
||||
@ -2588,7 +2679,7 @@ where
|
||||
if matches!(tag_name.as_ref(), "pre" | "listing") =>
|
||||
{
|
||||
if self.open_elements_stack.has_in_button_scope("p") {
|
||||
self.close_p_element(token_and_info);
|
||||
self.close_p_element(token_and_info, false);
|
||||
}
|
||||
|
||||
self.insert_html_element(token_and_info)?;
|
||||
@ -2626,7 +2717,7 @@ where
|
||||
}
|
||||
|
||||
if self.open_elements_stack.has_in_button_scope("p") {
|
||||
self.close_p_element(token_and_info);
|
||||
self.close_p_element(token_and_info, false);
|
||||
}
|
||||
|
||||
let element = self.insert_html_element(token_and_info)?;
|
||||
@ -2711,7 +2802,7 @@ where
|
||||
// If the stack of open elements has a p element in button scope,
|
||||
// then close a p element.
|
||||
if self.open_elements_stack.has_in_button_scope("p") {
|
||||
self.close_p_element(token_and_info);
|
||||
self.close_p_element(token_and_info, false);
|
||||
}
|
||||
|
||||
self.insert_html_element(token_and_info)?;
|
||||
@ -2828,7 +2919,7 @@ where
|
||||
// If the stack of open elements has a p element in button scope,
|
||||
// then close a p element.
|
||||
if self.open_elements_stack.has_in_button_scope("p") {
|
||||
self.close_p_element(token_and_info);
|
||||
self.close_p_element(token_and_info, false);
|
||||
}
|
||||
|
||||
self.insert_html_element(token_and_info)?;
|
||||
@ -2843,7 +2934,7 @@ where
|
||||
// Switch the tokenizer to the PLAINTEXT state.
|
||||
Token::StartTag { tag_name, .. } if tag_name == "plaintext" => {
|
||||
if self.open_elements_stack.has_in_button_scope("p") {
|
||||
self.close_p_element(token_and_info);
|
||||
self.close_p_element(token_and_info, false);
|
||||
}
|
||||
|
||||
self.insert_html_element(token_and_info)?;
|
||||
@ -2948,8 +3039,11 @@ where
|
||||
_ => {}
|
||||
}
|
||||
|
||||
self.open_elements_stack
|
||||
let popped = self
|
||||
.open_elements_stack
|
||||
.pop_until_tag_name_popped(&[tag_name]);
|
||||
|
||||
self.update_end_tag_span(popped.as_ref(), token_and_info);
|
||||
}
|
||||
}
|
||||
// An end tag whose tag name is "form"
|
||||
@ -3024,6 +3118,8 @@ where
|
||||
token_and_info.span,
|
||||
ErrorKind::UnclosedElements(tag_name.clone()),
|
||||
));
|
||||
} else {
|
||||
self.update_end_tag_span(Some(&node), token_and_info);
|
||||
}
|
||||
|
||||
self.open_elements_stack.remove(&node);
|
||||
@ -3049,8 +3145,11 @@ where
|
||||
_ => {}
|
||||
}
|
||||
|
||||
self.open_elements_stack
|
||||
let popped = self
|
||||
.open_elements_stack
|
||||
.pop_until_tag_name_popped(&["form"]);
|
||||
|
||||
self.update_end_tag_span(popped.as_ref(), token_and_info);
|
||||
}
|
||||
}
|
||||
// An end tag whose tag name is "p"
|
||||
@ -3068,18 +3167,18 @@ where
|
||||
));
|
||||
|
||||
self.insert_html_element(&mut TokenAndInfo {
|
||||
span: Default::default(),
|
||||
span: token_and_info.span,
|
||||
acknowledged: false,
|
||||
token: Token::StartTag {
|
||||
tag_name: "p".into(),
|
||||
raw_tag_name: Some("p".into()),
|
||||
raw_tag_name: None,
|
||||
self_closing: false,
|
||||
attributes: vec![],
|
||||
},
|
||||
})?;
|
||||
}
|
||||
|
||||
self.close_p_element(token_and_info);
|
||||
self.close_p_element(token_and_info, true);
|
||||
}
|
||||
// An end tag whose tag name is "li"
|
||||
//
|
||||
@ -3114,7 +3213,10 @@ where
|
||||
_ => {}
|
||||
}
|
||||
|
||||
self.open_elements_stack.pop_until_tag_name_popped(&["li"]);
|
||||
let popped =
|
||||
self.open_elements_stack.pop_until_tag_name_popped(&["li"]);
|
||||
|
||||
self.update_end_tag_span(popped.as_ref(), token_and_info);
|
||||
}
|
||||
}
|
||||
// An end tag whose tag name is one of: "dd", "dt"
|
||||
@ -3153,8 +3255,11 @@ where
|
||||
_ => {}
|
||||
}
|
||||
|
||||
self.open_elements_stack
|
||||
let popped = self
|
||||
.open_elements_stack
|
||||
.pop_until_tag_name_popped(&[tag_name]);
|
||||
|
||||
self.update_end_tag_span(popped.as_ref(), token_and_info);
|
||||
}
|
||||
}
|
||||
// An end tag whose tag name is one of: "h1", "h2", "h3", "h4", "h5", "h6"
|
||||
@ -3190,14 +3295,15 @@ where
|
||||
} else {
|
||||
self.open_elements_stack.generate_implied_end_tags();
|
||||
|
||||
match self.open_elements_stack.items.last() {
|
||||
Some(node) if !is_html_element_with_tag_name!(node, tag_name) => {
|
||||
if let Some(node) = self.open_elements_stack.items.last() {
|
||||
if !is_html_element_with_tag_name!(node, tag_name) {
|
||||
self.errors.push(Error::new(
|
||||
token_and_info.span,
|
||||
ErrorKind::UnclosedElements(tag_name.clone()),
|
||||
));
|
||||
} else {
|
||||
self.update_end_tag_span(Some(node), token_and_info);
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
|
||||
self.open_elements_stack
|
||||
@ -3254,7 +3360,7 @@ where
|
||||
|
||||
let remove = element.clone();
|
||||
|
||||
self.run_the_adoption_agency_algorithm(token_and_info)?;
|
||||
self.run_the_adoption_agency_algorithm(token_and_info, false)?;
|
||||
self.active_formatting_elements.remove(&remove);
|
||||
self.open_elements_stack.remove(&remove);
|
||||
}
|
||||
@ -3262,7 +3368,7 @@ where
|
||||
|
||||
self.reconstruct_active_formatting_elements()?;
|
||||
|
||||
let element = self.insert_html_element(&mut token_and_info.clone())?;
|
||||
let element = self.insert_html_element(token_and_info)?;
|
||||
|
||||
self.active_formatting_elements
|
||||
.push(ActiveFormattingElement::Element(
|
||||
@ -3295,7 +3401,7 @@ where
|
||||
{
|
||||
self.reconstruct_active_formatting_elements()?;
|
||||
|
||||
let element = self.insert_html_element(&mut token_and_info.clone())?;
|
||||
let element = self.insert_html_element(token_and_info)?;
|
||||
|
||||
self.active_formatting_elements
|
||||
.push(ActiveFormattingElement::Element(
|
||||
@ -3322,11 +3428,11 @@ where
|
||||
ErrorKind::SomethingSeenWhenSomethingOpen(tag_name.clone()),
|
||||
));
|
||||
|
||||
self.run_the_adoption_agency_algorithm(token_and_info)?;
|
||||
self.run_the_adoption_agency_algorithm(token_and_info, false)?;
|
||||
self.reconstruct_active_formatting_elements()?;
|
||||
}
|
||||
|
||||
let element = self.insert_html_element(&mut token_and_info.clone())?;
|
||||
let element = self.insert_html_element(token_and_info)?;
|
||||
|
||||
self.active_formatting_elements
|
||||
.push(ActiveFormattingElement::Element(
|
||||
@ -3356,7 +3462,7 @@ where
|
||||
| "u"
|
||||
) =>
|
||||
{
|
||||
self.run_the_adoption_agency_algorithm(token_and_info)?;
|
||||
self.run_the_adoption_agency_algorithm(token_and_info, true)?;
|
||||
}
|
||||
// A start tag whose tag name is one of: "applet", "marquee", "object"
|
||||
//
|
||||
@ -3413,8 +3519,11 @@ where
|
||||
_ => {}
|
||||
}
|
||||
|
||||
self.open_elements_stack
|
||||
let popped = self
|
||||
.open_elements_stack
|
||||
.pop_until_tag_name_popped(&[tag_name]);
|
||||
|
||||
self.update_end_tag_span(popped.as_ref(), token_and_info);
|
||||
self.active_formatting_elements.clear_to_last_marker();
|
||||
}
|
||||
}
|
||||
@ -3432,7 +3541,7 @@ where
|
||||
if self.document_mode != DocumentMode::Quirks
|
||||
&& self.open_elements_stack.has_in_button_scope("p")
|
||||
{
|
||||
self.close_p_element(token_and_info);
|
||||
self.close_p_element(token_and_info, false);
|
||||
}
|
||||
|
||||
self.insert_html_element(token_and_info)?;
|
||||
@ -3457,7 +3566,7 @@ where
|
||||
|
||||
self.reconstruct_active_formatting_elements()?;
|
||||
self.insert_html_element(&mut TokenAndInfo {
|
||||
span: Default::default(),
|
||||
span: token_and_info.span,
|
||||
acknowledged: false,
|
||||
token: Token::StartTag {
|
||||
tag_name: tag_name.clone(),
|
||||
@ -3588,12 +3697,12 @@ where
|
||||
self_closing,
|
||||
..
|
||||
} if tag_name == "hr" => {
|
||||
if self.open_elements_stack.has_in_button_scope("p") {
|
||||
self.close_p_element(&mut token_and_info.clone());
|
||||
}
|
||||
|
||||
let is_self_closing = *self_closing;
|
||||
|
||||
if self.open_elements_stack.has_in_button_scope("p") {
|
||||
self.close_p_element(token_and_info, false);
|
||||
}
|
||||
|
||||
self.insert_html_element(token_and_info)?;
|
||||
self.open_elements_stack.pop();
|
||||
|
||||
@ -3673,7 +3782,7 @@ where
|
||||
// Follow the generic raw text element parsing algorithm.
|
||||
Token::StartTag { tag_name, .. } if tag_name == "xmp" => {
|
||||
if self.open_elements_stack.has_in_button_scope("p") {
|
||||
self.close_p_element(token_and_info);
|
||||
self.close_p_element(token_and_info, false);
|
||||
}
|
||||
|
||||
self.reconstruct_active_formatting_elements()?;
|
||||
@ -4177,7 +4286,9 @@ where
|
||||
// steps from step 1.
|
||||
Token::EndTag { tag_name, .. } if tag_name == "script" => {
|
||||
// More things can be implemented to intercept script execution
|
||||
self.open_elements_stack.pop();
|
||||
let popped = self.open_elements_stack.pop();
|
||||
|
||||
self.update_end_tag_span(popped.as_ref(), token_and_info);
|
||||
self.insertion_mode = self.original_insertion_mode.clone();
|
||||
}
|
||||
// Any other end tag
|
||||
@ -4186,6 +4297,13 @@ where
|
||||
//
|
||||
// Switch the insertion mode to the original insertion mode.
|
||||
_ => {
|
||||
if let Token::EndTag { .. } = token {
|
||||
self.update_end_tag_span(
|
||||
self.open_elements_stack.items.last(),
|
||||
token_and_info,
|
||||
);
|
||||
}
|
||||
|
||||
self.open_elements_stack.pop();
|
||||
self.insertion_mode = self.original_insertion_mode.clone();
|
||||
}
|
||||
@ -4275,7 +4393,7 @@ where
|
||||
acknowledged: true,
|
||||
token: Token::StartTag {
|
||||
tag_name: "colgroup".into(),
|
||||
raw_tag_name: Some("colgroup".into()),
|
||||
raw_tag_name: None,
|
||||
self_closing: false,
|
||||
attributes: vec![],
|
||||
},
|
||||
@ -4313,7 +4431,7 @@ where
|
||||
acknowledged: false,
|
||||
token: Token::StartTag {
|
||||
tag_name: "tbody".into(),
|
||||
raw_tag_name: Some("tbody".into()),
|
||||
raw_tag_name: None,
|
||||
self_closing: false,
|
||||
attributes: vec![],
|
||||
},
|
||||
@ -4371,8 +4489,11 @@ where
|
||||
ErrorKind::StrayEndTag(tag_name.clone()),
|
||||
));
|
||||
} else {
|
||||
self.open_elements_stack
|
||||
let popped = self
|
||||
.open_elements_stack
|
||||
.pop_until_tag_name_popped(&["table"]);
|
||||
|
||||
self.update_end_tag_span(popped.as_ref(), token_and_info);
|
||||
self.reset_insertion_mode();
|
||||
}
|
||||
}
|
||||
@ -4623,8 +4744,11 @@ where
|
||||
_ => {}
|
||||
}
|
||||
|
||||
self.open_elements_stack
|
||||
let popped = self
|
||||
.open_elements_stack
|
||||
.pop_until_tag_name_popped(&["caption"]);
|
||||
|
||||
self.update_end_tag_span(popped.as_ref(), token_and_info);
|
||||
self.active_formatting_elements.clear_to_last_marker();
|
||||
self.insertion_mode = InsertionMode::InTable;
|
||||
}
|
||||
@ -4819,7 +4943,9 @@ where
|
||||
));
|
||||
}
|
||||
_ => {
|
||||
self.open_elements_stack.pop();
|
||||
let popped = self.open_elements_stack.pop();
|
||||
|
||||
self.update_end_tag_span(popped.as_ref(), token_and_info);
|
||||
self.insertion_mode = InsertionMode::InTable;
|
||||
}
|
||||
}
|
||||
@ -4921,7 +5047,7 @@ where
|
||||
acknowledged: false,
|
||||
token: Token::StartTag {
|
||||
tag_name: "tr".into(),
|
||||
raw_tag_name: Some("tr".into()),
|
||||
raw_tag_name: None,
|
||||
self_closing: false,
|
||||
attributes: vec![],
|
||||
},
|
||||
@ -4951,6 +5077,10 @@ where
|
||||
));
|
||||
} else {
|
||||
self.open_elements_stack.clear_back_to_table_body_context();
|
||||
self.update_end_tag_span(
|
||||
self.open_elements_stack.items.last(),
|
||||
token_and_info,
|
||||
);
|
||||
self.open_elements_stack.pop();
|
||||
self.insertion_mode = InsertionMode::InTable;
|
||||
}
|
||||
@ -5071,6 +5201,10 @@ where
|
||||
));
|
||||
} else {
|
||||
self.open_elements_stack.clear_back_to_table_row_context();
|
||||
self.update_end_tag_span(
|
||||
self.open_elements_stack.items.last(),
|
||||
token_and_info,
|
||||
);
|
||||
self.open_elements_stack.pop();
|
||||
self.insertion_mode = InsertionMode::InTableBody;
|
||||
}
|
||||
@ -5224,8 +5358,11 @@ where
|
||||
_ => {}
|
||||
}
|
||||
|
||||
self.open_elements_stack
|
||||
let popped = self
|
||||
.open_elements_stack
|
||||
.pop_until_tag_name_popped(&[tag_name]);
|
||||
|
||||
self.update_end_tag_span(popped.as_ref(), token_and_info);
|
||||
self.active_formatting_elements.clear_to_last_marker();
|
||||
self.insertion_mode = InsertionMode::InRow;
|
||||
}
|
||||
@ -5420,7 +5557,9 @@ where
|
||||
.get(self.open_elements_stack.items.len() - 2)
|
||||
{
|
||||
Some(node) if is_html_element!(node, "optgroup") => {
|
||||
self.open_elements_stack.pop();
|
||||
let popped = self.open_elements_stack.pop();
|
||||
|
||||
self.update_end_tag_span(popped.as_ref(), token_and_info);
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
@ -5430,7 +5569,9 @@ where
|
||||
|
||||
match self.open_elements_stack.items.last() {
|
||||
Some(node) if is_html_element!(node, "optgroup") => {
|
||||
self.open_elements_stack.pop();
|
||||
let popped = self.open_elements_stack.pop();
|
||||
|
||||
self.update_end_tag_span(popped.as_ref(), token_and_info);
|
||||
}
|
||||
_ => self.errors.push(Error::new(
|
||||
token_and_info.span,
|
||||
@ -5445,7 +5586,9 @@ where
|
||||
Token::EndTag { tag_name, .. } if tag_name == "option" => {
|
||||
match self.open_elements_stack.items.last() {
|
||||
Some(node) if is_html_element!(node, "option") => {
|
||||
self.open_elements_stack.pop();
|
||||
let popped = self.open_elements_stack.pop();
|
||||
|
||||
self.update_end_tag_span(popped.as_ref(), token_and_info);
|
||||
}
|
||||
_ => self.errors.push(Error::new(
|
||||
token_and_info.span,
|
||||
@ -5471,8 +5614,11 @@ where
|
||||
ErrorKind::StrayEndTag(tag_name.clone()),
|
||||
));
|
||||
} else {
|
||||
self.open_elements_stack
|
||||
let popped = self
|
||||
.open_elements_stack
|
||||
.pop_until_tag_name_popped(&["select"]);
|
||||
|
||||
self.update_end_tag_span(popped.as_ref(), token_and_info);
|
||||
self.reset_insertion_mode();
|
||||
}
|
||||
}
|
||||
@ -5876,6 +6022,10 @@ where
|
||||
ErrorKind::StrayEndTag(tag_name.clone()),
|
||||
));
|
||||
} else {
|
||||
self.update_end_tag_span(
|
||||
self.open_elements_stack.items.get(0),
|
||||
token_and_info,
|
||||
);
|
||||
self.insertion_mode = InsertionMode::AfterAfterBody;
|
||||
}
|
||||
}
|
||||
@ -5988,7 +6138,9 @@ where
|
||||
ErrorKind::StrayEndTag(tag_name.clone()),
|
||||
));
|
||||
} else {
|
||||
self.open_elements_stack.pop();
|
||||
let popped = self.open_elements_stack.pop();
|
||||
|
||||
self.update_end_tag_span(popped.as_ref(), token_and_info);
|
||||
|
||||
if !self.is_fragment_case {
|
||||
match self.open_elements_stack.items.last() {
|
||||
@ -6116,6 +6268,10 @@ where
|
||||
//
|
||||
// Switch the insertion mode to "after after frameset".
|
||||
Token::EndTag { tag_name, .. } if tag_name == "html" => {
|
||||
self.update_end_tag_span(
|
||||
self.open_elements_stack.items.last(),
|
||||
token_and_info,
|
||||
);
|
||||
self.insertion_mode = InsertionMode::AfterAfterFrameset;
|
||||
}
|
||||
// A start tag whose tag name is "noframes"
|
||||
@ -6426,6 +6582,10 @@ where
|
||||
token_and_info.span,
|
||||
ErrorKind::UnclosedElements(tag_name.clone()),
|
||||
));
|
||||
} else {
|
||||
let node = self.open_elements_stack.items.last();
|
||||
|
||||
self.update_end_tag_span(node, token_and_info);
|
||||
}
|
||||
|
||||
// 2.- 3.
|
||||
@ -6843,6 +7003,7 @@ where
|
||||
fn run_the_adoption_agency_algorithm(
|
||||
&mut self,
|
||||
token_and_info: &mut TokenAndInfo,
|
||||
is_closing: bool,
|
||||
) -> PResult<()> {
|
||||
// 1.
|
||||
let subject = match &token_and_info.token {
|
||||
@ -6859,7 +7020,11 @@ where
|
||||
if is_html_element_with_tag_name!(last, &*subject)
|
||||
&& self.active_formatting_elements.get_position(last).is_none()
|
||||
{
|
||||
self.open_elements_stack.pop();
|
||||
let popped = self.open_elements_stack.pop();
|
||||
|
||||
if is_closing {
|
||||
self.update_end_tag_span(popped.as_ref(), token_and_info);
|
||||
}
|
||||
|
||||
return Ok(());
|
||||
}
|
||||
@ -6901,7 +7066,7 @@ where
|
||||
});
|
||||
|
||||
if formatting_element.is_none() {
|
||||
self.any_other_end_tag_for_in_body_insertion_mode(&mut token_and_info.clone());
|
||||
self.any_other_end_tag_for_in_body_insertion_mode(token_and_info);
|
||||
|
||||
return Ok(());
|
||||
}
|
||||
@ -6944,7 +7109,6 @@ where
|
||||
|
||||
// 6.
|
||||
if let Some(node) = self.open_elements_stack.items.last() {
|
||||
// errEndTagViolatesNestingRules(name);
|
||||
if !is_same_node(node, &formatting_element.1) {
|
||||
self.errors.push(Error::new(
|
||||
token_and_info.span,
|
||||
@ -6967,6 +7131,10 @@ where
|
||||
if furthest_block.is_none() {
|
||||
while let Some(node) = self.open_elements_stack.pop() {
|
||||
if is_same_node(&node, &formatting_element.1) {
|
||||
if is_closing {
|
||||
self.update_end_tag_span(Some(&node), token_and_info);
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
@ -7026,7 +7194,6 @@ where
|
||||
|
||||
// 13.6
|
||||
let node_formatting_index = node_formatting_index.unwrap();
|
||||
let last_pos = self.input.last_pos()?;
|
||||
let token_and_info =
|
||||
match self.active_formatting_elements.items[node_formatting_index] {
|
||||
ActiveFormattingElement::Element(ref h, ref t) => {
|
||||
@ -7040,7 +7207,11 @@ where
|
||||
};
|
||||
let new_element = self.create_element_for_token(
|
||||
token_and_info.token.clone(),
|
||||
Span::new(token_and_info.span.lo, last_pos, Default::default()),
|
||||
Span::new(
|
||||
token_and_info.span.lo,
|
||||
token_and_info.span.hi,
|
||||
Default::default(),
|
||||
),
|
||||
Some(Namespace::HTML),
|
||||
None,
|
||||
);
|
||||
@ -7300,7 +7471,7 @@ where
|
||||
Ok(())
|
||||
}
|
||||
|
||||
fn close_p_element(&mut self, token_and_info: &mut TokenAndInfo) {
|
||||
fn close_p_element(&mut self, token_and_info: &mut TokenAndInfo, is_close_p: bool) {
|
||||
// When the steps above say the user agent is to close a p element, it means
|
||||
// that the user agent must run the following steps:
|
||||
|
||||
@ -7330,7 +7501,11 @@ where
|
||||
|
||||
// 3. Pop elements from the stack of open elements until a p element has been
|
||||
// popped from the stack.
|
||||
self.open_elements_stack.pop_until_tag_name_popped(&["p"]);
|
||||
let popped = self.open_elements_stack.pop_until_tag_name_popped(&["p"]);
|
||||
|
||||
if is_close_p {
|
||||
self.update_end_tag_span(popped.as_ref(), token_and_info)
|
||||
}
|
||||
}
|
||||
|
||||
fn close_the_cell(&mut self) {
|
||||
@ -8175,6 +8350,14 @@ where
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fn update_end_tag_span(&self, node: Option<&RcNode>, token_and_info: &TokenAndInfo) {
|
||||
if let Some(node) = node {
|
||||
let mut end_tag_span = node.end_tag_span.borrow_mut();
|
||||
|
||||
*end_tag_span = Some(token_and_info.span);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fn is_same_node(a: &RcNode, b: &RcNode) -> bool {
|
||||
|
@ -28,6 +28,7 @@ pub struct Node {
|
||||
pub parent: Cell<Option<WeakNode>>,
|
||||
pub children: RefCell<Vec<RcNode>>,
|
||||
pub data: Data,
|
||||
pub end_tag_span: RefCell<Option<Span>>,
|
||||
}
|
||||
|
||||
impl Node {
|
||||
@ -37,6 +38,7 @@ impl Node {
|
||||
parent: Cell::new(None),
|
||||
children: RefCell::new(Vec::new()),
|
||||
data,
|
||||
end_tag_span: RefCell::new(None),
|
||||
})
|
||||
}
|
||||
}
|
||||
|
@ -421,20 +421,24 @@ impl OpenElementsStack {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn pop_until_tag_name_popped(&mut self, tag_name: &[&str]) {
|
||||
pub fn pop_until_tag_name_popped(&mut self, tag_name: &[&str]) -> Option<RcNode> {
|
||||
while let Some(node) = self.pop() {
|
||||
if tag_name.contains(&get_tag_name!(node)) && get_namespace!(node) == Namespace::HTML {
|
||||
break;
|
||||
return Some(node);
|
||||
}
|
||||
}
|
||||
|
||||
None
|
||||
}
|
||||
|
||||
pub fn pop_until_node(&mut self, until_to_node: &RcNode) {
|
||||
while let Some(node) = &self.pop() {
|
||||
if is_same_node(node, until_to_node) {
|
||||
break;
|
||||
pub fn pop_until_node(&mut self, until_to_node: &RcNode) -> Option<RcNode> {
|
||||
while let Some(node) = self.pop() {
|
||||
if is_same_node(&node, until_to_node) {
|
||||
return Some(node);
|
||||
}
|
||||
}
|
||||
|
||||
None
|
||||
}
|
||||
|
||||
// While the current node is not a MathML text integration point, an HTML
|
||||
|
@ -46,7 +46,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 34,
|
||||
"end": 69,
|
||||
"end": 76,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "head",
|
||||
@ -66,7 +66,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 45,
|
||||
"end": 60,
|
||||
"end": 68,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "title",
|
||||
@ -130,7 +130,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 85,
|
||||
"end": 160,
|
||||
"end": 164,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "a",
|
||||
@ -585,7 +585,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 165,
|
||||
"end": 209,
|
||||
"end": 213,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "p",
|
||||
@ -630,7 +630,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 214,
|
||||
"end": 249,
|
||||
"end": 253,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "p",
|
||||
@ -675,7 +675,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 254,
|
||||
"end": 293,
|
||||
"end": 299,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "tag",
|
||||
@ -898,7 +898,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 455,
|
||||
"end": 472,
|
||||
"end": 481,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "button",
|
||||
|
@ -105,15 +105,15 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/attribute/basic/input.html:3:1]
|
||||
3 | ,-> <head>
|
||||
4 | `-> <title>Document</title>
|
||||
5 | </head>
|
||||
4 | | <title>Document</title>
|
||||
5 | `-> </head>
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/attribute/basic/input.html:3:1]
|
||||
3 | ,-> <head>
|
||||
4 | `-> <title>Document</title>
|
||||
5 | </head>
|
||||
4 | | <title>Document</title>
|
||||
5 | `-> </head>
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -131,13 +131,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/attribute/basic/input.html:4:5]
|
||||
4 | <title>Document</title>
|
||||
: ^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/attribute/basic/input.html:4:5]
|
||||
4 | <title>Document</title>
|
||||
: ^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -245,13 +245,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/attribute/basic/input.html:8:1]
|
||||
8 | <a 0 1 2 3 4 5 6 7 8 9 a b c d e f g h i j k l m n o p q r s t u v w x y z></a>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/attribute/basic/input.html:8:1]
|
||||
8 | <a 0 1 2 3 4 5 6 7 8 9 a b c d e f g h i j k l m n o p q r s t u v w x y z></a>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Attribute
|
||||
@ -487,13 +487,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/attribute/basic/input.html:9:1]
|
||||
9 | <p title=" <![CDATA[ \n\n foobar baz ]]> ">x</p>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/attribute/basic/input.html:9:1]
|
||||
9 | <p title=" <![CDATA[ \n\n foobar baz ]]> ">x</p>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Attribute
|
||||
@ -531,13 +531,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/attribute/basic/input.html:10:1]
|
||||
10 | <p title=" <!-- hello world --> ">x</p>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/attribute/basic/input.html:10:1]
|
||||
10 | <p title=" <!-- hello world --> ">x</p>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Attribute
|
||||
@ -575,13 +575,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/attribute/basic/input.html:11:1]
|
||||
11 | <tag v-ref:vm_pv :imgs=" objpicsurl_ "></tag>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/attribute/basic/input.html:11:1]
|
||||
11 | <tag v-ref:vm_pv :imgs=" objpicsurl_ "></tag>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Attribute
|
||||
@ -766,13 +766,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/attribute/basic/input.html:22:1]
|
||||
22 | <button disabled></button>
|
||||
: ^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/attribute/basic/input.html:22:1]
|
||||
22 | <button disabled></button>
|
||||
: ^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Attribute
|
||||
|
@ -46,7 +46,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 34,
|
||||
"end": 69,
|
||||
"end": 76,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "head",
|
||||
@ -66,7 +66,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 45,
|
||||
"end": 60,
|
||||
"end": 68,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "title",
|
||||
@ -130,7 +130,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 88,
|
||||
"end": 171,
|
||||
"end": 175,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "a",
|
||||
@ -165,7 +165,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 180,
|
||||
"end": 218,
|
||||
"end": 222,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "a",
|
||||
@ -200,7 +200,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 227,
|
||||
"end": 266,
|
||||
"end": 273,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "span",
|
||||
@ -235,7 +235,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 278,
|
||||
"end": 317,
|
||||
"end": 324,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "span",
|
||||
@ -270,7 +270,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 329,
|
||||
"end": 368,
|
||||
"end": 375,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "span",
|
||||
@ -305,7 +305,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 380,
|
||||
"end": 405,
|
||||
"end": 412,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "span",
|
||||
@ -340,7 +340,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 417,
|
||||
"end": 440,
|
||||
"end": 447,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "span",
|
||||
@ -375,7 +375,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 452,
|
||||
"end": 463,
|
||||
"end": 469,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "div",
|
||||
@ -410,7 +410,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 474,
|
||||
"end": 557,
|
||||
"end": 563,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "div",
|
||||
@ -445,7 +445,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 568,
|
||||
"end": 641,
|
||||
"end": 645,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "a",
|
||||
@ -480,7 +480,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 650,
|
||||
"end": 665,
|
||||
"end": 671,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "div",
|
||||
@ -515,7 +515,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 676,
|
||||
"end": 697,
|
||||
"end": 703,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "div",
|
||||
|
@ -90,15 +90,15 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/attribute/class/input.html:3:1]
|
||||
3 | ,-> <head>
|
||||
4 | `-> <title>Document</title>
|
||||
5 | </head>
|
||||
4 | | <title>Document</title>
|
||||
5 | `-> </head>
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/attribute/class/input.html:3:1]
|
||||
3 | ,-> <head>
|
||||
4 | `-> <title>Document</title>
|
||||
5 | </head>
|
||||
4 | | <title>Document</title>
|
||||
5 | `-> </head>
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -116,13 +116,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/attribute/class/input.html:4:5]
|
||||
4 | <title>Document</title>
|
||||
: ^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/attribute/class/input.html:4:5]
|
||||
4 | <title>Document</title>
|
||||
: ^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -218,13 +218,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/attribute/class/input.html:7:5]
|
||||
7 | <a class="0 1 2 3 4 5 6 7 8 9 a b c d e f g h i j k l m n o p q r s t u v w x y z"></a>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/attribute/class/input.html:7:5]
|
||||
7 | <a class="0 1 2 3 4 5 6 7 8 9 a b c d e f g h i j k l m n o p q r s t u v w x y z"></a>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Attribute
|
||||
@ -248,13 +248,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/attribute/class/input.html:8:5]
|
||||
8 | <a class="add sort keys createSorter"></a>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/attribute/class/input.html:8:5]
|
||||
8 | <a class="add sort keys createSorter"></a>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Attribute
|
||||
@ -278,13 +278,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/attribute/class/input.html:9:5]
|
||||
9 | <span class="sprite sprite-{{sprite}}"></span>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/attribute/class/input.html:9:5]
|
||||
9 | <span class="sprite sprite-{{sprite}}"></span>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Attribute
|
||||
@ -308,13 +308,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/attribute/class/input.html:10:5]
|
||||
10 | <span class="{{sprite}}-sprite sprite"></span>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/attribute/class/input.html:10:5]
|
||||
10 | <span class="{{sprite}}-sprite sprite"></span>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Attribute
|
||||
@ -338,13 +338,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/attribute/class/input.html:11:5]
|
||||
11 | <span class="sprite-{{sprite}}-sprite"></span>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/attribute/class/input.html:11:5]
|
||||
11 | <span class="sprite-{{sprite}}-sprite"></span>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Attribute
|
||||
@ -368,13 +368,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/attribute/class/input.html:12:5]
|
||||
12 | <span class="{{sprite}}"></span>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/attribute/class/input.html:12:5]
|
||||
12 | <span class="{{sprite}}"></span>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Attribute
|
||||
@ -398,13 +398,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/attribute/class/input.html:13:5]
|
||||
13 | <span class={{sprite}}></span>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/attribute/class/input.html:13:5]
|
||||
13 | <span class={{sprite}}></span>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Attribute
|
||||
@ -428,13 +428,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/attribute/class/input.html:14:5]
|
||||
14 | <div class></div>
|
||||
: ^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/attribute/class/input.html:14:5]
|
||||
14 | <div class></div>
|
||||
: ^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Attribute
|
||||
@ -458,13 +458,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/attribute/class/input.html:15:5]
|
||||
15 | <div class="nav_sv_fo_v_column <#=(j === 0) ? 'nav_sv_fo_v_first' : '' #> foo_bar"></div>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/attribute/class/input.html:15:5]
|
||||
15 | <div class="nav_sv_fo_v_column <#=(j === 0) ? 'nav_sv_fo_v_first' : '' #> foo_bar"></div>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Attribute
|
||||
@ -488,13 +488,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/attribute/class/input.html:16:5]
|
||||
16 | <a class="moo <!-- htmlmin:ignore -->bar<!-- htmlmin:ignore --> foo baz"></a>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/attribute/class/input.html:16:5]
|
||||
16 | <a class="moo <!-- htmlmin:ignore -->bar<!-- htmlmin:ignore --> foo baz"></a>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Attribute
|
||||
@ -518,13 +518,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/attribute/class/input.html:17:5]
|
||||
17 | <div class="="></div>
|
||||
: ^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/attribute/class/input.html:17:5]
|
||||
17 | <div class="="></div>
|
||||
: ^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Attribute
|
||||
@ -548,13 +548,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/attribute/class/input.html:18:5]
|
||||
18 | <div class="= = = ="></div>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/attribute/class/input.html:18:5]
|
||||
18 | <div class="= = = ="></div>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Attribute
|
||||
|
@ -66,7 +66,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 32,
|
||||
"end": 80,
|
||||
"end": 84,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "a",
|
||||
|
@ -86,13 +86,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/attribute/no-quotes/input.html:5:1]
|
||||
5 | <a href=https://www.w3schools.com>This is a link</a>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/attribute/no-quotes/input.html:5:1]
|
||||
5 | <a href=https://www.w3schools.com>This is a link</a>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Attribute
|
||||
|
@ -22,7 +22,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 17,
|
||||
"end": 166,
|
||||
"end": 173,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "html",
|
||||
@ -46,7 +46,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 34,
|
||||
"end": 138,
|
||||
"end": 145,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "head",
|
||||
@ -113,7 +113,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 114,
|
||||
"end": 129,
|
||||
"end": 137,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "title",
|
||||
|
@ -34,8 +34,8 @@
|
||||
6 | | </head>
|
||||
7 | | <body>
|
||||
8 | | test
|
||||
9 | `-> </body>
|
||||
10 | </html>
|
||||
9 | | </body>
|
||||
10 | `-> </html>
|
||||
`----
|
||||
|
||||
x Element
|
||||
@ -47,8 +47,8 @@
|
||||
6 | | </head>
|
||||
7 | | <body>
|
||||
8 | | test
|
||||
9 | `-> </body>
|
||||
10 | </html>
|
||||
9 | | </body>
|
||||
10 | `-> </html>
|
||||
`----
|
||||
|
||||
x Attribute
|
||||
@ -61,16 +61,16 @@
|
||||
,-[$DIR/tests/fixture/attribute/quotes-in-meta/input.html:3:1]
|
||||
3 | ,-> <head>
|
||||
4 | | <meta http-equiv="Content-Type" content='charset="windows-1251'>
|
||||
5 | `-> <title>Document</title>
|
||||
6 | </head>
|
||||
5 | | <title>Document</title>
|
||||
6 | `-> </head>
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/attribute/quotes-in-meta/input.html:3:1]
|
||||
3 | ,-> <head>
|
||||
4 | | <meta http-equiv="Content-Type" content='charset="windows-1251'>
|
||||
5 | `-> <title>Document</title>
|
||||
6 | </head>
|
||||
5 | | <title>Document</title>
|
||||
6 | `-> </head>
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -124,13 +124,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/attribute/quotes-in-meta/input.html:5:5]
|
||||
5 | <title>Document</title>
|
||||
: ^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/attribute/quotes-in-meta/input.html:5:5]
|
||||
5 | <title>Document</title>
|
||||
: ^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
|
@ -66,7 +66,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 32,
|
||||
"end": 76,
|
||||
"end": 81,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "h2",
|
||||
@ -111,7 +111,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 83,
|
||||
"end": 179,
|
||||
"end": 183,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "p",
|
||||
|
@ -96,13 +96,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/attribute/title/input.html:5:1]
|
||||
5 | <h2 title="I'm a header">The title Attribute</h2>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/attribute/title/input.html:5:1]
|
||||
5 | <h2 title="I'm a header">The title Attribute</h2>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Attribute
|
||||
@ -140,13 +140,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/attribute/title/input.html:7:1]
|
||||
7 | <p title="I'm a tooltip">Mouse over this paragraph, to display the title attribute as a tooltip.</p>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/attribute/title/input.html:7:1]
|
||||
7 | <p title="I'm a tooltip">Mouse over this paragraph, to display the title attribute as a tooltip.</p>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Attribute
|
||||
|
@ -22,7 +22,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 17,
|
||||
"end": 336,
|
||||
"end": 344,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "html",
|
||||
@ -46,7 +46,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 34,
|
||||
"end": 295,
|
||||
"end": 302,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "head",
|
||||
@ -195,7 +195,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 271,
|
||||
"end": 286,
|
||||
"end": 294,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "title",
|
||||
|
@ -42,7 +42,8 @@
|
||||
10 | | <body>
|
||||
11 | | Test
|
||||
12 | | </body>
|
||||
13 | `-> <!-- Test -->
|
||||
13 | | <!-- Test -->
|
||||
14 | `-> </html>
|
||||
`----
|
||||
|
||||
x Element
|
||||
@ -58,7 +59,8 @@
|
||||
10 | | <body>
|
||||
11 | | Test
|
||||
12 | | </body>
|
||||
13 | `-> <!-- Test -->
|
||||
13 | | <!-- Test -->
|
||||
14 | `-> </html>
|
||||
`----
|
||||
|
||||
x Attribute
|
||||
@ -74,8 +76,8 @@
|
||||
5 | | <meta name="viewport"
|
||||
6 | | content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
|
||||
7 | | <meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||
8 | `-> <title>Document</title>
|
||||
9 | </head>
|
||||
8 | | <title>Document</title>
|
||||
9 | `-> </head>
|
||||
`----
|
||||
|
||||
x Element
|
||||
@ -85,8 +87,8 @@
|
||||
5 | | <meta name="viewport"
|
||||
6 | | content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
|
||||
7 | | <meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||
8 | `-> <title>Document</title>
|
||||
9 | </head>
|
||||
8 | | <title>Document</title>
|
||||
9 | `-> </head>
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -206,13 +208,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/comment/after-body/input.html:8:5]
|
||||
8 | <title>Document</title>
|
||||
: ^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/comment/after-body/input.html:8:5]
|
||||
8 | <title>Document</title>
|
||||
: ^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
|
@ -102,7 +102,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 84,
|
||||
"end": 107,
|
||||
"end": 111,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "p",
|
||||
|
@ -163,13 +163,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/comment/basic-1/input.html:7:1]
|
||||
7 | <p>This is a paragraph.</p>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/comment/basic-1/input.html:7:1]
|
||||
7 | <p>This is a paragraph.</p>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
|
@ -46,7 +46,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 34,
|
||||
"end": 69,
|
||||
"end": 76,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "head",
|
||||
@ -66,7 +66,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 45,
|
||||
"end": 60,
|
||||
"end": 68,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "title",
|
||||
@ -157,7 +157,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 111,
|
||||
"end": 119,
|
||||
"end": 125,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "div",
|
||||
@ -198,7 +198,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 143,
|
||||
"end": 168,
|
||||
"end": 177,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "script",
|
||||
@ -230,7 +230,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 178,
|
||||
"end": 199,
|
||||
"end": 208,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "script",
|
||||
@ -262,7 +262,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 209,
|
||||
"end": 238,
|
||||
"end": 247,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "script",
|
||||
@ -294,7 +294,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 248,
|
||||
"end": 268,
|
||||
"end": 277,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "script",
|
||||
|
@ -81,15 +81,15 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/comment/basic/input.html:3:1]
|
||||
3 | ,-> <head>
|
||||
4 | `-> <title>Document</title>
|
||||
5 | </head>
|
||||
4 | | <title>Document</title>
|
||||
5 | `-> </head>
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/comment/basic/input.html:3:1]
|
||||
3 | ,-> <head>
|
||||
4 | `-> <title>Document</title>
|
||||
5 | </head>
|
||||
4 | | <title>Document</title>
|
||||
5 | `-> </head>
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -107,13 +107,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/comment/basic/input.html:4:5]
|
||||
4 | <title>Document</title>
|
||||
: ^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/comment/basic/input.html:4:5]
|
||||
4 | <title>Document</title>
|
||||
: ^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -243,13 +243,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/comment/basic/input.html:9:1]
|
||||
9 | <!-- foo --><div>baz</div><!-- bar
|
||||
: ^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/comment/basic/input.html:9:1]
|
||||
9 | <!-- foo --><div>baz</div><!-- bar
|
||||
: ^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -295,13 +295,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/comment/basic/input.html:12:1]
|
||||
12 | <script><!-- alert(1) --></script>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/comment/basic/input.html:12:1]
|
||||
12 | <script><!-- alert(1) --></script>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -333,13 +333,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/comment/basic/input.html:13:1]
|
||||
13 | <script>alert('<!--')</script>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/comment/basic/input.html:13:1]
|
||||
13 | <script>alert('<!--')</script>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -371,13 +371,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/comment/basic/input.html:14:1]
|
||||
14 | <script>alert('<!-- foo -->')</script>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/comment/basic/input.html:14:1]
|
||||
14 | <script>alert('<!-- foo -->')</script>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -409,13 +409,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/comment/basic/input.html:15:1]
|
||||
15 | <script>alert('-->')</script>
|
||||
: ^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/comment/basic/input.html:15:1]
|
||||
15 | <script>alert('-->')</script>
|
||||
: ^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
|
@ -66,7 +66,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 32,
|
||||
"end": 55,
|
||||
"end": 59,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "p",
|
||||
@ -116,7 +116,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 152,
|
||||
"end": 179,
|
||||
"end": 183,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "p",
|
||||
|
@ -111,13 +111,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/comment/multiline/input.html:5:1]
|
||||
5 | <p>This is a paragraph.</p>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/comment/multiline/input.html:5:1]
|
||||
5 | <p>This is a paragraph.</p>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -179,13 +179,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/comment/multiline/input.html:10:1]
|
||||
10 | <p>This is a paragraph too.</p>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/comment/multiline/input.html:10:1]
|
||||
10 | <p>This is a paragraph too.</p>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
|
@ -66,7 +66,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 32,
|
||||
"end": 52,
|
||||
"end": 57,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "h1",
|
||||
@ -98,7 +98,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 59,
|
||||
"end": 81,
|
||||
"end": 85,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "p",
|
||||
|
@ -96,13 +96,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/document/input.html:5:1]
|
||||
5 | <h1>My First Heading</h1>
|
||||
: ^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/document/input.html:5:1]
|
||||
5 | <h1>My First Heading</h1>
|
||||
: ^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -134,13 +134,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/document/input.html:7:1]
|
||||
7 | <p>My first paragraph.</p>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/document/input.html:7:1]
|
||||
7 | <p>My first paragraph.</p>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
|
@ -46,7 +46,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 63,
|
||||
"end": 324,
|
||||
"end": 331,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "head",
|
||||
@ -195,7 +195,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 300,
|
||||
"end": 315,
|
||||
"end": 323,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "title",
|
||||
|
@ -73,8 +73,8 @@
|
||||
5 | | <meta name="viewport"
|
||||
6 | | content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
|
||||
7 | | <meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||
8 | `-> <title>Document</title>
|
||||
9 | </head>
|
||||
8 | | <title>Document</title>
|
||||
9 | `-> </head>
|
||||
`----
|
||||
|
||||
x Element
|
||||
@ -84,8 +84,8 @@
|
||||
5 | | <meta name="viewport"
|
||||
6 | | content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
|
||||
7 | | <meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||
8 | `-> <title>Document</title>
|
||||
9 | </head>
|
||||
8 | | <title>Document</title>
|
||||
9 | `-> </head>
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -205,13 +205,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/document_type/legacy/input.html:8:5]
|
||||
8 | <title>Document</title>
|
||||
: ^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/document_type/legacy/input.html:8:5]
|
||||
8 | <title>Document</title>
|
||||
: ^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
|
@ -33,7 +33,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 24,
|
||||
"end": 72,
|
||||
"end": 79,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "head",
|
||||
@ -53,7 +53,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 35,
|
||||
"end": 63,
|
||||
"end": 71,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "title",
|
||||
|
@ -57,15 +57,15 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/document_type/lowercase/input.html:3:1]
|
||||
3 | ,-> <head>
|
||||
4 | `-> <title>Title of the document</title>
|
||||
5 | </head>
|
||||
4 | | <title>Title of the document</title>
|
||||
5 | `-> </head>
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/document_type/lowercase/input.html:3:1]
|
||||
3 | ,-> <head>
|
||||
4 | `-> <title>Title of the document</title>
|
||||
5 | </head>
|
||||
4 | | <title>Title of the document</title>
|
||||
5 | `-> </head>
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -83,13 +83,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/document_type/lowercase/input.html:4:5]
|
||||
4 | <title>Title of the document</title>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/document_type/lowercase/input.html:4:5]
|
||||
4 | <title>Title of the document</title>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
|
@ -33,7 +33,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 24,
|
||||
"end": 72,
|
||||
"end": 79,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "head",
|
||||
@ -53,7 +53,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 35,
|
||||
"end": 63,
|
||||
"end": 71,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "title",
|
||||
|
@ -57,15 +57,15 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/document_type/uppercase/input.html:3:1]
|
||||
3 | ,-> <head>
|
||||
4 | `-> <title>Title of the document</title>
|
||||
5 | </head>
|
||||
4 | | <title>Title of the document</title>
|
||||
5 | `-> </head>
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/document_type/uppercase/input.html:3:1]
|
||||
3 | ,-> <head>
|
||||
4 | `-> <title>Title of the document</title>
|
||||
5 | </head>
|
||||
4 | | <title>Title of the document</title>
|
||||
5 | `-> </head>
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -83,13 +83,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/document_type/uppercase/input.html:4:5]
|
||||
4 | <title>Title of the document</title>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/document_type/uppercase/input.html:4:5]
|
||||
4 | <title>Title of the document</title>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
|
@ -22,7 +22,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 17,
|
||||
"end": 134,
|
||||
"end": 141,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "html",
|
||||
@ -46,7 +46,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 34,
|
||||
"end": 69,
|
||||
"end": 76,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "head",
|
||||
@ -66,7 +66,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 45,
|
||||
"end": 60,
|
||||
"end": 68,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "title",
|
||||
@ -130,7 +130,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 85,
|
||||
"end": 120,
|
||||
"end": 124,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "a",
|
||||
|
@ -36,8 +36,8 @@
|
||||
7 | |
|
||||
8 | | <a href="https://example.com">First</a>
|
||||
9 | |
|
||||
10 | `-> </body>
|
||||
11 | </html>
|
||||
10 | | </body>
|
||||
11 | `-> </html>
|
||||
`----
|
||||
|
||||
x Element
|
||||
@ -50,8 +50,8 @@
|
||||
7 | |
|
||||
8 | | <a href="https://example.com">First</a>
|
||||
9 | |
|
||||
10 | `-> </body>
|
||||
11 | </html>
|
||||
10 | | </body>
|
||||
11 | `-> </html>
|
||||
`----
|
||||
|
||||
x Attribute
|
||||
@ -63,15 +63,15 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/a/input.html:3:1]
|
||||
3 | ,-> <head>
|
||||
4 | `-> <title>Document</title>
|
||||
5 | </head>
|
||||
4 | | <title>Document</title>
|
||||
5 | `-> </head>
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/a/input.html:3:1]
|
||||
3 | ,-> <head>
|
||||
4 | `-> <title>Document</title>
|
||||
5 | </head>
|
||||
4 | | <title>Document</title>
|
||||
5 | `-> </head>
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -89,13 +89,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/a/input.html:4:5]
|
||||
4 | <title>Document</title>
|
||||
: ^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/a/input.html:4:5]
|
||||
4 | <title>Document</title>
|
||||
: ^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -175,13 +175,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/a/input.html:8:1]
|
||||
8 | <a href="https://example.com">First</a>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/a/input.html:8:1]
|
||||
8 | <a href="https://example.com">First</a>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Attribute
|
||||
|
@ -22,7 +22,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 17,
|
||||
"end": 479,
|
||||
"end": 486,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "html",
|
||||
@ -46,7 +46,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 34,
|
||||
"end": 69,
|
||||
"end": 76,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "head",
|
||||
@ -66,7 +66,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 45,
|
||||
"end": 60,
|
||||
"end": 68,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "title",
|
||||
@ -130,7 +130,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 84,
|
||||
"end": 89,
|
||||
"end": 95,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "div",
|
||||
@ -152,7 +152,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 96,
|
||||
"end": 106,
|
||||
"end": 118,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "div",
|
||||
@ -163,7 +163,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 101,
|
||||
"end": 106,
|
||||
"end": 112,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "div",
|
||||
@ -188,7 +188,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 119,
|
||||
"end": 124,
|
||||
"end": 130,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "div",
|
||||
@ -201,7 +201,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 130,
|
||||
"end": 135,
|
||||
"end": 141,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "div",
|
||||
@ -267,7 +267,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 154,
|
||||
"end": 164,
|
||||
"end": 175,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "h:ællæ",
|
||||
@ -289,7 +289,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 176,
|
||||
"end": 185,
|
||||
"end": 191,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "div",
|
||||
@ -324,7 +324,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 192,
|
||||
"end": 204,
|
||||
"end": 217,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "some-tag-1",
|
||||
@ -337,7 +337,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 217,
|
||||
"end": 229,
|
||||
"end": 242,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "some-tag-2",
|
||||
@ -359,7 +359,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 243,
|
||||
"end": 271,
|
||||
"end": 281,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "a",
|
||||
@ -383,7 +383,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 263,
|
||||
"end": 271,
|
||||
"end": 277,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "div",
|
||||
@ -418,7 +418,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 282,
|
||||
"end": 294,
|
||||
"end": 307,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "custom-tag",
|
||||
@ -431,7 +431,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 307,
|
||||
"end": 320,
|
||||
"end": 326,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "div",
|
||||
@ -463,7 +463,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 327,
|
||||
"end": 340,
|
||||
"end": 346,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "div",
|
||||
@ -495,7 +495,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 348,
|
||||
"end": 367,
|
||||
"end": 373,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "div",
|
||||
@ -635,7 +635,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 434,
|
||||
"end": 446,
|
||||
"end": 453,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "div",
|
||||
@ -667,7 +667,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 455,
|
||||
"end": 464,
|
||||
"end": 470,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "div",
|
||||
|
@ -84,8 +84,8 @@
|
||||
31 | | >
|
||||
32 | |
|
||||
33 | | <div>test</div>
|
||||
34 | `-> </body>
|
||||
35 | </html>
|
||||
34 | | </body>
|
||||
35 | `-> </html>
|
||||
`----
|
||||
|
||||
x Element
|
||||
@ -122,8 +122,8 @@
|
||||
31 | | >
|
||||
32 | |
|
||||
33 | | <div>test</div>
|
||||
34 | `-> </body>
|
||||
35 | </html>
|
||||
34 | | </body>
|
||||
35 | `-> </html>
|
||||
`----
|
||||
|
||||
x Attribute
|
||||
@ -135,15 +135,15 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/basic/input.html:3:1]
|
||||
3 | ,-> <head>
|
||||
4 | `-> <title>Document</title>
|
||||
5 | </head>
|
||||
4 | | <title>Document</title>
|
||||
5 | `-> </head>
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/basic/input.html:3:1]
|
||||
3 | ,-> <head>
|
||||
4 | `-> <title>Document</title>
|
||||
5 | </head>
|
||||
4 | | <title>Document</title>
|
||||
5 | `-> </head>
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -161,13 +161,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/basic/input.html:4:5]
|
||||
4 | <title>Document</title>
|
||||
: ^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/basic/input.html:4:5]
|
||||
4 | <title>Document</title>
|
||||
: ^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -295,13 +295,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/basic/input.html:7:1]
|
||||
7 | <div></div>
|
||||
: ^^^^^
|
||||
: ^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/basic/input.html:7:1]
|
||||
7 | <div></div>
|
||||
: ^^^^^
|
||||
: ^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -321,25 +321,25 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/basic/input.html:8:1]
|
||||
8 | <div><div></div></div>
|
||||
: ^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/basic/input.html:8:1]
|
||||
8 | <div><div></div></div>
|
||||
: ^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/basic/input.html:8:1]
|
||||
8 | <div><div></div></div>
|
||||
: ^^^^^
|
||||
: ^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/basic/input.html:8:1]
|
||||
8 | <div><div></div></div>
|
||||
: ^^^^^
|
||||
: ^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -359,25 +359,25 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/basic/input.html:9:1]
|
||||
9 | <div></div><div></div>
|
||||
: ^^^^^
|
||||
: ^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/basic/input.html:9:1]
|
||||
9 | <div></div><div></div>
|
||||
: ^^^^^
|
||||
: ^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/basic/input.html:9:1]
|
||||
9 | <div></div><div></div>
|
||||
: ^^^^^
|
||||
: ^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/basic/input.html:9:1]
|
||||
9 | <div></div><div></div>
|
||||
: ^^^^^
|
||||
: ^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -449,13 +449,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/basic/input.html:12:1]
|
||||
12 | <h:ællæ></h:ællæ>
|
||||
: ^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/basic/input.html:12:1]
|
||||
12 | <h:ællæ></h:ællæ>
|
||||
: ^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -475,13 +475,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/basic/input.html:13:1]
|
||||
13 | <div ⚡></div>
|
||||
: ^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/basic/input.html:13:1]
|
||||
13 | <div ⚡></div>
|
||||
: ^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Attribute
|
||||
@ -507,25 +507,25 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/basic/input.html:14:1]
|
||||
14 | <some-tag-1></some-tag-1><some-tag-2></some-tag-2>
|
||||
: ^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/basic/input.html:14:1]
|
||||
14 | <some-tag-1></some-tag-1><some-tag-2></some-tag-2>
|
||||
: ^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/basic/input.html:14:1]
|
||||
14 | <some-tag-1></some-tag-1><some-tag-2></some-tag-2>
|
||||
: ^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/basic/input.html:14:1]
|
||||
14 | <some-tag-1></some-tag-1><some-tag-2></some-tag-2>
|
||||
: ^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -545,13 +545,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/basic/input.html:15:1]
|
||||
15 | <a href="test.html"><div>hey</div></a>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/basic/input.html:15:1]
|
||||
15 | <a href="test.html"><div>hey</div></a>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Attribute
|
||||
@ -563,13 +563,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/basic/input.html:15:1]
|
||||
15 | <a href="test.html"><div>hey</div></a>
|
||||
: ^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/basic/input.html:15:1]
|
||||
15 | <a href="test.html"><div>hey</div></a>
|
||||
: ^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -601,25 +601,25 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/basic/input.html:16:1]
|
||||
16 | <CUSTOM-TAG></CUSTOM-TAG><div>Hello :)</div>
|
||||
: ^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/basic/input.html:16:1]
|
||||
16 | <CUSTOM-TAG></CUSTOM-TAG><div>Hello :)</div>
|
||||
: ^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/basic/input.html:16:1]
|
||||
16 | <CUSTOM-TAG></CUSTOM-TAG><div>Hello :)</div>
|
||||
: ^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/basic/input.html:16:1]
|
||||
16 | <CUSTOM-TAG></CUSTOM-TAG><div>Hello :)</div>
|
||||
: ^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -653,8 +653,8 @@
|
||||
17 | ,-> <div>
|
||||
18 | |
|
||||
19 | | test
|
||||
20 | `->
|
||||
21 | </div>
|
||||
20 | |
|
||||
21 | `-> </div>
|
||||
`----
|
||||
|
||||
x Element
|
||||
@ -662,8 +662,8 @@
|
||||
17 | ,-> <div>
|
||||
18 | |
|
||||
19 | | test
|
||||
20 | `->
|
||||
21 | </div>
|
||||
20 | |
|
||||
21 | `-> </div>
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -701,13 +701,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/basic/input.html:23:1]
|
||||
23 | <div data-test="a"></div>
|
||||
: ^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/basic/input.html:23:1]
|
||||
23 | <div data-test="a"></div>
|
||||
: ^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Attribute
|
||||
@ -830,16 +830,18 @@
|
||||
,-[$DIR/tests/fixture/element/basic/input.html:27:1]
|
||||
27 | ,-> <div
|
||||
28 | | >
|
||||
29 | `-> Test
|
||||
30 | </div
|
||||
29 | | Test
|
||||
30 | | </div
|
||||
31 | `-> >
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/basic/input.html:27:1]
|
||||
27 | ,-> <div
|
||||
28 | | >
|
||||
29 | `-> Test
|
||||
30 | </div
|
||||
29 | | Test
|
||||
30 | | </div
|
||||
31 | `-> >
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -873,13 +875,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/basic/input.html:33:1]
|
||||
33 | <div>test</div>
|
||||
: ^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/basic/input.html:33:1]
|
||||
33 | <div>test</div>
|
||||
: ^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
|
@ -0,0 +1,13 @@
|
||||
| <!DOCTYPE html>
|
||||
| <html>
|
||||
| lang="en"
|
||||
| <head>
|
||||
| <title>
|
||||
| "Document"
|
||||
| <body>
|
||||
| <div>
|
||||
| "test"
|
||||
| <p>
|
||||
| "test"
|
||||
| <p>
|
||||
| "Test"
|
@ -0,0 +1 @@
|
||||
<!doctype html><html lang="en"><head><title>Document</title></head><body><div>test</div><p>test</p><p>Test</body></html>
|
169
crates/swc_html_parser/tests/fixture/element/body/output.json
Normal file
169
crates/swc_html_parser/tests/fixture/element/body/output.json
Normal file
@ -0,0 +1,169 @@
|
||||
{
|
||||
"type": "Document",
|
||||
"span": {
|
||||
"start": 1,
|
||||
"end": 121,
|
||||
"ctxt": 0
|
||||
},
|
||||
"mode": "no-quirks",
|
||||
"children": [
|
||||
{
|
||||
"type": "DocumentType",
|
||||
"span": {
|
||||
"start": 1,
|
||||
"end": 16,
|
||||
"ctxt": 0
|
||||
},
|
||||
"name": "html",
|
||||
"publicId": null,
|
||||
"systemId": null
|
||||
},
|
||||
{
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 16,
|
||||
"end": 121,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "html",
|
||||
"namespace": "http://www.w3.org/1999/xhtml",
|
||||
"attributes": [
|
||||
{
|
||||
"type": "Attribute",
|
||||
"span": {
|
||||
"start": 22,
|
||||
"end": 31,
|
||||
"ctxt": 0
|
||||
},
|
||||
"namespace": null,
|
||||
"prefix": null,
|
||||
"name": "lang",
|
||||
"value": "en"
|
||||
}
|
||||
],
|
||||
"children": [
|
||||
{
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 32,
|
||||
"end": 68,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "head",
|
||||
"namespace": "http://www.w3.org/1999/xhtml",
|
||||
"attributes": [],
|
||||
"children": [
|
||||
{
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 38,
|
||||
"end": 61,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "title",
|
||||
"namespace": "http://www.w3.org/1999/xhtml",
|
||||
"attributes": [],
|
||||
"children": [
|
||||
{
|
||||
"type": "Text",
|
||||
"span": {
|
||||
"start": 45,
|
||||
"end": 53,
|
||||
"ctxt": 0
|
||||
},
|
||||
"value": "Document"
|
||||
}
|
||||
],
|
||||
"content": null
|
||||
}
|
||||
],
|
||||
"content": null
|
||||
},
|
||||
{
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 68,
|
||||
"end": 114,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "body",
|
||||
"namespace": "http://www.w3.org/1999/xhtml",
|
||||
"attributes": [],
|
||||
"children": [
|
||||
{
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 74,
|
||||
"end": 89,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "div",
|
||||
"namespace": "http://www.w3.org/1999/xhtml",
|
||||
"attributes": [],
|
||||
"children": [
|
||||
{
|
||||
"type": "Text",
|
||||
"span": {
|
||||
"start": 79,
|
||||
"end": 83,
|
||||
"ctxt": 0
|
||||
},
|
||||
"value": "test"
|
||||
}
|
||||
],
|
||||
"content": null
|
||||
},
|
||||
{
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 89,
|
||||
"end": 100,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "p",
|
||||
"namespace": "http://www.w3.org/1999/xhtml",
|
||||
"attributes": [],
|
||||
"children": [
|
||||
{
|
||||
"type": "Text",
|
||||
"span": {
|
||||
"start": 92,
|
||||
"end": 96,
|
||||
"ctxt": 0
|
||||
},
|
||||
"value": "test"
|
||||
}
|
||||
],
|
||||
"content": null
|
||||
},
|
||||
{
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 100,
|
||||
"end": 107,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "p",
|
||||
"namespace": "http://www.w3.org/1999/xhtml",
|
||||
"attributes": [],
|
||||
"children": [
|
||||
{
|
||||
"type": "Text",
|
||||
"span": {
|
||||
"start": 103,
|
||||
"end": 107,
|
||||
"ctxt": 0
|
||||
},
|
||||
"value": "Test"
|
||||
}
|
||||
],
|
||||
"content": null
|
||||
}
|
||||
],
|
||||
"content": null
|
||||
}
|
||||
],
|
||||
"content": null
|
||||
}
|
||||
]
|
||||
}
|
@ -0,0 +1,156 @@
|
||||
|
||||
x Document
|
||||
,-[$DIR/tests/fixture/element/body/input.html:1:1]
|
||||
1 | <!doctype html><html lang="en"><head><title>Document</title></head><body><div>test</div><p>test</p><p>Test</body></html>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/body/input.html:1:1]
|
||||
1 | <!doctype html><html lang="en"><head><title>Document</title></head><body><div>test</div><p>test</p><p>Test</body></html>
|
||||
: ^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x DocumentType
|
||||
,-[$DIR/tests/fixture/element/body/input.html:1:1]
|
||||
1 | <!doctype html><html lang="en"><head><title>Document</title></head><body><div>test</div><p>test</p><p>Test</body></html>
|
||||
: ^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/body/input.html:1:1]
|
||||
1 | <!doctype html><html lang="en"><head><title>Document</title></head><body><div>test</div><p>test</p><p>Test</body></html>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/body/input.html:1:1]
|
||||
1 | <!doctype html><html lang="en"><head><title>Document</title></head><body><div>test</div><p>test</p><p>Test</body></html>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Attribute
|
||||
,-[$DIR/tests/fixture/element/body/input.html:1:1]
|
||||
1 | <!doctype html><html lang="en"><head><title>Document</title></head><body><div>test</div><p>test</p><p>Test</body></html>
|
||||
: ^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/body/input.html:1:1]
|
||||
1 | <!doctype html><html lang="en"><head><title>Document</title></head><body><div>test</div><p>test</p><p>Test</body></html>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/body/input.html:1:1]
|
||||
1 | <!doctype html><html lang="en"><head><title>Document</title></head><body><div>test</div><p>test</p><p>Test</body></html>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/body/input.html:1:1]
|
||||
1 | <!doctype html><html lang="en"><head><title>Document</title></head><body><div>test</div><p>test</p><p>Test</body></html>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/body/input.html:1:1]
|
||||
1 | <!doctype html><html lang="en"><head><title>Document</title></head><body><div>test</div><p>test</p><p>Test</body></html>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/body/input.html:1:1]
|
||||
1 | <!doctype html><html lang="en"><head><title>Document</title></head><body><div>test</div><p>test</p><p>Test</body></html>
|
||||
: ^^^^^^^^
|
||||
`----
|
||||
|
||||
x Text
|
||||
,-[$DIR/tests/fixture/element/body/input.html:1:1]
|
||||
1 | <!doctype html><html lang="en"><head><title>Document</title></head><body><div>test</div><p>test</p><p>Test</body></html>
|
||||
: ^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/body/input.html:1:1]
|
||||
1 | <!doctype html><html lang="en"><head><title>Document</title></head><body><div>test</div><p>test</p><p>Test</body></html>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/body/input.html:1:1]
|
||||
1 | <!doctype html><html lang="en"><head><title>Document</title></head><body><div>test</div><p>test</p><p>Test</body></html>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/body/input.html:1:1]
|
||||
1 | <!doctype html><html lang="en"><head><title>Document</title></head><body><div>test</div><p>test</p><p>Test</body></html>
|
||||
: ^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/body/input.html:1:1]
|
||||
1 | <!doctype html><html lang="en"><head><title>Document</title></head><body><div>test</div><p>test</p><p>Test</body></html>
|
||||
: ^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/body/input.html:1:1]
|
||||
1 | <!doctype html><html lang="en"><head><title>Document</title></head><body><div>test</div><p>test</p><p>Test</body></html>
|
||||
: ^^^^
|
||||
`----
|
||||
|
||||
x Text
|
||||
,-[$DIR/tests/fixture/element/body/input.html:1:1]
|
||||
1 | <!doctype html><html lang="en"><head><title>Document</title></head><body><div>test</div><p>test</p><p>Test</body></html>
|
||||
: ^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/body/input.html:1:1]
|
||||
1 | <!doctype html><html lang="en"><head><title>Document</title></head><body><div>test</div><p>test</p><p>Test</body></html>
|
||||
: ^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/body/input.html:1:1]
|
||||
1 | <!doctype html><html lang="en"><head><title>Document</title></head><body><div>test</div><p>test</p><p>Test</body></html>
|
||||
: ^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/body/input.html:1:1]
|
||||
1 | <!doctype html><html lang="en"><head><title>Document</title></head><body><div>test</div><p>test</p><p>Test</body></html>
|
||||
: ^^^^
|
||||
`----
|
||||
|
||||
x Text
|
||||
,-[$DIR/tests/fixture/element/body/input.html:1:1]
|
||||
1 | <!doctype html><html lang="en"><head><title>Document</title></head><body><div>test</div><p>test</p><p>Test</body></html>
|
||||
: ^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/body/input.html:1:1]
|
||||
1 | <!doctype html><html lang="en"><head><title>Document</title></head><body><div>test</div><p>test</p><p>Test</body></html>
|
||||
: ^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/body/input.html:1:1]
|
||||
1 | <!doctype html><html lang="en"><head><title>Document</title></head><body><div>test</div><p>test</p><p>Test</body></html>
|
||||
: ^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/body/input.html:1:1]
|
||||
1 | <!doctype html><html lang="en"><head><title>Document</title></head><body><div>test</div><p>test</p><p>Test</body></html>
|
||||
: ^^^^
|
||||
`----
|
||||
|
||||
x Text
|
||||
,-[$DIR/tests/fixture/element/body/input.html:1:1]
|
||||
1 | <!doctype html><html lang="en"><head><title>Document</title></head><body><div>test</div><p>test</p><p>Test</body></html>
|
||||
: ^^^^
|
||||
`----
|
@ -22,7 +22,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 17,
|
||||
"end": 323,
|
||||
"end": 330,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "html",
|
||||
@ -46,7 +46,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 34,
|
||||
"end": 69,
|
||||
"end": 76,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "head",
|
||||
@ -66,7 +66,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 45,
|
||||
"end": 60,
|
||||
"end": 68,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "title",
|
||||
@ -130,7 +130,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 85,
|
||||
"end": 309,
|
||||
"end": 313,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "p",
|
||||
|
@ -52,8 +52,8 @@
|
||||
15 | | Thou too shalt rest.
|
||||
16 | | </p>
|
||||
17 | |
|
||||
18 | `-> </body>
|
||||
19 | </html>
|
||||
18 | | </body>
|
||||
19 | `-> </html>
|
||||
`----
|
||||
|
||||
x Element
|
||||
@ -74,8 +74,8 @@
|
||||
15 | | Thou too shalt rest.
|
||||
16 | | </p>
|
||||
17 | |
|
||||
18 | `-> </body>
|
||||
19 | </html>
|
||||
18 | | </body>
|
||||
19 | `-> </html>
|
||||
`----
|
||||
|
||||
x Attribute
|
||||
@ -87,15 +87,15 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/br/input.html:3:1]
|
||||
3 | ,-> <head>
|
||||
4 | `-> <title>Document</title>
|
||||
5 | </head>
|
||||
4 | | <title>Document</title>
|
||||
5 | `-> </head>
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/br/input.html:3:1]
|
||||
3 | ,-> <head>
|
||||
4 | `-> <title>Document</title>
|
||||
5 | </head>
|
||||
4 | | <title>Document</title>
|
||||
5 | `-> </head>
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -113,13 +113,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/br/input.html:4:5]
|
||||
4 | <title>Document</title>
|
||||
: ^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/br/input.html:4:5]
|
||||
4 | <title>Document</title>
|
||||
: ^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -221,8 +221,8 @@
|
||||
12 | | Hardly a breath;<br>
|
||||
13 | | The birds are asleep in the trees:<br>
|
||||
14 | | Wait, soon like these<br>
|
||||
15 | `-> Thou too shalt rest.
|
||||
16 | </p>
|
||||
15 | | Thou too shalt rest.
|
||||
16 | `-> </p>
|
||||
`----
|
||||
|
||||
x Element
|
||||
@ -234,8 +234,8 @@
|
||||
12 | | Hardly a breath;<br>
|
||||
13 | | The birds are asleep in the trees:<br>
|
||||
14 | | Wait, soon like these<br>
|
||||
15 | `-> Thou too shalt rest.
|
||||
16 | </p>
|
||||
15 | | Thou too shalt rest.
|
||||
16 | `-> </p>
|
||||
`----
|
||||
|
||||
x Child
|
||||
|
@ -22,7 +22,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 17,
|
||||
"end": 116,
|
||||
"end": 123,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "html",
|
||||
@ -46,7 +46,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 34,
|
||||
"end": 69,
|
||||
"end": 76,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "head",
|
||||
@ -66,7 +66,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 45,
|
||||
"end": 60,
|
||||
"end": 68,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "title",
|
||||
@ -130,7 +130,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 85,
|
||||
"end": 96,
|
||||
"end": 105,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "button",
|
||||
|
@ -36,8 +36,8 @@
|
||||
7 | |
|
||||
8 | | <button><p></button>x
|
||||
9 | |
|
||||
10 | `-> </body>
|
||||
11 | </html>
|
||||
10 | | </body>
|
||||
11 | `-> </html>
|
||||
`----
|
||||
|
||||
x Element
|
||||
@ -50,8 +50,8 @@
|
||||
7 | |
|
||||
8 | | <button><p></button>x
|
||||
9 | |
|
||||
10 | `-> </body>
|
||||
11 | </html>
|
||||
10 | | </body>
|
||||
11 | `-> </html>
|
||||
`----
|
||||
|
||||
x Attribute
|
||||
@ -63,15 +63,15 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/button/input.html:3:1]
|
||||
3 | ,-> <head>
|
||||
4 | `-> <title>Document</title>
|
||||
5 | </head>
|
||||
4 | | <title>Document</title>
|
||||
5 | `-> </head>
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/button/input.html:3:1]
|
||||
3 | ,-> <head>
|
||||
4 | `-> <title>Document</title>
|
||||
5 | </head>
|
||||
4 | | <title>Document</title>
|
||||
5 | `-> </head>
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -89,13 +89,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/button/input.html:4:5]
|
||||
4 | <title>Document</title>
|
||||
: ^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/button/input.html:4:5]
|
||||
4 | <title>Document</title>
|
||||
: ^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -175,13 +175,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/button/input.html:8:1]
|
||||
8 | <button><p></button>x
|
||||
: ^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/button/input.html:8:1]
|
||||
8 | <button><p></button>x
|
||||
: ^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
|
@ -0,0 +1,65 @@
|
||||
| <!DOCTYPE html>
|
||||
| <html>
|
||||
| lang="en"
|
||||
| <head>
|
||||
| "
|
||||
"
|
||||
| <title>
|
||||
| "Document"
|
||||
| "
|
||||
"
|
||||
| "
|
||||
"
|
||||
| <body>
|
||||
| "
|
||||
"
|
||||
| <table>
|
||||
| "
|
||||
"
|
||||
| <caption>
|
||||
| "Example Caption"
|
||||
| "
|
||||
"
|
||||
| <tbody>
|
||||
| <tr>
|
||||
| "
|
||||
"
|
||||
| <th>
|
||||
| "Login"
|
||||
| "
|
||||
"
|
||||
| <th>
|
||||
| "Email"
|
||||
| "
|
||||
"
|
||||
| "
|
||||
"
|
||||
| <tr>
|
||||
| "
|
||||
"
|
||||
| <td>
|
||||
| "user1"
|
||||
| "
|
||||
"
|
||||
| <td>
|
||||
| "user1@sample.com"
|
||||
| "
|
||||
"
|
||||
| "
|
||||
"
|
||||
| <tr>
|
||||
| "
|
||||
"
|
||||
| <td>
|
||||
| "user2"
|
||||
| "
|
||||
"
|
||||
| <td>
|
||||
| "user2@sample.com"
|
||||
| "
|
||||
"
|
||||
| "
|
||||
"
|
||||
| "
|
||||
|
||||
"
|
@ -0,0 +1,23 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Document</title>
|
||||
</head>
|
||||
<body>
|
||||
<table>
|
||||
<caption>Example Caption</caption>
|
||||
<tr>
|
||||
<th>Login</th>
|
||||
<th>Email</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>user1</td>
|
||||
<td>user1@sample.com</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>user2</td>
|
||||
<td>user2@sample.com</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
502
crates/swc_html_parser/tests/fixture/element/caption/output.json
Normal file
502
crates/swc_html_parser/tests/fixture/element/caption/output.json
Normal file
@ -0,0 +1,502 @@
|
||||
{
|
||||
"type": "Document",
|
||||
"span": {
|
||||
"start": 1,
|
||||
"end": 372,
|
||||
"ctxt": 0
|
||||
},
|
||||
"mode": "no-quirks",
|
||||
"children": [
|
||||
{
|
||||
"type": "DocumentType",
|
||||
"span": {
|
||||
"start": 1,
|
||||
"end": 16,
|
||||
"ctxt": 0
|
||||
},
|
||||
"name": "html",
|
||||
"publicId": null,
|
||||
"systemId": null
|
||||
},
|
||||
{
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 17,
|
||||
"end": 372,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "html",
|
||||
"namespace": "http://www.w3.org/1999/xhtml",
|
||||
"attributes": [
|
||||
{
|
||||
"type": "Attribute",
|
||||
"span": {
|
||||
"start": 23,
|
||||
"end": 32,
|
||||
"ctxt": 0
|
||||
},
|
||||
"namespace": null,
|
||||
"prefix": null,
|
||||
"name": "lang",
|
||||
"value": "en"
|
||||
}
|
||||
],
|
||||
"children": [
|
||||
{
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 34,
|
||||
"end": 76,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "head",
|
||||
"namespace": "http://www.w3.org/1999/xhtml",
|
||||
"attributes": [],
|
||||
"children": [
|
||||
{
|
||||
"type": "Text",
|
||||
"span": {
|
||||
"start": 40,
|
||||
"end": 45,
|
||||
"ctxt": 0
|
||||
},
|
||||
"value": "\n "
|
||||
},
|
||||
{
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 45,
|
||||
"end": 68,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "title",
|
||||
"namespace": "http://www.w3.org/1999/xhtml",
|
||||
"attributes": [],
|
||||
"children": [
|
||||
{
|
||||
"type": "Text",
|
||||
"span": {
|
||||
"start": 52,
|
||||
"end": 60,
|
||||
"ctxt": 0
|
||||
},
|
||||
"value": "Document"
|
||||
}
|
||||
],
|
||||
"content": null
|
||||
},
|
||||
{
|
||||
"type": "Text",
|
||||
"span": {
|
||||
"start": 68,
|
||||
"end": 69,
|
||||
"ctxt": 0
|
||||
},
|
||||
"value": "\n"
|
||||
}
|
||||
],
|
||||
"content": null
|
||||
},
|
||||
{
|
||||
"type": "Text",
|
||||
"span": {
|
||||
"start": 76,
|
||||
"end": 77,
|
||||
"ctxt": 0
|
||||
},
|
||||
"value": "\n"
|
||||
},
|
||||
{
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 77,
|
||||
"end": 365,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "body",
|
||||
"namespace": "http://www.w3.org/1999/xhtml",
|
||||
"attributes": [],
|
||||
"children": [
|
||||
{
|
||||
"type": "Text",
|
||||
"span": {
|
||||
"start": 83,
|
||||
"end": 84,
|
||||
"ctxt": 0
|
||||
},
|
||||
"value": "\n"
|
||||
},
|
||||
{
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 84,
|
||||
"end": 356,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "table",
|
||||
"namespace": "http://www.w3.org/1999/xhtml",
|
||||
"attributes": [],
|
||||
"children": [
|
||||
{
|
||||
"type": "Text",
|
||||
"span": {
|
||||
"start": 91,
|
||||
"end": 105,
|
||||
"ctxt": 0
|
||||
},
|
||||
"value": "\n "
|
||||
},
|
||||
{
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 96,
|
||||
"end": 130,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "caption",
|
||||
"namespace": "http://www.w3.org/1999/xhtml",
|
||||
"attributes": [],
|
||||
"children": [
|
||||
{
|
||||
"type": "Text",
|
||||
"span": {
|
||||
"start": 105,
|
||||
"end": 120,
|
||||
"ctxt": 0
|
||||
},
|
||||
"value": "Example Caption"
|
||||
}
|
||||
],
|
||||
"content": null
|
||||
},
|
||||
{
|
||||
"type": "Text",
|
||||
"span": {
|
||||
"start": 130,
|
||||
"end": 139,
|
||||
"ctxt": 0
|
||||
},
|
||||
"value": "\n "
|
||||
},
|
||||
{
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 0,
|
||||
"end": 356,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "tbody",
|
||||
"namespace": "http://www.w3.org/1999/xhtml",
|
||||
"attributes": [],
|
||||
"children": [
|
||||
{
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 135,
|
||||
"end": 195,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "tr",
|
||||
"namespace": "http://www.w3.org/1999/xhtml",
|
||||
"attributes": [],
|
||||
"children": [
|
||||
{
|
||||
"type": "Text",
|
||||
"span": {
|
||||
"start": 139,
|
||||
"end": 152,
|
||||
"ctxt": 0
|
||||
},
|
||||
"value": "\n "
|
||||
},
|
||||
{
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 148,
|
||||
"end": 162,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "th",
|
||||
"namespace": "http://www.w3.org/1999/xhtml",
|
||||
"attributes": [],
|
||||
"children": [
|
||||
{
|
||||
"type": "Text",
|
||||
"span": {
|
||||
"start": 152,
|
||||
"end": 157,
|
||||
"ctxt": 0
|
||||
},
|
||||
"value": "Login"
|
||||
}
|
||||
],
|
||||
"content": null
|
||||
},
|
||||
{
|
||||
"type": "Text",
|
||||
"span": {
|
||||
"start": 162,
|
||||
"end": 175,
|
||||
"ctxt": 0
|
||||
},
|
||||
"value": "\n "
|
||||
},
|
||||
{
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 171,
|
||||
"end": 185,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "th",
|
||||
"namespace": "http://www.w3.org/1999/xhtml",
|
||||
"attributes": [],
|
||||
"children": [
|
||||
{
|
||||
"type": "Text",
|
||||
"span": {
|
||||
"start": 175,
|
||||
"end": 180,
|
||||
"ctxt": 0
|
||||
},
|
||||
"value": "Email"
|
||||
}
|
||||
],
|
||||
"content": null
|
||||
},
|
||||
{
|
||||
"type": "Text",
|
||||
"span": {
|
||||
"start": 185,
|
||||
"end": 195,
|
||||
"ctxt": 0
|
||||
},
|
||||
"value": "\n "
|
||||
}
|
||||
],
|
||||
"content": null
|
||||
},
|
||||
{
|
||||
"type": "Text",
|
||||
"span": {
|
||||
"start": 195,
|
||||
"end": 204,
|
||||
"ctxt": 0
|
||||
},
|
||||
"value": "\n "
|
||||
},
|
||||
{
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 200,
|
||||
"end": 271,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "tr",
|
||||
"namespace": "http://www.w3.org/1999/xhtml",
|
||||
"attributes": [],
|
||||
"children": [
|
||||
{
|
||||
"type": "Text",
|
||||
"span": {
|
||||
"start": 204,
|
||||
"end": 217,
|
||||
"ctxt": 0
|
||||
},
|
||||
"value": "\n "
|
||||
},
|
||||
{
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 213,
|
||||
"end": 227,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "td",
|
||||
"namespace": "http://www.w3.org/1999/xhtml",
|
||||
"attributes": [],
|
||||
"children": [
|
||||
{
|
||||
"type": "Text",
|
||||
"span": {
|
||||
"start": 217,
|
||||
"end": 222,
|
||||
"ctxt": 0
|
||||
},
|
||||
"value": "user1"
|
||||
}
|
||||
],
|
||||
"content": null
|
||||
},
|
||||
{
|
||||
"type": "Text",
|
||||
"span": {
|
||||
"start": 227,
|
||||
"end": 240,
|
||||
"ctxt": 0
|
||||
},
|
||||
"value": "\n "
|
||||
},
|
||||
{
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 236,
|
||||
"end": 261,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "td",
|
||||
"namespace": "http://www.w3.org/1999/xhtml",
|
||||
"attributes": [],
|
||||
"children": [
|
||||
{
|
||||
"type": "Text",
|
||||
"span": {
|
||||
"start": 240,
|
||||
"end": 256,
|
||||
"ctxt": 0
|
||||
},
|
||||
"value": "user1@sample.com"
|
||||
}
|
||||
],
|
||||
"content": null
|
||||
},
|
||||
{
|
||||
"type": "Text",
|
||||
"span": {
|
||||
"start": 261,
|
||||
"end": 271,
|
||||
"ctxt": 0
|
||||
},
|
||||
"value": "\n "
|
||||
}
|
||||
],
|
||||
"content": null
|
||||
},
|
||||
{
|
||||
"type": "Text",
|
||||
"span": {
|
||||
"start": 271,
|
||||
"end": 280,
|
||||
"ctxt": 0
|
||||
},
|
||||
"value": "\n "
|
||||
},
|
||||
{
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 276,
|
||||
"end": 347,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "tr",
|
||||
"namespace": "http://www.w3.org/1999/xhtml",
|
||||
"attributes": [],
|
||||
"children": [
|
||||
{
|
||||
"type": "Text",
|
||||
"span": {
|
||||
"start": 280,
|
||||
"end": 293,
|
||||
"ctxt": 0
|
||||
},
|
||||
"value": "\n "
|
||||
},
|
||||
{
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 289,
|
||||
"end": 303,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "td",
|
||||
"namespace": "http://www.w3.org/1999/xhtml",
|
||||
"attributes": [],
|
||||
"children": [
|
||||
{
|
||||
"type": "Text",
|
||||
"span": {
|
||||
"start": 293,
|
||||
"end": 298,
|
||||
"ctxt": 0
|
||||
},
|
||||
"value": "user2"
|
||||
}
|
||||
],
|
||||
"content": null
|
||||
},
|
||||
{
|
||||
"type": "Text",
|
||||
"span": {
|
||||
"start": 303,
|
||||
"end": 316,
|
||||
"ctxt": 0
|
||||
},
|
||||
"value": "\n "
|
||||
},
|
||||
{
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 312,
|
||||
"end": 337,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "td",
|
||||
"namespace": "http://www.w3.org/1999/xhtml",
|
||||
"attributes": [],
|
||||
"children": [
|
||||
{
|
||||
"type": "Text",
|
||||
"span": {
|
||||
"start": 316,
|
||||
"end": 332,
|
||||
"ctxt": 0
|
||||
},
|
||||
"value": "user2@sample.com"
|
||||
}
|
||||
],
|
||||
"content": null
|
||||
},
|
||||
{
|
||||
"type": "Text",
|
||||
"span": {
|
||||
"start": 337,
|
||||
"end": 347,
|
||||
"ctxt": 0
|
||||
},
|
||||
"value": "\n "
|
||||
}
|
||||
],
|
||||
"content": null
|
||||
},
|
||||
{
|
||||
"type": "Text",
|
||||
"span": {
|
||||
"start": 347,
|
||||
"end": 356,
|
||||
"ctxt": 0
|
||||
},
|
||||
"value": "\n"
|
||||
}
|
||||
],
|
||||
"content": null
|
||||
}
|
||||
],
|
||||
"content": null
|
||||
},
|
||||
{
|
||||
"type": "Text",
|
||||
"span": {
|
||||
"start": 356,
|
||||
"end": 365,
|
||||
"ctxt": 0
|
||||
},
|
||||
"value": "\n\n"
|
||||
}
|
||||
],
|
||||
"content": null
|
||||
}
|
||||
],
|
||||
"content": null
|
||||
}
|
||||
]
|
||||
}
|
@ -0,0 +1,673 @@
|
||||
|
||||
x Document
|
||||
,-[$DIR/tests/fixture/element/caption/input.html:1:1]
|
||||
1 | ,-> <!doctype html>
|
||||
2 | | <html lang="en">
|
||||
3 | | <head>
|
||||
4 | | <title>Document</title>
|
||||
5 | | </head>
|
||||
6 | | <body>
|
||||
7 | | <table>
|
||||
8 | | <caption>Example Caption</caption>
|
||||
9 | | <tr>
|
||||
10 | | <th>Login</th>
|
||||
11 | | <th>Email</th>
|
||||
12 | | </tr>
|
||||
13 | | <tr>
|
||||
14 | | <td>user1</td>
|
||||
15 | | <td>user1@sample.com</td>
|
||||
16 | | </tr>
|
||||
17 | | <tr>
|
||||
18 | | <td>user2</td>
|
||||
19 | | <td>user2@sample.com</td>
|
||||
20 | | </tr>
|
||||
21 | | </table>
|
||||
22 | | </body>
|
||||
23 | `-> </html>
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/caption/input.html:1:1]
|
||||
1 | <!doctype html>
|
||||
: ^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x DocumentType
|
||||
,-[$DIR/tests/fixture/element/caption/input.html:1:1]
|
||||
1 | <!doctype html>
|
||||
: ^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/caption/input.html:2:1]
|
||||
2 | ,-> <html lang="en">
|
||||
3 | | <head>
|
||||
4 | | <title>Document</title>
|
||||
5 | | </head>
|
||||
6 | | <body>
|
||||
7 | | <table>
|
||||
8 | | <caption>Example Caption</caption>
|
||||
9 | | <tr>
|
||||
10 | | <th>Login</th>
|
||||
11 | | <th>Email</th>
|
||||
12 | | </tr>
|
||||
13 | | <tr>
|
||||
14 | | <td>user1</td>
|
||||
15 | | <td>user1@sample.com</td>
|
||||
16 | | </tr>
|
||||
17 | | <tr>
|
||||
18 | | <td>user2</td>
|
||||
19 | | <td>user2@sample.com</td>
|
||||
20 | | </tr>
|
||||
21 | | </table>
|
||||
22 | | </body>
|
||||
23 | `-> </html>
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/caption/input.html:2:1]
|
||||
2 | ,-> <html lang="en">
|
||||
3 | | <head>
|
||||
4 | | <title>Document</title>
|
||||
5 | | </head>
|
||||
6 | | <body>
|
||||
7 | | <table>
|
||||
8 | | <caption>Example Caption</caption>
|
||||
9 | | <tr>
|
||||
10 | | <th>Login</th>
|
||||
11 | | <th>Email</th>
|
||||
12 | | </tr>
|
||||
13 | | <tr>
|
||||
14 | | <td>user1</td>
|
||||
15 | | <td>user1@sample.com</td>
|
||||
16 | | </tr>
|
||||
17 | | <tr>
|
||||
18 | | <td>user2</td>
|
||||
19 | | <td>user2@sample.com</td>
|
||||
20 | | </tr>
|
||||
21 | | </table>
|
||||
22 | | </body>
|
||||
23 | `-> </html>
|
||||
`----
|
||||
|
||||
x Attribute
|
||||
,-[$DIR/tests/fixture/element/caption/input.html:2:1]
|
||||
2 | <html lang="en">
|
||||
: ^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/caption/input.html:3:1]
|
||||
3 | ,-> <head>
|
||||
4 | | <title>Document</title>
|
||||
5 | `-> </head>
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/caption/input.html:3:1]
|
||||
3 | ,-> <head>
|
||||
4 | | <title>Document</title>
|
||||
5 | `-> </head>
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/caption/input.html:3:1]
|
||||
3 | ,-> <head>
|
||||
4 | `-> <title>Document</title>
|
||||
`----
|
||||
|
||||
x Text
|
||||
,-[$DIR/tests/fixture/element/caption/input.html:3:1]
|
||||
3 | ,-> <head>
|
||||
4 | `-> <title>Document</title>
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/caption/input.html:4:5]
|
||||
4 | <title>Document</title>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/caption/input.html:4:5]
|
||||
4 | <title>Document</title>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/caption/input.html:4:5]
|
||||
4 | <title>Document</title>
|
||||
: ^^^^^^^^
|
||||
`----
|
||||
|
||||
x Text
|
||||
,-[$DIR/tests/fixture/element/caption/input.html:4:5]
|
||||
4 | <title>Document</title>
|
||||
: ^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/caption/input.html:4:5]
|
||||
4 | <title>Document</title>
|
||||
: ^
|
||||
5 | </head>
|
||||
`----
|
||||
|
||||
x Text
|
||||
,-[$DIR/tests/fixture/element/caption/input.html:4:5]
|
||||
4 | <title>Document</title>
|
||||
: ^
|
||||
5 | </head>
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/caption/input.html:5:1]
|
||||
5 | </head>
|
||||
: ^
|
||||
6 | <body>
|
||||
`----
|
||||
|
||||
x Text
|
||||
,-[$DIR/tests/fixture/element/caption/input.html:5:1]
|
||||
5 | </head>
|
||||
: ^
|
||||
6 | <body>
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/caption/input.html:6:1]
|
||||
6 | ,-> <body>
|
||||
7 | | <table>
|
||||
8 | | <caption>Example Caption</caption>
|
||||
9 | | <tr>
|
||||
10 | | <th>Login</th>
|
||||
11 | | <th>Email</th>
|
||||
12 | | </tr>
|
||||
13 | | <tr>
|
||||
14 | | <td>user1</td>
|
||||
15 | | <td>user1@sample.com</td>
|
||||
16 | | </tr>
|
||||
17 | | <tr>
|
||||
18 | | <td>user2</td>
|
||||
19 | | <td>user2@sample.com</td>
|
||||
20 | | </tr>
|
||||
21 | | </table>
|
||||
22 | `-> </body>
|
||||
23 | </html>
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/caption/input.html:6:1]
|
||||
6 | ,-> <body>
|
||||
7 | | <table>
|
||||
8 | | <caption>Example Caption</caption>
|
||||
9 | | <tr>
|
||||
10 | | <th>Login</th>
|
||||
11 | | <th>Email</th>
|
||||
12 | | </tr>
|
||||
13 | | <tr>
|
||||
14 | | <td>user1</td>
|
||||
15 | | <td>user1@sample.com</td>
|
||||
16 | | </tr>
|
||||
17 | | <tr>
|
||||
18 | | <td>user2</td>
|
||||
19 | | <td>user2@sample.com</td>
|
||||
20 | | </tr>
|
||||
21 | | </table>
|
||||
22 | `-> </body>
|
||||
23 | </html>
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/caption/input.html:6:1]
|
||||
6 | <body>
|
||||
: ^
|
||||
7 | <table>
|
||||
`----
|
||||
|
||||
x Text
|
||||
,-[$DIR/tests/fixture/element/caption/input.html:6:1]
|
||||
6 | <body>
|
||||
: ^
|
||||
7 | <table>
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/caption/input.html:7:1]
|
||||
7 | ,-> <table>
|
||||
8 | | <caption>Example Caption</caption>
|
||||
9 | | <tr>
|
||||
10 | | <th>Login</th>
|
||||
11 | | <th>Email</th>
|
||||
12 | | </tr>
|
||||
13 | | <tr>
|
||||
14 | | <td>user1</td>
|
||||
15 | | <td>user1@sample.com</td>
|
||||
16 | | </tr>
|
||||
17 | | <tr>
|
||||
18 | | <td>user2</td>
|
||||
19 | | <td>user2@sample.com</td>
|
||||
20 | | </tr>
|
||||
21 | `-> </table>
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/caption/input.html:7:1]
|
||||
7 | ,-> <table>
|
||||
8 | | <caption>Example Caption</caption>
|
||||
9 | | <tr>
|
||||
10 | | <th>Login</th>
|
||||
11 | | <th>Email</th>
|
||||
12 | | </tr>
|
||||
13 | | <tr>
|
||||
14 | | <td>user1</td>
|
||||
15 | | <td>user1@sample.com</td>
|
||||
16 | | </tr>
|
||||
17 | | <tr>
|
||||
18 | | <td>user2</td>
|
||||
19 | | <td>user2@sample.com</td>
|
||||
20 | | </tr>
|
||||
21 | `-> </table>
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/caption/input.html:7:1]
|
||||
7 | ,-> <table>
|
||||
8 | `-> <caption>Example Caption</caption>
|
||||
`----
|
||||
|
||||
x Text
|
||||
,-[$DIR/tests/fixture/element/caption/input.html:7:1]
|
||||
7 | ,-> <table>
|
||||
8 | `-> <caption>Example Caption</caption>
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/caption/input.html:8:5]
|
||||
8 | <caption>Example Caption</caption>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/caption/input.html:8:5]
|
||||
8 | <caption>Example Caption</caption>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/caption/input.html:8:5]
|
||||
8 | <caption>Example Caption</caption>
|
||||
: ^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Text
|
||||
,-[$DIR/tests/fixture/element/caption/input.html:8:5]
|
||||
8 | <caption>Example Caption</caption>
|
||||
: ^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/caption/input.html:8:5]
|
||||
8 | ,-> <caption>Example Caption</caption>
|
||||
9 | `-> <tr>
|
||||
`----
|
||||
|
||||
x Text
|
||||
,-[$DIR/tests/fixture/element/caption/input.html:8:5]
|
||||
8 | ,-> <caption>Example Caption</caption>
|
||||
9 | `-> <tr>
|
||||
`----
|
||||
|
||||
x Child
|
||||
|
||||
x Element
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/caption/input.html:9:5]
|
||||
9 | ,-> <tr>
|
||||
10 | | <th>Login</th>
|
||||
11 | | <th>Email</th>
|
||||
12 | `-> </tr>
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/caption/input.html:9:5]
|
||||
9 | ,-> <tr>
|
||||
10 | | <th>Login</th>
|
||||
11 | | <th>Email</th>
|
||||
12 | `-> </tr>
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/caption/input.html:9:5]
|
||||
9 | ,-> <tr>
|
||||
10 | `-> <th>Login</th>
|
||||
`----
|
||||
|
||||
x Text
|
||||
,-[$DIR/tests/fixture/element/caption/input.html:9:5]
|
||||
9 | ,-> <tr>
|
||||
10 | `-> <th>Login</th>
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/caption/input.html:10:9]
|
||||
10 | <th>Login</th>
|
||||
: ^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/caption/input.html:10:9]
|
||||
10 | <th>Login</th>
|
||||
: ^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/caption/input.html:10:9]
|
||||
10 | <th>Login</th>
|
||||
: ^^^^^
|
||||
`----
|
||||
|
||||
x Text
|
||||
,-[$DIR/tests/fixture/element/caption/input.html:10:9]
|
||||
10 | <th>Login</th>
|
||||
: ^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/caption/input.html:10:9]
|
||||
10 | ,-> <th>Login</th>
|
||||
11 | `-> <th>Email</th>
|
||||
`----
|
||||
|
||||
x Text
|
||||
,-[$DIR/tests/fixture/element/caption/input.html:10:9]
|
||||
10 | ,-> <th>Login</th>
|
||||
11 | `-> <th>Email</th>
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/caption/input.html:11:9]
|
||||
11 | <th>Email</th>
|
||||
: ^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/caption/input.html:11:9]
|
||||
11 | <th>Email</th>
|
||||
: ^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/caption/input.html:11:9]
|
||||
11 | <th>Email</th>
|
||||
: ^^^^^
|
||||
`----
|
||||
|
||||
x Text
|
||||
,-[$DIR/tests/fixture/element/caption/input.html:11:9]
|
||||
11 | <th>Email</th>
|
||||
: ^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/caption/input.html:11:9]
|
||||
11 | ,-> <th>Email</th>
|
||||
12 | `-> </tr>
|
||||
`----
|
||||
|
||||
x Text
|
||||
,-[$DIR/tests/fixture/element/caption/input.html:11:9]
|
||||
11 | ,-> <th>Email</th>
|
||||
12 | `-> </tr>
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/caption/input.html:12:5]
|
||||
12 | ,-> </tr>
|
||||
13 | `-> <tr>
|
||||
`----
|
||||
|
||||
x Text
|
||||
,-[$DIR/tests/fixture/element/caption/input.html:12:5]
|
||||
12 | ,-> </tr>
|
||||
13 | `-> <tr>
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/caption/input.html:13:5]
|
||||
13 | ,-> <tr>
|
||||
14 | | <td>user1</td>
|
||||
15 | | <td>user1@sample.com</td>
|
||||
16 | `-> </tr>
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/caption/input.html:13:5]
|
||||
13 | ,-> <tr>
|
||||
14 | | <td>user1</td>
|
||||
15 | | <td>user1@sample.com</td>
|
||||
16 | `-> </tr>
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/caption/input.html:13:5]
|
||||
13 | ,-> <tr>
|
||||
14 | `-> <td>user1</td>
|
||||
`----
|
||||
|
||||
x Text
|
||||
,-[$DIR/tests/fixture/element/caption/input.html:13:5]
|
||||
13 | ,-> <tr>
|
||||
14 | `-> <td>user1</td>
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/caption/input.html:14:9]
|
||||
14 | <td>user1</td>
|
||||
: ^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/caption/input.html:14:9]
|
||||
14 | <td>user1</td>
|
||||
: ^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/caption/input.html:14:9]
|
||||
14 | <td>user1</td>
|
||||
: ^^^^^
|
||||
`----
|
||||
|
||||
x Text
|
||||
,-[$DIR/tests/fixture/element/caption/input.html:14:9]
|
||||
14 | <td>user1</td>
|
||||
: ^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/caption/input.html:14:9]
|
||||
14 | ,-> <td>user1</td>
|
||||
15 | `-> <td>user1@sample.com</td>
|
||||
`----
|
||||
|
||||
x Text
|
||||
,-[$DIR/tests/fixture/element/caption/input.html:14:9]
|
||||
14 | ,-> <td>user1</td>
|
||||
15 | `-> <td>user1@sample.com</td>
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/caption/input.html:15:9]
|
||||
15 | <td>user1@sample.com</td>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/caption/input.html:15:9]
|
||||
15 | <td>user1@sample.com</td>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/caption/input.html:15:9]
|
||||
15 | <td>user1@sample.com</td>
|
||||
: ^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Text
|
||||
,-[$DIR/tests/fixture/element/caption/input.html:15:9]
|
||||
15 | <td>user1@sample.com</td>
|
||||
: ^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/caption/input.html:15:9]
|
||||
15 | ,-> <td>user1@sample.com</td>
|
||||
16 | `-> </tr>
|
||||
`----
|
||||
|
||||
x Text
|
||||
,-[$DIR/tests/fixture/element/caption/input.html:15:9]
|
||||
15 | ,-> <td>user1@sample.com</td>
|
||||
16 | `-> </tr>
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/caption/input.html:16:5]
|
||||
16 | ,-> </tr>
|
||||
17 | `-> <tr>
|
||||
`----
|
||||
|
||||
x Text
|
||||
,-[$DIR/tests/fixture/element/caption/input.html:16:5]
|
||||
16 | ,-> </tr>
|
||||
17 | `-> <tr>
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/caption/input.html:17:5]
|
||||
17 | ,-> <tr>
|
||||
18 | | <td>user2</td>
|
||||
19 | | <td>user2@sample.com</td>
|
||||
20 | `-> </tr>
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/caption/input.html:17:5]
|
||||
17 | ,-> <tr>
|
||||
18 | | <td>user2</td>
|
||||
19 | | <td>user2@sample.com</td>
|
||||
20 | `-> </tr>
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/caption/input.html:17:5]
|
||||
17 | ,-> <tr>
|
||||
18 | `-> <td>user2</td>
|
||||
`----
|
||||
|
||||
x Text
|
||||
,-[$DIR/tests/fixture/element/caption/input.html:17:5]
|
||||
17 | ,-> <tr>
|
||||
18 | `-> <td>user2</td>
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/caption/input.html:18:9]
|
||||
18 | <td>user2</td>
|
||||
: ^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/caption/input.html:18:9]
|
||||
18 | <td>user2</td>
|
||||
: ^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/caption/input.html:18:9]
|
||||
18 | <td>user2</td>
|
||||
: ^^^^^
|
||||
`----
|
||||
|
||||
x Text
|
||||
,-[$DIR/tests/fixture/element/caption/input.html:18:9]
|
||||
18 | <td>user2</td>
|
||||
: ^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/caption/input.html:18:9]
|
||||
18 | ,-> <td>user2</td>
|
||||
19 | `-> <td>user2@sample.com</td>
|
||||
`----
|
||||
|
||||
x Text
|
||||
,-[$DIR/tests/fixture/element/caption/input.html:18:9]
|
||||
18 | ,-> <td>user2</td>
|
||||
19 | `-> <td>user2@sample.com</td>
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/caption/input.html:19:9]
|
||||
19 | <td>user2@sample.com</td>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/caption/input.html:19:9]
|
||||
19 | <td>user2@sample.com</td>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/caption/input.html:19:9]
|
||||
19 | <td>user2@sample.com</td>
|
||||
: ^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Text
|
||||
,-[$DIR/tests/fixture/element/caption/input.html:19:9]
|
||||
19 | <td>user2@sample.com</td>
|
||||
: ^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/caption/input.html:19:9]
|
||||
19 | ,-> <td>user2@sample.com</td>
|
||||
20 | `-> </tr>
|
||||
`----
|
||||
|
||||
x Text
|
||||
,-[$DIR/tests/fixture/element/caption/input.html:19:9]
|
||||
19 | ,-> <td>user2@sample.com</td>
|
||||
20 | `-> </tr>
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/caption/input.html:20:5]
|
||||
20 | ,-> </tr>
|
||||
21 | `-> </table>
|
||||
`----
|
||||
|
||||
x Text
|
||||
,-[$DIR/tests/fixture/element/caption/input.html:20:5]
|
||||
20 | ,-> </tr>
|
||||
21 | `-> </table>
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/caption/input.html:21:1]
|
||||
21 | ,-> </table>
|
||||
22 | `-> </body>
|
||||
23 | </html>
|
||||
`----
|
||||
|
||||
x Text
|
||||
,-[$DIR/tests/fixture/element/caption/input.html:21:1]
|
||||
21 | ,-> </table>
|
||||
22 | `-> </body>
|
||||
23 | </html>
|
||||
`----
|
@ -22,7 +22,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 17,
|
||||
"end": 187,
|
||||
"end": 194,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "html",
|
||||
@ -46,7 +46,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 34,
|
||||
"end": 69,
|
||||
"end": 76,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "head",
|
||||
@ -66,7 +66,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 45,
|
||||
"end": 60,
|
||||
"end": 68,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "title",
|
||||
@ -130,7 +130,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 84,
|
||||
"end": 137,
|
||||
"end": 178,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "code",
|
||||
@ -154,7 +154,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 108,
|
||||
"end": 137,
|
||||
"end": 171,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "div",
|
||||
@ -165,7 +165,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 113,
|
||||
"end": 137,
|
||||
"end": 165,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "code",
|
||||
@ -176,7 +176,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 119,
|
||||
"end": 137,
|
||||
"end": 158,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "code",
|
||||
@ -187,7 +187,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 125,
|
||||
"end": 137,
|
||||
"end": 151,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "code",
|
||||
@ -198,7 +198,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 131,
|
||||
"end": 137,
|
||||
"end": 144,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "code",
|
||||
|
@ -32,8 +32,8 @@
|
||||
5 | | </head>
|
||||
6 | | <body>
|
||||
7 | | <code some-attribute=""><div><code><code><code><code></code></code></code></code></div></code>
|
||||
8 | `-> </body>
|
||||
9 | </html>
|
||||
8 | | </body>
|
||||
9 | `-> </html>
|
||||
`----
|
||||
|
||||
x Element
|
||||
@ -44,8 +44,8 @@
|
||||
5 | | </head>
|
||||
6 | | <body>
|
||||
7 | | <code some-attribute=""><div><code><code><code><code></code></code></code></code></div></code>
|
||||
8 | `-> </body>
|
||||
9 | </html>
|
||||
8 | | </body>
|
||||
9 | `-> </html>
|
||||
`----
|
||||
|
||||
x Attribute
|
||||
@ -57,15 +57,15 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/code/input.html:3:1]
|
||||
3 | ,-> <head>
|
||||
4 | `-> <title>Document</title>
|
||||
5 | </head>
|
||||
4 | | <title>Document</title>
|
||||
5 | `-> </head>
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/code/input.html:3:1]
|
||||
3 | ,-> <head>
|
||||
4 | `-> <title>Document</title>
|
||||
5 | </head>
|
||||
4 | | <title>Document</title>
|
||||
5 | `-> </head>
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -83,13 +83,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/code/input.html:4:5]
|
||||
4 | <title>Document</title>
|
||||
: ^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/code/input.html:4:5]
|
||||
4 | <title>Document</title>
|
||||
: ^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -165,13 +165,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/code/input.html:7:1]
|
||||
7 | <code some-attribute=""><div><code><code><code><code></code></code></code></code></div></code>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/code/input.html:7:1]
|
||||
7 | <code some-attribute=""><div><code><code><code><code></code></code></code></code></div></code>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Attribute
|
||||
@ -183,61 +183,61 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/code/input.html:7:1]
|
||||
7 | <code some-attribute=""><div><code><code><code><code></code></code></code></code></div></code>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/code/input.html:7:1]
|
||||
7 | <code some-attribute=""><div><code><code><code><code></code></code></code></code></div></code>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/code/input.html:7:1]
|
||||
7 | <code some-attribute=""><div><code><code><code><code></code></code></code></code></div></code>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/code/input.html:7:1]
|
||||
7 | <code some-attribute=""><div><code><code><code><code></code></code></code></code></div></code>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/code/input.html:7:1]
|
||||
7 | <code some-attribute=""><div><code><code><code><code></code></code></code></code></div></code>
|
||||
: ^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/code/input.html:7:1]
|
||||
7 | <code some-attribute=""><div><code><code><code><code></code></code></code></code></div></code>
|
||||
: ^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/code/input.html:7:1]
|
||||
7 | <code some-attribute=""><div><code><code><code><code></code></code></code></code></div></code>
|
||||
: ^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/code/input.html:7:1]
|
||||
7 | <code some-attribute=""><div><code><code><code><code></code></code></code></code></div></code>
|
||||
: ^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/code/input.html:7:1]
|
||||
7 | <code some-attribute=""><div><code><code><code><code></code></code></code></code></div></code>
|
||||
: ^^^^^^
|
||||
: ^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/code/input.html:7:1]
|
||||
7 | <code some-attribute=""><div><code><code><code><code></code></code></code></code></div></code>
|
||||
: ^^^^^^
|
||||
: ^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
|
@ -0,0 +1,65 @@
|
||||
| <!DOCTYPE html>
|
||||
| <html>
|
||||
| lang="en"
|
||||
| <head>
|
||||
| "
|
||||
"
|
||||
| <title>
|
||||
| "Document"
|
||||
| "
|
||||
"
|
||||
| "
|
||||
"
|
||||
| <body>
|
||||
| "
|
||||
"
|
||||
| <table>
|
||||
| "
|
||||
"
|
||||
| <caption>
|
||||
| "Superheros and sidekicks"
|
||||
| "
|
||||
"
|
||||
| <colgroup>
|
||||
| <col>
|
||||
| <col>
|
||||
| class="batman"
|
||||
| span="2"
|
||||
| <col>
|
||||
| class="flash"
|
||||
| span="2"
|
||||
| "
|
||||
"
|
||||
| <tbody>
|
||||
| <tr>
|
||||
| "
|
||||
"
|
||||
| <td>
|
||||
| " "
|
||||
| "
|
||||
"
|
||||
| <th>
|
||||
| scope="col"
|
||||
| "Batman"
|
||||
| "
|
||||
"
|
||||
| <th>
|
||||
| scope="col"
|
||||
| "Robin"
|
||||
| "
|
||||
"
|
||||
| <th>
|
||||
| scope="col"
|
||||
| "The Flash"
|
||||
| "
|
||||
"
|
||||
| <th>
|
||||
| scope="col"
|
||||
| "Kid Flash"
|
||||
| "
|
||||
"
|
||||
| "
|
||||
"
|
||||
| "
|
||||
|
||||
"
|
@ -0,0 +1,19 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Document</title>
|
||||
</head>
|
||||
<body>
|
||||
<table>
|
||||
<caption>Superheros and sidekicks</caption>
|
||||
<colgroup><col><col span="2" class="batman"><col span="2" class="flash"></colgroup>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<th scope="col">Batman</th>
|
||||
<th scope="col">Robin</th>
|
||||
<th scope="col">The Flash</th>
|
||||
<th scope="col">Kid Flash</th>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,570 @@
|
||||
{
|
||||
"type": "Document",
|
||||
"span": {
|
||||
"start": 1,
|
||||
"end": 440,
|
||||
"ctxt": 0
|
||||
},
|
||||
"mode": "no-quirks",
|
||||
"children": [
|
||||
{
|
||||
"type": "DocumentType",
|
||||
"span": {
|
||||
"start": 1,
|
||||
"end": 16,
|
||||
"ctxt": 0
|
||||
},
|
||||
"name": "html",
|
||||
"publicId": null,
|
||||
"systemId": null
|
||||
},
|
||||
{
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 17,
|
||||
"end": 440,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "html",
|
||||
"namespace": "http://www.w3.org/1999/xhtml",
|
||||
"attributes": [
|
||||
{
|
||||
"type": "Attribute",
|
||||
"span": {
|
||||
"start": 23,
|
||||
"end": 32,
|
||||
"ctxt": 0
|
||||
},
|
||||
"namespace": null,
|
||||
"prefix": null,
|
||||
"name": "lang",
|
||||
"value": "en"
|
||||
}
|
||||
],
|
||||
"children": [
|
||||
{
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 34,
|
||||
"end": 76,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "head",
|
||||
"namespace": "http://www.w3.org/1999/xhtml",
|
||||
"attributes": [],
|
||||
"children": [
|
||||
{
|
||||
"type": "Text",
|
||||
"span": {
|
||||
"start": 40,
|
||||
"end": 45,
|
||||
"ctxt": 0
|
||||
},
|
||||
"value": "\n "
|
||||
},
|
||||
{
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 45,
|
||||
"end": 68,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "title",
|
||||
"namespace": "http://www.w3.org/1999/xhtml",
|
||||
"attributes": [],
|
||||
"children": [
|
||||
{
|
||||
"type": "Text",
|
||||
"span": {
|
||||
"start": 52,
|
||||
"end": 60,
|
||||
"ctxt": 0
|
||||
},
|
||||
"value": "Document"
|
||||
}
|
||||
],
|
||||
"content": null
|
||||
},
|
||||
{
|
||||
"type": "Text",
|
||||
"span": {
|
||||
"start": 68,
|
||||
"end": 69,
|
||||
"ctxt": 0
|
||||
},
|
||||
"value": "\n"
|
||||
}
|
||||
],
|
||||
"content": null
|
||||
},
|
||||
{
|
||||
"type": "Text",
|
||||
"span": {
|
||||
"start": 76,
|
||||
"end": 77,
|
||||
"ctxt": 0
|
||||
},
|
||||
"value": "\n"
|
||||
},
|
||||
{
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 77,
|
||||
"end": 433,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "body",
|
||||
"namespace": "http://www.w3.org/1999/xhtml",
|
||||
"attributes": [],
|
||||
"children": [
|
||||
{
|
||||
"type": "Text",
|
||||
"span": {
|
||||
"start": 83,
|
||||
"end": 84,
|
||||
"ctxt": 0
|
||||
},
|
||||
"value": "\n"
|
||||
},
|
||||
{
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 84,
|
||||
"end": 424,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "table",
|
||||
"namespace": "http://www.w3.org/1999/xhtml",
|
||||
"attributes": [],
|
||||
"children": [
|
||||
{
|
||||
"type": "Text",
|
||||
"span": {
|
||||
"start": 91,
|
||||
"end": 105,
|
||||
"ctxt": 0
|
||||
},
|
||||
"value": "\n "
|
||||
},
|
||||
{
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 96,
|
||||
"end": 139,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "caption",
|
||||
"namespace": "http://www.w3.org/1999/xhtml",
|
||||
"attributes": [],
|
||||
"children": [
|
||||
{
|
||||
"type": "Text",
|
||||
"span": {
|
||||
"start": 105,
|
||||
"end": 129,
|
||||
"ctxt": 0
|
||||
},
|
||||
"value": "Superheros and sidekicks"
|
||||
}
|
||||
],
|
||||
"content": null
|
||||
},
|
||||
{
|
||||
"type": "Text",
|
||||
"span": {
|
||||
"start": 139,
|
||||
"end": 154,
|
||||
"ctxt": 0
|
||||
},
|
||||
"value": "\n "
|
||||
},
|
||||
{
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 144,
|
||||
"end": 227,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "colgroup",
|
||||
"namespace": "http://www.w3.org/1999/xhtml",
|
||||
"attributes": [],
|
||||
"children": [
|
||||
{
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 154,
|
||||
"end": 159,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "col",
|
||||
"namespace": "http://www.w3.org/1999/xhtml",
|
||||
"attributes": [],
|
||||
"children": [],
|
||||
"content": null
|
||||
},
|
||||
{
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 159,
|
||||
"end": 188,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "col",
|
||||
"namespace": "http://www.w3.org/1999/xhtml",
|
||||
"attributes": [
|
||||
{
|
||||
"type": "Attribute",
|
||||
"span": {
|
||||
"start": 164,
|
||||
"end": 172,
|
||||
"ctxt": 0
|
||||
},
|
||||
"namespace": null,
|
||||
"prefix": null,
|
||||
"name": "span",
|
||||
"value": "2"
|
||||
},
|
||||
{
|
||||
"type": "Attribute",
|
||||
"span": {
|
||||
"start": 173,
|
||||
"end": 187,
|
||||
"ctxt": 0
|
||||
},
|
||||
"namespace": null,
|
||||
"prefix": null,
|
||||
"name": "class",
|
||||
"value": "batman"
|
||||
}
|
||||
],
|
||||
"children": [],
|
||||
"content": null
|
||||
},
|
||||
{
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 188,
|
||||
"end": 216,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "col",
|
||||
"namespace": "http://www.w3.org/1999/xhtml",
|
||||
"attributes": [
|
||||
{
|
||||
"type": "Attribute",
|
||||
"span": {
|
||||
"start": 193,
|
||||
"end": 201,
|
||||
"ctxt": 0
|
||||
},
|
||||
"namespace": null,
|
||||
"prefix": null,
|
||||
"name": "span",
|
||||
"value": "2"
|
||||
},
|
||||
{
|
||||
"type": "Attribute",
|
||||
"span": {
|
||||
"start": 202,
|
||||
"end": 215,
|
||||
"ctxt": 0
|
||||
},
|
||||
"namespace": null,
|
||||
"prefix": null,
|
||||
"name": "class",
|
||||
"value": "flash"
|
||||
}
|
||||
],
|
||||
"children": [],
|
||||
"content": null
|
||||
}
|
||||
],
|
||||
"content": null
|
||||
},
|
||||
{
|
||||
"type": "Text",
|
||||
"span": {
|
||||
"start": 227,
|
||||
"end": 236,
|
||||
"ctxt": 0
|
||||
},
|
||||
"value": "\n "
|
||||
},
|
||||
{
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 0,
|
||||
"end": 424,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "tbody",
|
||||
"namespace": "http://www.w3.org/1999/xhtml",
|
||||
"attributes": [],
|
||||
"children": [
|
||||
{
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 232,
|
||||
"end": 415,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "tr",
|
||||
"namespace": "http://www.w3.org/1999/xhtml",
|
||||
"attributes": [],
|
||||
"children": [
|
||||
{
|
||||
"type": "Text",
|
||||
"span": {
|
||||
"start": 236,
|
||||
"end": 249,
|
||||
"ctxt": 0
|
||||
},
|
||||
"value": "\n "
|
||||
},
|
||||
{
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 245,
|
||||
"end": 256,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "td",
|
||||
"namespace": "http://www.w3.org/1999/xhtml",
|
||||
"attributes": [],
|
||||
"children": [
|
||||
{
|
||||
"type": "Text",
|
||||
"span": {
|
||||
"start": 249,
|
||||
"end": 251,
|
||||
"ctxt": 0
|
||||
},
|
||||
"value": " "
|
||||
}
|
||||
],
|
||||
"content": null
|
||||
},
|
||||
{
|
||||
"type": "Text",
|
||||
"span": {
|
||||
"start": 256,
|
||||
"end": 281,
|
||||
"ctxt": 0
|
||||
},
|
||||
"value": "\n "
|
||||
},
|
||||
{
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 265,
|
||||
"end": 292,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "th",
|
||||
"namespace": "http://www.w3.org/1999/xhtml",
|
||||
"attributes": [
|
||||
{
|
||||
"type": "Attribute",
|
||||
"span": {
|
||||
"start": 269,
|
||||
"end": 280,
|
||||
"ctxt": 0
|
||||
},
|
||||
"namespace": null,
|
||||
"prefix": null,
|
||||
"name": "scope",
|
||||
"value": "col"
|
||||
}
|
||||
],
|
||||
"children": [
|
||||
{
|
||||
"type": "Text",
|
||||
"span": {
|
||||
"start": 281,
|
||||
"end": 287,
|
||||
"ctxt": 0
|
||||
},
|
||||
"value": "Batman"
|
||||
}
|
||||
],
|
||||
"content": null
|
||||
},
|
||||
{
|
||||
"type": "Text",
|
||||
"span": {
|
||||
"start": 292,
|
||||
"end": 317,
|
||||
"ctxt": 0
|
||||
},
|
||||
"value": "\n "
|
||||
},
|
||||
{
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 301,
|
||||
"end": 327,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "th",
|
||||
"namespace": "http://www.w3.org/1999/xhtml",
|
||||
"attributes": [
|
||||
{
|
||||
"type": "Attribute",
|
||||
"span": {
|
||||
"start": 305,
|
||||
"end": 316,
|
||||
"ctxt": 0
|
||||
},
|
||||
"namespace": null,
|
||||
"prefix": null,
|
||||
"name": "scope",
|
||||
"value": "col"
|
||||
}
|
||||
],
|
||||
"children": [
|
||||
{
|
||||
"type": "Text",
|
||||
"span": {
|
||||
"start": 317,
|
||||
"end": 322,
|
||||
"ctxt": 0
|
||||
},
|
||||
"value": "Robin"
|
||||
}
|
||||
],
|
||||
"content": null
|
||||
},
|
||||
{
|
||||
"type": "Text",
|
||||
"span": {
|
||||
"start": 327,
|
||||
"end": 352,
|
||||
"ctxt": 0
|
||||
},
|
||||
"value": "\n "
|
||||
},
|
||||
{
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 336,
|
||||
"end": 366,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "th",
|
||||
"namespace": "http://www.w3.org/1999/xhtml",
|
||||
"attributes": [
|
||||
{
|
||||
"type": "Attribute",
|
||||
"span": {
|
||||
"start": 340,
|
||||
"end": 351,
|
||||
"ctxt": 0
|
||||
},
|
||||
"namespace": null,
|
||||
"prefix": null,
|
||||
"name": "scope",
|
||||
"value": "col"
|
||||
}
|
||||
],
|
||||
"children": [
|
||||
{
|
||||
"type": "Text",
|
||||
"span": {
|
||||
"start": 352,
|
||||
"end": 361,
|
||||
"ctxt": 0
|
||||
},
|
||||
"value": "The Flash"
|
||||
}
|
||||
],
|
||||
"content": null
|
||||
},
|
||||
{
|
||||
"type": "Text",
|
||||
"span": {
|
||||
"start": 366,
|
||||
"end": 391,
|
||||
"ctxt": 0
|
||||
},
|
||||
"value": "\n "
|
||||
},
|
||||
{
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 375,
|
||||
"end": 405,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "th",
|
||||
"namespace": "http://www.w3.org/1999/xhtml",
|
||||
"attributes": [
|
||||
{
|
||||
"type": "Attribute",
|
||||
"span": {
|
||||
"start": 379,
|
||||
"end": 390,
|
||||
"ctxt": 0
|
||||
},
|
||||
"namespace": null,
|
||||
"prefix": null,
|
||||
"name": "scope",
|
||||
"value": "col"
|
||||
}
|
||||
],
|
||||
"children": [
|
||||
{
|
||||
"type": "Text",
|
||||
"span": {
|
||||
"start": 391,
|
||||
"end": 400,
|
||||
"ctxt": 0
|
||||
},
|
||||
"value": "Kid Flash"
|
||||
}
|
||||
],
|
||||
"content": null
|
||||
},
|
||||
{
|
||||
"type": "Text",
|
||||
"span": {
|
||||
"start": 405,
|
||||
"end": 415,
|
||||
"ctxt": 0
|
||||
},
|
||||
"value": "\n "
|
||||
}
|
||||
],
|
||||
"content": null
|
||||
},
|
||||
{
|
||||
"type": "Text",
|
||||
"span": {
|
||||
"start": 415,
|
||||
"end": 424,
|
||||
"ctxt": 0
|
||||
},
|
||||
"value": "\n"
|
||||
}
|
||||
],
|
||||
"content": null
|
||||
}
|
||||
],
|
||||
"content": null
|
||||
},
|
||||
{
|
||||
"type": "Text",
|
||||
"span": {
|
||||
"start": 424,
|
||||
"end": 433,
|
||||
"ctxt": 0
|
||||
},
|
||||
"value": "\n\n"
|
||||
}
|
||||
],
|
||||
"content": null
|
||||
}
|
||||
],
|
||||
"content": null
|
||||
}
|
||||
]
|
||||
}
|
@ -0,0 +1,643 @@
|
||||
|
||||
x Document
|
||||
,-[$DIR/tests/fixture/element/colgroup/input.html:1:1]
|
||||
1 | ,-> <!doctype html>
|
||||
2 | | <html lang="en">
|
||||
3 | | <head>
|
||||
4 | | <title>Document</title>
|
||||
5 | | </head>
|
||||
6 | | <body>
|
||||
7 | | <table>
|
||||
8 | | <caption>Superheros and sidekicks</caption>
|
||||
9 | | <colgroup><col><col span="2" class="batman"><col span="2" class="flash"></colgroup>
|
||||
10 | | <tr>
|
||||
11 | | <td> </td>
|
||||
12 | | <th scope="col">Batman</th>
|
||||
13 | | <th scope="col">Robin</th>
|
||||
14 | | <th scope="col">The Flash</th>
|
||||
15 | | <th scope="col">Kid Flash</th>
|
||||
16 | | </tr>
|
||||
17 | | </table>
|
||||
18 | | </body>
|
||||
19 | `-> </html>
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/colgroup/input.html:1:1]
|
||||
1 | <!doctype html>
|
||||
: ^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x DocumentType
|
||||
,-[$DIR/tests/fixture/element/colgroup/input.html:1:1]
|
||||
1 | <!doctype html>
|
||||
: ^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/colgroup/input.html:2:1]
|
||||
2 | ,-> <html lang="en">
|
||||
3 | | <head>
|
||||
4 | | <title>Document</title>
|
||||
5 | | </head>
|
||||
6 | | <body>
|
||||
7 | | <table>
|
||||
8 | | <caption>Superheros and sidekicks</caption>
|
||||
9 | | <colgroup><col><col span="2" class="batman"><col span="2" class="flash"></colgroup>
|
||||
10 | | <tr>
|
||||
11 | | <td> </td>
|
||||
12 | | <th scope="col">Batman</th>
|
||||
13 | | <th scope="col">Robin</th>
|
||||
14 | | <th scope="col">The Flash</th>
|
||||
15 | | <th scope="col">Kid Flash</th>
|
||||
16 | | </tr>
|
||||
17 | | </table>
|
||||
18 | | </body>
|
||||
19 | `-> </html>
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/colgroup/input.html:2:1]
|
||||
2 | ,-> <html lang="en">
|
||||
3 | | <head>
|
||||
4 | | <title>Document</title>
|
||||
5 | | </head>
|
||||
6 | | <body>
|
||||
7 | | <table>
|
||||
8 | | <caption>Superheros and sidekicks</caption>
|
||||
9 | | <colgroup><col><col span="2" class="batman"><col span="2" class="flash"></colgroup>
|
||||
10 | | <tr>
|
||||
11 | | <td> </td>
|
||||
12 | | <th scope="col">Batman</th>
|
||||
13 | | <th scope="col">Robin</th>
|
||||
14 | | <th scope="col">The Flash</th>
|
||||
15 | | <th scope="col">Kid Flash</th>
|
||||
16 | | </tr>
|
||||
17 | | </table>
|
||||
18 | | </body>
|
||||
19 | `-> </html>
|
||||
`----
|
||||
|
||||
x Attribute
|
||||
,-[$DIR/tests/fixture/element/colgroup/input.html:2:1]
|
||||
2 | <html lang="en">
|
||||
: ^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/colgroup/input.html:3:1]
|
||||
3 | ,-> <head>
|
||||
4 | | <title>Document</title>
|
||||
5 | `-> </head>
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/colgroup/input.html:3:1]
|
||||
3 | ,-> <head>
|
||||
4 | | <title>Document</title>
|
||||
5 | `-> </head>
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/colgroup/input.html:3:1]
|
||||
3 | ,-> <head>
|
||||
4 | `-> <title>Document</title>
|
||||
`----
|
||||
|
||||
x Text
|
||||
,-[$DIR/tests/fixture/element/colgroup/input.html:3:1]
|
||||
3 | ,-> <head>
|
||||
4 | `-> <title>Document</title>
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/colgroup/input.html:4:5]
|
||||
4 | <title>Document</title>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/colgroup/input.html:4:5]
|
||||
4 | <title>Document</title>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/colgroup/input.html:4:5]
|
||||
4 | <title>Document</title>
|
||||
: ^^^^^^^^
|
||||
`----
|
||||
|
||||
x Text
|
||||
,-[$DIR/tests/fixture/element/colgroup/input.html:4:5]
|
||||
4 | <title>Document</title>
|
||||
: ^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/colgroup/input.html:4:5]
|
||||
4 | <title>Document</title>
|
||||
: ^
|
||||
5 | </head>
|
||||
`----
|
||||
|
||||
x Text
|
||||
,-[$DIR/tests/fixture/element/colgroup/input.html:4:5]
|
||||
4 | <title>Document</title>
|
||||
: ^
|
||||
5 | </head>
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/colgroup/input.html:5:1]
|
||||
5 | </head>
|
||||
: ^
|
||||
6 | <body>
|
||||
`----
|
||||
|
||||
x Text
|
||||
,-[$DIR/tests/fixture/element/colgroup/input.html:5:1]
|
||||
5 | </head>
|
||||
: ^
|
||||
6 | <body>
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/colgroup/input.html:6:1]
|
||||
6 | ,-> <body>
|
||||
7 | | <table>
|
||||
8 | | <caption>Superheros and sidekicks</caption>
|
||||
9 | | <colgroup><col><col span="2" class="batman"><col span="2" class="flash"></colgroup>
|
||||
10 | | <tr>
|
||||
11 | | <td> </td>
|
||||
12 | | <th scope="col">Batman</th>
|
||||
13 | | <th scope="col">Robin</th>
|
||||
14 | | <th scope="col">The Flash</th>
|
||||
15 | | <th scope="col">Kid Flash</th>
|
||||
16 | | </tr>
|
||||
17 | | </table>
|
||||
18 | `-> </body>
|
||||
19 | </html>
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/colgroup/input.html:6:1]
|
||||
6 | ,-> <body>
|
||||
7 | | <table>
|
||||
8 | | <caption>Superheros and sidekicks</caption>
|
||||
9 | | <colgroup><col><col span="2" class="batman"><col span="2" class="flash"></colgroup>
|
||||
10 | | <tr>
|
||||
11 | | <td> </td>
|
||||
12 | | <th scope="col">Batman</th>
|
||||
13 | | <th scope="col">Robin</th>
|
||||
14 | | <th scope="col">The Flash</th>
|
||||
15 | | <th scope="col">Kid Flash</th>
|
||||
16 | | </tr>
|
||||
17 | | </table>
|
||||
18 | `-> </body>
|
||||
19 | </html>
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/colgroup/input.html:6:1]
|
||||
6 | <body>
|
||||
: ^
|
||||
7 | <table>
|
||||
`----
|
||||
|
||||
x Text
|
||||
,-[$DIR/tests/fixture/element/colgroup/input.html:6:1]
|
||||
6 | <body>
|
||||
: ^
|
||||
7 | <table>
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/colgroup/input.html:7:1]
|
||||
7 | ,-> <table>
|
||||
8 | | <caption>Superheros and sidekicks</caption>
|
||||
9 | | <colgroup><col><col span="2" class="batman"><col span="2" class="flash"></colgroup>
|
||||
10 | | <tr>
|
||||
11 | | <td> </td>
|
||||
12 | | <th scope="col">Batman</th>
|
||||
13 | | <th scope="col">Robin</th>
|
||||
14 | | <th scope="col">The Flash</th>
|
||||
15 | | <th scope="col">Kid Flash</th>
|
||||
16 | | </tr>
|
||||
17 | `-> </table>
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/colgroup/input.html:7:1]
|
||||
7 | ,-> <table>
|
||||
8 | | <caption>Superheros and sidekicks</caption>
|
||||
9 | | <colgroup><col><col span="2" class="batman"><col span="2" class="flash"></colgroup>
|
||||
10 | | <tr>
|
||||
11 | | <td> </td>
|
||||
12 | | <th scope="col">Batman</th>
|
||||
13 | | <th scope="col">Robin</th>
|
||||
14 | | <th scope="col">The Flash</th>
|
||||
15 | | <th scope="col">Kid Flash</th>
|
||||
16 | | </tr>
|
||||
17 | `-> </table>
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/colgroup/input.html:7:1]
|
||||
7 | ,-> <table>
|
||||
8 | `-> <caption>Superheros and sidekicks</caption>
|
||||
`----
|
||||
|
||||
x Text
|
||||
,-[$DIR/tests/fixture/element/colgroup/input.html:7:1]
|
||||
7 | ,-> <table>
|
||||
8 | `-> <caption>Superheros and sidekicks</caption>
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/colgroup/input.html:8:5]
|
||||
8 | <caption>Superheros and sidekicks</caption>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/colgroup/input.html:8:5]
|
||||
8 | <caption>Superheros and sidekicks</caption>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/colgroup/input.html:8:5]
|
||||
8 | <caption>Superheros and sidekicks</caption>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Text
|
||||
,-[$DIR/tests/fixture/element/colgroup/input.html:8:5]
|
||||
8 | <caption>Superheros and sidekicks</caption>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/colgroup/input.html:8:5]
|
||||
8 | ,-> <caption>Superheros and sidekicks</caption>
|
||||
9 | `-> <colgroup><col><col span="2" class="batman"><col span="2" class="flash"></colgroup>
|
||||
`----
|
||||
|
||||
x Text
|
||||
,-[$DIR/tests/fixture/element/colgroup/input.html:8:5]
|
||||
8 | ,-> <caption>Superheros and sidekicks</caption>
|
||||
9 | `-> <colgroup><col><col span="2" class="batman"><col span="2" class="flash"></colgroup>
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/colgroup/input.html:9:5]
|
||||
9 | <colgroup><col><col span="2" class="batman"><col span="2" class="flash"></colgroup>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/colgroup/input.html:9:5]
|
||||
9 | <colgroup><col><col span="2" class="batman"><col span="2" class="flash"></colgroup>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/colgroup/input.html:9:5]
|
||||
9 | <colgroup><col><col span="2" class="batman"><col span="2" class="flash"></colgroup>
|
||||
: ^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/colgroup/input.html:9:5]
|
||||
9 | <colgroup><col><col span="2" class="batman"><col span="2" class="flash"></colgroup>
|
||||
: ^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/colgroup/input.html:9:5]
|
||||
9 | <colgroup><col><col span="2" class="batman"><col span="2" class="flash"></colgroup>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/colgroup/input.html:9:5]
|
||||
9 | <colgroup><col><col span="2" class="batman"><col span="2" class="flash"></colgroup>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Attribute
|
||||
,-[$DIR/tests/fixture/element/colgroup/input.html:9:5]
|
||||
9 | <colgroup><col><col span="2" class="batman"><col span="2" class="flash"></colgroup>
|
||||
: ^^^^^^^^
|
||||
`----
|
||||
|
||||
x Attribute
|
||||
,-[$DIR/tests/fixture/element/colgroup/input.html:9:5]
|
||||
9 | <colgroup><col><col span="2" class="batman"><col span="2" class="flash"></colgroup>
|
||||
: ^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/colgroup/input.html:9:5]
|
||||
9 | <colgroup><col><col span="2" class="batman"><col span="2" class="flash"></colgroup>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/colgroup/input.html:9:5]
|
||||
9 | <colgroup><col><col span="2" class="batman"><col span="2" class="flash"></colgroup>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Attribute
|
||||
,-[$DIR/tests/fixture/element/colgroup/input.html:9:5]
|
||||
9 | <colgroup><col><col span="2" class="batman"><col span="2" class="flash"></colgroup>
|
||||
: ^^^^^^^^
|
||||
`----
|
||||
|
||||
x Attribute
|
||||
,-[$DIR/tests/fixture/element/colgroup/input.html:9:5]
|
||||
9 | <colgroup><col><col span="2" class="batman"><col span="2" class="flash"></colgroup>
|
||||
: ^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/colgroup/input.html:9:5]
|
||||
9 | ,-> <colgroup><col><col span="2" class="batman"><col span="2" class="flash"></colgroup>
|
||||
10 | `-> <tr>
|
||||
`----
|
||||
|
||||
x Text
|
||||
,-[$DIR/tests/fixture/element/colgroup/input.html:9:5]
|
||||
9 | ,-> <colgroup><col><col span="2" class="batman"><col span="2" class="flash"></colgroup>
|
||||
10 | `-> <tr>
|
||||
`----
|
||||
|
||||
x Child
|
||||
|
||||
x Element
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/colgroup/input.html:10:5]
|
||||
10 | ,-> <tr>
|
||||
11 | | <td> </td>
|
||||
12 | | <th scope="col">Batman</th>
|
||||
13 | | <th scope="col">Robin</th>
|
||||
14 | | <th scope="col">The Flash</th>
|
||||
15 | | <th scope="col">Kid Flash</th>
|
||||
16 | `-> </tr>
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/colgroup/input.html:10:5]
|
||||
10 | ,-> <tr>
|
||||
11 | | <td> </td>
|
||||
12 | | <th scope="col">Batman</th>
|
||||
13 | | <th scope="col">Robin</th>
|
||||
14 | | <th scope="col">The Flash</th>
|
||||
15 | | <th scope="col">Kid Flash</th>
|
||||
16 | `-> </tr>
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/colgroup/input.html:10:5]
|
||||
10 | ,-> <tr>
|
||||
11 | `-> <td> </td>
|
||||
`----
|
||||
|
||||
x Text
|
||||
,-[$DIR/tests/fixture/element/colgroup/input.html:10:5]
|
||||
10 | ,-> <tr>
|
||||
11 | `-> <td> </td>
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/colgroup/input.html:11:9]
|
||||
11 | <td> </td>
|
||||
: ^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/colgroup/input.html:11:9]
|
||||
11 | <td> </td>
|
||||
: ^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/colgroup/input.html:11:9]
|
||||
11 | <td> </td>
|
||||
: ^^
|
||||
`----
|
||||
|
||||
x Text
|
||||
,-[$DIR/tests/fixture/element/colgroup/input.html:11:9]
|
||||
11 | <td> </td>
|
||||
: ^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/colgroup/input.html:11:9]
|
||||
11 | ,-> <td> </td>
|
||||
12 | `-> <th scope="col">Batman</th>
|
||||
`----
|
||||
|
||||
x Text
|
||||
,-[$DIR/tests/fixture/element/colgroup/input.html:11:9]
|
||||
11 | ,-> <td> </td>
|
||||
12 | `-> <th scope="col">Batman</th>
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/colgroup/input.html:12:9]
|
||||
12 | <th scope="col">Batman</th>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/colgroup/input.html:12:9]
|
||||
12 | <th scope="col">Batman</th>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Attribute
|
||||
,-[$DIR/tests/fixture/element/colgroup/input.html:12:9]
|
||||
12 | <th scope="col">Batman</th>
|
||||
: ^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/colgroup/input.html:12:9]
|
||||
12 | <th scope="col">Batman</th>
|
||||
: ^^^^^^
|
||||
`----
|
||||
|
||||
x Text
|
||||
,-[$DIR/tests/fixture/element/colgroup/input.html:12:9]
|
||||
12 | <th scope="col">Batman</th>
|
||||
: ^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/colgroup/input.html:12:9]
|
||||
12 | ,-> <th scope="col">Batman</th>
|
||||
13 | `-> <th scope="col">Robin</th>
|
||||
`----
|
||||
|
||||
x Text
|
||||
,-[$DIR/tests/fixture/element/colgroup/input.html:12:9]
|
||||
12 | ,-> <th scope="col">Batman</th>
|
||||
13 | `-> <th scope="col">Robin</th>
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/colgroup/input.html:13:9]
|
||||
13 | <th scope="col">Robin</th>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/colgroup/input.html:13:9]
|
||||
13 | <th scope="col">Robin</th>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Attribute
|
||||
,-[$DIR/tests/fixture/element/colgroup/input.html:13:9]
|
||||
13 | <th scope="col">Robin</th>
|
||||
: ^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/colgroup/input.html:13:9]
|
||||
13 | <th scope="col">Robin</th>
|
||||
: ^^^^^
|
||||
`----
|
||||
|
||||
x Text
|
||||
,-[$DIR/tests/fixture/element/colgroup/input.html:13:9]
|
||||
13 | <th scope="col">Robin</th>
|
||||
: ^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/colgroup/input.html:13:9]
|
||||
13 | ,-> <th scope="col">Robin</th>
|
||||
14 | `-> <th scope="col">The Flash</th>
|
||||
`----
|
||||
|
||||
x Text
|
||||
,-[$DIR/tests/fixture/element/colgroup/input.html:13:9]
|
||||
13 | ,-> <th scope="col">Robin</th>
|
||||
14 | `-> <th scope="col">The Flash</th>
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/colgroup/input.html:14:9]
|
||||
14 | <th scope="col">The Flash</th>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/colgroup/input.html:14:9]
|
||||
14 | <th scope="col">The Flash</th>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Attribute
|
||||
,-[$DIR/tests/fixture/element/colgroup/input.html:14:9]
|
||||
14 | <th scope="col">The Flash</th>
|
||||
: ^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/colgroup/input.html:14:9]
|
||||
14 | <th scope="col">The Flash</th>
|
||||
: ^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Text
|
||||
,-[$DIR/tests/fixture/element/colgroup/input.html:14:9]
|
||||
14 | <th scope="col">The Flash</th>
|
||||
: ^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/colgroup/input.html:14:9]
|
||||
14 | ,-> <th scope="col">The Flash</th>
|
||||
15 | `-> <th scope="col">Kid Flash</th>
|
||||
`----
|
||||
|
||||
x Text
|
||||
,-[$DIR/tests/fixture/element/colgroup/input.html:14:9]
|
||||
14 | ,-> <th scope="col">The Flash</th>
|
||||
15 | `-> <th scope="col">Kid Flash</th>
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/colgroup/input.html:15:9]
|
||||
15 | <th scope="col">Kid Flash</th>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/colgroup/input.html:15:9]
|
||||
15 | <th scope="col">Kid Flash</th>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Attribute
|
||||
,-[$DIR/tests/fixture/element/colgroup/input.html:15:9]
|
||||
15 | <th scope="col">Kid Flash</th>
|
||||
: ^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/colgroup/input.html:15:9]
|
||||
15 | <th scope="col">Kid Flash</th>
|
||||
: ^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Text
|
||||
,-[$DIR/tests/fixture/element/colgroup/input.html:15:9]
|
||||
15 | <th scope="col">Kid Flash</th>
|
||||
: ^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/colgroup/input.html:15:9]
|
||||
15 | ,-> <th scope="col">Kid Flash</th>
|
||||
16 | `-> </tr>
|
||||
`----
|
||||
|
||||
x Text
|
||||
,-[$DIR/tests/fixture/element/colgroup/input.html:15:9]
|
||||
15 | ,-> <th scope="col">Kid Flash</th>
|
||||
16 | `-> </tr>
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/colgroup/input.html:16:5]
|
||||
16 | ,-> </tr>
|
||||
17 | `-> </table>
|
||||
`----
|
||||
|
||||
x Text
|
||||
,-[$DIR/tests/fixture/element/colgroup/input.html:16:5]
|
||||
16 | ,-> </tr>
|
||||
17 | `-> </table>
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/colgroup/input.html:17:1]
|
||||
17 | ,-> </table>
|
||||
18 | `-> </body>
|
||||
19 | </html>
|
||||
`----
|
||||
|
||||
x Text
|
||||
,-[$DIR/tests/fixture/element/colgroup/input.html:17:1]
|
||||
17 | ,-> </table>
|
||||
18 | `-> </body>
|
||||
19 | </html>
|
||||
`----
|
@ -22,7 +22,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 17,
|
||||
"end": 871,
|
||||
"end": 878,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "html",
|
||||
@ -46,7 +46,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 34,
|
||||
"end": 69,
|
||||
"end": 76,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "head",
|
||||
@ -66,7 +66,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 45,
|
||||
"end": 60,
|
||||
"end": 68,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "title",
|
||||
@ -130,7 +130,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 84,
|
||||
"end": 251,
|
||||
"end": 264,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "popup-info",
|
||||
@ -177,7 +177,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 266,
|
||||
"end": 297,
|
||||
"end": 313,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "custom-square",
|
||||
@ -224,7 +224,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 315,
|
||||
"end": 341,
|
||||
"end": 354,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "app-drawer",
|
||||
@ -271,7 +271,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 356,
|
||||
"end": 588,
|
||||
"end": 604,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "share-buttons",
|
||||
@ -291,7 +291,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 376,
|
||||
"end": 427,
|
||||
"end": 447,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "social-button",
|
||||
@ -315,7 +315,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 406,
|
||||
"end": 427,
|
||||
"end": 431,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "a",
|
||||
@ -363,7 +363,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 452,
|
||||
"end": 499,
|
||||
"end": 519,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "social-button",
|
||||
@ -387,7 +387,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 477,
|
||||
"end": 499,
|
||||
"end": 503,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "a",
|
||||
@ -435,7 +435,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 524,
|
||||
"end": 567,
|
||||
"end": 587,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "social-button",
|
||||
@ -459,7 +459,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 551,
|
||||
"end": 567,
|
||||
"end": 571,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "a",
|
||||
@ -519,7 +519,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 606,
|
||||
"end": 663,
|
||||
"end": 683,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "x-foo-with-markup",
|
||||
@ -539,7 +539,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 630,
|
||||
"end": 658,
|
||||
"end": 662,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "b",
|
||||
@ -583,7 +583,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 685,
|
||||
"end": 851,
|
||||
"end": 862,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "template",
|
||||
@ -607,7 +607,7 @@
|
||||
"type": "DocumentFragment",
|
||||
"span": {
|
||||
"start": 685,
|
||||
"end": 851,
|
||||
"end": 862,
|
||||
"ctxt": 0
|
||||
},
|
||||
"children": [
|
||||
@ -624,7 +624,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 725,
|
||||
"end": 765,
|
||||
"end": 773,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "style",
|
||||
@ -656,7 +656,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 778,
|
||||
"end": 846,
|
||||
"end": 850,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "p",
|
||||
|
@ -78,8 +78,8 @@
|
||||
28 | | </style>
|
||||
29 | | <p>I'm in Shadow DOM. My markup was stamped from a <template>.</p>
|
||||
30 | | </template>
|
||||
31 | `-> </body>
|
||||
32 | </html>
|
||||
31 | | </body>
|
||||
32 | `-> </html>
|
||||
`----
|
||||
|
||||
x Element
|
||||
@ -113,8 +113,8 @@
|
||||
28 | | </style>
|
||||
29 | | <p>I'm in Shadow DOM. My markup was stamped from a <template>.</p>
|
||||
30 | | </template>
|
||||
31 | `-> </body>
|
||||
32 | </html>
|
||||
31 | | </body>
|
||||
32 | `-> </html>
|
||||
`----
|
||||
|
||||
x Attribute
|
||||
@ -126,15 +126,15 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/custom-element/input.html:3:1]
|
||||
3 | ,-> <head>
|
||||
4 | `-> <title>Document</title>
|
||||
5 | </head>
|
||||
4 | | <title>Document</title>
|
||||
5 | `-> </head>
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/custom-element/input.html:3:1]
|
||||
3 | ,-> <head>
|
||||
4 | `-> <title>Document</title>
|
||||
5 | </head>
|
||||
4 | | <title>Document</title>
|
||||
5 | `-> </head>
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -152,13 +152,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/custom-element/input.html:4:5]
|
||||
4 | <title>Document</title>
|
||||
: ^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/custom-element/input.html:4:5]
|
||||
4 | <title>Document</title>
|
||||
: ^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -321,13 +321,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/custom-element/input.html:11:1]
|
||||
11 | <custom-square l="100" c="red"></custom-square>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/custom-element/input.html:11:1]
|
||||
11 | <custom-square l="100" c="red"></custom-square>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Attribute
|
||||
@ -359,13 +359,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/custom-element/input.html:13:1]
|
||||
13 | <app-drawer open disabled></app-drawer>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/custom-element/input.html:13:1]
|
||||
13 | <app-drawer open disabled></app-drawer>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Attribute
|
||||
@ -399,8 +399,8 @@
|
||||
15 | ,-> <share-buttons>
|
||||
16 | | <social-button type="twitter"><a href="...">Twitter</a></social-button>
|
||||
17 | | <social-button type="fb"><a href="...">Facebook</a></social-button>
|
||||
18 | `-> <social-button type="plus"><a href="...">G+</a></social-button>
|
||||
19 | </share-buttons>
|
||||
18 | | <social-button type="plus"><a href="...">G+</a></social-button>
|
||||
19 | `-> </share-buttons>
|
||||
`----
|
||||
|
||||
x Element
|
||||
@ -408,8 +408,8 @@
|
||||
15 | ,-> <share-buttons>
|
||||
16 | | <social-button type="twitter"><a href="...">Twitter</a></social-button>
|
||||
17 | | <social-button type="fb"><a href="...">Facebook</a></social-button>
|
||||
18 | `-> <social-button type="plus"><a href="...">G+</a></social-button>
|
||||
19 | </share-buttons>
|
||||
18 | | <social-button type="plus"><a href="...">G+</a></social-button>
|
||||
19 | `-> </share-buttons>
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -427,13 +427,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/custom-element/input.html:16:5]
|
||||
16 | <social-button type="twitter"><a href="...">Twitter</a></social-button>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/custom-element/input.html:16:5]
|
||||
16 | <social-button type="twitter"><a href="...">Twitter</a></social-button>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Attribute
|
||||
@ -445,13 +445,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/custom-element/input.html:16:5]
|
||||
16 | <social-button type="twitter"><a href="...">Twitter</a></social-button>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/custom-element/input.html:16:5]
|
||||
16 | <social-button type="twitter"><a href="...">Twitter</a></social-button>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Attribute
|
||||
@ -487,13 +487,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/custom-element/input.html:17:5]
|
||||
17 | <social-button type="fb"><a href="...">Facebook</a></social-button>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/custom-element/input.html:17:5]
|
||||
17 | <social-button type="fb"><a href="...">Facebook</a></social-button>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Attribute
|
||||
@ -505,13 +505,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/custom-element/input.html:17:5]
|
||||
17 | <social-button type="fb"><a href="...">Facebook</a></social-button>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/custom-element/input.html:17:5]
|
||||
17 | <social-button type="fb"><a href="...">Facebook</a></social-button>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Attribute
|
||||
@ -547,13 +547,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/custom-element/input.html:18:5]
|
||||
18 | <social-button type="plus"><a href="...">G+</a></social-button>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/custom-element/input.html:18:5]
|
||||
18 | <social-button type="plus"><a href="...">G+</a></social-button>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Attribute
|
||||
@ -565,13 +565,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/custom-element/input.html:18:5]
|
||||
18 | <social-button type="plus"><a href="...">G+</a></social-button>
|
||||
: ^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/custom-element/input.html:18:5]
|
||||
18 | <social-button type="plus"><a href="...">G+</a></social-button>
|
||||
: ^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Attribute
|
||||
@ -623,15 +623,15 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/custom-element/input.html:21:1]
|
||||
21 | ,-> <x-foo-with-markup>
|
||||
22 | `-> <b>I'm an x-foo-with-markup!</b>
|
||||
23 | </x-foo-with-markup>
|
||||
22 | | <b>I'm an x-foo-with-markup!</b>
|
||||
23 | `-> </x-foo-with-markup>
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/custom-element/input.html:21:1]
|
||||
21 | ,-> <x-foo-with-markup>
|
||||
22 | `-> <b>I'm an x-foo-with-markup!</b>
|
||||
23 | </x-foo-with-markup>
|
||||
22 | | <b>I'm an x-foo-with-markup!</b>
|
||||
23 | `-> </x-foo-with-markup>
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -649,13 +649,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/custom-element/input.html:22:5]
|
||||
22 | <b>I'm an x-foo-with-markup!</b>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/custom-element/input.html:22:5]
|
||||
22 | <b>I'm an x-foo-with-markup!</b>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -704,8 +704,8 @@
|
||||
26 | | <style>
|
||||
27 | | p { color: green; }
|
||||
28 | | </style>
|
||||
29 | `-> <p>I'm in Shadow DOM. My markup was stamped from a <template>.</p>
|
||||
30 | </template>
|
||||
29 | | <p>I'm in Shadow DOM. My markup was stamped from a <template>.</p>
|
||||
30 | `-> </template>
|
||||
`----
|
||||
|
||||
x Element
|
||||
@ -714,8 +714,8 @@
|
||||
26 | | <style>
|
||||
27 | | p { color: green; }
|
||||
28 | | </style>
|
||||
29 | `-> <p>I'm in Shadow DOM. My markup was stamped from a <template>.</p>
|
||||
30 | </template>
|
||||
29 | | <p>I'm in Shadow DOM. My markup was stamped from a <template>.</p>
|
||||
30 | `-> </template>
|
||||
`----
|
||||
|
||||
x Attribute
|
||||
@ -730,8 +730,8 @@
|
||||
26 | | <style>
|
||||
27 | | p { color: green; }
|
||||
28 | | </style>
|
||||
29 | `-> <p>I'm in Shadow DOM. My markup was stamped from a <template>.</p>
|
||||
30 | </template>
|
||||
29 | | <p>I'm in Shadow DOM. My markup was stamped from a <template>.</p>
|
||||
30 | `-> </template>
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -789,13 +789,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/custom-element/input.html:29:5]
|
||||
29 | <p>I'm in Shadow DOM. My markup was stamped from a <template>.</p>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/custom-element/input.html:29:5]
|
||||
29 | <p>I'm in Shadow DOM. My markup was stamped from a <template>.</p>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
|
@ -24,6 +24,11 @@
|
||||
"
|
||||
| "
|
||||
|
||||
"
|
||||
| <dialog>
|
||||
| "Test"
|
||||
| "
|
||||
|
||||
|
||||
|
||||
"
|
||||
|
@ -9,5 +9,7 @@
|
||||
<p>Greetings, one and all!</p>
|
||||
</dialog>
|
||||
|
||||
<dialog>Test</dialog>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
@ -2,7 +2,7 @@
|
||||
"type": "Document",
|
||||
"span": {
|
||||
"start": 1,
|
||||
"end": 161,
|
||||
"end": 184,
|
||||
"ctxt": 0
|
||||
},
|
||||
"mode": "no-quirks",
|
||||
@ -22,7 +22,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 17,
|
||||
"end": 161,
|
||||
"end": 184,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "html",
|
||||
@ -46,7 +46,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 34,
|
||||
"end": 69,
|
||||
"end": 76,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "head",
|
||||
@ -66,7 +66,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 45,
|
||||
"end": 60,
|
||||
"end": 68,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "title",
|
||||
@ -110,7 +110,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 77,
|
||||
"end": 161,
|
||||
"end": 184,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "body",
|
||||
@ -130,7 +130,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 85,
|
||||
"end": 134,
|
||||
"end": 143,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "dialog",
|
||||
@ -163,7 +163,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 103,
|
||||
"end": 129,
|
||||
"end": 133,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "p",
|
||||
@ -198,7 +198,39 @@
|
||||
"type": "Text",
|
||||
"span": {
|
||||
"start": 143,
|
||||
"end": 161,
|
||||
"end": 145,
|
||||
"ctxt": 0
|
||||
},
|
||||
"value": "\n\n"
|
||||
},
|
||||
{
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 145,
|
||||
"end": 166,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "dialog",
|
||||
"namespace": "http://www.w3.org/1999/xhtml",
|
||||
"attributes": [],
|
||||
"children": [
|
||||
{
|
||||
"type": "Text",
|
||||
"span": {
|
||||
"start": 153,
|
||||
"end": 157,
|
||||
"ctxt": 0
|
||||
},
|
||||
"value": "Test"
|
||||
}
|
||||
],
|
||||
"content": null
|
||||
},
|
||||
{
|
||||
"type": "Text",
|
||||
"span": {
|
||||
"start": 166,
|
||||
"end": 184,
|
||||
"ctxt": 0
|
||||
},
|
||||
"value": "\n\n\n\n"
|
||||
|
@ -12,8 +12,10 @@
|
||||
9 | | <p>Greetings, one and all!</p>
|
||||
10 | | </dialog>
|
||||
11 | |
|
||||
12 | | </body>
|
||||
13 | `-> </html>
|
||||
12 | | <dialog>Test</dialog>
|
||||
13 | |
|
||||
14 | | </body>
|
||||
15 | `-> </html>
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -40,8 +42,10 @@
|
||||
9 | | <p>Greetings, one and all!</p>
|
||||
10 | | </dialog>
|
||||
11 | |
|
||||
12 | | </body>
|
||||
13 | `-> </html>
|
||||
12 | | <dialog>Test</dialog>
|
||||
13 | |
|
||||
14 | | </body>
|
||||
15 | `-> </html>
|
||||
`----
|
||||
|
||||
x Element
|
||||
@ -56,8 +60,10 @@
|
||||
9 | | <p>Greetings, one and all!</p>
|
||||
10 | | </dialog>
|
||||
11 | |
|
||||
12 | | </body>
|
||||
13 | `-> </html>
|
||||
12 | | <dialog>Test</dialog>
|
||||
13 | |
|
||||
14 | | </body>
|
||||
15 | `-> </html>
|
||||
`----
|
||||
|
||||
x Attribute
|
||||
@ -69,15 +75,15 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/dialog/input.html:3:1]
|
||||
3 | ,-> <head>
|
||||
4 | `-> <title>Document</title>
|
||||
5 | </head>
|
||||
4 | | <title>Document</title>
|
||||
5 | `-> </head>
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/dialog/input.html:3:1]
|
||||
3 | ,-> <head>
|
||||
4 | `-> <title>Document</title>
|
||||
5 | </head>
|
||||
4 | | <title>Document</title>
|
||||
5 | `-> </head>
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -95,13 +101,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/dialog/input.html:4:5]
|
||||
4 | <title>Document</title>
|
||||
: ^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/dialog/input.html:4:5]
|
||||
4 | <title>Document</title>
|
||||
: ^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -152,8 +158,10 @@
|
||||
9 | | <p>Greetings, one and all!</p>
|
||||
10 | | </dialog>
|
||||
11 | |
|
||||
12 | | </body>
|
||||
13 | `-> </html>
|
||||
12 | | <dialog>Test</dialog>
|
||||
13 | |
|
||||
14 | | </body>
|
||||
15 | `-> </html>
|
||||
`----
|
||||
|
||||
x Element
|
||||
@ -164,8 +172,10 @@
|
||||
9 | | <p>Greetings, one and all!</p>
|
||||
10 | | </dialog>
|
||||
11 | |
|
||||
12 | | </body>
|
||||
13 | `-> </html>
|
||||
12 | | <dialog>Test</dialog>
|
||||
13 | |
|
||||
14 | | </body>
|
||||
15 | `-> </html>
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -185,15 +195,15 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/dialog/input.html:8:1]
|
||||
8 | ,-> <dialog open>
|
||||
9 | `-> <p>Greetings, one and all!</p>
|
||||
10 | </dialog>
|
||||
9 | | <p>Greetings, one and all!</p>
|
||||
10 | `-> </dialog>
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/dialog/input.html:8:1]
|
||||
8 | ,-> <dialog open>
|
||||
9 | `-> <p>Greetings, one and all!</p>
|
||||
10 | </dialog>
|
||||
9 | | <p>Greetings, one and all!</p>
|
||||
10 | `-> </dialog>
|
||||
`----
|
||||
|
||||
x Attribute
|
||||
@ -217,13 +227,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/dialog/input.html:9:5]
|
||||
9 | <p>Greetings, one and all!</p>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/dialog/input.html:9:5]
|
||||
9 | <p>Greetings, one and all!</p>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -255,15 +265,53 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/dialog/input.html:10:1]
|
||||
10 | ,-> </dialog>
|
||||
11 | |
|
||||
12 | | </body>
|
||||
13 | `-> </html>
|
||||
11 | `->
|
||||
12 | <dialog>Test</dialog>
|
||||
`----
|
||||
|
||||
x Text
|
||||
,-[$DIR/tests/fixture/element/dialog/input.html:10:1]
|
||||
10 | ,-> </dialog>
|
||||
11 | |
|
||||
12 | | </body>
|
||||
13 | `-> </html>
|
||||
11 | `->
|
||||
12 | <dialog>Test</dialog>
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/dialog/input.html:12:1]
|
||||
12 | <dialog>Test</dialog>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/dialog/input.html:12:1]
|
||||
12 | <dialog>Test</dialog>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/dialog/input.html:12:1]
|
||||
12 | <dialog>Test</dialog>
|
||||
: ^^^^
|
||||
`----
|
||||
|
||||
x Text
|
||||
,-[$DIR/tests/fixture/element/dialog/input.html:12:1]
|
||||
12 | <dialog>Test</dialog>
|
||||
: ^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/dialog/input.html:12:1]
|
||||
12 | ,-> <dialog>Test</dialog>
|
||||
13 | |
|
||||
14 | | </body>
|
||||
15 | `-> </html>
|
||||
`----
|
||||
|
||||
x Text
|
||||
,-[$DIR/tests/fixture/element/dialog/input.html:12:1]
|
||||
12 | ,-> <dialog>Test</dialog>
|
||||
13 | |
|
||||
14 | | </body>
|
||||
15 | `-> </html>
|
||||
`----
|
||||
|
@ -0,0 +1,36 @@
|
||||
| <!DOCTYPE html>
|
||||
| <html>
|
||||
| lang="en"
|
||||
| <head>
|
||||
| "
|
||||
"
|
||||
| <title>
|
||||
| "Document"
|
||||
| "
|
||||
"
|
||||
| "
|
||||
"
|
||||
| <body>
|
||||
| "
|
||||
"
|
||||
| <div>
|
||||
| "Test"
|
||||
| "
|
||||
"
|
||||
| <div>
|
||||
| "One"
|
||||
| <div>
|
||||
| "Two"
|
||||
| "
|
||||
"
|
||||
| <div>
|
||||
| <div>
|
||||
| "Three"
|
||||
| "
|
||||
"
|
||||
| <div>
|
||||
| <h1>
|
||||
| "Test"
|
||||
| "
|
||||
|
||||
"
|
12
crates/swc_html_parser/tests/fixture/element/div/input.html
Normal file
12
crates/swc_html_parser/tests/fixture/element/div/input.html
Normal file
@ -0,0 +1,12 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Document</title>
|
||||
</head>
|
||||
<body>
|
||||
<div>Test</div>
|
||||
<div>One</div><div>Two</div>
|
||||
<div><div>Three</div></div>
|
||||
<div><h1>Test</h1></div>
|
||||
</body>
|
||||
</html>
|
315
crates/swc_html_parser/tests/fixture/element/div/output.json
Normal file
315
crates/swc_html_parser/tests/fixture/element/div/output.json
Normal file
@ -0,0 +1,315 @@
|
||||
{
|
||||
"type": "Document",
|
||||
"span": {
|
||||
"start": 1,
|
||||
"end": 197,
|
||||
"ctxt": 0
|
||||
},
|
||||
"mode": "no-quirks",
|
||||
"children": [
|
||||
{
|
||||
"type": "DocumentType",
|
||||
"span": {
|
||||
"start": 1,
|
||||
"end": 16,
|
||||
"ctxt": 0
|
||||
},
|
||||
"name": "html",
|
||||
"publicId": null,
|
||||
"systemId": null
|
||||
},
|
||||
{
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 17,
|
||||
"end": 197,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "html",
|
||||
"namespace": "http://www.w3.org/1999/xhtml",
|
||||
"attributes": [
|
||||
{
|
||||
"type": "Attribute",
|
||||
"span": {
|
||||
"start": 23,
|
||||
"end": 32,
|
||||
"ctxt": 0
|
||||
},
|
||||
"namespace": null,
|
||||
"prefix": null,
|
||||
"name": "lang",
|
||||
"value": "en"
|
||||
}
|
||||
],
|
||||
"children": [
|
||||
{
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 34,
|
||||
"end": 76,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "head",
|
||||
"namespace": "http://www.w3.org/1999/xhtml",
|
||||
"attributes": [],
|
||||
"children": [
|
||||
{
|
||||
"type": "Text",
|
||||
"span": {
|
||||
"start": 40,
|
||||
"end": 45,
|
||||
"ctxt": 0
|
||||
},
|
||||
"value": "\n "
|
||||
},
|
||||
{
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 45,
|
||||
"end": 68,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "title",
|
||||
"namespace": "http://www.w3.org/1999/xhtml",
|
||||
"attributes": [],
|
||||
"children": [
|
||||
{
|
||||
"type": "Text",
|
||||
"span": {
|
||||
"start": 52,
|
||||
"end": 60,
|
||||
"ctxt": 0
|
||||
},
|
||||
"value": "Document"
|
||||
}
|
||||
],
|
||||
"content": null
|
||||
},
|
||||
{
|
||||
"type": "Text",
|
||||
"span": {
|
||||
"start": 68,
|
||||
"end": 69,
|
||||
"ctxt": 0
|
||||
},
|
||||
"value": "\n"
|
||||
}
|
||||
],
|
||||
"content": null
|
||||
},
|
||||
{
|
||||
"type": "Text",
|
||||
"span": {
|
||||
"start": 76,
|
||||
"end": 77,
|
||||
"ctxt": 0
|
||||
},
|
||||
"value": "\n"
|
||||
},
|
||||
{
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 77,
|
||||
"end": 190,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "body",
|
||||
"namespace": "http://www.w3.org/1999/xhtml",
|
||||
"attributes": [],
|
||||
"children": [
|
||||
{
|
||||
"type": "Text",
|
||||
"span": {
|
||||
"start": 83,
|
||||
"end": 84,
|
||||
"ctxt": 0
|
||||
},
|
||||
"value": "\n"
|
||||
},
|
||||
{
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 84,
|
||||
"end": 99,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "div",
|
||||
"namespace": "http://www.w3.org/1999/xhtml",
|
||||
"attributes": [],
|
||||
"children": [
|
||||
{
|
||||
"type": "Text",
|
||||
"span": {
|
||||
"start": 89,
|
||||
"end": 93,
|
||||
"ctxt": 0
|
||||
},
|
||||
"value": "Test"
|
||||
}
|
||||
],
|
||||
"content": null
|
||||
},
|
||||
{
|
||||
"type": "Text",
|
||||
"span": {
|
||||
"start": 99,
|
||||
"end": 100,
|
||||
"ctxt": 0
|
||||
},
|
||||
"value": "\n"
|
||||
},
|
||||
{
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 100,
|
||||
"end": 114,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "div",
|
||||
"namespace": "http://www.w3.org/1999/xhtml",
|
||||
"attributes": [],
|
||||
"children": [
|
||||
{
|
||||
"type": "Text",
|
||||
"span": {
|
||||
"start": 105,
|
||||
"end": 108,
|
||||
"ctxt": 0
|
||||
},
|
||||
"value": "One"
|
||||
}
|
||||
],
|
||||
"content": null
|
||||
},
|
||||
{
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 114,
|
||||
"end": 128,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "div",
|
||||
"namespace": "http://www.w3.org/1999/xhtml",
|
||||
"attributes": [],
|
||||
"children": [
|
||||
{
|
||||
"type": "Text",
|
||||
"span": {
|
||||
"start": 119,
|
||||
"end": 122,
|
||||
"ctxt": 0
|
||||
},
|
||||
"value": "Two"
|
||||
}
|
||||
],
|
||||
"content": null
|
||||
},
|
||||
{
|
||||
"type": "Text",
|
||||
"span": {
|
||||
"start": 128,
|
||||
"end": 129,
|
||||
"ctxt": 0
|
||||
},
|
||||
"value": "\n"
|
||||
},
|
||||
{
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 129,
|
||||
"end": 156,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "div",
|
||||
"namespace": "http://www.w3.org/1999/xhtml",
|
||||
"attributes": [],
|
||||
"children": [
|
||||
{
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 134,
|
||||
"end": 150,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "div",
|
||||
"namespace": "http://www.w3.org/1999/xhtml",
|
||||
"attributes": [],
|
||||
"children": [
|
||||
{
|
||||
"type": "Text",
|
||||
"span": {
|
||||
"start": 139,
|
||||
"end": 144,
|
||||
"ctxt": 0
|
||||
},
|
||||
"value": "Three"
|
||||
}
|
||||
],
|
||||
"content": null
|
||||
}
|
||||
],
|
||||
"content": null
|
||||
},
|
||||
{
|
||||
"type": "Text",
|
||||
"span": {
|
||||
"start": 156,
|
||||
"end": 157,
|
||||
"ctxt": 0
|
||||
},
|
||||
"value": "\n"
|
||||
},
|
||||
{
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 157,
|
||||
"end": 181,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "div",
|
||||
"namespace": "http://www.w3.org/1999/xhtml",
|
||||
"attributes": [],
|
||||
"children": [
|
||||
{
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 162,
|
||||
"end": 175,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "h1",
|
||||
"namespace": "http://www.w3.org/1999/xhtml",
|
||||
"attributes": [],
|
||||
"children": [
|
||||
{
|
||||
"type": "Text",
|
||||
"span": {
|
||||
"start": 166,
|
||||
"end": 170,
|
||||
"ctxt": 0
|
||||
},
|
||||
"value": "Test"
|
||||
}
|
||||
],
|
||||
"content": null
|
||||
}
|
||||
],
|
||||
"content": null
|
||||
},
|
||||
{
|
||||
"type": "Text",
|
||||
"span": {
|
||||
"start": 181,
|
||||
"end": 190,
|
||||
"ctxt": 0
|
||||
},
|
||||
"value": "\n\n"
|
||||
}
|
||||
],
|
||||
"content": null
|
||||
}
|
||||
],
|
||||
"content": null
|
||||
}
|
||||
]
|
||||
}
|
378
crates/swc_html_parser/tests/fixture/element/div/span.rust-debug
Normal file
378
crates/swc_html_parser/tests/fixture/element/div/span.rust-debug
Normal file
@ -0,0 +1,378 @@
|
||||
|
||||
x Document
|
||||
,-[$DIR/tests/fixture/element/div/input.html:1:1]
|
||||
1 | ,-> <!doctype html>
|
||||
2 | | <html lang="en">
|
||||
3 | | <head>
|
||||
4 | | <title>Document</title>
|
||||
5 | | </head>
|
||||
6 | | <body>
|
||||
7 | | <div>Test</div>
|
||||
8 | | <div>One</div><div>Two</div>
|
||||
9 | | <div><div>Three</div></div>
|
||||
10 | | <div><h1>Test</h1></div>
|
||||
11 | | </body>
|
||||
12 | `-> </html>
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/div/input.html:1:1]
|
||||
1 | <!doctype html>
|
||||
: ^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x DocumentType
|
||||
,-[$DIR/tests/fixture/element/div/input.html:1:1]
|
||||
1 | <!doctype html>
|
||||
: ^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/div/input.html:2:1]
|
||||
2 | ,-> <html lang="en">
|
||||
3 | | <head>
|
||||
4 | | <title>Document</title>
|
||||
5 | | </head>
|
||||
6 | | <body>
|
||||
7 | | <div>Test</div>
|
||||
8 | | <div>One</div><div>Two</div>
|
||||
9 | | <div><div>Three</div></div>
|
||||
10 | | <div><h1>Test</h1></div>
|
||||
11 | | </body>
|
||||
12 | `-> </html>
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/div/input.html:2:1]
|
||||
2 | ,-> <html lang="en">
|
||||
3 | | <head>
|
||||
4 | | <title>Document</title>
|
||||
5 | | </head>
|
||||
6 | | <body>
|
||||
7 | | <div>Test</div>
|
||||
8 | | <div>One</div><div>Two</div>
|
||||
9 | | <div><div>Three</div></div>
|
||||
10 | | <div><h1>Test</h1></div>
|
||||
11 | | </body>
|
||||
12 | `-> </html>
|
||||
`----
|
||||
|
||||
x Attribute
|
||||
,-[$DIR/tests/fixture/element/div/input.html:2:1]
|
||||
2 | <html lang="en">
|
||||
: ^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/div/input.html:3:1]
|
||||
3 | ,-> <head>
|
||||
4 | | <title>Document</title>
|
||||
5 | `-> </head>
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/div/input.html:3:1]
|
||||
3 | ,-> <head>
|
||||
4 | | <title>Document</title>
|
||||
5 | `-> </head>
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/div/input.html:3:1]
|
||||
3 | ,-> <head>
|
||||
4 | `-> <title>Document</title>
|
||||
`----
|
||||
|
||||
x Text
|
||||
,-[$DIR/tests/fixture/element/div/input.html:3:1]
|
||||
3 | ,-> <head>
|
||||
4 | `-> <title>Document</title>
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/div/input.html:4:5]
|
||||
4 | <title>Document</title>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/div/input.html:4:5]
|
||||
4 | <title>Document</title>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/div/input.html:4:5]
|
||||
4 | <title>Document</title>
|
||||
: ^^^^^^^^
|
||||
`----
|
||||
|
||||
x Text
|
||||
,-[$DIR/tests/fixture/element/div/input.html:4:5]
|
||||
4 | <title>Document</title>
|
||||
: ^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/div/input.html:4:5]
|
||||
4 | <title>Document</title>
|
||||
: ^
|
||||
5 | </head>
|
||||
`----
|
||||
|
||||
x Text
|
||||
,-[$DIR/tests/fixture/element/div/input.html:4:5]
|
||||
4 | <title>Document</title>
|
||||
: ^
|
||||
5 | </head>
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/div/input.html:5:1]
|
||||
5 | </head>
|
||||
: ^
|
||||
6 | <body>
|
||||
`----
|
||||
|
||||
x Text
|
||||
,-[$DIR/tests/fixture/element/div/input.html:5:1]
|
||||
5 | </head>
|
||||
: ^
|
||||
6 | <body>
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/div/input.html:6:1]
|
||||
6 | ,-> <body>
|
||||
7 | | <div>Test</div>
|
||||
8 | | <div>One</div><div>Two</div>
|
||||
9 | | <div><div>Three</div></div>
|
||||
10 | | <div><h1>Test</h1></div>
|
||||
11 | `-> </body>
|
||||
12 | </html>
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/div/input.html:6:1]
|
||||
6 | ,-> <body>
|
||||
7 | | <div>Test</div>
|
||||
8 | | <div>One</div><div>Two</div>
|
||||
9 | | <div><div>Three</div></div>
|
||||
10 | | <div><h1>Test</h1></div>
|
||||
11 | `-> </body>
|
||||
12 | </html>
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/div/input.html:6:1]
|
||||
6 | <body>
|
||||
: ^
|
||||
7 | <div>Test</div>
|
||||
`----
|
||||
|
||||
x Text
|
||||
,-[$DIR/tests/fixture/element/div/input.html:6:1]
|
||||
6 | <body>
|
||||
: ^
|
||||
7 | <div>Test</div>
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/div/input.html:7:1]
|
||||
7 | <div>Test</div>
|
||||
: ^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/div/input.html:7:1]
|
||||
7 | <div>Test</div>
|
||||
: ^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/div/input.html:7:1]
|
||||
7 | <div>Test</div>
|
||||
: ^^^^
|
||||
`----
|
||||
|
||||
x Text
|
||||
,-[$DIR/tests/fixture/element/div/input.html:7:1]
|
||||
7 | <div>Test</div>
|
||||
: ^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/div/input.html:7:1]
|
||||
7 | <div>Test</div>
|
||||
: ^
|
||||
8 | <div>One</div><div>Two</div>
|
||||
`----
|
||||
|
||||
x Text
|
||||
,-[$DIR/tests/fixture/element/div/input.html:7:1]
|
||||
7 | <div>Test</div>
|
||||
: ^
|
||||
8 | <div>One</div><div>Two</div>
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/div/input.html:8:1]
|
||||
8 | <div>One</div><div>Two</div>
|
||||
: ^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/div/input.html:8:1]
|
||||
8 | <div>One</div><div>Two</div>
|
||||
: ^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/div/input.html:8:1]
|
||||
8 | <div>One</div><div>Two</div>
|
||||
: ^^^
|
||||
`----
|
||||
|
||||
x Text
|
||||
,-[$DIR/tests/fixture/element/div/input.html:8:1]
|
||||
8 | <div>One</div><div>Two</div>
|
||||
: ^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/div/input.html:8:1]
|
||||
8 | <div>One</div><div>Two</div>
|
||||
: ^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/div/input.html:8:1]
|
||||
8 | <div>One</div><div>Two</div>
|
||||
: ^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/div/input.html:8:1]
|
||||
8 | <div>One</div><div>Two</div>
|
||||
: ^^^
|
||||
`----
|
||||
|
||||
x Text
|
||||
,-[$DIR/tests/fixture/element/div/input.html:8:1]
|
||||
8 | <div>One</div><div>Two</div>
|
||||
: ^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/div/input.html:8:1]
|
||||
8 | <div>One</div><div>Two</div>
|
||||
: ^
|
||||
9 | <div><div>Three</div></div>
|
||||
`----
|
||||
|
||||
x Text
|
||||
,-[$DIR/tests/fixture/element/div/input.html:8:1]
|
||||
8 | <div>One</div><div>Two</div>
|
||||
: ^
|
||||
9 | <div><div>Three</div></div>
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/div/input.html:9:1]
|
||||
9 | <div><div>Three</div></div>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/div/input.html:9:1]
|
||||
9 | <div><div>Three</div></div>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/div/input.html:9:1]
|
||||
9 | <div><div>Three</div></div>
|
||||
: ^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/div/input.html:9:1]
|
||||
9 | <div><div>Three</div></div>
|
||||
: ^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/div/input.html:9:1]
|
||||
9 | <div><div>Three</div></div>
|
||||
: ^^^^^
|
||||
`----
|
||||
|
||||
x Text
|
||||
,-[$DIR/tests/fixture/element/div/input.html:9:1]
|
||||
9 | <div><div>Three</div></div>
|
||||
: ^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/div/input.html:9:1]
|
||||
9 | <div><div>Three</div></div>
|
||||
: ^
|
||||
10 | <div><h1>Test</h1></div>
|
||||
`----
|
||||
|
||||
x Text
|
||||
,-[$DIR/tests/fixture/element/div/input.html:9:1]
|
||||
9 | <div><div>Three</div></div>
|
||||
: ^
|
||||
10 | <div><h1>Test</h1></div>
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/div/input.html:10:1]
|
||||
10 | <div><h1>Test</h1></div>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/div/input.html:10:1]
|
||||
10 | <div><h1>Test</h1></div>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/div/input.html:10:1]
|
||||
10 | <div><h1>Test</h1></div>
|
||||
: ^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/div/input.html:10:1]
|
||||
10 | <div><h1>Test</h1></div>
|
||||
: ^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/div/input.html:10:1]
|
||||
10 | <div><h1>Test</h1></div>
|
||||
: ^^^^
|
||||
`----
|
||||
|
||||
x Text
|
||||
,-[$DIR/tests/fixture/element/div/input.html:10:1]
|
||||
10 | <div><h1>Test</h1></div>
|
||||
: ^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/div/input.html:10:1]
|
||||
10 | ,-> <div><h1>Test</h1></div>
|
||||
11 | `-> </body>
|
||||
12 | </html>
|
||||
`----
|
||||
|
||||
x Text
|
||||
,-[$DIR/tests/fixture/element/div/input.html:10:1]
|
||||
10 | ,-> <div><h1>Test</h1></div>
|
||||
11 | `-> </body>
|
||||
12 | </html>
|
||||
`----
|
@ -22,7 +22,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 17,
|
||||
"end": 368,
|
||||
"end": 375,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "html",
|
||||
@ -46,7 +46,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 34,
|
||||
"end": 69,
|
||||
"end": 76,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "head",
|
||||
@ -66,7 +66,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 45,
|
||||
"end": 60,
|
||||
"end": 68,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "title",
|
||||
@ -201,7 +201,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 175,
|
||||
"end": 226,
|
||||
"end": 236,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "noembed",
|
||||
|
@ -46,8 +46,8 @@
|
||||
12 | | src="/media/cc0-videos/flower.mp4"
|
||||
13 | | width="250"
|
||||
14 | | height="200">
|
||||
15 | `-> </body>
|
||||
16 | </html>
|
||||
15 | | </body>
|
||||
16 | `-> </html>
|
||||
`----
|
||||
|
||||
x Element
|
||||
@ -65,8 +65,8 @@
|
||||
12 | | src="/media/cc0-videos/flower.mp4"
|
||||
13 | | width="250"
|
||||
14 | | height="200">
|
||||
15 | `-> </body>
|
||||
16 | </html>
|
||||
15 | | </body>
|
||||
16 | `-> </html>
|
||||
`----
|
||||
|
||||
x Attribute
|
||||
@ -78,15 +78,15 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/embed/input.html:3:1]
|
||||
3 | ,-> <head>
|
||||
4 | `-> <title>Document</title>
|
||||
5 | </head>
|
||||
4 | | <title>Document</title>
|
||||
5 | `-> </head>
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/embed/input.html:3:1]
|
||||
3 | ,-> <head>
|
||||
4 | `-> <title>Document</title>
|
||||
5 | </head>
|
||||
4 | | <title>Document</title>
|
||||
5 | `-> </head>
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -104,13 +104,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/embed/input.html:4:5]
|
||||
4 | <title>Document</title>
|
||||
: ^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/embed/input.html:4:5]
|
||||
4 | <title>Document</title>
|
||||
: ^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
|
@ -22,7 +22,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 17,
|
||||
"end": 714,
|
||||
"end": 721,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "html",
|
||||
@ -46,7 +46,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 34,
|
||||
"end": 69,
|
||||
"end": 76,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "head",
|
||||
@ -66,7 +66,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 45,
|
||||
"end": 60,
|
||||
"end": 68,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "title",
|
||||
@ -130,7 +130,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 85,
|
||||
"end": 538,
|
||||
"end": 545,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "form",
|
||||
@ -187,7 +187,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 140,
|
||||
"end": 282,
|
||||
"end": 288,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "div",
|
||||
@ -220,7 +220,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 175,
|
||||
"end": 210,
|
||||
"end": 218,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "label",
|
||||
@ -348,7 +348,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 293,
|
||||
"end": 440,
|
||||
"end": 446,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "div",
|
||||
@ -381,7 +381,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 328,
|
||||
"end": 365,
|
||||
"end": 373,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "label",
|
||||
@ -509,7 +509,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 451,
|
||||
"end": 531,
|
||||
"end": 537,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "div",
|
||||
@ -613,7 +613,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 547,
|
||||
"end": 697,
|
||||
"end": 704,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "form",
|
||||
@ -646,7 +646,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 572,
|
||||
"end": 685,
|
||||
"end": 696,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "fieldset",
|
||||
@ -666,7 +666,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 591,
|
||||
"end": 604,
|
||||
"end": 613,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "legend",
|
||||
@ -698,7 +698,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 622,
|
||||
"end": 672,
|
||||
"end": 680,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "label",
|
||||
|
@ -74,8 +74,8 @@
|
||||
26 | | </fieldset>
|
||||
27 | | </form>
|
||||
28 | |
|
||||
29 | `-> </body>
|
||||
30 | </html>
|
||||
29 | | </body>
|
||||
30 | `-> </html>
|
||||
`----
|
||||
|
||||
x Element
|
||||
@ -107,8 +107,8 @@
|
||||
26 | | </fieldset>
|
||||
27 | | </form>
|
||||
28 | |
|
||||
29 | `-> </body>
|
||||
30 | </html>
|
||||
29 | | </body>
|
||||
30 | `-> </html>
|
||||
`----
|
||||
|
||||
x Attribute
|
||||
@ -120,15 +120,15 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/form/input.html:3:1]
|
||||
3 | ,-> <head>
|
||||
4 | `-> <title>Document</title>
|
||||
5 | </head>
|
||||
4 | | <title>Document</title>
|
||||
5 | `-> </head>
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/form/input.html:3:1]
|
||||
3 | ,-> <head>
|
||||
4 | `-> <title>Document</title>
|
||||
5 | </head>
|
||||
4 | | <title>Document</title>
|
||||
5 | `-> </head>
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -146,13 +146,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/form/input.html:4:5]
|
||||
4 | <title>Document</title>
|
||||
: ^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/form/input.html:4:5]
|
||||
4 | <title>Document</title>
|
||||
: ^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -280,8 +280,8 @@
|
||||
16 | | </div>
|
||||
17 | | <div class="form-example">
|
||||
18 | | <input type="submit" value="Subscribe!">
|
||||
19 | `-> </div>
|
||||
20 | </form>
|
||||
19 | | </div>
|
||||
20 | `-> </form>
|
||||
`----
|
||||
|
||||
x Element
|
||||
@ -297,8 +297,8 @@
|
||||
16 | | </div>
|
||||
17 | | <div class="form-example">
|
||||
18 | | <input type="submit" value="Subscribe!">
|
||||
19 | `-> </div>
|
||||
20 | </form>
|
||||
19 | | </div>
|
||||
20 | `-> </form>
|
||||
`----
|
||||
|
||||
x Attribute
|
||||
@ -368,13 +368,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/form/input.html:10:9]
|
||||
10 | <label for="name">Enter your name: </label>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/form/input.html:10:9]
|
||||
10 | <label for="name">Enter your name: </label>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Attribute
|
||||
@ -504,13 +504,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/form/input.html:14:9]
|
||||
14 | <label for="email">Enter your email: </label>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/form/input.html:14:9]
|
||||
14 | <label for="email">Enter your email: </label>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Attribute
|
||||
@ -705,8 +705,8 @@
|
||||
23 | | <fieldset>
|
||||
24 | | <legend>Title</legend>
|
||||
25 | | <label><input type="radio" name="radio"> Select me</label>
|
||||
26 | `-> </fieldset>
|
||||
27 | </form>
|
||||
26 | | </fieldset>
|
||||
27 | `-> </form>
|
||||
`----
|
||||
|
||||
x Element
|
||||
@ -715,8 +715,8 @@
|
||||
23 | | <fieldset>
|
||||
24 | | <legend>Title</legend>
|
||||
25 | | <label><input type="radio" name="radio"> Select me</label>
|
||||
26 | `-> </fieldset>
|
||||
27 | </form>
|
||||
26 | | </fieldset>
|
||||
27 | `-> </form>
|
||||
`----
|
||||
|
||||
x Attribute
|
||||
@ -768,13 +768,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/form/input.html:24:9]
|
||||
24 | <legend>Title</legend>
|
||||
: ^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/form/input.html:24:9]
|
||||
24 | <legend>Title</legend>
|
||||
: ^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -804,13 +804,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/form/input.html:25:9]
|
||||
25 | <label><input type="radio" name="radio"> Select me</label>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/form/input.html:25:9]
|
||||
25 | <label><input type="radio" name="radio"> Select me</label>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
|
@ -22,7 +22,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 17,
|
||||
"end": 424,
|
||||
"end": 431,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "html",
|
||||
@ -33,7 +33,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 24,
|
||||
"end": 138,
|
||||
"end": 145,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "head",
|
||||
@ -100,7 +100,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 107,
|
||||
"end": 129,
|
||||
"end": 137,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "title",
|
||||
@ -144,7 +144,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 147,
|
||||
"end": 411,
|
||||
"end": 422,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "frameset",
|
||||
@ -260,7 +260,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 250,
|
||||
"end": 399,
|
||||
"end": 410,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "frameset",
|
||||
|
@ -46,8 +46,8 @@
|
||||
12 | | <frame src="main.html" name="mainFrame">
|
||||
13 | | </frameset>
|
||||
14 | | </frameset>
|
||||
15 | `->
|
||||
16 | </html>
|
||||
15 | |
|
||||
16 | `-> </html>
|
||||
`----
|
||||
|
||||
x Element
|
||||
@ -65,24 +65,24 @@
|
||||
12 | | <frame src="main.html" name="mainFrame">
|
||||
13 | | </frameset>
|
||||
14 | | </frameset>
|
||||
15 | `->
|
||||
16 | </html>
|
||||
15 | |
|
||||
16 | `-> </html>
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/frameset/input.html:3:1]
|
||||
3 | ,-> <head>
|
||||
4 | | <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
5 | `-> <title>Тег FRAMESET</title>
|
||||
6 | </head>
|
||||
5 | | <title>Тег FRAMESET</title>
|
||||
6 | `-> </head>
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/frameset/input.html:3:1]
|
||||
3 | ,-> <head>
|
||||
4 | | <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
5 | `-> <title>Тег FRAMESET</title>
|
||||
6 | </head>
|
||||
5 | | <title>Тег FRAMESET</title>
|
||||
6 | `-> </head>
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -136,13 +136,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/frameset/input.html:5:5]
|
||||
5 | <title>Тег FRAMESET</title>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/frameset/input.html:5:5]
|
||||
5 | <title>Тег FRAMESET</title>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -192,8 +192,8 @@
|
||||
10 | | <frameset cols="80,*">
|
||||
11 | | <frame src="left.html" name="leftFrame" scrolling="no" noresize>
|
||||
12 | | <frame src="main.html" name="mainFrame">
|
||||
13 | `-> </frameset>
|
||||
14 | </frameset>
|
||||
13 | | </frameset>
|
||||
14 | `-> </frameset>
|
||||
`----
|
||||
|
||||
x Element
|
||||
@ -203,8 +203,8 @@
|
||||
10 | | <frameset cols="80,*">
|
||||
11 | | <frame src="left.html" name="leftFrame" scrolling="no" noresize>
|
||||
12 | | <frame src="main.html" name="mainFrame">
|
||||
13 | `-> </frameset>
|
||||
14 | </frameset>
|
||||
13 | | </frameset>
|
||||
14 | `-> </frameset>
|
||||
`----
|
||||
|
||||
x Attribute
|
||||
|
@ -0,0 +1,13 @@
|
||||
| <!DOCTYPE html>
|
||||
| <html>
|
||||
| lang="en"
|
||||
| <head>
|
||||
| <title>
|
||||
| "Document"
|
||||
| "
|
||||
"
|
||||
| <body>
|
||||
| "
|
||||
|
||||
|
||||
"
|
@ -0,0 +1,7 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head><title>Document</title></head>
|
||||
<body>
|
||||
|
||||
</body>
|
||||
</html>
|
118
crates/swc_html_parser/tests/fixture/element/head/output.json
Normal file
118
crates/swc_html_parser/tests/fixture/element/head/output.json
Normal file
@ -0,0 +1,118 @@
|
||||
{
|
||||
"type": "Document",
|
||||
"span": {
|
||||
"start": 1,
|
||||
"end": 94,
|
||||
"ctxt": 0
|
||||
},
|
||||
"mode": "no-quirks",
|
||||
"children": [
|
||||
{
|
||||
"type": "DocumentType",
|
||||
"span": {
|
||||
"start": 1,
|
||||
"end": 16,
|
||||
"ctxt": 0
|
||||
},
|
||||
"name": "html",
|
||||
"publicId": null,
|
||||
"systemId": null
|
||||
},
|
||||
{
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 17,
|
||||
"end": 94,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "html",
|
||||
"namespace": "http://www.w3.org/1999/xhtml",
|
||||
"attributes": [
|
||||
{
|
||||
"type": "Attribute",
|
||||
"span": {
|
||||
"start": 23,
|
||||
"end": 32,
|
||||
"ctxt": 0
|
||||
},
|
||||
"namespace": null,
|
||||
"prefix": null,
|
||||
"name": "lang",
|
||||
"value": "en"
|
||||
}
|
||||
],
|
||||
"children": [
|
||||
{
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 34,
|
||||
"end": 70,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "head",
|
||||
"namespace": "http://www.w3.org/1999/xhtml",
|
||||
"attributes": [],
|
||||
"children": [
|
||||
{
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 40,
|
||||
"end": 63,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "title",
|
||||
"namespace": "http://www.w3.org/1999/xhtml",
|
||||
"attributes": [],
|
||||
"children": [
|
||||
{
|
||||
"type": "Text",
|
||||
"span": {
|
||||
"start": 47,
|
||||
"end": 55,
|
||||
"ctxt": 0
|
||||
},
|
||||
"value": "Document"
|
||||
}
|
||||
],
|
||||
"content": null
|
||||
}
|
||||
],
|
||||
"content": null
|
||||
},
|
||||
{
|
||||
"type": "Text",
|
||||
"span": {
|
||||
"start": 70,
|
||||
"end": 71,
|
||||
"ctxt": 0
|
||||
},
|
||||
"value": "\n"
|
||||
},
|
||||
{
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 71,
|
||||
"end": 87,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "body",
|
||||
"namespace": "http://www.w3.org/1999/xhtml",
|
||||
"attributes": [],
|
||||
"children": [
|
||||
{
|
||||
"type": "Text",
|
||||
"span": {
|
||||
"start": 77,
|
||||
"end": 87,
|
||||
"ctxt": 0
|
||||
},
|
||||
"value": "\n\n\n"
|
||||
}
|
||||
],
|
||||
"content": null
|
||||
}
|
||||
],
|
||||
"content": null
|
||||
}
|
||||
]
|
||||
}
|
@ -0,0 +1,131 @@
|
||||
|
||||
x Document
|
||||
,-[$DIR/tests/fixture/element/head/input.html:1:1]
|
||||
1 | ,-> <!doctype html>
|
||||
2 | | <html lang="en">
|
||||
3 | | <head><title>Document</title></head>
|
||||
4 | | <body>
|
||||
5 | |
|
||||
6 | | </body>
|
||||
7 | `-> </html>
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/head/input.html:1:1]
|
||||
1 | <!doctype html>
|
||||
: ^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x DocumentType
|
||||
,-[$DIR/tests/fixture/element/head/input.html:1:1]
|
||||
1 | <!doctype html>
|
||||
: ^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/head/input.html:2:1]
|
||||
2 | ,-> <html lang="en">
|
||||
3 | | <head><title>Document</title></head>
|
||||
4 | | <body>
|
||||
5 | |
|
||||
6 | | </body>
|
||||
7 | `-> </html>
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/head/input.html:2:1]
|
||||
2 | ,-> <html lang="en">
|
||||
3 | | <head><title>Document</title></head>
|
||||
4 | | <body>
|
||||
5 | |
|
||||
6 | | </body>
|
||||
7 | `-> </html>
|
||||
`----
|
||||
|
||||
x Attribute
|
||||
,-[$DIR/tests/fixture/element/head/input.html:2:1]
|
||||
2 | <html lang="en">
|
||||
: ^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/head/input.html:3:1]
|
||||
3 | <head><title>Document</title></head>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/head/input.html:3:1]
|
||||
3 | <head><title>Document</title></head>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/head/input.html:3:1]
|
||||
3 | <head><title>Document</title></head>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/head/input.html:3:1]
|
||||
3 | <head><title>Document</title></head>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/head/input.html:3:1]
|
||||
3 | <head><title>Document</title></head>
|
||||
: ^^^^^^^^
|
||||
`----
|
||||
|
||||
x Text
|
||||
,-[$DIR/tests/fixture/element/head/input.html:3:1]
|
||||
3 | <head><title>Document</title></head>
|
||||
: ^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/head/input.html:3:1]
|
||||
3 | <head><title>Document</title></head>
|
||||
: ^
|
||||
4 | <body>
|
||||
`----
|
||||
|
||||
x Text
|
||||
,-[$DIR/tests/fixture/element/head/input.html:3:1]
|
||||
3 | <head><title>Document</title></head>
|
||||
: ^
|
||||
4 | <body>
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/head/input.html:4:1]
|
||||
4 | ,-> <body>
|
||||
5 | |
|
||||
6 | `-> </body>
|
||||
7 | </html>
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/head/input.html:4:1]
|
||||
4 | ,-> <body>
|
||||
5 | |
|
||||
6 | `-> </body>
|
||||
7 | </html>
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/head/input.html:4:1]
|
||||
4 | ,-> <body>
|
||||
5 | |
|
||||
6 | `-> </body>
|
||||
7 | </html>
|
||||
`----
|
||||
|
||||
x Text
|
||||
,-[$DIR/tests/fixture/element/head/input.html:4:1]
|
||||
4 | ,-> <body>
|
||||
5 | |
|
||||
6 | `-> </body>
|
||||
7 | </html>
|
||||
`----
|
@ -66,7 +66,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 32,
|
||||
"end": 53,
|
||||
"end": 58,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "h1",
|
||||
@ -98,7 +98,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 59,
|
||||
"end": 80,
|
||||
"end": 85,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "h2",
|
||||
@ -130,7 +130,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 86,
|
||||
"end": 107,
|
||||
"end": 112,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "h3",
|
||||
@ -162,7 +162,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 113,
|
||||
"end": 134,
|
||||
"end": 139,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "h4",
|
||||
@ -194,7 +194,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 140,
|
||||
"end": 161,
|
||||
"end": 166,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "h5",
|
||||
@ -226,7 +226,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 167,
|
||||
"end": 188,
|
||||
"end": 193,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "h6",
|
||||
|
@ -111,13 +111,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/headings/input.html:5:1]
|
||||
5 | <h1>This is heading 1</h1>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/headings/input.html:5:1]
|
||||
5 | <h1>This is heading 1</h1>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -149,13 +149,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/headings/input.html:6:1]
|
||||
6 | <h2>This is heading 2</h2>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/headings/input.html:6:1]
|
||||
6 | <h2>This is heading 2</h2>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -187,13 +187,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/headings/input.html:7:1]
|
||||
7 | <h3>This is heading 3</h3>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/headings/input.html:7:1]
|
||||
7 | <h3>This is heading 3</h3>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -225,13 +225,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/headings/input.html:8:1]
|
||||
8 | <h4>This is heading 4</h4>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/headings/input.html:8:1]
|
||||
8 | <h4>This is heading 4</h4>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -263,13 +263,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/headings/input.html:9:1]
|
||||
9 | <h5>This is heading 5</h5>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/headings/input.html:9:1]
|
||||
9 | <h5>This is heading 5</h5>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -301,13 +301,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/headings/input.html:10:1]
|
||||
10 | <h6>This is heading 6</h6>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/headings/input.html:10:1]
|
||||
10 | <h6>This is heading 6</h6>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
|
@ -0,0 +1,11 @@
|
||||
| <!DOCTYPE html>
|
||||
| <html>
|
||||
| lang="en"
|
||||
| <head>
|
||||
| " "
|
||||
| <title>
|
||||
| "Document"
|
||||
| " "
|
||||
| " "
|
||||
| <body>
|
||||
| " "
|
@ -0,0 +1 @@
|
||||
<!doctype html> <html lang="en"> <head> <title>Document</title> </head> <body> </body> </html>
|
136
crates/swc_html_parser/tests/fixture/element/html/output.json
Normal file
136
crates/swc_html_parser/tests/fixture/element/html/output.json
Normal file
@ -0,0 +1,136 @@
|
||||
{
|
||||
"type": "Document",
|
||||
"span": {
|
||||
"start": 1,
|
||||
"end": 95,
|
||||
"ctxt": 0
|
||||
},
|
||||
"mode": "no-quirks",
|
||||
"children": [
|
||||
{
|
||||
"type": "DocumentType",
|
||||
"span": {
|
||||
"start": 1,
|
||||
"end": 16,
|
||||
"ctxt": 0
|
||||
},
|
||||
"name": "html",
|
||||
"publicId": null,
|
||||
"systemId": null
|
||||
},
|
||||
{
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 17,
|
||||
"end": 95,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "html",
|
||||
"namespace": "http://www.w3.org/1999/xhtml",
|
||||
"attributes": [
|
||||
{
|
||||
"type": "Attribute",
|
||||
"span": {
|
||||
"start": 23,
|
||||
"end": 32,
|
||||
"ctxt": 0
|
||||
},
|
||||
"namespace": null,
|
||||
"prefix": null,
|
||||
"name": "lang",
|
||||
"value": "en"
|
||||
}
|
||||
],
|
||||
"children": [
|
||||
{
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 34,
|
||||
"end": 72,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "head",
|
||||
"namespace": "http://www.w3.org/1999/xhtml",
|
||||
"attributes": [],
|
||||
"children": [
|
||||
{
|
||||
"type": "Text",
|
||||
"span": {
|
||||
"start": 40,
|
||||
"end": 41,
|
||||
"ctxt": 0
|
||||
},
|
||||
"value": " "
|
||||
},
|
||||
{
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 41,
|
||||
"end": 64,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "title",
|
||||
"namespace": "http://www.w3.org/1999/xhtml",
|
||||
"attributes": [],
|
||||
"children": [
|
||||
{
|
||||
"type": "Text",
|
||||
"span": {
|
||||
"start": 48,
|
||||
"end": 56,
|
||||
"ctxt": 0
|
||||
},
|
||||
"value": "Document"
|
||||
}
|
||||
],
|
||||
"content": null
|
||||
},
|
||||
{
|
||||
"type": "Text",
|
||||
"span": {
|
||||
"start": 64,
|
||||
"end": 65,
|
||||
"ctxt": 0
|
||||
},
|
||||
"value": " "
|
||||
}
|
||||
],
|
||||
"content": null
|
||||
},
|
||||
{
|
||||
"type": "Text",
|
||||
"span": {
|
||||
"start": 72,
|
||||
"end": 73,
|
||||
"ctxt": 0
|
||||
},
|
||||
"value": " "
|
||||
},
|
||||
{
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 73,
|
||||
"end": 88,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "body",
|
||||
"namespace": "http://www.w3.org/1999/xhtml",
|
||||
"attributes": [],
|
||||
"children": [
|
||||
{
|
||||
"type": "Text",
|
||||
"span": {
|
||||
"start": 79,
|
||||
"end": 88,
|
||||
"ctxt": 0
|
||||
},
|
||||
"value": " "
|
||||
}
|
||||
],
|
||||
"content": null
|
||||
}
|
||||
],
|
||||
"content": null
|
||||
}
|
||||
]
|
||||
}
|
@ -0,0 +1,132 @@
|
||||
|
||||
x Document
|
||||
,-[$DIR/tests/fixture/element/html/input.html:1:1]
|
||||
1 | <!doctype html> <html lang="en"> <head> <title>Document</title> </head> <body> </body> </html>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/html/input.html:1:1]
|
||||
1 | <!doctype html> <html lang="en"> <head> <title>Document</title> </head> <body> </body> </html>
|
||||
: ^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x DocumentType
|
||||
,-[$DIR/tests/fixture/element/html/input.html:1:1]
|
||||
1 | <!doctype html> <html lang="en"> <head> <title>Document</title> </head> <body> </body> </html>
|
||||
: ^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/html/input.html:1:1]
|
||||
1 | <!doctype html> <html lang="en"> <head> <title>Document</title> </head> <body> </body> </html>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/html/input.html:1:1]
|
||||
1 | <!doctype html> <html lang="en"> <head> <title>Document</title> </head> <body> </body> </html>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Attribute
|
||||
,-[$DIR/tests/fixture/element/html/input.html:1:1]
|
||||
1 | <!doctype html> <html lang="en"> <head> <title>Document</title> </head> <body> </body> </html>
|
||||
: ^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/html/input.html:1:1]
|
||||
1 | <!doctype html> <html lang="en"> <head> <title>Document</title> </head> <body> </body> </html>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/html/input.html:1:1]
|
||||
1 | <!doctype html> <html lang="en"> <head> <title>Document</title> </head> <body> </body> </html>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/html/input.html:1:1]
|
||||
1 | <!doctype html> <html lang="en"> <head> <title>Document</title> </head> <body> </body> </html>
|
||||
: ^
|
||||
`----
|
||||
|
||||
x Text
|
||||
,-[$DIR/tests/fixture/element/html/input.html:1:1]
|
||||
1 | <!doctype html> <html lang="en"> <head> <title>Document</title> </head> <body> </body> </html>
|
||||
: ^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/html/input.html:1:1]
|
||||
1 | <!doctype html> <html lang="en"> <head> <title>Document</title> </head> <body> </body> </html>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/html/input.html:1:1]
|
||||
1 | <!doctype html> <html lang="en"> <head> <title>Document</title> </head> <body> </body> </html>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/html/input.html:1:1]
|
||||
1 | <!doctype html> <html lang="en"> <head> <title>Document</title> </head> <body> </body> </html>
|
||||
: ^^^^^^^^
|
||||
`----
|
||||
|
||||
x Text
|
||||
,-[$DIR/tests/fixture/element/html/input.html:1:1]
|
||||
1 | <!doctype html> <html lang="en"> <head> <title>Document</title> </head> <body> </body> </html>
|
||||
: ^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/html/input.html:1:1]
|
||||
1 | <!doctype html> <html lang="en"> <head> <title>Document</title> </head> <body> </body> </html>
|
||||
: ^
|
||||
`----
|
||||
|
||||
x Text
|
||||
,-[$DIR/tests/fixture/element/html/input.html:1:1]
|
||||
1 | <!doctype html> <html lang="en"> <head> <title>Document</title> </head> <body> </body> </html>
|
||||
: ^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/html/input.html:1:1]
|
||||
1 | <!doctype html> <html lang="en"> <head> <title>Document</title> </head> <body> </body> </html>
|
||||
: ^
|
||||
`----
|
||||
|
||||
x Text
|
||||
,-[$DIR/tests/fixture/element/html/input.html:1:1]
|
||||
1 | <!doctype html> <html lang="en"> <head> <title>Document</title> </head> <body> </body> </html>
|
||||
: ^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/html/input.html:1:1]
|
||||
1 | <!doctype html> <html lang="en"> <head> <title>Document</title> </head> <body> </body> </html>
|
||||
: ^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/html/input.html:1:1]
|
||||
1 | <!doctype html> <html lang="en"> <head> <title>Document</title> </head> <body> </body> </html>
|
||||
: ^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/html/input.html:1:1]
|
||||
1 | <!doctype html> <html lang="en"> <head> <title>Document</title> </head> <body> </body> </html>
|
||||
: ^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Text
|
||||
,-[$DIR/tests/fixture/element/html/input.html:1:1]
|
||||
1 | <!doctype html> <html lang="en"> <head> <title>Document</title> </head> <body> </body> </html>
|
||||
: ^^^^^^^^^
|
||||
`----
|
@ -19,3 +19,12 @@
|
||||
| "
|
||||
|
||||
"
|
||||
| <iframe>
|
||||
| align="left"
|
||||
| height="60"
|
||||
| src="banner.html"
|
||||
| width="468"
|
||||
| " Text "
|
||||
| "
|
||||
|
||||
"
|
||||
|
@ -5,5 +5,7 @@
|
||||
</head>
|
||||
<body>
|
||||
<iframe src="test.html" frameborder="0"></iframe>
|
||||
|
||||
<iframe src="banner.html" width="468" height="60" align="left"> Text </iframe>
|
||||
</body>
|
||||
</html>
|
@ -2,7 +2,7 @@
|
||||
"type": "Document",
|
||||
"span": {
|
||||
"start": 1,
|
||||
"end": 149,
|
||||
"end": 233,
|
||||
"ctxt": 0
|
||||
},
|
||||
"mode": "no-quirks",
|
||||
@ -22,7 +22,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 17,
|
||||
"end": 142,
|
||||
"end": 233,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "html",
|
||||
@ -46,7 +46,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 34,
|
||||
"end": 69,
|
||||
"end": 76,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "head",
|
||||
@ -66,7 +66,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 45,
|
||||
"end": 60,
|
||||
"end": 68,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "title",
|
||||
@ -110,7 +110,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 77,
|
||||
"end": 142,
|
||||
"end": 226,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "body",
|
||||
@ -130,7 +130,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 84,
|
||||
"end": 124,
|
||||
"end": 133,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "iframe",
|
||||
@ -168,7 +168,88 @@
|
||||
"type": "Text",
|
||||
"span": {
|
||||
"start": 133,
|
||||
"end": 142,
|
||||
"end": 135,
|
||||
"ctxt": 0
|
||||
},
|
||||
"value": "\n\n"
|
||||
},
|
||||
{
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 135,
|
||||
"end": 217,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "iframe",
|
||||
"namespace": "http://www.w3.org/1999/xhtml",
|
||||
"attributes": [
|
||||
{
|
||||
"type": "Attribute",
|
||||
"span": {
|
||||
"start": 143,
|
||||
"end": 160,
|
||||
"ctxt": 0
|
||||
},
|
||||
"namespace": null,
|
||||
"prefix": null,
|
||||
"name": "src",
|
||||
"value": "banner.html"
|
||||
},
|
||||
{
|
||||
"type": "Attribute",
|
||||
"span": {
|
||||
"start": 161,
|
||||
"end": 172,
|
||||
"ctxt": 0
|
||||
},
|
||||
"namespace": null,
|
||||
"prefix": null,
|
||||
"name": "width",
|
||||
"value": "468"
|
||||
},
|
||||
{
|
||||
"type": "Attribute",
|
||||
"span": {
|
||||
"start": 173,
|
||||
"end": 184,
|
||||
"ctxt": 0
|
||||
},
|
||||
"namespace": null,
|
||||
"prefix": null,
|
||||
"name": "height",
|
||||
"value": "60"
|
||||
},
|
||||
{
|
||||
"type": "Attribute",
|
||||
"span": {
|
||||
"start": 185,
|
||||
"end": 197,
|
||||
"ctxt": 0
|
||||
},
|
||||
"namespace": null,
|
||||
"prefix": null,
|
||||
"name": "align",
|
||||
"value": "left"
|
||||
}
|
||||
],
|
||||
"children": [
|
||||
{
|
||||
"type": "Text",
|
||||
"span": {
|
||||
"start": 198,
|
||||
"end": 208,
|
||||
"ctxt": 0
|
||||
},
|
||||
"value": " Text "
|
||||
}
|
||||
],
|
||||
"content": null
|
||||
},
|
||||
{
|
||||
"type": "Text",
|
||||
"span": {
|
||||
"start": 217,
|
||||
"end": 226,
|
||||
"ctxt": 0
|
||||
},
|
||||
"value": "\n\n"
|
||||
|
@ -1,16 +1,18 @@
|
||||
|
||||
x Document
|
||||
,-[$DIR/tests/fixture/element/iframe/input.html:1:1]
|
||||
1 | ,-> <!doctype html>
|
||||
2 | | <html lang="en">
|
||||
3 | | <head>
|
||||
4 | | <title>Document</title>
|
||||
5 | | </head>
|
||||
6 | | <body>
|
||||
7 | | <iframe src="test.html" frameborder="0"></iframe>
|
||||
8 | | </body>
|
||||
9 | `-> </html>
|
||||
`----
|
||||
,-[$DIR/tests/fixture/element/iframe/input.html:1:1]
|
||||
1 | ,-> <!doctype html>
|
||||
2 | | <html lang="en">
|
||||
3 | | <head>
|
||||
4 | | <title>Document</title>
|
||||
5 | | </head>
|
||||
6 | | <body>
|
||||
7 | | <iframe src="test.html" frameborder="0"></iframe>
|
||||
8 | |
|
||||
9 | | <iframe src="banner.html" width="468" height="60" align="left"> Text </iframe>
|
||||
10 | | </body>
|
||||
11 | `-> </html>
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/iframe/input.html:1:1]
|
||||
@ -25,28 +27,32 @@
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/iframe/input.html:2:1]
|
||||
2 | ,-> <html lang="en">
|
||||
3 | | <head>
|
||||
4 | | <title>Document</title>
|
||||
5 | | </head>
|
||||
6 | | <body>
|
||||
7 | | <iframe src="test.html" frameborder="0"></iframe>
|
||||
8 | `-> </body>
|
||||
9 | </html>
|
||||
`----
|
||||
,-[$DIR/tests/fixture/element/iframe/input.html:2:1]
|
||||
2 | ,-> <html lang="en">
|
||||
3 | | <head>
|
||||
4 | | <title>Document</title>
|
||||
5 | | </head>
|
||||
6 | | <body>
|
||||
7 | | <iframe src="test.html" frameborder="0"></iframe>
|
||||
8 | |
|
||||
9 | | <iframe src="banner.html" width="468" height="60" align="left"> Text </iframe>
|
||||
10 | | </body>
|
||||
11 | `-> </html>
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/iframe/input.html:2:1]
|
||||
2 | ,-> <html lang="en">
|
||||
3 | | <head>
|
||||
4 | | <title>Document</title>
|
||||
5 | | </head>
|
||||
6 | | <body>
|
||||
7 | | <iframe src="test.html" frameborder="0"></iframe>
|
||||
8 | `-> </body>
|
||||
9 | </html>
|
||||
`----
|
||||
,-[$DIR/tests/fixture/element/iframe/input.html:2:1]
|
||||
2 | ,-> <html lang="en">
|
||||
3 | | <head>
|
||||
4 | | <title>Document</title>
|
||||
5 | | </head>
|
||||
6 | | <body>
|
||||
7 | | <iframe src="test.html" frameborder="0"></iframe>
|
||||
8 | |
|
||||
9 | | <iframe src="banner.html" width="468" height="60" align="left"> Text </iframe>
|
||||
10 | | </body>
|
||||
11 | `-> </html>
|
||||
`----
|
||||
|
||||
x Attribute
|
||||
,-[$DIR/tests/fixture/element/iframe/input.html:2:1]
|
||||
@ -57,15 +63,15 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/iframe/input.html:3:1]
|
||||
3 | ,-> <head>
|
||||
4 | `-> <title>Document</title>
|
||||
5 | </head>
|
||||
4 | | <title>Document</title>
|
||||
5 | `-> </head>
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/iframe/input.html:3:1]
|
||||
3 | ,-> <head>
|
||||
4 | `-> <title>Document</title>
|
||||
5 | </head>
|
||||
4 | | <title>Document</title>
|
||||
5 | `-> </head>
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -83,13 +89,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/iframe/input.html:4:5]
|
||||
4 | <title>Document</title>
|
||||
: ^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/iframe/input.html:4:5]
|
||||
4 | <title>Document</title>
|
||||
: ^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -133,20 +139,24 @@
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/iframe/input.html:6:1]
|
||||
6 | ,-> <body>
|
||||
7 | | <iframe src="test.html" frameborder="0"></iframe>
|
||||
8 | `-> </body>
|
||||
9 | </html>
|
||||
`----
|
||||
,-[$DIR/tests/fixture/element/iframe/input.html:6:1]
|
||||
6 | ,-> <body>
|
||||
7 | | <iframe src="test.html" frameborder="0"></iframe>
|
||||
8 | |
|
||||
9 | | <iframe src="banner.html" width="468" height="60" align="left"> Text </iframe>
|
||||
10 | `-> </body>
|
||||
11 | </html>
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/iframe/input.html:6:1]
|
||||
6 | ,-> <body>
|
||||
7 | | <iframe src="test.html" frameborder="0"></iframe>
|
||||
8 | `-> </body>
|
||||
9 | </html>
|
||||
`----
|
||||
,-[$DIR/tests/fixture/element/iframe/input.html:6:1]
|
||||
6 | ,-> <body>
|
||||
7 | | <iframe src="test.html" frameborder="0"></iframe>
|
||||
8 | |
|
||||
9 | | <iframe src="banner.html" width="468" height="60" align="left"> Text </iframe>
|
||||
10 | `-> </body>
|
||||
11 | </html>
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/iframe/input.html:6:1]
|
||||
@ -165,13 +175,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/iframe/input.html:7:1]
|
||||
7 | <iframe src="test.html" frameborder="0"></iframe>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/iframe/input.html:7:1]
|
||||
7 | <iframe src="test.html" frameborder="0"></iframe>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Attribute
|
||||
@ -189,13 +199,75 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/iframe/input.html:7:1]
|
||||
7 | ,-> <iframe src="test.html" frameborder="0"></iframe>
|
||||
8 | `-> </body>
|
||||
9 | </html>
|
||||
8 | `->
|
||||
9 | <iframe src="banner.html" width="468" height="60" align="left"> Text </iframe>
|
||||
`----
|
||||
|
||||
x Text
|
||||
,-[$DIR/tests/fixture/element/iframe/input.html:7:1]
|
||||
7 | ,-> <iframe src="test.html" frameborder="0"></iframe>
|
||||
8 | `-> </body>
|
||||
9 | </html>
|
||||
8 | `->
|
||||
9 | <iframe src="banner.html" width="468" height="60" align="left"> Text </iframe>
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/iframe/input.html:9:1]
|
||||
9 | <iframe src="banner.html" width="468" height="60" align="left"> Text </iframe>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/iframe/input.html:9:1]
|
||||
9 | <iframe src="banner.html" width="468" height="60" align="left"> Text </iframe>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Attribute
|
||||
,-[$DIR/tests/fixture/element/iframe/input.html:9:1]
|
||||
9 | <iframe src="banner.html" width="468" height="60" align="left"> Text </iframe>
|
||||
: ^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Attribute
|
||||
,-[$DIR/tests/fixture/element/iframe/input.html:9:1]
|
||||
9 | <iframe src="banner.html" width="468" height="60" align="left"> Text </iframe>
|
||||
: ^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Attribute
|
||||
,-[$DIR/tests/fixture/element/iframe/input.html:9:1]
|
||||
9 | <iframe src="banner.html" width="468" height="60" align="left"> Text </iframe>
|
||||
: ^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Attribute
|
||||
,-[$DIR/tests/fixture/element/iframe/input.html:9:1]
|
||||
9 | <iframe src="banner.html" width="468" height="60" align="left"> Text </iframe>
|
||||
: ^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/iframe/input.html:9:1]
|
||||
9 | <iframe src="banner.html" width="468" height="60" align="left"> Text </iframe>
|
||||
: ^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Text
|
||||
,-[$DIR/tests/fixture/element/iframe/input.html:9:1]
|
||||
9 | <iframe src="banner.html" width="468" height="60" align="left"> Text </iframe>
|
||||
: ^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/iframe/input.html:9:1]
|
||||
9 | ,-> <iframe src="banner.html" width="468" height="60" align="left"> Text </iframe>
|
||||
10 | `-> </body>
|
||||
11 | </html>
|
||||
`----
|
||||
|
||||
x Text
|
||||
,-[$DIR/tests/fixture/element/iframe/input.html:9:1]
|
||||
9 | ,-> <iframe src="banner.html" width="468" height="60" align="left"> Text </iframe>
|
||||
10 | `-> </body>
|
||||
11 | </html>
|
||||
`----
|
||||
|
@ -66,7 +66,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 32,
|
||||
"end": 47,
|
||||
"end": 52,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "h2",
|
||||
@ -98,7 +98,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 53,
|
||||
"end": 97,
|
||||
"end": 101,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "p",
|
||||
|
@ -101,13 +101,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/img/input.html:5:1]
|
||||
5 | <h2>HTML Images</h2>
|
||||
: ^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/img/input.html:5:1]
|
||||
5 | <h2>HTML Images</h2>
|
||||
: ^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -139,13 +139,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/img/input.html:6:1]
|
||||
6 | <p>HTML images are defined with the img tag:</p>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/img/input.html:6:1]
|
||||
6 | <p>HTML images are defined with the img tag:</p>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
|
@ -57,7 +57,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 16,
|
||||
"end": 26,
|
||||
"end": 36,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "isindex",
|
||||
|
@ -28,13 +28,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/isindex/input.html:1:1]
|
||||
1 | <!doctype html><isindex>x</isindex>x
|
||||
: ^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/isindex/input.html:1:1]
|
||||
1 | <!doctype html><isindex>x</isindex>x
|
||||
: ^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
|
@ -66,7 +66,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 32,
|
||||
"end": 75,
|
||||
"end": 80,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "h2",
|
||||
@ -111,7 +111,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 82,
|
||||
"end": 142,
|
||||
"end": 147,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "ul",
|
||||
@ -131,7 +131,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 91,
|
||||
"end": 101,
|
||||
"end": 106,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "li",
|
||||
@ -163,7 +163,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 111,
|
||||
"end": 118,
|
||||
"end": 123,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "li",
|
||||
@ -195,7 +195,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 128,
|
||||
"end": 136,
|
||||
"end": 141,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "li",
|
||||
@ -239,7 +239,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 149,
|
||||
"end": 173,
|
||||
"end": 178,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "h2",
|
||||
@ -271,7 +271,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 180,
|
||||
"end": 240,
|
||||
"end": 245,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "ol",
|
||||
@ -291,7 +291,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 189,
|
||||
"end": 199,
|
||||
"end": 204,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "li",
|
||||
@ -323,7 +323,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 209,
|
||||
"end": 216,
|
||||
"end": 221,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "li",
|
||||
@ -355,7 +355,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 226,
|
||||
"end": 234,
|
||||
"end": 239,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "li",
|
||||
@ -399,7 +399,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 247,
|
||||
"end": 280,
|
||||
"end": 285,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "ul",
|
||||
@ -477,7 +477,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 291,
|
||||
"end": 336,
|
||||
"end": 341,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "ul",
|
||||
|
@ -201,13 +201,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/lists/input.html:5:1]
|
||||
5 | <h2 data-test="test">An Unordered HTML List</h2>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/lists/input.html:5:1]
|
||||
5 | <h2 data-test="test">An Unordered HTML List</h2>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Attribute
|
||||
@ -247,8 +247,8 @@
|
||||
7 | ,-> <ul>
|
||||
8 | | <li>Coffee</li>
|
||||
9 | | <li>Tea</li>
|
||||
10 | `-> <li>Milk</li>
|
||||
11 | </ul>
|
||||
10 | | <li>Milk</li>
|
||||
11 | `-> </ul>
|
||||
`----
|
||||
|
||||
x Element
|
||||
@ -256,8 +256,8 @@
|
||||
7 | ,-> <ul>
|
||||
8 | | <li>Coffee</li>
|
||||
9 | | <li>Tea</li>
|
||||
10 | `-> <li>Milk</li>
|
||||
11 | </ul>
|
||||
10 | | <li>Milk</li>
|
||||
11 | `-> </ul>
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -275,13 +275,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/lists/input.html:8:5]
|
||||
8 | <li>Coffee</li>
|
||||
: ^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/lists/input.html:8:5]
|
||||
8 | <li>Coffee</li>
|
||||
: ^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -311,13 +311,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/lists/input.html:9:5]
|
||||
9 | <li>Tea</li>
|
||||
: ^^^^^^^
|
||||
: ^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/lists/input.html:9:5]
|
||||
9 | <li>Tea</li>
|
||||
: ^^^^^^^
|
||||
: ^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -347,13 +347,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/lists/input.html:10:5]
|
||||
10 | <li>Milk</li>
|
||||
: ^^^^^^^^
|
||||
: ^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/lists/input.html:10:5]
|
||||
10 | <li>Milk</li>
|
||||
: ^^^^^^^^
|
||||
: ^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -399,13 +399,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/lists/input.html:13:1]
|
||||
13 | <h2>An Ordered HTML List</h2>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/lists/input.html:13:1]
|
||||
13 | <h2>An Ordered HTML List</h2>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -439,8 +439,8 @@
|
||||
15 | ,-> <ol>
|
||||
16 | | <li>Coffee</li>
|
||||
17 | | <li>Tea</li>
|
||||
18 | `-> <li>Milk</li>
|
||||
19 | </ol>
|
||||
18 | | <li>Milk</li>
|
||||
19 | `-> </ol>
|
||||
`----
|
||||
|
||||
x Element
|
||||
@ -448,8 +448,8 @@
|
||||
15 | ,-> <ol>
|
||||
16 | | <li>Coffee</li>
|
||||
17 | | <li>Tea</li>
|
||||
18 | `-> <li>Milk</li>
|
||||
19 | </ol>
|
||||
18 | | <li>Milk</li>
|
||||
19 | `-> </ol>
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -467,13 +467,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/lists/input.html:16:5]
|
||||
16 | <li>Coffee</li>
|
||||
: ^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/lists/input.html:16:5]
|
||||
16 | <li>Coffee</li>
|
||||
: ^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -503,13 +503,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/lists/input.html:17:5]
|
||||
17 | <li>Tea</li>
|
||||
: ^^^^^^^
|
||||
: ^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/lists/input.html:17:5]
|
||||
17 | <li>Tea</li>
|
||||
: ^^^^^^^
|
||||
: ^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -539,13 +539,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/lists/input.html:18:5]
|
||||
18 | <li>Milk</li>
|
||||
: ^^^^^^^^
|
||||
: ^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/lists/input.html:18:5]
|
||||
18 | <li>Milk</li>
|
||||
: ^^^^^^^^
|
||||
: ^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -592,16 +592,16 @@
|
||||
,-[$DIR/tests/fixture/element/lists/input.html:21:1]
|
||||
21 | ,-> <ul>
|
||||
22 | | <li>item1
|
||||
23 | `-> <li>item2
|
||||
24 | </ul>
|
||||
23 | | <li>item2
|
||||
24 | `-> </ul>
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/lists/input.html:21:1]
|
||||
21 | ,-> <ul>
|
||||
22 | | <li>item1
|
||||
23 | `-> <li>item2
|
||||
24 | </ul>
|
||||
23 | | <li>item2
|
||||
24 | `-> </ul>
|
||||
`----
|
||||
|
||||
x Child
|
||||
|
@ -57,7 +57,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 16,
|
||||
"end": 28,
|
||||
"end": 35,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "main",
|
||||
|
@ -28,13 +28,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/main/input.html:1:1]
|
||||
1 | <!doctype html><main><p>foo</main>bar
|
||||
: ^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/main/input.html:1:1]
|
||||
1 | <!doctype html><main><p>foo</main>bar
|
||||
: ^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
|
@ -22,7 +22,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 17,
|
||||
"end": 414,
|
||||
"end": 421,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "html",
|
||||
@ -46,7 +46,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 34,
|
||||
"end": 69,
|
||||
"end": 76,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "head",
|
||||
@ -66,7 +66,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 45,
|
||||
"end": 60,
|
||||
"end": 68,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "title",
|
||||
@ -130,7 +130,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 84,
|
||||
"end": 133,
|
||||
"end": 143,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "marquee",
|
||||
@ -162,7 +162,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 145,
|
||||
"end": 209,
|
||||
"end": 219,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "marquee",
|
||||
@ -207,7 +207,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 221,
|
||||
"end": 395,
|
||||
"end": 405,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "marquee",
|
||||
@ -288,7 +288,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 319,
|
||||
"end": 384,
|
||||
"end": 394,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "marquee",
|
||||
|
@ -48,8 +48,8 @@
|
||||
13 | | This text will bounce
|
||||
14 | | </marquee>
|
||||
15 | | </marquee>
|
||||
16 | `-> </body>
|
||||
17 | </html>
|
||||
16 | | </body>
|
||||
17 | `-> </html>
|
||||
`----
|
||||
|
||||
x Element
|
||||
@ -68,8 +68,8 @@
|
||||
13 | | This text will bounce
|
||||
14 | | </marquee>
|
||||
15 | | </marquee>
|
||||
16 | `-> </body>
|
||||
17 | </html>
|
||||
16 | | </body>
|
||||
17 | `-> </html>
|
||||
`----
|
||||
|
||||
x Attribute
|
||||
@ -81,15 +81,15 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/marquee/input.html:3:1]
|
||||
3 | ,-> <head>
|
||||
4 | `-> <title>Document</title>
|
||||
5 | </head>
|
||||
4 | | <title>Document</title>
|
||||
5 | `-> </head>
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/marquee/input.html:3:1]
|
||||
3 | ,-> <head>
|
||||
4 | `-> <title>Document</title>
|
||||
5 | </head>
|
||||
4 | | <title>Document</title>
|
||||
5 | `-> </head>
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -107,13 +107,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/marquee/input.html:4:5]
|
||||
4 | <title>Document</title>
|
||||
: ^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/marquee/input.html:4:5]
|
||||
4 | <title>Document</title>
|
||||
: ^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -205,13 +205,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/marquee/input.html:7:1]
|
||||
7 | <marquee>This text will scroll from right to left</marquee>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/marquee/input.html:7:1]
|
||||
7 | <marquee>This text will scroll from right to left</marquee>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -243,13 +243,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/marquee/input.html:9:1]
|
||||
9 | <marquee direction="up">This text will scroll from bottom to top</marquee>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/marquee/input.html:9:1]
|
||||
9 | <marquee direction="up">This text will scroll from bottom to top</marquee>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Attribute
|
||||
@ -289,8 +289,8 @@
|
||||
11 | ,-> <marquee direction="down" width="250" height="200" behavior="alternate" style="border:solid">
|
||||
12 | | <marquee behavior="alternate">
|
||||
13 | | This text will bounce
|
||||
14 | `-> </marquee>
|
||||
15 | </marquee>
|
||||
14 | | </marquee>
|
||||
15 | `-> </marquee>
|
||||
`----
|
||||
|
||||
x Element
|
||||
@ -298,8 +298,8 @@
|
||||
11 | ,-> <marquee direction="down" width="250" height="200" behavior="alternate" style="border:solid">
|
||||
12 | | <marquee behavior="alternate">
|
||||
13 | | This text will bounce
|
||||
14 | `-> </marquee>
|
||||
15 | </marquee>
|
||||
14 | | </marquee>
|
||||
15 | `-> </marquee>
|
||||
`----
|
||||
|
||||
x Attribute
|
||||
|
@ -22,7 +22,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 17,
|
||||
"end": 1164,
|
||||
"end": 1171,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "html",
|
||||
@ -46,7 +46,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 34,
|
||||
"end": 69,
|
||||
"end": 76,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "head",
|
||||
@ -66,7 +66,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 45,
|
||||
"end": 60,
|
||||
"end": 68,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "title",
|
||||
@ -130,7 +130,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 84,
|
||||
"end": 609,
|
||||
"end": 615,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "div",
|
||||
@ -163,7 +163,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 115,
|
||||
"end": 142,
|
||||
"end": 155,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "div",
|
||||
@ -174,7 +174,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 120,
|
||||
"end": 142,
|
||||
"end": 149,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "math",
|
||||
@ -226,7 +226,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 160,
|
||||
"end": 191,
|
||||
"end": 204,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "div",
|
||||
@ -250,7 +250,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 173,
|
||||
"end": 191,
|
||||
"end": 198,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "math",
|
||||
@ -302,7 +302,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 209,
|
||||
"end": 262,
|
||||
"end": 287,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "div",
|
||||
@ -326,7 +326,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 222,
|
||||
"end": 262,
|
||||
"end": 281,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "math",
|
||||
@ -337,7 +337,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 228,
|
||||
"end": 262,
|
||||
"end": 274,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "mrow",
|
||||
@ -348,7 +348,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 234,
|
||||
"end": 245,
|
||||
"end": 257,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "mrow",
|
||||
@ -359,7 +359,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 240,
|
||||
"end": 245,
|
||||
"end": 250,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "mn",
|
||||
@ -385,7 +385,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 257,
|
||||
"end": 262,
|
||||
"end": 267,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "mi",
|
||||
@ -426,7 +426,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 292,
|
||||
"end": 317,
|
||||
"end": 323,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "div",
|
||||
@ -471,7 +471,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 328,
|
||||
"end": 347,
|
||||
"end": 353,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "div",
|
||||
@ -516,7 +516,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 358,
|
||||
"end": 426,
|
||||
"end": 468,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "div",
|
||||
@ -540,7 +540,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 371,
|
||||
"end": 426,
|
||||
"end": 462,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "math",
|
||||
@ -551,7 +551,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 377,
|
||||
"end": 426,
|
||||
"end": 455,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "semantics",
|
||||
@ -562,7 +562,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 388,
|
||||
"end": 393,
|
||||
"end": 398,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "mi",
|
||||
@ -585,7 +585,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 398,
|
||||
"end": 426,
|
||||
"end": 443,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "annotation-xml",
|
||||
@ -643,7 +643,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 473,
|
||||
"end": 595,
|
||||
"end": 608,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "div",
|
||||
@ -667,7 +667,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 486,
|
||||
"end": 595,
|
||||
"end": 602,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "math",
|
||||
@ -678,7 +678,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 492,
|
||||
"end": 555,
|
||||
"end": 590,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "semantics",
|
||||
@ -689,7 +689,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 503,
|
||||
"end": 508,
|
||||
"end": 513,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "mi",
|
||||
@ -712,7 +712,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 513,
|
||||
"end": 555,
|
||||
"end": 578,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "annotation-xml",
|
||||
@ -736,7 +736,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 550,
|
||||
"end": 555,
|
||||
"end": 561,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "div",
|
||||
@ -795,7 +795,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 617,
|
||||
"end": 1149,
|
||||
"end": 1155,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "div",
|
||||
@ -815,7 +815,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 627,
|
||||
"end": 654,
|
||||
"end": 667,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "div",
|
||||
@ -826,7 +826,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 632,
|
||||
"end": 654,
|
||||
"end": 661,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "math",
|
||||
@ -878,7 +878,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 672,
|
||||
"end": 716,
|
||||
"end": 729,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "div",
|
||||
@ -902,7 +902,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 685,
|
||||
"end": 716,
|
||||
"end": 723,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "math",
|
||||
@ -954,7 +954,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 734,
|
||||
"end": 838,
|
||||
"end": 880,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "div",
|
||||
@ -978,7 +978,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 747,
|
||||
"end": 838,
|
||||
"end": 874,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "math",
|
||||
@ -989,7 +989,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 753,
|
||||
"end": 838,
|
||||
"end": 867,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "semantics",
|
||||
@ -1013,7 +1013,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 800,
|
||||
"end": 805,
|
||||
"end": 810,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "mi",
|
||||
@ -1036,7 +1036,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 810,
|
||||
"end": 838,
|
||||
"end": 855,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "annotation-xml",
|
||||
@ -1094,7 +1094,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 885,
|
||||
"end": 928,
|
||||
"end": 956,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "div",
|
||||
@ -1105,7 +1105,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 890,
|
||||
"end": 928,
|
||||
"end": 950,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "math",
|
||||
@ -1129,7 +1129,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 914,
|
||||
"end": 928,
|
||||
"end": 943,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "mtext",
|
||||
@ -1140,7 +1140,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 921,
|
||||
"end": 928,
|
||||
"end": 935,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "span",
|
||||
@ -1181,7 +1181,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 961,
|
||||
"end": 998,
|
||||
"end": 1023,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "div",
|
||||
@ -1192,7 +1192,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 966,
|
||||
"end": 998,
|
||||
"end": 1017,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "math",
|
||||
@ -1216,7 +1216,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 987,
|
||||
"end": 998,
|
||||
"end": 1010,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "mi",
|
||||
@ -1227,7 +1227,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 991,
|
||||
"end": 998,
|
||||
"end": 1005,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "span",
|
||||
@ -1268,7 +1268,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 1028,
|
||||
"end": 1065,
|
||||
"end": 1090,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "div",
|
||||
@ -1279,7 +1279,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 1033,
|
||||
"end": 1065,
|
||||
"end": 1084,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "math",
|
||||
@ -1303,7 +1303,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 1054,
|
||||
"end": 1065,
|
||||
"end": 1077,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "mtext",
|
||||
@ -1314,7 +1314,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 1061,
|
||||
"end": 1065,
|
||||
"end": 1069,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "p",
|
||||
@ -1355,7 +1355,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 1095,
|
||||
"end": 1126,
|
||||
"end": 1148,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "div",
|
||||
@ -1366,7 +1366,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 1100,
|
||||
"end": 1126,
|
||||
"end": 1142,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "math",
|
||||
@ -1390,7 +1390,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 1118,
|
||||
"end": 1126,
|
||||
"end": 1135,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "mi",
|
||||
@ -1401,7 +1401,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 1122,
|
||||
"end": 1126,
|
||||
"end": 1130,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "p",
|
||||
|
@ -68,8 +68,8 @@
|
||||
23 | | <div><math id="m3p-mtext"><mtext><P>x</P></mtext></math></div>
|
||||
24 | | <div><math id="m3p-mi"><mi><P>x</P></mi></math></div>
|
||||
25 | | </div>
|
||||
26 | `-> </body>
|
||||
27 | </html>
|
||||
26 | | </body>
|
||||
27 | `-> </html>
|
||||
`----
|
||||
|
||||
x Element
|
||||
@ -98,8 +98,8 @@
|
||||
23 | | <div><math id="m3p-mtext"><mtext><P>x</P></mtext></math></div>
|
||||
24 | | <div><math id="m3p-mi"><mi><P>x</P></mi></math></div>
|
||||
25 | | </div>
|
||||
26 | `-> </body>
|
||||
27 | </html>
|
||||
26 | | </body>
|
||||
27 | `-> </html>
|
||||
`----
|
||||
|
||||
x Attribute
|
||||
@ -111,15 +111,15 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/math-1/input.html:3:1]
|
||||
3 | ,-> <head>
|
||||
4 | `-> <title>Document</title>
|
||||
5 | </head>
|
||||
4 | | <title>Document</title>
|
||||
5 | `-> </head>
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/math-1/input.html:3:1]
|
||||
3 | ,-> <head>
|
||||
4 | `-> <title>Document</title>
|
||||
5 | </head>
|
||||
4 | | <title>Document</title>
|
||||
5 | `-> </head>
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -137,13 +137,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/math-1/input.html:4:5]
|
||||
4 | <title>Document</title>
|
||||
: ^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/math-1/input.html:4:5]
|
||||
4 | <title>Document</title>
|
||||
: ^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -261,8 +261,8 @@
|
||||
11 | | <div id="d3">⟨⟩</div>
|
||||
12 | | <div id="d4">𝕂</div>
|
||||
13 | | <div id="d5"><math><semantics><mi>a</mi><annotation-xml><foo/><bar/></annotation-xml></semantics></math></div>
|
||||
14 | `-> <div id="d6"><math><semantics><mi>a</mi><annotation-xml encoding="text/html"><div></div></annotation-xml></semantics><mn/></math></div>
|
||||
15 | </div>
|
||||
14 | | <div id="d6"><math><semantics><mi>a</mi><annotation-xml encoding="text/html"><div></div></annotation-xml></semantics><mn/></math></div>
|
||||
15 | `-> </div>
|
||||
`----
|
||||
|
||||
x Element
|
||||
@ -274,8 +274,8 @@
|
||||
11 | | <div id="d3">⟨⟩</div>
|
||||
12 | | <div id="d4">𝕂</div>
|
||||
13 | | <div id="d5"><math><semantics><mi>a</mi><annotation-xml><foo/><bar/></annotation-xml></semantics></math></div>
|
||||
14 | `-> <div id="d6"><math><semantics><mi>a</mi><annotation-xml encoding="text/html"><div></div></annotation-xml></semantics><mn/></math></div>
|
||||
15 | </div>
|
||||
14 | | <div id="d6"><math><semantics><mi>a</mi><annotation-xml encoding="text/html"><div></div></annotation-xml></semantics><mn/></math></div>
|
||||
15 | `-> </div>
|
||||
`----
|
||||
|
||||
x Attribute
|
||||
@ -299,25 +299,25 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/math-1/input.html:8:5]
|
||||
8 | <div><math id="m1"><mtext/></math></div>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/math-1/input.html:8:5]
|
||||
8 | <div><math id="m1"><mtext/></math></div>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/math-1/input.html:8:5]
|
||||
8 | <div><math id="m1"><mtext/></math></div>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/math-1/input.html:8:5]
|
||||
8 | <div><math id="m1"><mtext/></math></div>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Attribute
|
||||
@ -353,13 +353,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/math-1/input.html:9:5]
|
||||
9 | <div id="d1"><math><mrow/><mi/></math></div>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/math-1/input.html:9:5]
|
||||
9 | <div id="d1"><math><mrow/><mi/></math></div>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Attribute
|
||||
@ -371,13 +371,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/math-1/input.html:9:5]
|
||||
9 | <div id="d1"><math><mrow/><mi/></math></div>
|
||||
: ^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/math-1/input.html:9:5]
|
||||
9 | <div id="d1"><math><mrow/><mi/></math></div>
|
||||
: ^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -419,13 +419,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/math-1/input.html:10:5]
|
||||
10 | <div id="d2"><math><mrow><mrow><mn>1</mn></mrow><mi>a</mi></mrow></math></div>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/math-1/input.html:10:5]
|
||||
10 | <div id="d2"><math><mrow><mrow><mn>1</mn></mrow><mi>a</mi></mrow></math></div>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Attribute
|
||||
@ -437,49 +437,49 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/math-1/input.html:10:5]
|
||||
10 | <div id="d2"><math><mrow><mrow><mn>1</mn></mrow><mi>a</mi></mrow></math></div>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/math-1/input.html:10:5]
|
||||
10 | <div id="d2"><math><mrow><mrow><mn>1</mn></mrow><mi>a</mi></mrow></math></div>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/math-1/input.html:10:5]
|
||||
10 | <div id="d2"><math><mrow><mrow><mn>1</mn></mrow><mi>a</mi></mrow></math></div>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/math-1/input.html:10:5]
|
||||
10 | <div id="d2"><math><mrow><mrow><mn>1</mn></mrow><mi>a</mi></mrow></math></div>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/math-1/input.html:10:5]
|
||||
10 | <div id="d2"><math><mrow><mrow><mn>1</mn></mrow><mi>a</mi></mrow></math></div>
|
||||
: ^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/math-1/input.html:10:5]
|
||||
10 | <div id="d2"><math><mrow><mrow><mn>1</mn></mrow><mi>a</mi></mrow></math></div>
|
||||
: ^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/math-1/input.html:10:5]
|
||||
10 | <div id="d2"><math><mrow><mrow><mn>1</mn></mrow><mi>a</mi></mrow></math></div>
|
||||
: ^^^^^
|
||||
: ^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/math-1/input.html:10:5]
|
||||
10 | <div id="d2"><math><mrow><mrow><mn>1</mn></mrow><mi>a</mi></mrow></math></div>
|
||||
: ^^^^^
|
||||
: ^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -497,13 +497,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/math-1/input.html:10:5]
|
||||
10 | <div id="d2"><math><mrow><mrow><mn>1</mn></mrow><mi>a</mi></mrow></math></div>
|
||||
: ^^^^^
|
||||
: ^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/math-1/input.html:10:5]
|
||||
10 | <div id="d2"><math><mrow><mrow><mn>1</mn></mrow><mi>a</mi></mrow></math></div>
|
||||
: ^^^^^
|
||||
: ^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -533,13 +533,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/math-1/input.html:11:5]
|
||||
11 | <div id="d3">⟨⟩</div>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/math-1/input.html:11:5]
|
||||
11 | <div id="d3">⟨⟩</div>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Attribute
|
||||
@ -575,13 +575,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/math-1/input.html:12:5]
|
||||
12 | <div id="d4">𝕂</div>
|
||||
: ^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/math-1/input.html:12:5]
|
||||
12 | <div id="d4">𝕂</div>
|
||||
: ^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Attribute
|
||||
@ -617,13 +617,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/math-1/input.html:13:5]
|
||||
13 | <div id="d5"><math><semantics><mi>a</mi><annotation-xml><foo/><bar/></annotation-xml></semantics></math></div>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/math-1/input.html:13:5]
|
||||
13 | <div id="d5"><math><semantics><mi>a</mi><annotation-xml><foo/><bar/></annotation-xml></semantics></math></div>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Attribute
|
||||
@ -635,37 +635,37 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/math-1/input.html:13:5]
|
||||
13 | <div id="d5"><math><semantics><mi>a</mi><annotation-xml><foo/><bar/></annotation-xml></semantics></math></div>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/math-1/input.html:13:5]
|
||||
13 | <div id="d5"><math><semantics><mi>a</mi><annotation-xml><foo/><bar/></annotation-xml></semantics></math></div>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/math-1/input.html:13:5]
|
||||
13 | <div id="d5"><math><semantics><mi>a</mi><annotation-xml><foo/><bar/></annotation-xml></semantics></math></div>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/math-1/input.html:13:5]
|
||||
13 | <div id="d5"><math><semantics><mi>a</mi><annotation-xml><foo/><bar/></annotation-xml></semantics></math></div>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/math-1/input.html:13:5]
|
||||
13 | <div id="d5"><math><semantics><mi>a</mi><annotation-xml><foo/><bar/></annotation-xml></semantics></math></div>
|
||||
: ^^^^^
|
||||
: ^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/math-1/input.html:13:5]
|
||||
13 | <div id="d5"><math><semantics><mi>a</mi><annotation-xml><foo/><bar/></annotation-xml></semantics></math></div>
|
||||
: ^^^^^
|
||||
: ^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -683,13 +683,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/math-1/input.html:13:5]
|
||||
13 | <div id="d5"><math><semantics><mi>a</mi><annotation-xml><foo/><bar/></annotation-xml></semantics></math></div>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/math-1/input.html:13:5]
|
||||
13 | <div id="d5"><math><semantics><mi>a</mi><annotation-xml><foo/><bar/></annotation-xml></semantics></math></div>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -731,13 +731,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/math-1/input.html:14:5]
|
||||
14 | <div id="d6"><math><semantics><mi>a</mi><annotation-xml encoding="text/html"><div></div></annotation-xml></semantics><mn/></math></div>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/math-1/input.html:14:5]
|
||||
14 | <div id="d6"><math><semantics><mi>a</mi><annotation-xml encoding="text/html"><div></div></annotation-xml></semantics><mn/></math></div>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Attribute
|
||||
@ -749,37 +749,37 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/math-1/input.html:14:5]
|
||||
14 | <div id="d6"><math><semantics><mi>a</mi><annotation-xml encoding="text/html"><div></div></annotation-xml></semantics><mn/></math></div>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/math-1/input.html:14:5]
|
||||
14 | <div id="d6"><math><semantics><mi>a</mi><annotation-xml encoding="text/html"><div></div></annotation-xml></semantics><mn/></math></div>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/math-1/input.html:14:5]
|
||||
14 | <div id="d6"><math><semantics><mi>a</mi><annotation-xml encoding="text/html"><div></div></annotation-xml></semantics><mn/></math></div>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/math-1/input.html:14:5]
|
||||
14 | <div id="d6"><math><semantics><mi>a</mi><annotation-xml encoding="text/html"><div></div></annotation-xml></semantics><mn/></math></div>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/math-1/input.html:14:5]
|
||||
14 | <div id="d6"><math><semantics><mi>a</mi><annotation-xml encoding="text/html"><div></div></annotation-xml></semantics><mn/></math></div>
|
||||
: ^^^^^
|
||||
: ^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/math-1/input.html:14:5]
|
||||
14 | <div id="d6"><math><semantics><mi>a</mi><annotation-xml encoding="text/html"><div></div></annotation-xml></semantics><mn/></math></div>
|
||||
: ^^^^^
|
||||
: ^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -797,13 +797,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/math-1/input.html:14:5]
|
||||
14 | <div id="d6"><math><semantics><mi>a</mi><annotation-xml encoding="text/html"><div></div></annotation-xml></semantics><mn/></math></div>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/math-1/input.html:14:5]
|
||||
14 | <div id="d6"><math><semantics><mi>a</mi><annotation-xml encoding="text/html"><div></div></annotation-xml></semantics><mn/></math></div>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Attribute
|
||||
@ -815,13 +815,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/math-1/input.html:14:5]
|
||||
14 | <div id="d6"><math><semantics><mi>a</mi><annotation-xml encoding="text/html"><div></div></annotation-xml></semantics><mn/></math></div>
|
||||
: ^^^^^
|
||||
: ^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/math-1/input.html:14:5]
|
||||
14 | <div id="d6"><math><semantics><mi>a</mi><annotation-xml encoding="text/html"><div></div></annotation-xml></semantics><mn/></math></div>
|
||||
: ^^^^^
|
||||
: ^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -873,8 +873,8 @@
|
||||
21 | | <div><math id="m3span-mtext"><mtext><Span>x</Span></mtext></math></div>
|
||||
22 | | <div><math id="m3span-mi"><mi><Span>x</Span></mi></math></div>
|
||||
23 | | <div><math id="m3p-mtext"><mtext><P>x</P></mtext></math></div>
|
||||
24 | `-> <div><math id="m3p-mi"><mi><P>x</P></mi></math></div>
|
||||
25 | </div>
|
||||
24 | | <div><math id="m3p-mi"><mi><P>x</P></mi></math></div>
|
||||
25 | `-> </div>
|
||||
`----
|
||||
|
||||
x Element
|
||||
@ -886,8 +886,8 @@
|
||||
21 | | <div><math id="m3span-mtext"><mtext><Span>x</Span></mtext></math></div>
|
||||
22 | | <div><math id="m3span-mi"><mi><Span>x</Span></mi></math></div>
|
||||
23 | | <div><math id="m3p-mtext"><mtext><P>x</P></mtext></math></div>
|
||||
24 | `-> <div><math id="m3p-mi"><mi><P>x</P></mi></math></div>
|
||||
25 | </div>
|
||||
24 | | <div><math id="m3p-mi"><mi><P>x</P></mi></math></div>
|
||||
25 | `-> </div>
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -905,25 +905,25 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/math-1/input.html:18:5]
|
||||
18 | <div><MATH id="m1"><Mtext/></math></div>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/math-1/input.html:18:5]
|
||||
18 | <div><MATH id="m1"><Mtext/></math></div>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/math-1/input.html:18:5]
|
||||
18 | <div><MATH id="m1"><Mtext/></math></div>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/math-1/input.html:18:5]
|
||||
18 | <div><MATH id="m1"><Mtext/></math></div>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Attribute
|
||||
@ -959,13 +959,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/math-1/input.html:19:5]
|
||||
19 | <div id="d1"><math><MI MATHVARIANT="BOLD" /></math></div>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/math-1/input.html:19:5]
|
||||
19 | <div id="d1"><math><MI MATHVARIANT="BOLD" /></math></div>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Attribute
|
||||
@ -977,13 +977,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/math-1/input.html:19:5]
|
||||
19 | <div id="d1"><math><MI MATHVARIANT="BOLD" /></math></div>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/math-1/input.html:19:5]
|
||||
19 | <div id="d1"><math><MI MATHVARIANT="BOLD" /></math></div>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -1019,13 +1019,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/math-1/input.html:20:5]
|
||||
20 | <div id="d2"><math><semantics DEFINITIONurl="www.example.org/FOO"><mi>a</mi><annotation-xml><foo/><bar/></annotation-xml></semantics></math></div>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/math-1/input.html:20:5]
|
||||
20 | <div id="d2"><math><semantics DEFINITIONurl="www.example.org/FOO"><mi>a</mi><annotation-xml><foo/><bar/></annotation-xml></semantics></math></div>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Attribute
|
||||
@ -1037,25 +1037,25 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/math-1/input.html:20:5]
|
||||
20 | <div id="d2"><math><semantics DEFINITIONurl="www.example.org/FOO"><mi>a</mi><annotation-xml><foo/><bar/></annotation-xml></semantics></math></div>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/math-1/input.html:20:5]
|
||||
20 | <div id="d2"><math><semantics DEFINITIONurl="www.example.org/FOO"><mi>a</mi><annotation-xml><foo/><bar/></annotation-xml></semantics></math></div>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/math-1/input.html:20:5]
|
||||
20 | <div id="d2"><math><semantics DEFINITIONurl="www.example.org/FOO"><mi>a</mi><annotation-xml><foo/><bar/></annotation-xml></semantics></math></div>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/math-1/input.html:20:5]
|
||||
20 | <div id="d2"><math><semantics DEFINITIONurl="www.example.org/FOO"><mi>a</mi><annotation-xml><foo/><bar/></annotation-xml></semantics></math></div>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Attribute
|
||||
@ -1067,13 +1067,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/math-1/input.html:20:5]
|
||||
20 | <div id="d2"><math><semantics DEFINITIONurl="www.example.org/FOO"><mi>a</mi><annotation-xml><foo/><bar/></annotation-xml></semantics></math></div>
|
||||
: ^^^^^
|
||||
: ^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/math-1/input.html:20:5]
|
||||
20 | <div id="d2"><math><semantics DEFINITIONurl="www.example.org/FOO"><mi>a</mi><annotation-xml><foo/><bar/></annotation-xml></semantics></math></div>
|
||||
: ^^^^^
|
||||
: ^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -1091,13 +1091,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/math-1/input.html:20:5]
|
||||
20 | <div id="d2"><math><semantics DEFINITIONurl="www.example.org/FOO"><mi>a</mi><annotation-xml><foo/><bar/></annotation-xml></semantics></math></div>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/math-1/input.html:20:5]
|
||||
20 | <div id="d2"><math><semantics DEFINITIONurl="www.example.org/FOO"><mi>a</mi><annotation-xml><foo/><bar/></annotation-xml></semantics></math></div>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -1139,25 +1139,25 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/math-1/input.html:21:5]
|
||||
21 | <div><math id="m3span-mtext"><mtext><Span>x</Span></mtext></math></div>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/math-1/input.html:21:5]
|
||||
21 | <div><math id="m3span-mtext"><mtext><Span>x</Span></mtext></math></div>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/math-1/input.html:21:5]
|
||||
21 | <div><math id="m3span-mtext"><mtext><Span>x</Span></mtext></math></div>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/math-1/input.html:21:5]
|
||||
21 | <div><math id="m3span-mtext"><mtext><Span>x</Span></mtext></math></div>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Attribute
|
||||
@ -1169,25 +1169,25 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/math-1/input.html:21:5]
|
||||
21 | <div><math id="m3span-mtext"><mtext><Span>x</Span></mtext></math></div>
|
||||
: ^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/math-1/input.html:21:5]
|
||||
21 | <div><math id="m3span-mtext"><mtext><Span>x</Span></mtext></math></div>
|
||||
: ^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/math-1/input.html:21:5]
|
||||
21 | <div><math id="m3span-mtext"><mtext><Span>x</Span></mtext></math></div>
|
||||
: ^^^^^^^
|
||||
: ^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/math-1/input.html:21:5]
|
||||
21 | <div><math id="m3span-mtext"><mtext><Span>x</Span></mtext></math></div>
|
||||
: ^^^^^^^
|
||||
: ^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -1217,25 +1217,25 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/math-1/input.html:22:5]
|
||||
22 | <div><math id="m3span-mi"><mi><Span>x</Span></mi></math></div>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/math-1/input.html:22:5]
|
||||
22 | <div><math id="m3span-mi"><mi><Span>x</Span></mi></math></div>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/math-1/input.html:22:5]
|
||||
22 | <div><math id="m3span-mi"><mi><Span>x</Span></mi></math></div>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/math-1/input.html:22:5]
|
||||
22 | <div><math id="m3span-mi"><mi><Span>x</Span></mi></math></div>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Attribute
|
||||
@ -1247,25 +1247,25 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/math-1/input.html:22:5]
|
||||
22 | <div><math id="m3span-mi"><mi><Span>x</Span></mi></math></div>
|
||||
: ^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/math-1/input.html:22:5]
|
||||
22 | <div><math id="m3span-mi"><mi><Span>x</Span></mi></math></div>
|
||||
: ^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/math-1/input.html:22:5]
|
||||
22 | <div><math id="m3span-mi"><mi><Span>x</Span></mi></math></div>
|
||||
: ^^^^^^^
|
||||
: ^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/math-1/input.html:22:5]
|
||||
22 | <div><math id="m3span-mi"><mi><Span>x</Span></mi></math></div>
|
||||
: ^^^^^^^
|
||||
: ^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -1295,25 +1295,25 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/math-1/input.html:23:5]
|
||||
23 | <div><math id="m3p-mtext"><mtext><P>x</P></mtext></math></div>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/math-1/input.html:23:5]
|
||||
23 | <div><math id="m3p-mtext"><mtext><P>x</P></mtext></math></div>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/math-1/input.html:23:5]
|
||||
23 | <div><math id="m3p-mtext"><mtext><P>x</P></mtext></math></div>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/math-1/input.html:23:5]
|
||||
23 | <div><math id="m3p-mtext"><mtext><P>x</P></mtext></math></div>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Attribute
|
||||
@ -1325,25 +1325,25 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/math-1/input.html:23:5]
|
||||
23 | <div><math id="m3p-mtext"><mtext><P>x</P></mtext></math></div>
|
||||
: ^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/math-1/input.html:23:5]
|
||||
23 | <div><math id="m3p-mtext"><mtext><P>x</P></mtext></math></div>
|
||||
: ^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/math-1/input.html:23:5]
|
||||
23 | <div><math id="m3p-mtext"><mtext><P>x</P></mtext></math></div>
|
||||
: ^^^^
|
||||
: ^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/math-1/input.html:23:5]
|
||||
23 | <div><math id="m3p-mtext"><mtext><P>x</P></mtext></math></div>
|
||||
: ^^^^
|
||||
: ^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -1373,25 +1373,25 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/math-1/input.html:24:5]
|
||||
24 | <div><math id="m3p-mi"><mi><P>x</P></mi></math></div>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/math-1/input.html:24:5]
|
||||
24 | <div><math id="m3p-mi"><mi><P>x</P></mi></math></div>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/math-1/input.html:24:5]
|
||||
24 | <div><math id="m3p-mi"><mi><P>x</P></mi></math></div>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/math-1/input.html:24:5]
|
||||
24 | <div><math id="m3p-mi"><mi><P>x</P></mi></math></div>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Attribute
|
||||
@ -1403,25 +1403,25 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/math-1/input.html:24:5]
|
||||
24 | <div><math id="m3p-mi"><mi><P>x</P></mi></math></div>
|
||||
: ^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/math-1/input.html:24:5]
|
||||
24 | <div><math id="m3p-mi"><mi><P>x</P></mi></math></div>
|
||||
: ^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/math-1/input.html:24:5]
|
||||
24 | <div><math id="m3p-mi"><mi><P>x</P></mi></math></div>
|
||||
: ^^^^
|
||||
: ^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/math-1/input.html:24:5]
|
||||
24 | <div><math id="m3p-mi"><mi><P>x</P></mi></math></div>
|
||||
: ^^^^
|
||||
: ^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
|
@ -33,7 +33,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 24,
|
||||
"end": 66,
|
||||
"end": 73,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "head",
|
||||
@ -53,7 +53,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 35,
|
||||
"end": 57,
|
||||
"end": 65,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "title",
|
||||
@ -117,7 +117,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 82,
|
||||
"end": 448,
|
||||
"end": 455,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "math",
|
||||
@ -137,7 +137,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 93,
|
||||
"end": 440,
|
||||
"end": 447,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "mrow",
|
||||
@ -157,7 +157,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 108,
|
||||
"end": 332,
|
||||
"end": 339,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "mrow",
|
||||
@ -177,7 +177,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 127,
|
||||
"end": 200,
|
||||
"end": 207,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "msup",
|
||||
@ -197,7 +197,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 150,
|
||||
"end": 155,
|
||||
"end": 160,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "mi",
|
||||
@ -229,7 +229,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 177,
|
||||
"end": 182,
|
||||
"end": 187,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "mn",
|
||||
@ -273,7 +273,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 220,
|
||||
"end": 225,
|
||||
"end": 230,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "mo",
|
||||
@ -305,7 +305,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 243,
|
||||
"end": 316,
|
||||
"end": 323,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "msup",
|
||||
@ -325,7 +325,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 266,
|
||||
"end": 271,
|
||||
"end": 276,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "mi",
|
||||
@ -357,7 +357,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 293,
|
||||
"end": 298,
|
||||
"end": 303,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "mn",
|
||||
@ -413,7 +413,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 348,
|
||||
"end": 353,
|
||||
"end": 358,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "mo",
|
||||
@ -445,7 +445,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 367,
|
||||
"end": 428,
|
||||
"end": 435,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "msup",
|
||||
@ -465,7 +465,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 386,
|
||||
"end": 391,
|
||||
"end": 396,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "mi",
|
||||
@ -497,7 +497,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 409,
|
||||
"end": 414,
|
||||
"end": 419,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "mn",
|
||||
@ -565,7 +565,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 457,
|
||||
"end": 810,
|
||||
"end": 817,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "math",
|
||||
@ -598,7 +598,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 511,
|
||||
"end": 800,
|
||||
"end": 809,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "matrix",
|
||||
@ -618,7 +618,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 528,
|
||||
"end": 599,
|
||||
"end": 611,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "matrixrow",
|
||||
@ -638,7 +638,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 552,
|
||||
"end": 559,
|
||||
"end": 564,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "cn",
|
||||
@ -670,7 +670,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 565,
|
||||
"end": 572,
|
||||
"end": 577,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "cn",
|
||||
@ -702,7 +702,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 578,
|
||||
"end": 585,
|
||||
"end": 590,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "cn",
|
||||
@ -746,7 +746,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 620,
|
||||
"end": 691,
|
||||
"end": 703,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "matrixrow",
|
||||
@ -766,7 +766,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 644,
|
||||
"end": 651,
|
||||
"end": 656,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "cn",
|
||||
@ -798,7 +798,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 657,
|
||||
"end": 664,
|
||||
"end": 669,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "cn",
|
||||
@ -830,7 +830,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 670,
|
||||
"end": 677,
|
||||
"end": 682,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "cn",
|
||||
@ -874,7 +874,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 712,
|
||||
"end": 783,
|
||||
"end": 795,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "matrixrow",
|
||||
@ -894,7 +894,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 736,
|
||||
"end": 743,
|
||||
"end": 748,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "cn",
|
||||
@ -926,7 +926,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 749,
|
||||
"end": 756,
|
||||
"end": 761,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "cn",
|
||||
@ -958,7 +958,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 762,
|
||||
"end": 769,
|
||||
"end": 774,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "cn",
|
||||
@ -1026,7 +1026,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 819,
|
||||
"end": 885,
|
||||
"end": 892,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "math",
|
||||
@ -1093,7 +1093,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 894,
|
||||
"end": 1732,
|
||||
"end": 1739,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "math",
|
||||
@ -1113,7 +1113,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 905,
|
||||
"end": 1719,
|
||||
"end": 1731,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "semantics",
|
||||
@ -1151,7 +1151,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 963,
|
||||
"end": 1117,
|
||||
"end": 1124,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "mrow",
|
||||
@ -1171,7 +1171,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 982,
|
||||
"end": 1055,
|
||||
"end": 1062,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "msup",
|
||||
@ -1191,7 +1191,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 1005,
|
||||
"end": 1010,
|
||||
"end": 1015,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "mi",
|
||||
@ -1223,7 +1223,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 1032,
|
||||
"end": 1037,
|
||||
"end": 1042,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "mn",
|
||||
@ -1267,7 +1267,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 1075,
|
||||
"end": 1080,
|
||||
"end": 1085,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "mo",
|
||||
@ -1299,7 +1299,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 1098,
|
||||
"end": 1103,
|
||||
"end": 1108,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "mi",
|
||||
@ -1361,7 +1361,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 1166,
|
||||
"end": 1464,
|
||||
"end": 1481,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "annotation-xml",
|
||||
@ -1394,7 +1394,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 1221,
|
||||
"end": 1447,
|
||||
"end": 1455,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "apply",
|
||||
@ -1436,7 +1436,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 1269,
|
||||
"end": 1399,
|
||||
"end": 1407,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "apply",
|
||||
@ -1478,7 +1478,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 1326,
|
||||
"end": 1331,
|
||||
"end": 1336,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "ci",
|
||||
@ -1510,7 +1510,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 1357,
|
||||
"end": 1377,
|
||||
"end": 1382,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "cn",
|
||||
@ -1567,7 +1567,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 1424,
|
||||
"end": 1429,
|
||||
"end": 1434,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "ci",
|
||||
@ -1706,7 +1706,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 1628,
|
||||
"end": 1700,
|
||||
"end": 1713,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "annotation",
|
||||
@ -1775,7 +1775,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 1741,
|
||||
"end": 2656,
|
||||
"end": 2663,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "math",
|
||||
@ -1795,7 +1795,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 1752,
|
||||
"end": 2646,
|
||||
"end": 2655,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "mtable",
|
||||
@ -1815,7 +1815,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 1769,
|
||||
"end": 2220,
|
||||
"end": 2226,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "mtr",
|
||||
@ -1848,7 +1848,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 1807,
|
||||
"end": 2205,
|
||||
"end": 2211,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "mtd",
|
||||
@ -1868,7 +1868,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 1829,
|
||||
"end": 2185,
|
||||
"end": 2192,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "mrow",
|
||||
@ -1888,7 +1888,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 1856,
|
||||
"end": 1861,
|
||||
"end": 1866,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "mn",
|
||||
@ -1920,7 +1920,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 1887,
|
||||
"end": 1907,
|
||||
"end": 1912,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "mo",
|
||||
@ -1965,7 +1965,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 1947,
|
||||
"end": 1952,
|
||||
"end": 1957,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "mi",
|
||||
@ -2010,7 +2010,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 1992,
|
||||
"end": 1997,
|
||||
"end": 2002,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "mo",
|
||||
@ -2055,7 +2055,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 2037,
|
||||
"end": 2042,
|
||||
"end": 2047,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "mi",
|
||||
@ -2100,7 +2100,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 2082,
|
||||
"end": 2087,
|
||||
"end": 2092,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "mo",
|
||||
@ -2132,7 +2132,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 2113,
|
||||
"end": 2118,
|
||||
"end": 2123,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "mo",
|
||||
@ -2177,7 +2177,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 2158,
|
||||
"end": 2163,
|
||||
"end": 2168,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "mn",
|
||||
@ -2245,7 +2245,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 2235,
|
||||
"end": 2635,
|
||||
"end": 2641,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "mtr",
|
||||
@ -2265,7 +2265,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 2253,
|
||||
"end": 2620,
|
||||
"end": 2626,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "mtd",
|
||||
@ -2285,7 +2285,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 2275,
|
||||
"end": 2600,
|
||||
"end": 2607,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "mrow",
|
||||
@ -2318,7 +2318,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 2316,
|
||||
"end": 2321,
|
||||
"end": 2326,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "mi",
|
||||
@ -2363,7 +2363,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 2361,
|
||||
"end": 2366,
|
||||
"end": 2371,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "mo",
|
||||
@ -2395,7 +2395,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 2392,
|
||||
"end": 2397,
|
||||
"end": 2402,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "mn",
|
||||
@ -2427,7 +2427,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 2423,
|
||||
"end": 2443,
|
||||
"end": 2448,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "mo",
|
||||
@ -2472,7 +2472,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 2483,
|
||||
"end": 2488,
|
||||
"end": 2493,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "mi",
|
||||
@ -2517,7 +2517,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 2528,
|
||||
"end": 2533,
|
||||
"end": 2538,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "mo",
|
||||
@ -2562,7 +2562,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 2573,
|
||||
"end": 2578,
|
||||
"end": 2583,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "mn",
|
||||
@ -2654,7 +2654,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 2665,
|
||||
"end": 2758,
|
||||
"end": 2765,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "math",
|
||||
@ -2674,7 +2674,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 2677,
|
||||
"end": 2707,
|
||||
"end": 2715,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "mtext",
|
||||
@ -2706,7 +2706,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 2721,
|
||||
"end": 2748,
|
||||
"end": 2756,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "mtext",
|
||||
@ -2750,7 +2750,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 2767,
|
||||
"end": 2823,
|
||||
"end": 2830,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "math",
|
||||
@ -2770,7 +2770,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 2778,
|
||||
"end": 2814,
|
||||
"end": 2822,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "mtext",
|
||||
@ -2790,7 +2790,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 2794,
|
||||
"end": 2803,
|
||||
"end": 2809,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "div",
|
||||
@ -2846,7 +2846,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 2832,
|
||||
"end": 2978,
|
||||
"end": 2985,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "math",
|
||||
@ -2866,7 +2866,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 2843,
|
||||
"end": 2970,
|
||||
"end": 2977,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "msup",
|
||||
@ -2886,7 +2886,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 2858,
|
||||
"end": 2937,
|
||||
"end": 2944,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "mrow",
|
||||
@ -2906,7 +2906,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 2877,
|
||||
"end": 2884,
|
||||
"end": 2889,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "mi",
|
||||
@ -2985,7 +2985,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 2953,
|
||||
"end": 2960,
|
||||
"end": 2965,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "mn",
|
||||
@ -3041,7 +3041,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 2987,
|
||||
"end": 4023,
|
||||
"end": 4030,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "math",
|
||||
@ -3061,7 +3061,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 2998,
|
||||
"end": 4005,
|
||||
"end": 4022,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "annotation-xml",
|
||||
@ -3081,7 +3081,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 3023,
|
||||
"end": 3994,
|
||||
"end": 4000,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "svg",
|
||||
@ -3150,7 +3150,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 3116,
|
||||
"end": 3981,
|
||||
"end": 3985,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "g",
|
||||
@ -3183,7 +3183,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 3165,
|
||||
"end": 3310,
|
||||
"end": 3317,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "path",
|
||||
@ -3242,7 +3242,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 3334,
|
||||
"end": 3370,
|
||||
"end": 3377,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "text",
|
||||
@ -3287,7 +3287,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 3394,
|
||||
"end": 3959,
|
||||
"end": 3968,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "switch",
|
||||
@ -3320,7 +3320,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 3453,
|
||||
"end": 3879,
|
||||
"end": 3895,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "foreignObject",
|
||||
@ -3377,7 +3377,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 3573,
|
||||
"end": 3851,
|
||||
"end": 3858,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "math",
|
||||
@ -3397,7 +3397,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 3608,
|
||||
"end": 3818,
|
||||
"end": 3826,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "msqrt",
|
||||
@ -3417,7 +3417,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 3648,
|
||||
"end": 3653,
|
||||
"end": 3658,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "mn",
|
||||
@ -3449,7 +3449,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 3691,
|
||||
"end": 3696,
|
||||
"end": 3701,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "mi",
|
||||
@ -3481,7 +3481,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 3734,
|
||||
"end": 3741,
|
||||
"end": 3746,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "mo",
|
||||
@ -3513,7 +3513,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 3779,
|
||||
"end": 3784,
|
||||
"end": 3789,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "mn",
|
||||
@ -3581,7 +3581,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 3916,
|
||||
"end": 3935,
|
||||
"end": 3942,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "text",
|
||||
|
@ -525,15 +525,15 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/math/input.html:3:1]
|
||||
3 | ,-> <head>
|
||||
4 | `-> <title>MathML in HTML5</title>
|
||||
5 | </head>
|
||||
4 | | <title>MathML in HTML5</title>
|
||||
5 | `-> </head>
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/math/input.html:3:1]
|
||||
3 | ,-> <head>
|
||||
4 | `-> <title>MathML in HTML5</title>
|
||||
5 | </head>
|
||||
4 | | <title>MathML in HTML5</title>
|
||||
5 | `-> </head>
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -551,13 +551,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/math/input.html:4:5]
|
||||
4 | <title>MathML in HTML5</title>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/math/input.html:4:5]
|
||||
4 | <title>MathML in HTML5</title>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -966,8 +966,8 @@
|
||||
23 | | <mi>c</mi>
|
||||
24 | | <mn>2</mn>
|
||||
25 | | </msup>
|
||||
26 | `-> </mrow>
|
||||
27 | </math>
|
||||
26 | | </mrow>
|
||||
27 | `-> </math>
|
||||
`----
|
||||
|
||||
x Element
|
||||
@ -990,8 +990,8 @@
|
||||
23 | | <mi>c</mi>
|
||||
24 | | <mn>2</mn>
|
||||
25 | | </msup>
|
||||
26 | `-> </mrow>
|
||||
27 | </math>
|
||||
26 | | </mrow>
|
||||
27 | `-> </math>
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -1135,13 +1135,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/math/input.html:12:17]
|
||||
12 | <mi>a</mi>
|
||||
: ^^^^^
|
||||
: ^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/math/input.html:12:17]
|
||||
12 | <mi>a</mi>
|
||||
: ^^^^^
|
||||
: ^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -1171,13 +1171,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/math/input.html:13:17]
|
||||
13 | <mn>2</mn>
|
||||
: ^^^^^
|
||||
: ^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/math/input.html:13:17]
|
||||
13 | <mn>2</mn>
|
||||
: ^^^^^
|
||||
: ^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -1219,13 +1219,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/math/input.html:15:13]
|
||||
15 | <mo>+</mo>
|
||||
: ^^^^^
|
||||
: ^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/math/input.html:15:13]
|
||||
15 | <mo>+</mo>
|
||||
: ^^^^^
|
||||
: ^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -1283,13 +1283,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/math/input.html:17:17]
|
||||
17 | <mi>b</mi>
|
||||
: ^^^^^
|
||||
: ^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/math/input.html:17:17]
|
||||
17 | <mi>b</mi>
|
||||
: ^^^^^
|
||||
: ^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -1319,13 +1319,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/math/input.html:18:17]
|
||||
18 | <mn>2</mn>
|
||||
: ^^^^^
|
||||
: ^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/math/input.html:18:17]
|
||||
18 | <mn>2</mn>
|
||||
: ^^^^^
|
||||
: ^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -1379,13 +1379,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/math/input.html:21:9]
|
||||
21 | <mo>=</mo>
|
||||
: ^^^^^
|
||||
: ^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/math/input.html:21:9]
|
||||
21 | <mo>=</mo>
|
||||
: ^^^^^
|
||||
: ^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -1443,13 +1443,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/math/input.html:23:13]
|
||||
23 | <mi>c</mi>
|
||||
: ^^^^^
|
||||
: ^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/math/input.html:23:13]
|
||||
23 | <mi>c</mi>
|
||||
: ^^^^^
|
||||
: ^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -1479,13 +1479,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/math/input.html:24:13]
|
||||
24 | <mn>2</mn>
|
||||
: ^^^^^
|
||||
: ^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/math/input.html:24:13]
|
||||
24 | <mn>2</mn>
|
||||
: ^^^^^
|
||||
: ^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -1565,8 +1565,8 @@
|
||||
37 | | <matrixrow>
|
||||
38 | | <cn> 1 </cn> <cn> 0 </cn> <cn> 0 </cn>
|
||||
39 | | </matrixrow>
|
||||
40 | `-> </matrix>
|
||||
41 | </math>
|
||||
40 | | </matrix>
|
||||
41 | `-> </math>
|
||||
`----
|
||||
|
||||
x Element
|
||||
@ -1582,8 +1582,8 @@
|
||||
37 | | <matrixrow>
|
||||
38 | | <cn> 1 </cn> <cn> 0 </cn> <cn> 0 </cn>
|
||||
39 | | </matrixrow>
|
||||
40 | `-> </matrix>
|
||||
41 | </math>
|
||||
40 | | </matrix>
|
||||
41 | `-> </math>
|
||||
`----
|
||||
|
||||
x Attribute
|
||||
@ -1675,13 +1675,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/math/input.html:32:13]
|
||||
32 | <cn> 0 </cn> <cn> 1 </cn> <cn> 0 </cn>
|
||||
: ^^^^^^^
|
||||
: ^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/math/input.html:32:13]
|
||||
32 | <cn> 0 </cn> <cn> 1 </cn> <cn> 0 </cn>
|
||||
: ^^^^^^^
|
||||
: ^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -1711,13 +1711,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/math/input.html:32:13]
|
||||
32 | <cn> 0 </cn> <cn> 1 </cn> <cn> 0 </cn>
|
||||
: ^^^^^^^
|
||||
: ^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/math/input.html:32:13]
|
||||
32 | <cn> 0 </cn> <cn> 1 </cn> <cn> 0 </cn>
|
||||
: ^^^^^^^
|
||||
: ^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -1747,13 +1747,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/math/input.html:32:13]
|
||||
32 | <cn> 0 </cn> <cn> 1 </cn> <cn> 0 </cn>
|
||||
: ^^^^^^^
|
||||
: ^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/math/input.html:32:13]
|
||||
32 | <cn> 0 </cn> <cn> 1 </cn> <cn> 0 </cn>
|
||||
: ^^^^^^^
|
||||
: ^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -1821,13 +1821,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/math/input.html:35:13]
|
||||
35 | <cn> 0 </cn> <cn> 0 </cn> <cn> 1 </cn>
|
||||
: ^^^^^^^
|
||||
: ^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/math/input.html:35:13]
|
||||
35 | <cn> 0 </cn> <cn> 0 </cn> <cn> 1 </cn>
|
||||
: ^^^^^^^
|
||||
: ^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -1857,13 +1857,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/math/input.html:35:13]
|
||||
35 | <cn> 0 </cn> <cn> 0 </cn> <cn> 1 </cn>
|
||||
: ^^^^^^^
|
||||
: ^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/math/input.html:35:13]
|
||||
35 | <cn> 0 </cn> <cn> 0 </cn> <cn> 1 </cn>
|
||||
: ^^^^^^^
|
||||
: ^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -1893,13 +1893,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/math/input.html:35:13]
|
||||
35 | <cn> 0 </cn> <cn> 0 </cn> <cn> 1 </cn>
|
||||
: ^^^^^^^
|
||||
: ^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/math/input.html:35:13]
|
||||
35 | <cn> 0 </cn> <cn> 0 </cn> <cn> 1 </cn>
|
||||
: ^^^^^^^
|
||||
: ^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -1967,13 +1967,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/math/input.html:38:13]
|
||||
38 | <cn> 1 </cn> <cn> 0 </cn> <cn> 0 </cn>
|
||||
: ^^^^^^^
|
||||
: ^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/math/input.html:38:13]
|
||||
38 | <cn> 1 </cn> <cn> 0 </cn> <cn> 0 </cn>
|
||||
: ^^^^^^^
|
||||
: ^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -2003,13 +2003,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/math/input.html:38:13]
|
||||
38 | <cn> 1 </cn> <cn> 0 </cn> <cn> 0 </cn>
|
||||
: ^^^^^^^
|
||||
: ^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/math/input.html:38:13]
|
||||
38 | <cn> 1 </cn> <cn> 0 </cn> <cn> 0 </cn>
|
||||
: ^^^^^^^
|
||||
: ^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -2039,13 +2039,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/math/input.html:38:13]
|
||||
38 | <cn> 1 </cn> <cn> 0 </cn> <cn> 0 </cn>
|
||||
: ^^^^^^^
|
||||
: ^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/math/input.html:38:13]
|
||||
38 | <cn> 1 </cn> <cn> 0 </cn> <cn> 0 </cn>
|
||||
: ^^^^^^^
|
||||
: ^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -2115,15 +2115,15 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/math/input.html:43:1]
|
||||
43 | ,-> <math xmlns="http://www.w3.org/1998/Math/MathML">
|
||||
44 | `-> <infinity/>
|
||||
45 | </math>
|
||||
44 | | <infinity/>
|
||||
45 | `-> </math>
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/math/input.html:43:1]
|
||||
43 | ,-> <math xmlns="http://www.w3.org/1998/Math/MathML">
|
||||
44 | `-> <infinity/>
|
||||
45 | </math>
|
||||
44 | | <infinity/>
|
||||
45 | `-> </math>
|
||||
`----
|
||||
|
||||
x Attribute
|
||||
@ -2220,8 +2220,8 @@
|
||||
78 | | x^{2} + y
|
||||
79 | | </annotation>
|
||||
80 | |
|
||||
81 | `-> </semantics>
|
||||
82 | </math>
|
||||
81 | | </semantics>
|
||||
82 | `-> </math>
|
||||
`----
|
||||
|
||||
x Element
|
||||
@ -2260,8 +2260,8 @@
|
||||
78 | | x^{2} + y
|
||||
79 | | </annotation>
|
||||
80 | |
|
||||
81 | `-> </semantics>
|
||||
82 | </math>
|
||||
81 | | </semantics>
|
||||
82 | `-> </math>
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -2457,13 +2457,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/math/input.html:53:17]
|
||||
53 | <mi>x</mi>
|
||||
: ^^^^^
|
||||
: ^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/math/input.html:53:17]
|
||||
53 | <mi>x</mi>
|
||||
: ^^^^^
|
||||
: ^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -2493,13 +2493,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/math/input.html:54:17]
|
||||
54 | <mn>2</mn>
|
||||
: ^^^^^
|
||||
: ^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/math/input.html:54:17]
|
||||
54 | <mn>2</mn>
|
||||
: ^^^^^
|
||||
: ^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -2541,13 +2541,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/math/input.html:56:13]
|
||||
56 | <mo>+</mo>
|
||||
: ^^^^^
|
||||
: ^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/math/input.html:56:13]
|
||||
56 | <mo>+</mo>
|
||||
: ^^^^^
|
||||
: ^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -2577,13 +2577,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/math/input.html:57:13]
|
||||
57 | <mi>y</mi>
|
||||
: ^^^^^
|
||||
: ^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/math/input.html:57:13]
|
||||
57 | <mi>y</mi>
|
||||
: ^^^^^
|
||||
: ^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -2815,13 +2815,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/math/input.html:66:21]
|
||||
66 | <ci>x</ci>
|
||||
: ^^^^^
|
||||
: ^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/math/input.html:66:21]
|
||||
66 | <ci>x</ci>
|
||||
: ^^^^^
|
||||
: ^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -2851,13 +2851,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/math/input.html:67:21]
|
||||
67 | <cn type="integer">2</cn>
|
||||
: ^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/math/input.html:67:21]
|
||||
67 | <cn type="integer">2</cn>
|
||||
: ^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Attribute
|
||||
@ -2905,13 +2905,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/math/input.html:69:17]
|
||||
69 | <ci>y</ci>
|
||||
: ^^^^^
|
||||
: ^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/math/input.html:69:17]
|
||||
69 | <ci>y</ci>
|
||||
: ^^^^^
|
||||
: ^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -3157,8 +3157,8 @@
|
||||
110 | | </mrow>
|
||||
111 | | </mtd>
|
||||
112 | | </mtr>
|
||||
113 | `-> </mtable>
|
||||
114 | </math>
|
||||
113 | | </mtable>
|
||||
114 | `-> </math>
|
||||
`----
|
||||
|
||||
x Element
|
||||
@ -3192,8 +3192,8 @@
|
||||
110 | | </mrow>
|
||||
111 | | </mtd>
|
||||
112 | | </mtr>
|
||||
113 | `-> </mtable>
|
||||
114 | </math>
|
||||
113 | | </mtable>
|
||||
114 | `-> </math>
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -3427,13 +3427,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/math/input.html:89:21]
|
||||
89 | <mn>2</mn>
|
||||
: ^^^^^
|
||||
: ^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/math/input.html:89:21]
|
||||
89 | <mn>2</mn>
|
||||
: ^^^^^
|
||||
: ^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -3463,13 +3463,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/math/input.html:90:21]
|
||||
90 | <mo>⁢</mo>
|
||||
: ^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/math/input.html:90:21]
|
||||
90 | <mo>⁢</mo>
|
||||
: ^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -3511,13 +3511,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/math/input.html:91:21]
|
||||
91 | <maligngroup/><mi>x</mi>
|
||||
: ^^^^^
|
||||
: ^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/math/input.html:91:21]
|
||||
91 | <maligngroup/><mi>x</mi>
|
||||
: ^^^^^
|
||||
: ^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -3559,13 +3559,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/math/input.html:92:21]
|
||||
92 | <maligngroup/><mo>+</mo>
|
||||
: ^^^^^
|
||||
: ^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/math/input.html:92:21]
|
||||
92 | <maligngroup/><mo>+</mo>
|
||||
: ^^^^^
|
||||
: ^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -3607,13 +3607,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/math/input.html:93:21]
|
||||
93 | <maligngroup/><mi>y</mi>
|
||||
: ^^^^^
|
||||
: ^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/math/input.html:93:21]
|
||||
93 | <maligngroup/><mi>y</mi>
|
||||
: ^^^^^
|
||||
: ^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -3655,13 +3655,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/math/input.html:94:21]
|
||||
94 | <maligngroup/><mo>=</mo>
|
||||
: ^^^^^
|
||||
: ^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/math/input.html:94:21]
|
||||
94 | <maligngroup/><mo>=</mo>
|
||||
: ^^^^^
|
||||
: ^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -3691,13 +3691,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/math/input.html:95:21]
|
||||
95 | <mo>-</mo>
|
||||
: ^^^^^
|
||||
: ^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/math/input.html:95:21]
|
||||
95 | <mo>-</mo>
|
||||
: ^^^^^
|
||||
: ^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -3739,13 +3739,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/math/input.html:96:21]
|
||||
96 | <maligngroup/><mn>5</mn>
|
||||
: ^^^^^
|
||||
: ^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/math/input.html:96:21]
|
||||
96 | <maligngroup/><mn>5</mn>
|
||||
: ^^^^^
|
||||
: ^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -3949,13 +3949,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/math/input.html:103:21]
|
||||
103 | <maligngroup/><mi>x</mi>
|
||||
: ^^^^^
|
||||
: ^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/math/input.html:103:21]
|
||||
103 | <maligngroup/><mi>x</mi>
|
||||
: ^^^^^
|
||||
: ^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -3997,13 +3997,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/math/input.html:104:21]
|
||||
104 | <maligngroup/><mo>-</mo>
|
||||
: ^^^^^
|
||||
: ^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/math/input.html:104:21]
|
||||
104 | <maligngroup/><mo>-</mo>
|
||||
: ^^^^^
|
||||
: ^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -4033,13 +4033,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/math/input.html:105:21]
|
||||
105 | <mn>2</mn>
|
||||
: ^^^^^
|
||||
: ^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/math/input.html:105:21]
|
||||
105 | <mn>2</mn>
|
||||
: ^^^^^
|
||||
: ^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -4069,13 +4069,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/math/input.html:106:21]
|
||||
106 | <mo>⁢</mo>
|
||||
: ^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/math/input.html:106:21]
|
||||
106 | <mo>⁢</mo>
|
||||
: ^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -4117,13 +4117,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/math/input.html:107:21]
|
||||
107 | <maligngroup/><mi>y</mi>
|
||||
: ^^^^^
|
||||
: ^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/math/input.html:107:21]
|
||||
107 | <maligngroup/><mi>y</mi>
|
||||
: ^^^^^
|
||||
: ^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -4165,13 +4165,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/math/input.html:108:21]
|
||||
108 | <maligngroup/><mo>=</mo>
|
||||
: ^^^^^
|
||||
: ^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/math/input.html:108:21]
|
||||
108 | <maligngroup/><mo>=</mo>
|
||||
: ^^^^^
|
||||
: ^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -4213,13 +4213,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/math/input.html:109:21]
|
||||
109 | <maligngroup/><mn>1</mn>
|
||||
: ^^^^^
|
||||
: ^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/math/input.html:109:21]
|
||||
109 | <maligngroup/><mn>1</mn>
|
||||
: ^^^^^
|
||||
: ^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -4317,8 +4317,8 @@
|
||||
118 | | <mtext> Theorem of Pythagoras </mtext>
|
||||
119 | |
|
||||
120 | | <mtext> /* comment here */ </mtext>
|
||||
121 | `->
|
||||
122 | </math>
|
||||
121 | |
|
||||
122 | `-> </math>
|
||||
`----
|
||||
|
||||
x Element
|
||||
@ -4328,8 +4328,8 @@
|
||||
118 | | <mtext> Theorem of Pythagoras </mtext>
|
||||
119 | |
|
||||
120 | | <mtext> /* comment here */ </mtext>
|
||||
121 | `->
|
||||
122 | </math>
|
||||
121 | |
|
||||
122 | `-> </math>
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -4349,13 +4349,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/math/input.html:118:5]
|
||||
118 | <mtext> Theorem of Pythagoras </mtext>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/math/input.html:118:5]
|
||||
118 | <mtext> Theorem of Pythagoras </mtext>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -4387,13 +4387,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/math/input.html:120:5]
|
||||
120 | <mtext> /* comment here */ </mtext>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/math/input.html:120:5]
|
||||
120 | <mtext> /* comment here */ </mtext>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -4441,8 +4441,8 @@
|
||||
124 | ,-> <math>
|
||||
125 | | <mtext>
|
||||
126 | | <div>test</div>
|
||||
127 | `-> </mtext>
|
||||
128 | </math>
|
||||
127 | | </mtext>
|
||||
128 | `-> </math>
|
||||
`----
|
||||
|
||||
x Element
|
||||
@ -4450,8 +4450,8 @@
|
||||
124 | ,-> <math>
|
||||
125 | | <mtext>
|
||||
126 | | <div>test</div>
|
||||
127 | `-> </mtext>
|
||||
128 | </math>
|
||||
127 | | </mtext>
|
||||
128 | `-> </math>
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -4495,13 +4495,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/math/input.html:126:9]
|
||||
126 | <div>test</div>
|
||||
: ^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/math/input.html:126:9]
|
||||
126 | <div>test</div>
|
||||
: ^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -4565,8 +4565,8 @@
|
||||
134 | | <malignmark edge="right"/>
|
||||
135 | | </mrow>
|
||||
136 | | <mn> 2 </mn>
|
||||
137 | `-> </msup>
|
||||
138 | </math>
|
||||
137 | | </msup>
|
||||
138 | `-> </math>
|
||||
`----
|
||||
|
||||
x Element
|
||||
@ -4578,8 +4578,8 @@
|
||||
134 | | <malignmark edge="right"/>
|
||||
135 | | </mrow>
|
||||
136 | | <mn> 2 </mn>
|
||||
137 | `-> </msup>
|
||||
138 | </math>
|
||||
137 | | </msup>
|
||||
138 | `-> </math>
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -4659,13 +4659,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/math/input.html:133:13]
|
||||
133 | <mi> x </mi>
|
||||
: ^^^^^^^
|
||||
: ^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/math/input.html:133:13]
|
||||
133 | <mi> x </mi>
|
||||
: ^^^^^^^
|
||||
: ^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -4737,13 +4737,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/math/input.html:136:9]
|
||||
136 | <mn> 2 </mn>
|
||||
: ^^^^^^^
|
||||
: ^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/math/input.html:136:9]
|
||||
136 | <mn> 2 </mn>
|
||||
: ^^^^^^^
|
||||
: ^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -4823,8 +4823,8 @@
|
||||
160 | | </switch>
|
||||
161 | | </g>
|
||||
162 | | </svg>
|
||||
163 | `-> </annotation-xml>
|
||||
164 | </math>
|
||||
163 | | </annotation-xml>
|
||||
164 | `-> </math>
|
||||
`----
|
||||
|
||||
x Element
|
||||
@ -4852,8 +4852,8 @@
|
||||
160 | | </switch>
|
||||
161 | | </g>
|
||||
162 | | </svg>
|
||||
163 | `-> </annotation-xml>
|
||||
164 | </math>
|
||||
163 | | </annotation-xml>
|
||||
164 | `-> </math>
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -5131,13 +5131,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/math/input.html:147:17]
|
||||
147 | <text transform="translate(10,20)">1</text>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/math/input.html:147:17]
|
||||
147 | <text transform="translate(10,20)">1</text>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Attribute
|
||||
@ -5351,13 +5351,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/math/input.html:152:33]
|
||||
152 | <mn>2</mn>
|
||||
: ^^^^^
|
||||
: ^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/math/input.html:152:33]
|
||||
152 | <mn>2</mn>
|
||||
: ^^^^^
|
||||
: ^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -5387,13 +5387,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/math/input.html:153:33]
|
||||
153 | <mi>r</mi>
|
||||
: ^^^^^
|
||||
: ^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/math/input.html:153:33]
|
||||
153 | <mi>r</mi>
|
||||
: ^^^^^
|
||||
: ^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -5423,13 +5423,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/math/input.html:154:33]
|
||||
154 | <mo>−</mo>
|
||||
: ^^^^^^^
|
||||
: ^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/math/input.html:154:33]
|
||||
154 | <mo>−</mo>
|
||||
: ^^^^^^^
|
||||
: ^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -5459,13 +5459,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/math/input.html:155:33]
|
||||
155 | <mn>1</mn>
|
||||
: ^^^^^
|
||||
: ^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/math/input.html:155:33]
|
||||
155 | <mn>1</mn>
|
||||
: ^^^^^
|
||||
: ^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
@ -5531,13 +5531,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/math/input.html:159:21]
|
||||
159 | <text>\sqrt{2r - 1}</text>
|
||||
: ^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/math/input.html:159:21]
|
||||
159 | <text>\sqrt{2r - 1}</text>
|
||||
: ^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
|
@ -44,7 +44,7 @@
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 17,
|
||||
"end": 50,
|
||||
"end": 58,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "title",
|
||||
|
@ -29,13 +29,13 @@
|
||||
x Child
|
||||
,-[$DIR/tests/fixture/element/no-basic/input.html:2:1]
|
||||
2 | <title>Saving money, saving bytes</title>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Element
|
||||
,-[$DIR/tests/fixture/element/no-basic/input.html:2:1]
|
||||
2 | <title>Saving money, saving bytes</title>
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
`----
|
||||
|
||||
x Child
|
||||
|
@ -0,0 +1,31 @@
|
||||
| <!DOCTYPE html>
|
||||
| <html>
|
||||
| lang="en"
|
||||
| <head>
|
||||
| "
|
||||
"
|
||||
| <title>
|
||||
| "Document"
|
||||
| "
|
||||
"
|
||||
| "
|
||||
"
|
||||
| <body>
|
||||
| "
|
||||
"
|
||||
| <noscript>
|
||||
| " "
|
||||
| <!-- anchor linking to external file -->
|
||||
| " "
|
||||
| <a>
|
||||
| href="https://www.mozilla.org/"
|
||||
| "External Link"
|
||||
| " "
|
||||
| "
|
||||
"
|
||||
| <a>
|
||||
| href="https://www.mozilla.org/"
|
||||
| "External Link"
|
||||
| "
|
||||
|
||||
"
|
@ -0,0 +1,10 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Document</title>
|
||||
</head>
|
||||
<body>
|
||||
<noscript> <!-- anchor linking to external file --> <a href="https://www.mozilla.org/">External Link</a> </noscript>
|
||||
<a href="https://www.mozilla.org/">External Link</a>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,276 @@
|
||||
{
|
||||
"type": "Document",
|
||||
"span": {
|
||||
"start": 1,
|
||||
"end": 269,
|
||||
"ctxt": 0
|
||||
},
|
||||
"mode": "no-quirks",
|
||||
"children": [
|
||||
{
|
||||
"type": "DocumentType",
|
||||
"span": {
|
||||
"start": 1,
|
||||
"end": 16,
|
||||
"ctxt": 0
|
||||
},
|
||||
"name": "html",
|
||||
"publicId": null,
|
||||
"systemId": null
|
||||
},
|
||||
{
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 17,
|
||||
"end": 269,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "html",
|
||||
"namespace": "http://www.w3.org/1999/xhtml",
|
||||
"attributes": [
|
||||
{
|
||||
"type": "Attribute",
|
||||
"span": {
|
||||
"start": 23,
|
||||
"end": 32,
|
||||
"ctxt": 0
|
||||
},
|
||||
"namespace": null,
|
||||
"prefix": null,
|
||||
"name": "lang",
|
||||
"value": "en"
|
||||
}
|
||||
],
|
||||
"children": [
|
||||
{
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 34,
|
||||
"end": 76,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "head",
|
||||
"namespace": "http://www.w3.org/1999/xhtml",
|
||||
"attributes": [],
|
||||
"children": [
|
||||
{
|
||||
"type": "Text",
|
||||
"span": {
|
||||
"start": 40,
|
||||
"end": 45,
|
||||
"ctxt": 0
|
||||
},
|
||||
"value": "\n "
|
||||
},
|
||||
{
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 45,
|
||||
"end": 68,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "title",
|
||||
"namespace": "http://www.w3.org/1999/xhtml",
|
||||
"attributes": [],
|
||||
"children": [
|
||||
{
|
||||
"type": "Text",
|
||||
"span": {
|
||||
"start": 52,
|
||||
"end": 60,
|
||||
"ctxt": 0
|
||||
},
|
||||
"value": "Document"
|
||||
}
|
||||
],
|
||||
"content": null
|
||||
},
|
||||
{
|
||||
"type": "Text",
|
||||
"span": {
|
||||
"start": 68,
|
||||
"end": 69,
|
||||
"ctxt": 0
|
||||
},
|
||||
"value": "\n"
|
||||
}
|
||||
],
|
||||
"content": null
|
||||
},
|
||||
{
|
||||
"type": "Text",
|
||||
"span": {
|
||||
"start": 76,
|
||||
"end": 77,
|
||||
"ctxt": 0
|
||||
},
|
||||
"value": "\n"
|
||||
},
|
||||
{
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 77,
|
||||
"end": 262,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "body",
|
||||
"namespace": "http://www.w3.org/1999/xhtml",
|
||||
"attributes": [],
|
||||
"children": [
|
||||
{
|
||||
"type": "Text",
|
||||
"span": {
|
||||
"start": 83,
|
||||
"end": 84,
|
||||
"ctxt": 0
|
||||
},
|
||||
"value": "\n"
|
||||
},
|
||||
{
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 84,
|
||||
"end": 200,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "noscript",
|
||||
"namespace": "http://www.w3.org/1999/xhtml",
|
||||
"attributes": [],
|
||||
"children": [
|
||||
{
|
||||
"type": "Text",
|
||||
"span": {
|
||||
"start": 94,
|
||||
"end": 95,
|
||||
"ctxt": 0
|
||||
},
|
||||
"value": " "
|
||||
},
|
||||
{
|
||||
"type": "Comment",
|
||||
"span": {
|
||||
"start": 95,
|
||||
"end": 135,
|
||||
"ctxt": 0
|
||||
},
|
||||
"data": " anchor linking to external file "
|
||||
},
|
||||
{
|
||||
"type": "Text",
|
||||
"span": {
|
||||
"start": 135,
|
||||
"end": 136,
|
||||
"ctxt": 0
|
||||
},
|
||||
"value": " "
|
||||
},
|
||||
{
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 136,
|
||||
"end": 188,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "a",
|
||||
"namespace": "http://www.w3.org/1999/xhtml",
|
||||
"attributes": [
|
||||
{
|
||||
"type": "Attribute",
|
||||
"span": {
|
||||
"start": 139,
|
||||
"end": 170,
|
||||
"ctxt": 0
|
||||
},
|
||||
"namespace": null,
|
||||
"prefix": null,
|
||||
"name": "href",
|
||||
"value": "https://www.mozilla.org/"
|
||||
}
|
||||
],
|
||||
"children": [
|
||||
{
|
||||
"type": "Text",
|
||||
"span": {
|
||||
"start": 171,
|
||||
"end": 184,
|
||||
"ctxt": 0
|
||||
},
|
||||
"value": "External Link"
|
||||
}
|
||||
],
|
||||
"content": null
|
||||
},
|
||||
{
|
||||
"type": "Text",
|
||||
"span": {
|
||||
"start": 188,
|
||||
"end": 189,
|
||||
"ctxt": 0
|
||||
},
|
||||
"value": " "
|
||||
}
|
||||
],
|
||||
"content": null
|
||||
},
|
||||
{
|
||||
"type": "Text",
|
||||
"span": {
|
||||
"start": 200,
|
||||
"end": 201,
|
||||
"ctxt": 0
|
||||
},
|
||||
"value": "\n"
|
||||
},
|
||||
{
|
||||
"type": "Element",
|
||||
"span": {
|
||||
"start": 201,
|
||||
"end": 253,
|
||||
"ctxt": 0
|
||||
},
|
||||
"tagName": "a",
|
||||
"namespace": "http://www.w3.org/1999/xhtml",
|
||||
"attributes": [
|
||||
{
|
||||
"type": "Attribute",
|
||||
"span": {
|
||||
"start": 204,
|
||||
"end": 235,
|
||||
"ctxt": 0
|
||||
},
|
||||
"namespace": null,
|
||||
"prefix": null,
|
||||
"name": "href",
|
||||
"value": "https://www.mozilla.org/"
|
||||
}
|
||||
],
|
||||
"children": [
|
||||
{
|
||||
"type": "Text",
|
||||
"span": {
|
||||
"start": 236,
|
||||
"end": 249,
|
||||
"ctxt": 0
|
||||
},
|
||||
"value": "External Link"
|
||||
}
|
||||
],
|
||||
"content": null
|
||||
},
|
||||
{
|
||||
"type": "Text",
|
||||
"span": {
|
||||
"start": 253,
|
||||
"end": 262,
|
||||
"ctxt": 0
|
||||
},
|
||||
"value": "\n\n"
|
||||
}
|
||||
],
|
||||
"content": null
|
||||
}
|
||||
],
|
||||
"content": null
|
||||
}
|
||||
]
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user