Fix issue 12 for attributes

This commit is contained in:
Dmitry Samoylov
2020-03-24 17:39:16 +07:00
parent 077b2f51e3
commit b3d9ea0744
2 changed files with 34 additions and 1 deletions

View File

@@ -423,7 +423,7 @@ pub fn parse(
// return Err(format!("unknown key {}", name))
// }
}
if !skipped {
if depth == 0 && !skipped { // Look for attributes only at element start
#attributes_loading
}
depth += 1;