You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you try to parse attributes of this input tag, you will find the first letter of the value attribute is omitted.
try this code:
let dom = tl::parse(r#"<input id="id" ct="I" readonly value="82.0">"#, tl::ParserOptions::new()).unwrap();let parser = dom.parser();let element = dom
.get_element_by_id("id").expect("Failed to find element").get(parser).unwrap().as_tag().unwrap();
element.attributes().iter().for_each(|(key, value)| {println!(r#"{}: {:?}"#, key, value);});
Tried to parse this fragment:
If you try to parse attributes of this input tag, you will find the first letter of the
value
attribute is omitted.try this code:
this results:
The text was updated successfully, but these errors were encountered: