We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 249e049 + d721b5e commit 6041bb3Copy full SHA for 6041bb3
src/PhpWord/Shared/Html.php
@@ -160,8 +160,10 @@ protected static function parseInlineStyle($node, $styles = [])
160
}
161
162
$attributeClass = $attributes->getNamedItem('class');
163
- if ($attributeClass && self::$css) {
164
- $styles = self::parseStyleDeclarations(self::$css->getStyle('.' . $attributeClass->value), $styles);
+ if ($attributeClass) {
+ if (self::$css) {
165
+ $styles = self::parseStyleDeclarations(self::$css->getStyle('.' . $attributeClass->value), $styles);
166
+ }
167
$styles['className'] = $attributeClass->value;
168
169
0 commit comments