Rename "compat" into "disable-validation", to insist on it breaking some guarantees.

This commit is contained in:
Emmanuel Gil Peyrot 2019-01-12 22:00:46 +01:00
commit c2b7e19378
18 changed files with 39 additions and 39 deletions

View file

@ -248,7 +248,7 @@ macro_rules! check_ns_only {
macro_rules! check_no_children {
($elem:ident, $name:tt) => {
#[cfg(not(feature = "compat"))]
#[cfg(not(feature = "disable-validation"))]
for _ in $elem.children() {
return Err(crate::error::Error::ParseError(concat!(
"Unknown child in ",
@ -261,7 +261,7 @@ macro_rules! check_no_children {
macro_rules! check_no_attributes {
($elem:ident, $name:tt) => {
#[cfg(not(feature = "compat"))]
#[cfg(not(feature = "disable-validation"))]
for _ in $elem.attrs() {
return Err(crate::error::Error::ParseError(concat!(
"Unknown attribute in ",
@ -274,7 +274,7 @@ macro_rules! check_no_attributes {
macro_rules! check_no_unknown_attributes {
($elem:ident, $name:tt, [$($attr:tt),*]) => (
#[cfg(not(feature = "compat"))]
#[cfg(not(feature = "disable-validation"))]
for (_attr, _) in $elem.attrs() {
$(
if _attr == $attr {