Minify area[shape] attr; simplify NS code
This commit is contained in:
parent
54b65bbd0c
commit
6ec509945a
|
@ -94,6 +94,10 @@ const defaultAttributeValues = {
|
||||||
tags: ['html:table'],
|
tags: ['html:table'],
|
||||||
defaultValue: 'none',
|
defaultValue: 'none',
|
||||||
}],
|
}],
|
||||||
|
'shape': [{
|
||||||
|
tags: ['html:area'],
|
||||||
|
defaultValue: 'rect',
|
||||||
|
}],
|
||||||
'span': [{
|
'span': [{
|
||||||
tags: ['html:col', 'html:colgroup'],
|
tags: ['html:col', 'html:colgroup'],
|
||||||
defaultValue: '1',
|
defaultValue: '1',
|
||||||
|
|
|
@ -194,7 +194,7 @@ pub fn process_tag(proc: &mut Processor, ns: Namespace, mut prev_sibling_closing
|
||||||
return Ok(MaybeClosingTag(None));
|
return Ok(MaybeClosingTag(None));
|
||||||
};
|
};
|
||||||
|
|
||||||
let child_ns = if ns != Namespace::Svg && proc[tag_name].eq(b"svg") {
|
let child_ns = if proc[tag_name].eq(b"svg") {
|
||||||
Namespace::Svg
|
Namespace::Svg
|
||||||
} else {
|
} else {
|
||||||
ns
|
ns
|
||||||
|
|
Loading…
Reference in New Issue