[cssom] Should insertRule()
return or throw a syntax error?
#9234
Labels
insertRule()
return or throw a syntax error?
#9234
https://drafts.csswg.org/cssom-1/#dom-cssstylesheet-insertrule
All mainstream browsers do not return a syntax error but throws a
SyntaxError
DOMException
when the result of parse a rule is a syntax error:Furthermore, the Web IDL definition does not allow to return syntax error:
Should the current procedure be updated to this interopable behavior?
The text was updated successfully, but these errors were encountered: