Skip to content

Commit a77d7b3

Browse files
committed
Fix serializing CSSNamespaceRule with omitted prefix
1 parent 5f0899e commit a77d7b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/cssom/CSSNamespaceRule-impl.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
import { serializeIdentifier, serializeURL } from '../serialize.js'
2+
import { serializeComponentValue, serializeURL } from '../serialize.js'
33
import CSSRuleImpl from './CSSRule-impl.js'
44
import { isFunction } from '../utils/value.js'
55

@@ -17,7 +17,7 @@ export default class CSSNamespaceRuleImpl extends CSSRuleImpl {
1717
super(globalObject, args, privateData)
1818
const { prelude: [prefix, location] } = privateData
1919
this.namespaceURI = isFunction(location) ? location.value[0].value : location.value
20-
this.prefix = serializeIdentifier(prefix)
20+
this.prefix = serializeComponentValue(prefix)
2121
}
2222

2323
/**

0 commit comments

Comments
 (0)