HTML Reader : Set style name from the CSS class (and if not CSS is loaded)
This commit is contained in:
parent
02a92c8924
commit
d721b5eda7
@ -160,8 +160,10 @@ class Html
|
||||
}
|
||||
|
||||
$attributeClass = $attributes->getNamedItem('class');
|
||||
if ($attributeClass && self::$css) {
|
||||
$styles = self::parseStyleDeclarations(self::$css->getStyle('.' . $attributeClass->value), $styles);
|
||||
if ($attributeClass) {
|
||||
if (self::$css) {
|
||||
$styles = self::parseStyleDeclarations(self::$css->getStyle('.' . $attributeClass->value), $styles);
|
||||
}
|
||||
$styles['className'] = $attributeClass->value;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user